In this getting started with LCD module tutorial, we are going to learn interfacing an LCD module with popular development boards like Arduino Nano, Uno, Mega, and Leonardo.
- 16x2 LCD module
- Arduino UNO
- Arduino Nano
- Arduino Leonardo
- Arduino Mega
- Arduino IDE
- LiquidCrystal Library - Will available in Arduino IDE by default - For the first method.
LCD modules are coming in different colors and sizes with a different number of displayable characters. the most commonly used one is LCD1602 which can display 16 characters in each line, that is a total of 32 characters. Some other sizes are,
- LCD1604 - 16 char / 4 line
- LCD2004 - 20 char / 4 line
- LCD1602 - 16 char / 2 line
- LCD1601 - 16 char / 1 line etc...
We are interfacing the LCD1602 with Arduino using the data pins of the LCD module. The same code and circuit will work for all Arduino and compatible boards.Connect the circuit as shown in the below diagram.
Circuit- First connect the
ground
of Arduino to theVSS
of the LCD. - Then connect the
V0
of the LCD to theground
for full contrast - Then connect
RW
to theground
for selecting write mode - Then connect
K
, which is theground
of backlight LED also to the ground. - Then connect the
5V
of Arduino to theVDD
of the LCD module. - Then connect the
digital pin 12
of Arduino to theRS
of LCD module. - Then connect the
digital pin 11
of Arduino to theE
of LCD module. - Then connect the
digital pin 5
of Arduino to theD4
of LCD module. - Then connect the
digital pin 4
of Arduino to theD5
of LCD module. - Then connect the
digital pin 3
of Arduino to theD6
of LCD module. - Then connect the
digital pin 2
of Arduino to theD7
of LCD module. - And finally connect the
3.3V
of Arduino to theA
of LCD which is the anode of backlight LED.
If you like my work please support me by subscribing to my channel here
Read this post in my blog: http://bit.ly/2R95CrQ
Comments