SlideShare a Scribd company logo
1 of 9
Download to read offline
www.researchdesignlab.com Page 1
LCD Keypad Shield
LCD KEYPAD SHIELD
www.researchdesignlab.com Page 2
LCD Keypad Shield
Table of Contents
LCD KEYPAD SHIELD ................................................................................................................ 1
OVERVIEW ................................................................................................................................... 3
INTRODUCTION ...................................................................................................................... 3
FEATURES ................................................................................................................................ 3
APPLICATIONS........................................................................................................................ 4
CIRCUIT DIAGRAM ................................................................................................................ 4
ARDUINO CODE ...................................................................................................................... 5
OUTPUT..................................................................................................................................... 8
RELATED PRODUCTS ............................................................................................................ 9
www.researchdesignlab.com Page 3
LCD Keypad Shield
OVERVIEW
INTRODUCTION
One of the basic interfacing requirements for the hobbyists or electronics enthusiasts is I/P
(keypad) and O/P (LCD display) for prototype applications. This shield uses minimum number
I/O’s that is 4 bits for LCD data and 2 control signal lines for the same. A single analog pin (Pin
A0) is multiplexed to read 5 input key switches (Navigation keys). Each key has been pulled up
to a different voltage level, so a different voltage will be generated every time a user selects a
key. This voltage could be read by the analog pin A0 on the board. Hence saves the no of I/O
pins. The backlight of the LCD could be controlled by setting PWM (Pin D10) by adding a few
lines of code.
FEATURES
 16X2 Blue color back light LCD.
 A single Analog pin is multiplexed to read 5 input Keys.
 Optional PWM based Back light control.
 Stackable on UNO shield
 High quality PCB FR4 Grade with FPT Certified.
www.researchdesignlab.com Page 4
LCD Keypad Shield
APPLICATIONS
 Calculators
 Cameras
 Cash Registers
 Clock Radios
 Digital Meters
 Hand-held TV & Terminals
 Hand-held Data Collection
 Heart Monitoring Devices
CIRCUIT DIAGRAM
www.researchdesignlab.com Page 5
LCD Keypad Shield
ARDUINO CODE
/*
* Project name:
LCD KEYPAD Shield
* Copyright
(c) Researchdesignlab.com
* Description:
* Test configuration:
MCU: ATMEGA328
Dev.Board: Arduino uno
Oscillator: 16 MHz
Software: Arduino
*/
/*
The circuit:
* LCD RS pin to digital pin 12
* LCD Enable pin to digital pin 11
* LCD D4 pin to digital pin 5
* LCD D5 pin to digital pin 4
* LCD D6 pin to digital pin 3
* LCD D7 pin to digital pin 2
* LCD R/W pin to ground
* 10K resistor:
* ends to +5V and ground
* wiper to LCD VO pin (pin 3)
*/
// include the library code:
#include <LiquidCrystal.h>
int sensorValue = 0; // value read from the keypad
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int sensorPin = A0;
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
www.researchdesignlab.com Page 6
LCD Keypad Shield
delay(2000);
}
void loop() {
lcd.clear(); // clear lcd display
lcd.setCursor(0, 0); // set the cursor to column 0, line 0
lcd.print("LCD KEYPAD Shield");
lcd.setCursor(0, 1); // set the cursor to column 0, line 1
// read the input on analog pin 0 of keypad :
sensorValue = analogRead(sensorPin);
// check if the keypad is pressed disply keypad on lcd using sensorValue .
if(sensorValue<=10)
lcd.print("RIGHT KEY");
else if((sensorValue<=492)&&(sensorValue>=482))
lcd.print("DOWN KEY");
else if((sensorValue<=325)&&(sensorValue>=315))
lcd.print("UP KEY");
else if((sensorValue<=595)&&(sensorValue>=585))
lcd.print("LEFT KEY");
else if((sensorValue<=765)&&(sensorValue>=755))
lcd.print("SELECT KEY");
else
lcd.print("NO KEY PRESSED");
delay(500);
}
SERIAL COMMUNICATION
const int analogInPin = A0; // Analog input pin that the potentiometer is
attached to
int sensorValue = 0; // value read from the pot
void setup() {
// initialize serial communications at 9600 bps:
Serial.begin(9600);
www.researchdesignlab.com Page 7
LCD Keypad Shield
delay(1000);
}
void loop() {
// read the analog in value:
sensorValue = analogRead(analogInPin);
// check if the keypad is pressed disply keypad on lcd using sensorValue .
if(sensorValue<=10)
{
Serial.write(byte(0X01));
Serial.write(byte(0X80));
Serial.println("RIGHT KEY");
}else if((sensorValue<=492)&&(sensorValue>=482))
{
Serial.write(byte(0X01));
Serial.write(byte(0X80));
Serial.println("DOWN KEY");
}
else if((sensorValue<=325)&&(sensorValue>=315))
{
Serial.write(byte(0X01));
Serial.write(byte(0X80));
Serial.println("UP KEY");
}
else if((sensorValue<=595)&&(sensorValue>=585))
{
Serial.write(byte(0X01));
Serial.write(byte(0X80));
Serial.println("LEFT KEY");
}else if((sensorValue<=765)&&(sensorValue>=755))
{
Serial.write(byte(0X01));
Serial.write(byte(0X80));
Serial.println("SELECT KEY");
}
else
www.researchdesignlab.com Page 8
LCD Keypad Shield
{
Serial.write(byte(0X01));
Serial.write(byte(0X80));
Serial.println("NO KEY PRESSED");
}
delay(1000);
}
OUTPUT
www.researchdesignlab.com Page 9
LCD Keypad Shield
RELATED PRODUCTS
RDL- UNO ATMEGA328 Development Board 4x4 Matrix Keypad
LCD Interfacing Module Graphical LCD

