Catalog Clothing ملابس Women's clothing ملابس نسائيه Dresses, sundresses فساتين صيفيه Electronic components

LCD1602 character LCD blue screen input output expansion board LCD

Product information

Code 15751898608
Status: New
In stock: 200 PCs
Real weight: 0.054 kg
Sales volume for 30 days: 1
Sales volume: 1
Price per 1 piece :
Local delivery:
Quantity: + -
Minimal lot:
Total:
Add to cart

Add to favorites

Vendor info

Name: 深圳市育松电子元器件模块工具
Shop name: 深圳市育松电子元器件模块工具
Add vendor to favourites
Brand: .;
Model: .;
Original description

LCD input output expansion board uses 2 lines and 16 characters LCD, which has a contrast adjustment and backlight. Use 1 analog port to complete the input of 5 keys, 1 reset button, and the unused IO ports are expanded to set aside, and make full use of it.IO port.Occupy digital port: PIN4 (DB4), 5 (DB5), 6 (DB6), 7 (DB7), 8 (RS), 9 (E), 10 (backlight control), simulation key port A0EssenceUse it with Arduino:

 

Point definition:

 

Debugging of the module:

       insert LCD keypad shield to the Arduino controller, and then downloadLCD4Bit_mod.h(Right-click another) library file to -0015 \ Hardware \ libraries, then compile a test program below and download it to Arduino. The LCD is for the first time.Correctly, you can use a word to adjust the RP1 (rotating clockwise), and you can adjust it to a clear character.

 

Professional anti -static packaging

Test renderings:

 

 

GP2D12 ranging code:

#include

LCD4Bit_mod lcd = LCD4Bit_mod(2);

char GP2D12;
char a,b;
char str1[]="Renge:";
char str2[]="   Renge Over  ";
char str3[]="cm";

void setup()
{
  lcd.init();
  lcd.clear();
  lcd.printIn("GP2D12 testing..."); 
}

void loop()
{
      GP2D12=read_gp2d12_range(1);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(GP2D12>80 GP2D12<10)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lcd.cursorTo(2,0);&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lcd.printIn(str2);&n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; Return (6787.0 /((Float) TMP -3.0)) -4.0;
}

Template protection code
Template protection code