Interfacing Nokia 5110 LCD display with Arduino

In this article, I will show you how to interface Nokia 5110 lcd display with Arduino easily with step by step instructions.

Components Required

Arduino and Nokia 5110 LCD Circuit

Arduino and Nokia 5110 LCD Circuit
Arduino and Nokia 5110 LCD Circuit

Pin Configuration

  • RST – Reset
  • CE – Chip Enable
  • D/C – Data/Command Selection
  • DIN – Serial Input
  • CLK – Clock Input
  • VCC – 3.3V
  • LIGHT – Backlight Control
  • GND – Ground

Watch Complete Tutorial

You need to install PCD8544 library to use Nokia 5110 LCD display with Arduino, you can download pcd8544 library from the link given below.

Nokia 5110 Arduino Code

/*
 * PCD8544 - Interface with Philips PCD8544 (or compatible) LCDs.
 */

#include <PCD8544.h>

// A custom glyph (a smiley)...
static const byte glyph[] = { B00010000, B00110100, B00110000, B00110100, B00010000 };

static PCD8544 lcd;

void setup() {
  // PCD8544-compatible displays may have a different resolution...
  lcd.begin(84, 48);

  // Add the smiley to position "0" of the ASCII table...
  lcd.createChar(0, glyph);
}


void loop() {
  // Just to show the program is alive...
  static int counter = 0;

  // Write a piece of text on the first line...
  lcd.setCursor(0, 0);
  lcd.print("Hello, World!");

  // Write the counter on the second line...
  lcd.setCursor(0, 1);
  lcd.print(counter, DEC);
  lcd.write(' ');
  lcd.write(0);  // write the smiley

  // Use a potentiometer to set the LCD contrast...
  // short level = map(analogRead(A0), 0, 1023, 0, 127);
  // lcd.setContrast(level);

  delay(200);
  counter++;
}

Download Arduino Code for Nokia 5110 LCD

Download Arduino Code and Library

Leave a Reply