How To Interface 16x2 Liquid Crystal Display With Arduino Uno

Sometime you need to display senser data e.g Temperature senser or data received through serial communication onto the 16x2 LCD so in this post i will explain how to interface 16x2 LCD with Arduino Uno.

First you need to know the pin description of LCD.



Note:In my LCD figure 15th and 16th pin is missing because i used the proteus software for the LCD image but in practical you can connect the 15th and 16th pin with +5V supply and ground respectively.

For code go to your Arduino IDE>File>Examples>LiquidCrystal>HelloWorld  example.In this example we use 4-bit mode of LCD in which only 4 data pins(D4,D5,D6,D7) are used. In 8-bit mode all the data pins are used. Upload this code to the board and design the circuit as given below.

Circuit Diagram







Comments