Interfacing 16×2 LCD with Arduino




To establish a good communication between human world and machine world, display units play an important role. And so they are an important part of embedded systems. Display units – big or small, work on the same basic principle. Besides complex display units like graphic displays and 3D dispays, one must know working with simple displays like 16×1 and 16×2 units. The 16×1 display unit will have 16 characters and are in one line. The 16×2 LCD will have 32 characters in total 16in 1st line and another 16 in 2nd line. Here one must understand that in each character there are 5×10=50 pixels so to display one character all 50 pixels must work together. But we need not to worry about that because there is another controller (HD44780) in the display unit which does the job of controlling the pixels. (you can see it in LCD unit, it is the black eye at the back ).

Arduino-16x2-LCD




To establish a good communication between human world and machine world, display units play an important role. And so they are an important part of embedded systems. Display units – big or small, work on the same basic principle. Besides complex display units like graphic displays and 3D dispays, one must know working with simple displays like 16×1 and 16×2 units. The 16×1 display unit will have 16 characters and are in one line. The 16×2 LCD will have 32 characters in total 16in 1st line and another 16 in 2nd line. Here one must understand that in each character there are 5×10=50 pixels so to display one character all 50 pixels must work together. But we need not to worry about that because there is another controller (HD44780) in the display unit which does the job of controlling the pixels. (you can see it in LCD unit, it is the black eye at the back ).

The connections which are done for LCD are given below:

PIN1 or VSS to ground




PIN2 or VDD or VCC to +5v power

PIN3 or VEE to ground (gives maximum contrast best for a beginner)

PIN4 or RS (Register Selection) to PIN0 of ARDUINO UNO

PIN5 or RW (Read/Write) to ground (puts LCD in read mode eases the communication for user)

PIN6 or E (Enable) to PIN1 of ARDUINO UNO

PIN11 or D4 to PIN8 of ARDUINO UNO

PIN12 or D5 to PIN9 of ARDUINO UNO

PIN13 or D6 to PIN10 of ARDUINO UNO

PIN14 or D7 to PIN11 of ARDUINO UNO

The ARDUINO IDE allows the user to use LCD in 4 bit mode. This type of communication enables the user to decrease the pin usage on ARDUINO, unlike other the ARDUINO need not to be programmed separately for using it in 4 it mode because by default the ARDUINO is set up to communicate in 4 bit mode. In the circuit you can see we have used 4bit communication (D4-D7).

So from mere observation from above table we are connecting 6 pins of LCD to controller in which 4 pins are data pins and 2 pins for control.

Arduino-LCD-Circuit

Read More: Interfacing 16×2 LCD with Arduino




Clip to Evernote

Leave a Comment

(Spamcheck Enabled)

Read previous post:
Arduino-7-Segment-Display
7 Segment Display Interfacing with Arduino

In this tutorial we are going to interface a seven segment display to ARDUINO UNO. The display counts from 0-9...

Close
Scroll to top