Home » Electronics » Using the NHD-C12864A1Z-FSW-FBW-HTT LCD with an Arduino Pro Mini

Using the NHD-C12864A1Z-FSW-FBW-HTT LCD with an Arduino Pro Mini

 

In this post, I demonstrate the Arduino code to use the  NHD-C12864A1Z-FSW-FBW-HTT LCD by New Haven Display.  This display is a 128×64 pixel, transflective display.  I needed a transflective display because of my speedometer project and I found this one on the DigiKey web site for $7.  Besides the sunlight visibility, this display only requires the 3 SPI pins to operate which is a big benefit.

lcd

Datasheets

This link will take you to the main data sheet for the NHD-C12864A1Z-FSW-FBW-HTT.

This link will take you to the controller that is used by the LCD.  The controller data sheet is where you learn how to use the LCD.

Wiring

The wiring is pretty straight forward as shown in the table below.

Arduino PIN LCD PIN Symbol Function Description
10 1 SCL Serial Clock Input
11 2 SI Serial Data Input
12 4 A0 Register Select : 0: instruction, 1: data
8 5 RESET Reset the LCD
7 6 CS Chip Select
VCC 3 and 11 Power 3 is the main power, 11 is for the backlight
GND 7 and 10 Ground 7 is the main ground and 10 is the backlight ground

Programming

The program shown below will display a checkerboard on the LCD where every other pixel is set.  This is a simple test to verify the LCD and the program is working.  Future posts will describe how to use the display.