Interfacing LCD To Arduino. JHD162A
Interfacing LCD To Arduino. JHD162A
1 de 10
http://www.circuitstoday.com/interfacing-lcd-to-arduino
Home
Forums
Datasheets
Lab Manual
Testing Components
Buy Project Kits
The name and functions of each pin of the JHD162A LCD module
is given below.
Pin1(Vss):Ground pin of the LCD module.
Pin2(Vcc):+5V supply is given to this pin
Pin3(VEE):Contrast adjustment pin. This is done by connecting the ends of a 10K potentimeter to +5V and ground and then connecting
the slider pin to the VEE pin. The voltage at the VEE pin defines the contrast. The normal setting is between 0.4 and 0.9V.
Pin4(RS):Register select pin.The JHD162A has two registers namely command register and data register. Logic HIGH at RS pin selects
data register and logic LOW at RS pin will select command register. If we make the RS pin HIGH and put a data on the data lines (DB0 to
18/11/2014 11:59 p. m.
Interfacing LCD to arduino. JHD162A is the 16x2 LCD module used here...
http://www.circuitstoday.com/interfacing-lcd-to-arduino
DB7) it will be recognized as a data. If we make the RS pin LOW and put a data on the data lines, then it will be taken as a command.
Pin5(R/W): Read/Write modes. This pin is used for selecting between read and write modes. Logic HIGH at this pin activates read mode
and logic LOW at this pin activates write mode.
Pin6(E): This pin is meant for enabling the LCD module. A HIGH to LOW signal at this pin will enable the module.
Pin7(DB0) to Pin14(DB7): These are data pins. The commands and data are put on these pins.
Pin15(LED+): Anode of the back light LED. When operated on 5V, a 560 ohm resistor should be connected in series to this pin. In
arduino based projects the back light LED can be powered from the 3.3V source on the arduino board.
Pin16(LED-): Cathode of the back light LED.
For knowing more about LCD module JHD162A and it interfacing, read this article: Interfacing 162 LCD and 8051 microcontroller. The
circuit diagram of interfacing LCD to arduino for displaying a text message is shown below.
Circuit diagram.
void loop()
{
lcd.setCursor(0,0);
//sets the cursor at row 0 column 0
lcd.print("16x2 LCD MODULE"); // prints 16x2 LCD MODULE
2 de 10
18/11/2014 11:59 p. m.
Interfacing LCD to arduino. JHD162A is the 16x2 LCD module used here...
3 de 10
lcd.setCursor(2,1);
lcd.print("HELLO WORLD");
http://www.circuitstoday.com/interfacing-lcd-to-arduino
A simple program for scrolling a text on the LCD using arduino is shown here. This is done using the scroll() function. For example the
function lcd.scrollDisplayRight() will scroll the display to right and the functionlcd.scrollDisplayLeft() will scroll the display to left.
A for loop is used for selecting the number of positions to scroll at a time. In the program shown below, it is chosen to be 2 because the
text to be displayed is comparatively long. For shorter texts more number of positions must be scrolled at a time to get a smooth display.
#include <LiquidCrystal.h>
int i=0;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
{
lcd.begin(16, 2);
//initializes 16x2 LCD
lcd.print("16x2 LCD MODULE JHD162A & ARDUINO-UNO"); //text to display
}
void loop()
{
for(i=0;i<2;i++)
{lcd.scrollDisplayLeft();}
delay(800);
}
18/11/2014 11:59 p. m.
Interfacing LCD to arduino. JHD162A is the 16x2 LCD module used here...
http://www.circuitstoday.com/interfacing-lcd-to-arduino
//
//
//
//
//
void loop()
{
temp=analogRead(sensor);
temp=temp*5;
temp=temp/10;
tempf=(temp*1.8)+32;
//
//
//
//
lcd.setCursor(0,1);
lcd.print(temp);
lcd.print((char)223);
lcd.print("C");
lcd.setCursor(8,1);
lcd.print(tempf);
lcd.print((char)223);
lcd.print("F");
delay(1000);
//
//
//
//
//
//
//
//
//
8 row 1
degree Fahrenheit
4 de 10
18/11/2014 11:59 p. m.
Interfacing LCD to arduino. JHD162A is the 16x2 LCD module used here...
5 de 10
http://www.circuitstoday.com/interfacing-lcd-to-arduino
We recommend:
Class B power amplifier
Dual Adjustable Power Supply Using LM 317 & LM337
12V to 24V DC DC converter
LA3161 Stereo Preamplifier
Remote control tester circuit
Custom Search
Posted in Arduino
Tags: interfacing LCD to arduino, JHD162A LCD module
Leave a Reply
Name (required)
Mail (will not be published) (required)
Website
18/11/2014 11:59 p. m.
Interfacing LCD to arduino. JHD162A is the 16x2 LCD module used here...
6 de 10
http://www.circuitstoday.com/interfacing-lcd-to-arduino
Latest Articles
LPG sensor using arduino
OhmMeter using Arduino with Auto Ranging Feature
8051 Timers and Counters
We are on all Social Media Youtube Facebook Twitter Linkedin and Slideshare
Water level controller using arduino
Tachometer using arduino
Interfacing LCD to arduino
Motor speed control using arduino
Digital code lock using arduino
Interfacing hex keypad to arduino
18/11/2014 11:59 p. m.
Interfacing LCD to arduino. JHD162A is the 16x2 LCD module used here...
7 de 10
http://www.circuitstoday.com/interfacing-lcd-to-arduino
Categories
101-Announcements
555 Timer IC
8051
8051 projects
Amplifier Circuits
Arduino
Audio Circuits
Automotive Circuits
AVR
Basic Electricity
Basic Electronics
Battery Circuits
C plus plus
C Programming
Cable TV Circuits
Camera Technology
Clipping and Clamping Circuits
Clocking & Timer Circuits
Conversion Circuits
Counter Circuits
Counters
Digital Electronics
Education & Training
Electronic Components
Electronic Keys & Locks
Electronics Books
Electronics Jobs
Embedded Systems
Equipment Reviews
Events
Fan Circuits
18/11/2014 11:59 p. m.
Interfacing LCD to arduino. JHD162A is the 16x2 LCD module used here...
8 de 10
http://www.circuitstoday.com/interfacing-lcd-to-arduino
Filter Circuits
Fire Alarm
Fun & Game Circuits
Gadget Reviews
Ham Radio Circuits
High Voltage Circuits
History
Home Circuits
Industrial Circuits
Instruments
Integrated Circuits
Inverters
Lab Manuals
LED related
Light Related
Lighting Circuits
MATLAB
Microcontrollers
Mobile Phone Related
Motor Related
Nanotechnology
Oscillators
Peripheral Interface Controller (PIC)
Power Controller Circuits
Power Electronics
Power Supplies
Project Ideas
Projects
Proximity Detectors
Radio Circuits
Radio Transmitters
Raspberry Pi
Relays
Remote Circuits
Reviews
Robotics
RTOS
Security & Saftey
Sensor Circuits
Signal Conditioners
Signal Generators
Speed Controller Circuits
State space analysis
Switching Circuits
Tech News
Telephone Related
Television Related
Temperature Related
Test & Measurement Circuits
Testing Components
Three phase circuits
Timer Circuits
Tone generator circuits
Tools and Softwares
Transmitters
Tutorials
UPS
USB Circuits
Videos
VLSI
18/11/2014 11:59 p. m.
Interfacing LCD to arduino. JHD162A is the 16x2 LCD module used here...
9 de 10
http://www.circuitstoday.com/interfacing-lcd-to-arduino
Voltage Regulators
Like Us on Facebook
Circuitstoday.com
Me gusta
Recent Comments
sebin jacob on 150 Watt amplifier circuit
Ayvin on Flip Flops
srinivasulu sangeetham on Embedded Systems Career-An Outline
praveen on OhmMeter using Arduino with Auto Ranging Feature
sanjay agarawl on Instrumentation amplifier
sutfuf on OhmMeter using Arduino with Auto Ranging Feature
Jac_eX on Water level controller using 8051
Pascual on 150 Watt amplifier circuit
Brandon on Band Stop Filter
Etienne Hamelin on OhmMeter using Arduino with Auto Ranging Feature
Andreas on OhmMeter using Arduino with Auto Ranging Feature
Lucky on Ultrasonic range finder using arduino
vinho on Water level controller using 8051
Nissar on Embedded Systems Career-An Outline
Slashybaba on Variable Resistors Working and Applications
Pages
About
Advertise With Us
Authors
Buy Project Kits
Datasheets
Electronic Circuit Symbols
Lab Manuals
Electronic Circuits Lab
Microcontroller lab
Microprocessor Lab
Privacy Policy
Project Contests
Resistor Color Code Calculator
Sitemap
Testing Components
Popular Tags
555 IC
18/11/2014 11:59 p. m.
Interfacing LCD to arduino. JHD162A is the 16x2 LCD module used here...
10 de 10
http://www.circuitstoday.com/interfacing-lcd-to-arduino
NE555 timer Oscillators PIC Power Supplies Radio Circuits SCR Simple Electronics Projects Tech
Most Discussed
150 Watt amplifier circuit
100 Watt sub woofer amplifier.
Mains Operated LED Circuit
Automatic LED Emergency Light-Modified Version
2 km FM transmitter
Suggest a Topic to Publish & Win a 8GB Pen Drive
Automatic LED Emergency Light
Copyright 2007 - 2011 Circuitstoday.com Designed by Web Design Cochin
18/11/2014 11:59 p. m.