How to Use LCD Keypad Shield for Arduino

In this tutorial, we will learn on how to use the LCD Keypad Shield for Arduino. This shield is compatible for Arduino Uno and Arduino Mega.

Pin assignments:
From this pin assignments, we can conclude that the following pins are free and available to be use for other purposes.
    Digital pins: 0, 1, 2, 3, 11, 12, and 13.
    Analog pins: A1 to A5.
Video Demonstration:

Source Code:

#include "LiquidCrystal.h"

LiquidCrystal lcd( 8,  9,  4,  5,  6,  7);

void setup() {
 lcd.begin(16, 2);
 
 lcd.setCursor(0,0);
 lcd.print("  TechToTinker  ");
 
 lcd.setCursor(0,1);
 lcd.print("Press Key:");
 
}
void loop() {
 int x;
 x = analogRead (0);
 
 lcd.setCursor(10,1);
 
 if (x < 60) {
   lcd.print ("Right ");
 }
 else if (x < 200) {
   lcd.print ("Up    ");
 }
 else if (x < 400){
   lcd.print ("Down  ");
 }
 else if (x < 600){
   lcd.print ("Left  ");
 }
 else if (x < 800){
   lcd.print ("Select");
 }
 
} 
If you find this tutorial helpful, like and share this to your friends who might benefit from it.
Thank you and have a good day.

5 thoughts on “How to Use LCD Keypad Shield for Arduino

  1. I to you will remember it! I will pay off with you!

    _ _ _ _ _ _ _ _ _ _ _ _ _ _
    Некулицы Иван gensmbios github

Leave a Reply to Unknown Cancel reply

Your email address will not be published. Required fields are marked *