Interfacing 128×64 Graphical LCD Display with Arduino

128×64 Graphical LCD Display Features

Ordinary LCDs can only display simple text or numbers within a fixed size. But in 128×64 graphical LCD display, there is 128×64 = 8192 dots, which is equivalent to 8242/8 = 1024 pixels. So, it can display not only simple text or numbers within a fixed size but also simple graphics.

128×64 Graphical LCD Display Pinout

This module has 20 pins:

  • GND: Ground
  • VCC: Module power supply – 5 V
  • VO: LCD Contrast
  • RS: Register Select Pin
  • R/W: Write/ Read selection
  • E: Enable Signal
  • D0-7: Data Bus
  • PSB: Interface selection (0 for serial communication, 1 for 8-bit parallel communication)
  • NC: Not Connected
  • RST: Reset
  • Vout: LCD Voltage Output (Vout < 7V)
  • BLA: Power Supply for Backlight+
  • BLK: Power Supply for Backlight-

You can see the pinout of this module in the image below.

Interfacing 128×64 Graphical LCD Display with Arduino

Step 1: Circuit

The following circuit shows how you should connect Arduino to the Display. Connect wires accordingly.


Step 2: Library

Download the u8glib library here. Then go to the Include Library and install it.

Step 3: Code

Upload the following code to your Arduino. After that, open Serial Monitor.

In the above code, which is an example of Arduino, after installing the relevant library, we first need to uncomment the line that is related to the specific LCD settings (line 66, U8GLIB_ST7920_128X64_4X u8g (10);). Then upload the code to Arduino.



Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir