Introduction: Arduino Tutorial Project Access Keypad and LCD

Can be seen in the video tutorial Arduino with Proteus simulation that allows to access the keypad and LCD simultaneously. For the keypad used is a keypad 3 columns and 4 rows, while for LCD used was 16 columns and two rows. Here is a picture of wiring configuration between the Arduino Uno board with LCD and keypad.

From these images.LCD RS pin is connected to digital pin 13LCD Enable pin is connected to digital pin 12Pin D4 LCD connected to digital pin 11Pin D5 LCD connected to digital pin 10Pin D6 LCD connected to digital pin 9Pin D7 LCD connected to digital pin 8Pin column 1 keypad connected to digital pin 5Pin 2 column keypad connected to digital pin 6Pin 3 column keypad connected to digital pin 7A row pin keypad connected to digital pin 4Pin row B keypad connected to digital pin 3Pin row C keypad connected to digital pin 2D Pin row keypad connected to digital pin 1As for who want more practical can use the module Arduino Shield LCD keypad are sold cheaply . For source code that is used is as follows.

#include
#include

const byte ROWS = 4;

const byte COLS = 3;

char hexaKeys[ROWS][COLS] = {

{'1', '2', '3'},

{'4', '5', '6'},

{'7', '8', '9'},

{'*', '0', '#'} };

byte rowPins[ROWS] = {4, 3, 2, 1};

byte colPins[COLS] = {5, 6, 7};

Keypad customKeypad = Keypad(makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS);

LiquidCrystal lcd (13, 12, 11, 10, 9, 8);

void setup() {

lcd.begin(16, 2);

lcd.setCursor(0, 0);

lcd.print("Arduino Keypad");

delay(2000); lcd.clear(); }

void loop() {

lcd.setCursor(0, 0);

lcd.print("Press any key");

char customKey = customKeypad.getKey();

if (customKey) {

lcd.setCursor(0, 1);

lcd.print(customKey);

lcd.print(" is pressed"); } }

you can see other project here(Creative Technology Indonesia) and buy arduino component or other (jogjaduino.com )

Comments

author
AgenJ1 (author)2017-03-11


Thank you for the article A Very Good And Gives Insights For Readers

Vimax Asli Jakarta

author
DIY Hacks and How Tos (author)2016-10-02

Arduinos really are idea for almost any DIY security application. Thanks for sharing your design.

author

yes, you are welcome :)

About This Instructable

544views

2favorites

More by GiriW:Arduino Tutorial Project Access Keypad and LCD
Add instructable to: