LCD Keypad Shield LCD 1602 Character LCD input and output expansion board for arduino raspberry pi uno mega 2560

US$ 1.91 US$ 3.88

: In stock

:

Wholesale electronics best price, bulk price,wholesale accessoriesFollow and become a fan of our store, enjoy first-time order discounts I / O expansion board LCDKeypad Shield LCD Keypad shields input/output extended use...
Wholesale electronics best price, bulk price,wholesale accessories

Follow and become a fan of our store, enjoy first-time order discounts



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;
}


About US:
We are a foreign trade technology company headquartered in Shenzhen, specialized in serving Southeast Asian customers, providing customers with one-stop services such as electronic materials, electronic products, computers and peripheral equipment, crafts, electronic watches, wearables, overall solutions, etc. We can also help Southeast Asian customers to purchase a variety of goods from China, providing high quality products.
Find the right supplier for customers in China, grow together with customers, create miracles and the future.
The founder of the company has served in the electronics industry for more than 20 years, has rich experience and technology, has its own professional electronics factory and rich supply chain.
Size Chart
pfdeal
Has been added to the cart!