Nokia 5110 LCD User Manual

Page 1
USER MANUAL
Nokia 5110 LCD
Page 2
Introduction:
beginners.
Features:
1. Very easy to control, perfect for beginners.
2. Dedicated arduino library. Only 5 digital pins of arduino is needed to control it.
3. User controllable blue backlight.
4. Can be used to show any bitmap image of your choice.
5. Signal pins can be controlled with either 5V or 3.3V logic level.
Specifications:
1. Operating Voltage: 3.3V (on VCC pins), 5V or 3.3V (on signal pins).
2. LCD driver: PCD8544
3. Dimension: 45mm X 45mm
4. Backlight: Blue
5. LCD Resolution: 84 X 48
6. No. of signal/control pins: 5
Application:
Any arduino project where you need a monochrome graphics LCD.
Operating Voltages:
The VCC pin must be connected to 3.3V. The LCD will be damaged if you put 5V to the VCC pin. However, the signal/data pins can withstand 5V and can be directly connected to arduino digital pins. LCD backlight will turn on if you connect the LIGHT pin to GND or any arduino
digital pin set as LOW.
Page 3
LCD pin
Arduino Pin
Comment
GND
GND
LIGHT
GND
GND or any arduino digital pin set as LOW to turn on LCD backlight. To turn off backlight, keep this pin disconnected or any arduino digital pin set as HIGH.
VCC
3.3V
LCD will be damaged if 5V is connected
CLK
13
LCD clock. Must connect to Arduino Hardware SPI SCK pin
DIN
11
LCD data input pin. Must connect to Arduino Hardware SPI MOSI pin
DC
9
Data/ Command. Can be any Arduino digital pin.
CE
10
Chip Enable. Can be any Arduino digital pin.
RST
8
LCD Reset. Can be any Arduino digital pin.
Circuit connection:
Arduino Library:
The LCD can be controlled using U8G Arduino library. Its available in the document section of this product page. You can download it from here.
Do not extract the .zip file after downloading it. Open Arduino IDE, then go to Sketch >> Include
Library >> Add .ZIP Library. Then browse to the downloaded u8glib.zip file.
Arduino Codes:
Arduino codes are available in the document section of this product page. You can download them from here. Extract the .zip file. Youll find two codes
1. Nokia5110_LCD_PCD8544
2. Nokia5110_LCD_Custom_Image
Page 4
Testing:
Provide circuit connection as described earlier, install arduino library and then upload the
Nokia5110_LCD_PCD8544 sketch.
Display Custom Image:
You can display any image in this display. To do so, you need to
- Convert your image to 1 bit monochrome bitmap image.
- Reduce image size to fit in the resolution of 84 X 48 pixel of the LCD.
- Generate a 2D array from the image file.
- Copy-paste the 2D array to appropriate Arduino Code.
As an example here, weve used the techshopbd logo.
STEP 1:
Open your desired image in “PAINT” and crop it if needed. Then reduce its size by pixels. The “Horizontal” value MUST be a multiple of 8 and lower than 84 (48 in this example). The
Vertical value MUST be lower than 48 (45 in this example). Remember to maintain aspect ratio.
Page 5
STEP 2:
Save the picture as Monochrome Bitmap.
STEP 3:
Download LCD Assistant. It’s available in the document section of this product page. You can also download it from here. Unzip the file and open LCDAssistant.exe.
Go to File >> Load Image and then select the monochrome bitmap image that youve created in STEP 2. Image size and Table name will depend on your image. But you MUST keep Byte orientation Horizontal. Keep other parameters as shown in image below.
Page 6
Go to File >> Save output. Give your file a name and save it. No file extension is needed.
STEP 4:
Open the created file using notepad and copy everything within the brackets as shown below.
STEP 5:
Open code Nokia5110_LCD_Custom_Image (See Arduino Codes section to download it). Then Paste what youve copied in STEP 4, within the brackets, just like the picture below.
Page 7
STEP 6:
Upload the code to arduino. If everything youve done is correct, youll see your image on the LCD.
Loading...