NederlandsKlik deze knop voor de Nederlandstalige website

16×2 LCD display on the Geekcreit UNO Arduino

Together with the “Geekcreit UNO” Arduino-clone I also bought a 16×2 LCD display from VNG Systems. The Hitachi HD44780 compatible display has a I2C serial interface module soldered on the back.

The information I found on the internet about this combination of board and display was a bit contradicting. Therefore, it took me a while to get things working right. This is how I finally got the display working together with the Geekcreit Arduni Uno R3. Your mileage may vary for other brands of boards and displays, of course.

Tested with:
Arduino IDE version: 1:1.0.5+dfsg2-2
Linux Mint version: 17.3 Cinnamon 64-bit
Geekcreit UNO revision: unknown

16x2 LCD display
16×2 LCD display
16x2 LCD display, achterkant met I2C -module
16×2 LCD display with the attached I2C module

Installing the alternative LCD-library

First of all, you need to replace the standard Arduino LCD-library with the ‘new-liquidcrystal’ library. You can download it here: https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads.

On Linux Mint the libraries directory can be found here:
/usr/share/arduino/libraries/
In the libraries directory you will find the directory called ‘LiquidCrystal’. You should remove or rename it.

Then you copy the ‘Newliquidcrystal’ directory (from the archive you just downloaded) to the libraries directory and rename it to ‘LiquidCrystal’.

Wiring the 16×2 LCD display to the Geekcreit Arduino UNO R3

You should wire the LCD display to the Geekcreit UNO as follows:

LCD displayGeekcreit UNO board
GNDGND
VCC5V
SDAA4
SCLA5
Arduino Uno with 16x2 Hitachi HD44780 I2C module
Arduino Uno with 16×2 Hitachi HD44780 I2C module

After this you can connect your Geekcreit UNO to your computer using the USB cable.

Controlling the 16×2 LCD display from a sketch

Open the Arduino IDE and copy this code to a new sketch:

This example is also available on GitHub at https://github.com/oneguyoneblog/arduino-16×2-lcd

 

16x4 LCD display: Hello World!
16×4 LCD display: Hello World!
Geekcreit® UNO R3 ATmega328P Development Board For Arduino
Tested and recommended by OneGuyOneBlog.com:

Geekcreit® UNO R3 ATmega328P Development Board For Arduino

This post is also available in Dutch.

2 Comments

Add a Comment

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