More Related Content

What's hot

Zd12xx release notes_9.9
Zd12xx release notes_9.9Zd12xx release notes_9.9
Zd12xx release notes_9.9forum4user
 
Learn LCD Arduino-v1
Learn LCD Arduino-v1Learn LCD Arduino-v1
Learn LCD Arduino-v1handson28
 
PN985-MG3500-SDK-Guide
PN985-MG3500-SDK-GuidePN985-MG3500-SDK-Guide
PN985-MG3500-SDK-GuideSholeh Gregory
 
Dell Vostro 5459 - Laptops Trần Phát
Dell Vostro 5459 - Laptops Trần PhátDell Vostro 5459 - Laptops Trần Phát
Dell Vostro 5459 - Laptops Trần PhátLAPTOP TRẦN PHÁT
 
13fusionhybrid
13fusionhybrid13fusionhybrid
13fusionhybridrukford1
 
13mkzhybrid
13mkzhybrid13mkzhybrid
13mkzhybridrukford1
 
Dell Vostro 3671 datasheet
Dell Vostro 3671 datasheetDell Vostro 3671 datasheet
Dell Vostro 3671 datasheetMr Cuong
 
Dell Vostro 5581 Laptop giá rẻ chất lượng của Dell
Dell Vostro 5581 Laptop giá rẻ chất lượng của DellDell Vostro 5581 Laptop giá rẻ chất lượng của Dell
Dell Vostro 5581 Laptop giá rẻ chất lượng của DellLAPTOP TRẦN PHÁT
 
Dell vostro 5568 Laptops Trần Phát
Dell vostro 5568 Laptops Trần PhátDell vostro 5568 Laptops Trần Phát
Dell vostro 5568 Laptops Trần PhátLAPTOP TRẦN PHÁT
 

What's hot (12)

Zd12xx release notes_9.9
Zd12xx release notes_9.9Zd12xx release notes_9.9
Zd12xx release notes_9.9
 
Learn LCD Arduino-v1
Learn LCD Arduino-v1Learn LCD Arduino-v1
Learn LCD Arduino-v1
 
