1602 LCD Keypad Shield Test
The 1602 LCD Keypad Shield is an expensive and easy way to add a simple 16 x 2 LCD screen and 5 button menu to your Arduino projects.
The LCD Display uses the LiquidCrystal library that comes standard with the Arduino IDE. The library examples work with the following change in the initialization:
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
The 5 navigation buttons use a resistor ladder to connect to analog pin 0. Just use the analogRead(); command to read in the different values.
You may use the following modified example code at the right to test out your shield.
The number shows the value that the analog pin last received. The button name is displayed on the second row. Because the numbers read in on analog pin 0 can vary slightly, a range of values is used for each button.