Interfacing ESP8266 NodeMCU with Nokia 5110 LCD

This post shows how to interface ESP8266 NodeMCU development board (ESP12-E module) with Nokia 5110 (3310) graphical LCD screen.
The name Nokia 5110 (3310) comes from Nokia 5110 (or Nokia 3310) mobile phone. The Nokia 5110 LCD has a controller named PCD8544, it is similar to the Nokia 5110 mobile phone LCD, it uses SPI interface protocol and requires 5 control pins (or 4 pins), it’s low cost and easy to use. The resolution of this LCD is 84 x 48 which means it has 4032 pixels. This module works with 3.3V only and it doesn’t support 5V (it’s not 5V tolerant).

The Nokia 5110 LCD has a built-in controller from Philips, PCD8544. It uses SPI protocol to communicate with master device such as microcontroller. This LCD is 84 Pixel width and 48 Pixel height.

Hardware Required:

  • ESP8266 NodeMCU development board
  • Nokia 5110 (3310) LCD module
  • Breadboard
  • Jumper wires

ESP8266 NodeMCU with Nokia 5110 LCD circuit

Interfacing NodeMCU with Nokia 5110 LCD Circuit:
Example circuit schematic diagram is shown below.

ESP8266 NodeMCU Nokia 5110 LCD circuit

The Nokia 5110 LCD which is shown in the circuit diagram has 8 pins (from left to right): RST (reset), CE (chip enable), DC (or D/C: data/command), Din (data in), Clk (clock), VCC (3.3V), BL (back light) and Gnd (ground).

The Nokia 5110 LCD is connected to the NodeMCU board as follows:
RST (reset) pin is connected to pin D0 (ESP8266EX GPIO16),
CE (chip enable) pin is connected to pin D1 (ESP8266EX GPIO5),
DC (data/command) pin is connected to pin D2 (ESP8266EX GPIO4),
DIN (data in)  pin is connected to pin D3 (ESP8266EX GPIO0),
CLK (clock) pin is connected to pin D4 (ESP8266EX GPIO2),
VCC and BL are connected to pin 3V3,
GND is connected to pin GND of the NodeMCU.

Interfacing NodeMCU with Nokia 5110 LCD Code:
The following Arduino code requires 2 libraries from Adafruit Industries:
The first library is a driver for the Nokia 5110 LCD (PCD8544 controller), and
the second library is Adafruit graphics library.

The 2 libraries can be downloaded from the following links:
Adafruit Nokia 5110 LCD library
Adafruit graphics library             —->  direct link

After the download, go to Arduino IDE —> Sketch —> Include Library —> Add .ZIP Library … and browse for the .zip file (previously downloaded).
The same thing for the other library file.

Arduino Code:
The Arduino code below is the Adafruit test example for the Nokia 5110 LCD (comes with Adafruit Nokia 5110 LCD driver) with some modifications in order to work with the circuit schematic shown above.

Interfacing NodeMCU with Nokia 5110 LCD Video:
Project hardware circuit should give the same result as the one shown in the following video where Arduino UNO board is used:

ESP8266 Projects with Nokia 5110 LCD:
ESP8266 NodeMCU with Nokia 5110 LCD and DHT11 Sensor
Interfacing NodeMCU with DHT22 Sensor and Nokia LCD
NodeMCU with DS18B20 Temperature Sensor and Nokia 5110 LCD
ESP8266 NodeMCU with DS3231 RTC and Nokia 5110 LCD
NodeMCU with Nokia 5110 LCD and LM35 Temperature Sensor
ESP8266 NodeMCU with BMP280 Sensor and Nokia 5110 LCD
Weather Station using NodeMCU and BME280 Sensor


Discover more from Simple Circuit

Subscribe to get the latest posts sent to your email.

Leave a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top