Difference between revisions of "Nokia 5110 LCD Module"

From Geeetech Wiki
Jump to: navigation, search
(Document)
(Example code)
Line 32: Line 32:
  
 
==Example code==
 
==Example code==
 +
#include <LCD5110_Basic.h>
 +
LCD5110 myGLCD(8,9,10,11,12);
 +
extern uint8_t SmallFont[];
 +
extern uint8_t MediumNumbers[];
 +
extern uint8_t BigNumbers[];
 +
void setup()
 +
{
 +
  myGLCD.InitLCD();
 +
}
 +
void loop()
 +
{
 +
  for (int i=0; i<=10000; i++)
 +
  {
 +
    myGLCD.setFont(MediumNumbers);
 +
    myGLCD.printNumF(float(i)/3, 2, RIGHT, 0);
 +
    myGLCD.setFont(BigNumbers);
 +
    myGLCD.printNumI(i, RIGHT, 24);
 +
  }
 +
  myGLCD.setFont(SmallFont);
 +
  myGLCD.print("|            |", CENTER, 16);
 +
  delay(500);
 +
  for (int i=0; i<12; i++)
 +
  {
 +
    myGLCD.print("\\", 6+(i*6), 16);
 +
    delay(500);
 +
  }
 +
  myGLCD.clrScr();
 +
}
  
 
==How to buy==
 
==How to buy==
 
Click here to buy [http://www.geeetech.com/84x48-nokia-5110-lcd-module-p-500.html Nokia 5110 LCD Module]
 
Click here to buy [http://www.geeetech.com/84x48-nokia-5110-lcd-module-p-500.html Nokia 5110 LCD Module]

Revision as of 09:15, 11 May 2012

Introduction

Nokia51.jpg

The Nokia 5110 is a basic graphic LCD screen for lots of applications. It was originally intended for as a cell phone screen. This one is mounted on an easy to solder PCB.

It uses the PCD8544 controller, which is the same used in the Nokia 3310 LCD. The PCD8544 is a low power CMOS LCD controller/driver, designed to drive a graphic display of 48 rows and 84 columns. All necessary functions for the display are provided in a single chip, including on-chip generation of LCD supply and bias voltages, resulting in a minimum of external components and low power consumption. The PCD8544 interfaces to microcontrollers through a serial bus interface.

Features

  • Single chip LCD controller/driver
  • 48 row, 84 column outputs
  • Display data RAM 48 × 84 bits
  • Serial interface maximum 4.0 Mbits/s
  • Logic supply voltage range VDD to VSS 2.7V to 3.3V
  • Limiting values: supply voltage VDD: 7V
  • Limiting values: all input voltages: VDD + 0.5V
  • Low power consumption, suitable for battery operated

systems

Document

Nokia 5110 LCD datasheet
Nokia 5110 LCD Arduino Library

Usage

Nokia 5110 wiring.jpg

SCLK – Pin 8
DN   – Pin 9
DC   – Pin 10
RST  – Pin 11
SCE  – Pin 12
LED  – 5V

Example code

#include <LCD5110_Basic.h>
LCD5110 myGLCD(8,9,10,11,12);
extern uint8_t SmallFont[];
extern uint8_t MediumNumbers[];
extern uint8_t BigNumbers[];
void setup()
{
 myGLCD.InitLCD();
}
void loop()
{
 for (int i=0; i<=10000; i++)
 {
   myGLCD.setFont(MediumNumbers);
   myGLCD.printNumF(float(i)/3, 2, RIGHT, 0);
   myGLCD.setFont(BigNumbers);
   myGLCD.printNumI(i, RIGHT, 24);
 }
 myGLCD.setFont(SmallFont);
 myGLCD.print("|            |", CENTER, 16);
 delay(500);
 for (int i=0; i<12; i++)
 {
   myGLCD.print("\\", 6+(i*6), 16);
   delay(500);
 }
 myGLCD.clrScr();
}

How to buy

Click here to buy Nokia 5110 LCD Module