PN985-MG3500-SDK-Guide
PN985-MG3500-SDK-GuidePN985-MG3500-SDK-Guide
PN985-MG3500-SDK-Guide
 
Dell Vostro 5459 - Laptops Trần Phát
Dell Vostro 5459 - Laptops Trần PhátDell Vostro 5459 - Laptops Trần Phát
Dell Vostro 5459 - Laptops Trần Phát
 
13fusionhybrid
13fusionhybrid13fusionhybrid
13fusionhybrid
 
13mkzhybrid
13mkzhybrid13mkzhybrid
13mkzhybrid
 
Dell Vostro 3671 datasheet
Dell Vostro 3671 datasheetDell Vostro 3671 datasheet
Dell Vostro 3671 datasheet
 
Dell Vostro 5581 Laptop giá rẻ chất lượng của Dell
Dell Vostro 5581 Laptop giá rẻ chất lượng của DellDell Vostro 5581 Laptop giá rẻ chất lượng của Dell
Dell Vostro 5581 Laptop giá rẻ chất lượng của Dell
 
Dell vostro 5568 Laptops Trần Phát
Dell vostro 5568 Laptops Trần PhátDell vostro 5568 Laptops Trần Phát
Dell vostro 5568 Laptops Trần Phát
 
Um en
Um enUm en
Um en
 
Dell alienware 17r4
Dell alienware 17r4Dell alienware 17r4
Dell alienware 17r4
 
Zaavar
ZaavarZaavar
Zaavar
 

Similar to LCD Keypad Shield

Lcd module interface with xilinx software using verilog
Lcd module interface with xilinx software using verilogLcd module interface with xilinx software using verilog
Lcd module interface with xilinx software using verilogsumedh23
 
Dam gate open close lpc prog
Dam gate open close lpc progDam gate open close lpc prog
Dam gate open close lpc prognikhil dixit
 
KVMSwitchTech's Manual- How to Use and Install 16 Ports 1U 19" Rackmount Moni...
KVMSwitchTech's Manual- How to Use and Install 16 Ports 1U 19" Rackmount Moni...KVMSwitchTech's Manual- How to Use and Install 16 Ports 1U 19" Rackmount Moni...
KVMSwitchTech's Manual- How to Use and Install 16 Ports 1U 19" Rackmount Moni...kvmswitchtech
 
ILI6122 data sheet
ILI6122 data sheetILI6122 data sheet
ILI6122 data sheetfrank735071
 
Arduino LCD 16x2.pptx
Arduino LCD 16x2.pptxArduino LCD 16x2.pptx
Arduino LCD 16x2.pptxssuser3d9a7f
 
Infrared matrix-password-input-system-with-arduino
Infrared matrix-password-input-system-with-arduinoInfrared matrix-password-input-system-with-arduino
Infrared matrix-password-input-system-with-arduinoicstation
 
Atmega lcd programing_with_header_file
Atmega lcd programing_with_header_fileAtmega lcd programing_with_header_file
Atmega lcd programing_with_header_fileABHISHEK MAURYA
 
Dgs3612 g cli_dna
Dgs3612 g cli_dnaDgs3612 g cli_dna
Dgs3612 g cli_dnamaqc8321
 
2022-BEKM 3453 - LCD and keypad.pdf
2022-BEKM 3453 - LCD and keypad.pdf2022-BEKM 3453 - LCD and keypad.pdf
2022-BEKM 3453 - LCD and keypad.pdfVNEX
 
Compaq c8000 laptop
Compaq c8000 laptopCompaq c8000 laptop
Compaq c8000 laptopusdima
 
Compaq nc8000 Maintenance and Service Guide
Compaq nc8000 Maintenance and Service GuideCompaq nc8000 Maintenance and Service Guide
Compaq nc8000 Maintenance and Service Guideusdima
 

Similar to LCD Keypad Shield (20)

Arduino: Arduino lcd
Arduino: Arduino lcdArduino: Arduino lcd
Arduino: Arduino lcd
 
