May 11, 2021

Nokia 5110 LCD Display interface with Arduino

This LCD device is mainly used in Arduino but it can be connected with any 3.3V controller. These LCDs are used in Nokia 3110/5110 cell phones. It is a very cheap monochrome LCD module made of 84 x 48 pixels. It can be used to display graphics and text together. This display is based on the PCD8544 driver.

Pin configuration of this device is almost like the 16x2 LCD module only instead of 8 data pins one serial data in (Din) pin and one clock (Clk) are there. The list of the pins and their description are listed below.

RST: Pin type active low, so 0V Resets the LCD

CE: Cheap Enable is used to enable the device before sending anything to the LCD

DC: Data/Command is used to select between Rata Register or Command Register

DIN: Data In is used to send information serially to the display. It could be Data or Command

CLK: Clock is used to synchronize the display with the controller

VCC: To power, the pin 5V or 3.3V is applied here

BL: This pin is used to power the Backlight of the display

GND: This is used to ground the device.

Things we need

  • Nokia 5110 Display
  • Arduino
  • Resistors
    1. 1k Ohms x 5 Nos.
    2. 330 Ohms / Potentiometer 1k
  • Jumper Wires
  • Bread Board

Connection Diagram:

pin 7 - Clock (CLK) pin 6 - Data In (DIN) pin 5 - Data/Command select (D/C) pin 4 - Chip Enable/select (CE/CS) pin 3 - Reset (RST)

Before you upload the code library needs to be installed. Please follow the below mention instruction to install the library.

https://creativestudio1973.blogspot.com/2019/11/introduction-to-arduino-library-manager.html

In the code below we have displayed text, then we have displayed the same text in inverted mode, after that we have rotated the text finally we displayed the ASCII table.
Source Code 1:

Video 1:


Here in the second code, we tested display by displaying an image. To display the image we have to convert the image into code. To do that open the link image2cpp
Link: http://javl.github.io/image2cpp/

Go to "Choose Files" and select the file from your computer.



Select the "Canvas Size" to 84x48 and "Scaling" as Scale to fit. Then check the preview to make sure everything is alright.

Now select the "Code Output Format" to "Arduino code" and click on "Generate code"

Finally copy the code and add that to the code below to display an image of your own.
Source Code 2:

Video 2:

No comments:

Post a Comment