Introduction
Visual displays play a crucial role in conveying information in electronics projects. The Nokia 5110 LCD 84×48 Display Screen is a popular choice for creating compact and clear graphical displays with Arduino. In this comprehensive guide, we will explore the working principle and features of the Nokia 5110 LCD 84×48 Display Screen with Arduino. Additionally, we will learn how to interface it with an Arduino UNO to create a graphical information display system.
By the end of this tutorial, you will have the knowledge and skills to integrate the Nokia 5110 LCD display into your projects, bringing visual clarity and sophistication to your electronic creations. So, let’s dive into the world of visual information with Arduino and unlock the potential of the Nokia 5110 LCD 84×48 Display Screen!
Hardware Required
You will require the following Hardware Components for interfacing Nokia 5110 LCD 84×48 Display Screen with Arduino.
Components | # | Buy From Amazon |
---|---|---|
Arduino UNO | 1 | Buy Now |
Nokia 5110 LCD 84×48 Display | 1 | Buy Now |
9v DC Adapter (Optional) | 1 | Buy Now |
Jumper Wires | 8 | Buy Now |
Breadboard | 1 | Buy Now |
What is Nokia 5110 LCD Display?
The Nokia 5110 LCD 84×48 Display is a monochrome graphical display module that provides a clear and compact visual output for your Arduino projects. It features an 84×48-pixel matrix, allowing you to display simple graphics, text, or even custom icons. The display is controlled using the popular PCD8544 controller, which simplifies the communication between the display and Arduino. The Nokia 5110 LCD display operates at low power consumption, making it suitable for portable or battery-powered projects where energy efficiency is crucial.
Pinout
![Nokia-5110-LCD-84x48-Display-Screen-Pinout](http://arduinocircuit.com/wp-content/uploads/2023/08/Nokia-5110-LCD-84x48-Display-Screen-Pinout.webp)
Pin Configuration
Pin Name: | Description |
RST Reset | This Pin Resets the module. It is an active low pin (resets when 0V is Provided) |
(CE) Chip Enable | This pin is made low (0V) to select this particular display when more than one SPI peripherals are used. |
(DC) Data/Command | This pin is used to switch between Data mode (high) and Command mode (low) |
(DIN) Serial Input | This is the input pin (MOSI) through which serial instructions are sent |
(CLK) Clock | All SPI modules require a common clock, this clock source is supplied to this pin |
(Vcc) Power | This pin is used to power the display the supply voltage is from 2.7V to 3.3V |
(BL) Back Light | This pin powers the backlight of the display (3.3V maximum). |
(Gnd) Ground | Connects to the ground of the circuit. |
Specifications
- Display Resolution: The Nokia 5110 display has a resolution of 84×48 pixels, providing a sharp and detailed visual output.
- Communication Interface: The display communicates with Arduino UNO through SPI (Serial Peripheral Interface) communication protocol.
- Operating Voltage: The display operates within the voltage range compatible with Arduino UNO.
- Backlight: The display often includes a backlight, enhancing visibility in low-light conditions.
Features
- High Contrast: The display offers high contrast, ensuring legibility in various lighting conditions.
- Custom Graphics: The Nokia 5110 display allows you to create custom graphics and icons for personalized visual representations.
- Low Power Consumption: The display operates with low power consumption, preserving energy for long-term use.
Circuit Diagram
The following circuit shows you the Interfacing Nokia 5110 LCD 84×48 Display Screen with Arduino Please make the connection carefully
![Nokia-5110-LCD-84x48-Display-Screen-Interfacing-with-Arduino](http://arduinocircuit.com/wp-content/uploads/2023/08/Nokia-5110-LCD-84x48-Display-Screen-Interfacing-with-Arduino-1024x810.webp)
Circuit Connections
Arduino | LCD Module |
---|---|
3.3V | VCC Pin |
GND | GND Pin |
D7 | CE |
D8 | DC |
D9 | RST |
D11 | DIN |
D13 | CLK |
Installing Arduino IDE Software
First, you will require to Download the updated version of Arduino IDE Software and Install it on your PC or laptop. if you Learn How to install the Arduino step-by-step guide then click on how to install Arduino Button given Blow
Installing Libraries
Now when you are Ready to upload the code, to the Arduino Board you will need first to add the Following Libraries in Arduino, If you Learn How to add the library in the Arduino step-by-step guide click on how to install the library Button given Blow
Code
//For more Projects: www.arduinocircuit.com
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>
#include "images.h"
// Software SPI (slower updates, more flexible pin options):
// pin 13 - Serial clock out (SCLK)
// pin 11 - Serial data out (DIN)
// pin 8 - Data/Command select (D/C)
// pin 7 - LCD chip select (CS)
// pin 9 - LCD reset (RST)
Adafruit_PCD8544 display = Adafruit_PCD8544(13, 11, 8, 7, 9);
void setup() {
display.begin();
display.setContrast(50); /* Initializes the display. Sets SPI freq, SPI data mode, Bit order */
display.clearDisplay(); /* Clears the screen and buffer */
display.setCursor(13,5); /* Set x,y coordinates */
display.setTextSize(1); /* Select font size of text. Increases with size of argument. */
display.setTextColor(BLACK); /* Color of text*/
display.println("Electronic"); /* Text to be displayed */
display.setCursor(28,15);
display.println("Wings");
display.display();
delay(500);
/* Draw rectangle with round edges. Parameters (x_co-ord,y-co-ord,width,height,color) */
display.drawRoundRect(5, 25, 25, 13, 1, BLACK);
/* Draw circle. Parameters (x_co-ord of origin,y-co-ord of origin,radius,color) */
display.drawCircle(45, 34, 10, BLACK);
/* Draw triangle. Parameters (x0,y0,x1,y1,x2,y2,width,color). (x0,y0), (x1,y1) and (x2,y2) are the co-ord of vertices of the triangle */
display.drawTriangle(60, 38, 70, 25, 80, 38, BLACK);
display.display();
delay(1000);
display.clearDisplay();
/* Draw image. Parameters (x_co-ord, y_co-ord, name of array containing image, width of image in pixels, height in pixels, color) */
display.drawBitmap(0, 0, Arduino_Logo, 84, 48, 1);
display.display();
delay(1000);
}
void loop() {
display.clearDisplay();
display.drawBitmap(0, 0, Smiley_1, 84, 48, 1);
display.display();
delay(300);
display.clearDisplay();
display.drawBitmap(0, 0, Smiley_2, 84, 48, 1);
display.display();
delay(300);
display.clearDisplay();
display.drawBitmap(0, 0, Smiley_3, 84, 48, 1);
display.display();
delay(300);
display.clearDisplay();
display.drawBitmap(0, 0, Smiley_4, 84, 48, 1);
display.display();
delay(300);
}
Applications
- Data Visualization: The display is perfect for presenting sensor data, measurements, or real-time information in a graphical format.
- Wearable Electronics: The Nokia 5110 display can be used in wearable projects where a compact visual display is desired.
- Gaming and Animation: Create simple games or animations on the display to add an interactive element to your projects.
- Status Indicators: Use the display to show system status, alerts, or notifications in an easily recognizable manner.
- DIY Electronics Projects: Incorporate the display into DIY electronics projects to provide users with clear and informative visual feedback.
Conclusion
You can create data visualizations, wearable electronics, and more, enhancing the visual clarity of your projects. The display’s high contrast, custom graphics capability, and low power consumption make it a valuable tool for displaying information in an efficient and stylish manner. Armed with this knowledge, you are ready to integrate the Nokia 5110 LCD 84×48 Display Screen into your projects, providing a compelling visual dimension. So, embrace the power of visual communication and let the Nokia 5110 display bring your electronic creations to life with clarity and sophistication!