# Nokia 5110 with an Arduino

#### orlandoperalta23

Joined Oct 22, 2015
14
Hi everybody

I´m trying to use the Nokia 5110 with an arduino. The schematic is like this:

I was searching and prove a lot of librarys, but the display always appear blank

I´m also was trying replace the DC4050 by 10k resistors to limit the current, but the result is the same

I dont understand what I´m doing wrong

My reference pages are:

http://forums.4fips.com/viewtopic.php?t=1086
https://www.sparkfun.com/products/10168
http://forum.arduino.cc/index.php?topic=176794.0
https://brainy-bits.com/tutorials/how-to-use-the-nokia-5110/

But all this attempts were a failure.

If you can help me with this, I´ll be grateful

#### Attachments

• 214.5 KB Views: 2

#### GopherT

Joined Nov 23, 2012
8,012
The displays are standardized but the red pcb is not standardized. Make sure the pin out on your board are in the same order as those on the tutorials. If not, adjust jumper wires appropriately.

Also, what code are you using?

#### orlandoperalta23

Joined Oct 22, 2015
14

That is my display, so I´m sure about the pinout. And my code is this;

Code:
#define RST 3
#define CE 4
#define DC 5
#define DIN 6
#define CLK 7

void LcdWriteCmd(byte cmd)
{
digitalWrite(DC, LOW); //DC pin is low for commands
digitalWrite(CE, LOW);
shiftOut(DIN, CLK, MSBFIRST, cmd); //transmit serial data
digitalWrite(CE, HIGH);
}

void setup()
{
pinMode(RST, OUTPUT);
pinMode(CE, OUTPUT);
pinMode(DC, OUTPUT);
pinMode(DIN, OUTPUT);
pinMode(CLK, OUTPUT);
digitalWrite(RST, LOW);
digitalWrite(RST, HIGH); LcdWriteCmd(0x21); // LCD extended commands
LcdWriteCmd(0xB8); // set LCD Vop (contrast)
LcdWriteCmd(0x04); // set temp coefficent
LcdWriteCmd(0x14); // LCD bias mode 1:40
LcdWriteCmd(0x20); // LCD basic commands
LcdWriteCmd(0x09); // LCD all segments on
}

void loop()
{
}

#### GopherT

Joined Nov 23, 2012
8,012
Who wrote this script? I'm not sure the serialOut command can support four parameters. I think you are limited to three.

#### orlandoperalta23

Joined Oct 22, 2015
14
is a script that i found in the description of this video:

As you can see, this code works fine in the video, but no for me.

So, other code that a try was this:http://forums.4fips.com/viewtopic.php?t=1086, that use the library u8glib (https://github.com/olikraus/u8glib). I follow all steps, but the display still blank.

I have a question: If I try with an arduino UNO instead an arduino Nano, could this solve the problem. It means, exists a significant difference in port characteristics between them?

Last edited:

#### GopherT

Joined Nov 23, 2012
8,012
It looks ok, except you seem to have two commands on line 23. Move the

#### GopherT

Joined Nov 23, 2012
8,012
Also, use pins 4,5,6,7,8 instead of 3 thru 7 (pin 3 can get finnicky with interrupt).

Add a delay(1) command after the reset is complete.

#### orlandoperalta23

Joined Oct 22, 2015
14

Later a lot of effort I test with a different bread board and now it works fine

GopherT, you are awesome. Thanks for your help

#### GopherT

Joined Nov 23, 2012
8,012
Thanks for checking back to let us know you got it working.