Arduino Uno and Nokia 5110 LCD

If you want to know how to wire & program a Nokia 5110 LCD using an Arduino Uno, you have come to the right place 🙂

Here are the parts needed:

  1. Arduino Uno (Qty: 1) (http://core-electronics.com.au/arduino-uno-r3.html/?acc=7f39f8317fbdb1988ef4c628eba02591)
  2. Nokia 5110 LCD (Qty: 1) (http://core-electronics.com.au/graphic-lcd-84×48-nokia-5110.html/?acc=7f39f8317fbdb1988ef4c628eba02591)
  3. Logic Level Converter (Qty: 2) (http://core-electronics.com.au/logic-level-converter-module.html/?acc=7f39f8317fbdb1988ef4c628eba02591)
  4. Lots of connecting wires
  5. USB cable for the Arduino Uno (USB A to USB B)

Here is my setup (made with Fritzing):

Uno5110_bb

Here are the software/libraries I used:

  1. Arduino 1.0.4
  2. Adafruit’s base library for the Nokia 5110 (https://github.com/adafruit/Adafruit-PCD8544-Nokia-5110-LCD-library)
  3. Adafruit’s graphics library for the Nokia 5110 (https://github.com/adafruit/Adafruit-GFX-Library)

Here are the instructions to run the sample code:

  1. Extract the Adafruit libraries into “..\arduino-1.0.4\libraries\”.
  2. Your directory structure should look like this:
    \arduino-1.04\
    \arduino-1.04\libraries\
    \arduino-1.04\libraries\Adafruit_GFX\
    \arduino-1.04\libraries\Adafruit_GFX\Adafruit_GFX.cpp
    \arduino-1.04\libraries\Adafruit_GFX\Adafruit_GFX.h
    \arduino-1.04\libraries\Adafruit_GFX\glcdfont.c
    \arduino-1.04\libraries\Adafruit_GFX\license.txt
    \arduino-1.04\libraries\Adafruit_GFX\README.txt
    \arduino-1.04\libraries\Adafruit_PCD8544\
    \arduino-1.04\libraries\Adafruit_PCD8544\examples\
    \arduino-1.04\libraries\Adafruit_PCD8544\examples\pcdtest\
    \arduino-1.04\libraries\Adafruit_PCD8544\examples\pcdtest\pcdtest.pde
    \arduino-1.04\libraries\Adafruit_PCD8544\Adafruit_PC8544.cpp
    \arduino-1.04\libraries\Adafruit_PCD8544\Adafruit_PC8544.h
    \arduino-1.04\libraries\Adafruit_PCD8544\license.txt
    \arduino-1.04\libraries\Adafruit_PCD8544\README.txt
  3. Start the Arduino IDE
  4. From the File menu, click on Examples, then “Adafruit_PCD8544” and “pcdtest”.
  5. Find the following line:
    Adafruit_PCD8544 display = Adafruit_PCD8544(7, 6, 5, 4, 3);
  6. Change it to:
    Adafruit_PCD8544 display = Adafruit_PCD8544(13, 11, 7, 6, 5);
  7. Compile and download (or “upload” in the Arduino world).
  8. Done! You should see various graphic examples being displayed.
Advertisements

One thought on “Arduino Uno and Nokia 5110 LCD

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s