Special Deals

Free shipping

Pick 3+ & Save

Choice LCD1602Character Input/Output Expansion Board LCD Keypad LCD Shield LCD Display module for Ardui...

Special Deals

27.09AED
  • Pay in 4 interest-free payments of 6.77 AED.


Payment methods
Payment method
Payment method
Payment method
Payment method
Payment method
Payment method
Payment method
left arrow
right arrow
Big Save Store
9.3K followers
Seller's store 

Product features

I / O expansion board LCDKeypad Shield

LCD Keypad shields input/output extended use 2 lines 16 characters LCD panel, with contrast adjustment and backlight, use a simulated input of mouth, completing five buttons, a reset button, the unused IO mouth extend out spare, make full use of I/o port. Take up the digital port: PIN4 (db3), 5 (DB5), 6 (DB6), 7 (DB7), 8 (RS), 9 (E), 10 (backlight control), A0 simulate keystrokes port. (LCD color is not specified, random delivery.)

Used with Roboduino:

Module debugging:

Will LCD Keypad shields inserted to the controller, then need to download the LCD4Bit_mod. H (right click save as) library files to the - 0015 \ \ hardware \ \ in the libraries, and then compile the following a test program to download to the , first use the LCD Keypad shields, did observe LCD display character first, if there is no contrast shows characters that may be incorrect, you can use a word screwdriver adjustment RP1 (clockwise), characters can be transferred to appear clearly.

The test renderings:

GP2D12Ranging 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);
if(GP2D12>80||GP2D12<10)
{
lcd.cursorTo(2,0);
lcd.printIn(str2);
}
else
{
a=0x30+GP2D12/10;
b=0x30+GP2D12%10;
lcd.cursorTo(2, 3);
lcd.printIn(str1);
lcd.print(a);
lcd.print(b);
lcd.printIn(str3);
}
delay(50);
}

float read_gp2d12_range(byte pin)
{
int tmp;
tmp = analogRead(pin);
if (tmp < 3)return -1;
return (6787.0 /((float)tmp - 3.0)) - 4.0;
}