Lcd module interface with xilinx software using verilog
Lcd module interface with xilinx software using verilogLcd module interface with xilinx software using verilog
Lcd module interface with xilinx software using verilog
 
Lcd n PIC16F
Lcd n PIC16FLcd n PIC16F
Lcd n PIC16F
 
Dam gate open close lpc prog
Dam gate open close lpc progDam gate open close lpc prog
Dam gate open close lpc prog
 
KVMSwitchTech's Manual- How to Use and Install 16 Ports 1U 19" Rackmount Moni...
KVMSwitchTech's Manual- How to Use and Install 16 Ports 1U 19" Rackmount Moni...KVMSwitchTech's Manual- How to Use and Install 16 Ports 1U 19" Rackmount Moni...
KVMSwitchTech's Manual- How to Use and Install 16 Ports 1U 19" Rackmount Moni...
 
ILI6122.pdf
ILI6122.pdfILI6122.pdf
ILI6122.pdf
 
ILI6122 data sheet
ILI6122 data sheetILI6122 data sheet
ILI6122 data sheet
 
131080111003 mci
131080111003 mci131080111003 mci
131080111003 mci
 
Arduino LCD 16x2.pptx
Arduino LCD 16x2.pptxArduino LCD 16x2.pptx
Arduino LCD 16x2.pptx
 
Graphical LCD
Graphical LCDGraphical LCD
Graphical LCD
 
ESD -DAY 24.pptx
ESD -DAY 24.pptxESD -DAY 24.pptx
ESD -DAY 24.pptx
 
Infrared matrix-password-input-system-with-arduino
Infrared matrix-password-input-system-with-arduinoInfrared matrix-password-input-system-with-arduino
Infrared matrix-password-input-system-with-arduino
 
Atmega lcd programing_with_header_file
Atmega lcd programing_with_header_fileAtmega lcd programing_with_header_file
Atmega lcd programing_with_header_file
 
Dfr0464 datasheet
Dfr0464 datasheetDfr0464 datasheet
Dfr0464 datasheet
 
Dgs3612 g cli_dna
Dgs3612 g cli_dnaDgs3612 g cli_dna
Dgs3612 g cli_dna
 
Red rio
Red rioRed rio
Red rio
 
2022-BEKM 3453 - LCD and keypad.pdf
2022-BEKM 3453 - LCD and keypad.pdf2022-BEKM 3453 - LCD and keypad.pdf
2022-BEKM 3453 - LCD and keypad.pdf
 
Final Report
Final ReportFinal Report
Final Report
 
Compaq c8000 laptop
Compaq c8000 laptopCompaq c8000 laptop
Compaq c8000 laptop
 
Compaq nc8000 Maintenance and Service Guide
Compaq nc8000 Maintenance and Service GuideCompaq nc8000 Maintenance and Service Guide
Compaq nc8000 Maintenance and Service Guide
 

More from Raghav Shetty

8 Channel Relay Board-Bluetooth
8 Channel Relay Board-Bluetooth8 Channel Relay Board-Bluetooth
8 Channel Relay Board-BluetoothRaghav Shetty
 
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for ArduinoRaghav Shetty
 
4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for Arduino4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for ArduinoRaghav Shetty
 
8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485 8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485 Raghav Shetty
 
Digitla Vibration Sensor
Digitla Vibration SensorDigitla Vibration Sensor
Digitla Vibration SensorRaghav Shetty
 
Digital Soil Moisture Sensor
Digital Soil Moisture SensorDigital Soil Moisture Sensor
Digital Soil Moisture SensorRaghav Shetty
 
Micro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCUMicro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCURaghav Shetty
 
Micro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCUMicro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCURaghav Shetty
 
Regulated Power Supply
Regulated Power Supply Regulated Power Supply
Regulated Power Supply Raghav Shetty
 
8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level ConverterRaghav Shetty
 
Plastic REED Float Switch
Plastic REED Float SwitchPlastic REED Float Switch
Plastic REED Float SwitchRaghav Shetty
 
