With the following instructions you will be able to easily print messages in a nokia 5110 LCD screen with the help of an Arduino microcontroler.
What we need:
LCD Display Screen Nokia 5110 LCD
Arduino (In this example I'm using the model Arduino Leonardo but any model can be used)
Male To male 40p 20cm 1p-1p Jumper Ribbon Wire
Ribbon Wire connector
Arduino IDE (Download from http://arduino.cc/en/pmwiki.php?n=main/software)
Adafruit PCD8544 library: https://github.com/adafruit/Adafruit-PCD8544-Nokia...
Adafruit GFX libraries: https://github.com/adafruit/Adafruit-GFX-Library
The code template can be taken from here: https://github.com/sparkfun/GraphicLCD_Nokia_5110
Step 1: Connect the Cables!
1. Connect the Ribbon Wire to the Ribbon Wire connector so all the cables are connected in order and they are easy to identify.
2. Connect the Nokia LCD to the breadboard, make sure every pin connects to a different row and that there is enough space to connect the Ribbon wire.
3. Connect the Ribbon wire in the same rows as the LCD Screen.
4. Connect the other extremes of the ribbon wire to the proper pins. The pins should be the same as the ones written in the software. Do not drive the backlight with 5V. It will smoke.
You will need 5 signal lines to connect to the LCD, 3.3 or 5V for power, 3.3V for LED backlight, and 1 for ground. As the software says those are the pins:
#define PIN_RESET 3 //Pin 3 on LCD
#define PIN_SCE 4 //Pin 4 on LCD
#define PIN_DC 5 //Pin 5 on LCD
#define PIN_SDIN 6 //Pin 6 on LCD
#define PIN_SCLK 7 //Pin 7 on LCD
So the last 3 cables goes to 3.3v, GND and GND in the power section of the Arduino Leonardo The first 5 cables goes to the digital section in order to the pins: 3,4,5,6 & 7.
If the power cables are properly connected. you should be able to see the backlight on If you plug the Arduino to an usb power battery or connector.
Step 2: Send the Instructions to the Arduino and Print the Message in the Screen
(The IDE image above does not represent the Nokia code and its purpose is to show how the IDE looks like for people who never used arduino before)
If the digital pins are properly connected, now you should be able to plug it to your computer, and send the instructions to see the message in the screen.
Open the Arduino IDE, Open the Nokia code (Check the link given before to download it), compile it, and if the libraries are included there should be no compilation errors.
Now click the arduino button and press the upload button in the arduino IDE.
Now you should be able to see the message in the screen.