The Nokia 5110 is a compact, monochrome LCD display module with a resolution of 84x48 pixels. Originally designed for Nokia mobile phones, this display has become a popular choice for embedded systems and DIY electronics projects due to its low power consumption, affordability, and ease of use. It communicates via SPI (Serial Peripheral Interface) or parallel communication, making it compatible with a wide range of microcontrollers.
The Nokia 5110 LCD module has the following key technical specifications:
Parameter | Value |
---|---|
Resolution | 84x48 pixels |
Communication Interface | SPI or Parallel |
Operating Voltage | 2.7V to 3.3V |
Backlight | LED (optional, varies by module) |
Power Consumption | ~0.4mA (without backlight) |
Controller IC | PCD8544 |
Dimensions | ~45mm x 45mm x 5mm |
The Nokia 5110 module typically has 8 pins. Below is the pinout and description:
Pin | Name | Description |
---|---|---|
1 | RST | Reset pin. Active LOW. Resets the display controller. |
2 | CE | Chip Enable. Active LOW. Enables communication with the display. |
3 | DC | Data/Command. HIGH for data, LOW for command. |
4 | DIN | Data Input. Serial data input for SPI communication. |
5 | CLK | Clock. Serial clock input for SPI communication. |
6 | VCC | Power supply. Connect to 3.3V. |
7 | BL | Backlight. Connect to a resistor and power source to enable the backlight (optional). |
8 | GND | Ground. Connect to the ground of the circuit. |
Note: Some modules may not include a backlight pin (BL). Check your specific module for details.
Below is an example of how to use the Nokia 5110 with an Arduino UNO using the popular Adafruit_PCD8544
library:
#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_PCD8544.h> // Nokia 5110 library
// Pin definitions for the Nokia 5110
#define RST_PIN 8 // Reset pin
#define CE_PIN 7 // Chip Enable pin
#define DC_PIN 6 // Data/Command pin
#define DIN_PIN 5 // Data Input pin (MOSI)
#define CLK_PIN 4 // Clock pin (SCK)
// Create an instance of the display
Adafruit_PCD8544 display = Adafruit_PCD8544(CLK_PIN, DIN_PIN, DC_PIN, CE_PIN, RST_PIN);
void setup() {
// Initialize the display
display.begin();
display.setContrast(50); // Adjust contrast (0-127)
// Clear the display buffer
display.clearDisplay();
// Display a message
display.setTextSize(1); // Set text size
display.setTextColor(BLACK); // Set text color
display.setCursor(0, 0); // Set cursor position
display.println("Hello, World!");
display.display(); // Update the display
}
void loop() {
// Nothing to do here
}
Note: Install the
Adafruit_GFX
andAdafruit_PCD8544
libraries via the Arduino Library Manager before running the code.
Display Not Turning On
No Output on the Display
Faint or No Backlight
Corrupted or Flickering Display
Q: Can I use the Nokia 5110 with a 5V microcontroller?
A: Yes, but you must use level shifters or resistors to step down the voltage on the SPI lines to 3.3V.
Q: How do I adjust the contrast of the display?
A: Use the setContrast()
function in your code. The contrast value typically ranges from 0 to 127.
Q: Can I display images on the Nokia 5110?
A: Yes, you can display monochrome bitmaps. Use tools like LCD Assistant
to convert images to the required format.
Q: Is the backlight necessary for the display to work?
A: No, the backlight is optional and only enhances visibility in low-light conditions.