DTMF Decoder Shield for Arduino
DTMF Decoder Shield for ArduinoDTMF Decoder Shield for Arduino
DTMF Decoder Shield for ArduinoRaghav Shetty
 

More from Raghav Shetty (20)

8 Channel Relay Board-Bluetooth
8 Channel Relay Board-Bluetooth8 Channel Relay Board-Bluetooth
8 Channel Relay Board-Bluetooth
 
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
 
4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for Arduino4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for Arduino
 
8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485 8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485
 
Xbee X-CTU Software
Xbee X-CTU SoftwareXbee X-CTU Software
Xbee X-CTU Software
 
Digitla Vibration Sensor
Digitla Vibration SensorDigitla Vibration Sensor
Digitla Vibration Sensor
 
Thermal Printer
Thermal PrinterThermal Printer
Thermal Printer
 
Digital Soil Moisture Sensor
Digital Soil Moisture SensorDigital Soil Moisture Sensor
Digital Soil Moisture Sensor
 
Micro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCUMicro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCU
 
Micro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCUMicro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCU
 
Regulated Power Supply
Regulated Power Supply Regulated Power Supply
Regulated Power Supply
 
PIC Project Board
PIC Project BoardPIC Project Board
PIC Project Board
 
8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter
 
L298 Motor Driver
L298 Motor DriverL298 Motor Driver
L298 Motor Driver
 
Joystick Shield
Joystick ShieldJoystick Shield
Joystick Shield
 
Force Sensor
Force SensorForce Sensor
Force Sensor
 
Plastic REED Float Switch
Plastic REED Float SwitchPlastic REED Float Switch
Plastic REED Float Switch
 
Flex Sensor
Flex SensorFlex Sensor
Flex Sensor
 
Serial EEPROM
Serial EEPROMSerial EEPROM
Serial EEPROM
 
DTMF Decoder Shield for Arduino
DTMF Decoder Shield for ArduinoDTMF Decoder Shield for Arduino
DTMF Decoder Shield for Arduino
 

Recently uploaded

Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 

Recently uploaded (20)

Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 

