Controlling LCD display 8×2

Required Hardware

The LiquidCrystal library allows you to control LCD displays that are compatible with the Hitachi HD44780 driver. There are many of them out there, and you can usually tell them by the 16-pin interface.

This example sketch prints “Hello World!” to the LCD and shows the time in seconds since the Arduino was reset.

LCD_bb LCD_schem


To wire your LCD screen to your Arduino, connect the following pins:

  • Lcd Pin 1 (Vss) – Arduino Ground
  • Lcd Pin 2 (Vdd) – Arduino +5V
  • Lcd Pin 3 (Vo) – Middle Pin of Potentiometer 10K
  • Lcd Pin 4 (Rs) – Arduino Pin 12
  • Lcd Pin 5 (Rw) – Arduino Ground
  • Lcd Pin 6 (E) – Arduino Pin 11
  • Lcd Pin 7-10 – NC
  • Lcd Pin 11 (D4) – Arduino Pin 5
  • Lcd Pin 12 (D5) – Arduino Pin 4
  • Lcd Pin 13 (D6) – Arduino Pin 3
  • Lcd Pin 14 (D7) – Arduino Pin 2
  • Lcd Pin 15 – +5V
  • Lcd Pin 16 – Ground

*If you are using a High Contrast LCD have different connection:

  • Pin 3 (Vo) with Pin 15 (Vee) –  Middle Pin of Potentiometer 10K

Additionally, wire a 10K pot to +5V and GND, with it’s wiper (output) to LCD screens VO pin (pin3).

Also you need to connect the Led Backlight to Ground and +3.3V. You can find the pins of the led at the back of the lcd. A–> 3.3V, K–> Ground

Recommended Software

  • none

Instructions and Code

Tagged with: ,

Leave a Reply

Your email address will not be published. Required fields are marked *