LCD Keypad Shield

  • 1. www.researchdesignlab.com Page 1 LCD Keypad Shield LCD KEYPAD SHIELD
  • 2. www.researchdesignlab.com Page 2 LCD Keypad Shield Table of Contents LCD KEYPAD SHIELD ................................................................................................................ 1 OVERVIEW ................................................................................................................................... 3 INTRODUCTION ...................................................................................................................... 3 FEATURES ................................................................................................................................ 3 APPLICATIONS........................................................................................................................ 4 CIRCUIT DIAGRAM ................................................................................................................ 4 ARDUINO CODE ...................................................................................................................... 5 OUTPUT..................................................................................................................................... 8 RELATED PRODUCTS ............................................................................................................ 9
  • 3. www.researchdesignlab.com Page 3 LCD Keypad Shield OVERVIEW INTRODUCTION One of the basic interfacing requirements for the hobbyists or electronics enthusiasts is I/P (keypad) and O/P (LCD display) for prototype applications. This shield uses minimum number I/O’s that is 4 bits for LCD data and 2 control signal lines for the same. A single analog pin (Pin A0) is multiplexed to read 5 input key switches (Navigation keys). Each key has been pulled up to a different voltage level, so a different voltage will be generated every time a user selects a key. This voltage could be read by the analog pin A0 on the board. Hence saves the no of I/O pins. The backlight of the LCD could be controlled by setting PWM (Pin D10) by adding a few lines of code. FEATURES  16X2 Blue color back light LCD.  A single Analog pin is multiplexed to read 5 input Keys.  Optional PWM based Back light control.  Stackable on UNO shield  High quality PCB FR4 Grade with FPT Certified.
  • 4. www.researchdesignlab.com Page 4 LCD Keypad Shield APPLICATIONS  Calculators  Cameras  Cash Registers  Clock Radios  Digital Meters  Hand-held TV & Terminals  Hand-held Data Collection  Heart Monitoring Devices CIRCUIT DIAGRAM
  • 5. www.researchdesignlab.com Page 5 LCD Keypad Shield ARDUINO CODE /* * Project name: LCD KEYPAD Shield * Copyright (c) Researchdesignlab.com * Description: * Test configuration: MCU: ATMEGA328 Dev.Board: Arduino uno Oscillator: 16 MHz Software: Arduino */ /* The circuit: * LCD RS pin to digital pin 12 * LCD Enable pin to digital pin 11 * LCD D4 pin to digital pin 5 * LCD D5 pin to digital pin 4 * LCD D6 pin to digital pin 3 * LCD D7 pin to digital pin 2 * LCD R/W pin to ground * 10K resistor: * ends to +5V and ground * wiper to LCD VO pin (pin 3) */ // include the library code: #include <LiquidCrystal.h> int sensorValue = 0; // value read from the keypad // initialize the library with the numbers of the interface pins LiquidCrystal lcd(12, 11, 5, 4, 3, 2); int sensorPin = A0; void setup() { // set up the LCD's number of columns and rows: lcd.begin(16, 2);
  • 6. www.researchdesignlab.com Page 6 LCD Keypad Shield delay(2000); } void loop() { lcd.clear(); // clear lcd display lcd.setCursor(0, 0); // set the cursor to column 0, line 0 lcd.print("LCD KEYPAD Shield"); lcd.setCursor(0, 1); // set the cursor to column 0, line 1 // read the input on analog pin 0 of keypad : sensorValue = analogRead(sensorPin); // check if the keypad is pressed disply keypad on lcd using sensorValue . if(sensorValue<=10) lcd.print("RIGHT KEY"); else if((sensorValue<=492)&&(sensorValue>=482)) lcd.print("DOWN KEY"); else if((sensorValue<=325)&&(sensorValue>=315)) lcd.print("UP KEY"); else if((sensorValue<=595)&&(sensorValue>=585)) lcd.print("LEFT KEY"); else if((sensorValue<=765)&&(sensorValue>=755)) lcd.print("SELECT KEY"); else lcd.print("NO KEY PRESSED"); delay(500); } SERIAL COMMUNICATION const int analogInPin = A0; // Analog input pin that the potentiometer is attached to int sensorValue = 0; // value read from the pot void setup() { // initialize serial communications at 9600 bps: Serial.begin(9600);
  • 7. www.researchdesignlab.com Page 7 LCD Keypad Shield delay(1000); } void loop() { // read the analog in value: sensorValue = analogRead(analogInPin); // check if the keypad is pressed disply keypad on lcd using sensorValue . if(sensorValue<=10) { Serial.write(byte(0X01)); Serial.write(byte(0X80)); Serial.println("RIGHT KEY"); }else if((sensorValue<=492)&&(sensorValue>=482)) { Serial.write(byte(0X01)); Serial.write(byte(0X80)); Serial.println("DOWN KEY"); } else if((sensorValue<=325)&&(sensorValue>=315)) { Serial.write(byte(0X01)); Serial.write(byte(0X80)); Serial.println("UP KEY"); } else if((sensorValue<=595)&&(sensorValue>=585)) { Serial.write(byte(0X01)); Serial.write(byte(0X80)); Serial.println("LEFT KEY"); }else if((sensorValue<=765)&&(sensorValue>=755)) { Serial.write(byte(0X01)); Serial.write(byte(0X80)); Serial.println("SELECT KEY"); } else
  • 8. www.researchdesignlab.com Page 8 LCD Keypad Shield { Serial.write(byte(0X01)); Serial.write(byte(0X80)); Serial.println("NO KEY PRESSED"); } delay(1000); } OUTPUT
  • 9. www.researchdesignlab.com Page 9 LCD Keypad Shield RELATED PRODUCTS RDL- UNO ATMEGA328 Development Board 4x4 Matrix Keypad LCD Interfacing Module Graphical LCD