Go Down

Topic: LCD nokia 5110 Issues. (Read 5415 times) previous topic - next topic

Okay, So i tried recreating the stuff from this site. http://blog.stuartlewis.com/2011/02/12/scrolling-text-with-an-arduino-and-nokia-5110-screen/  Everythign is hooked up as is and the only thing that i get working would be the LCD backlighting.

Could his code be messed up or could my LCD be dead?


Jun 14, 2012, 03:35 pm Last Edit: Jun 14, 2012, 05:11 pm by juan1920 Reason: 1
Hi ttyler333,
Nokia 5110 are very robusts and reliables displays so I bet it's just a contrast issue, I don't know why but I owe five and all of them have a different default contrast settled, so I've to adjust them individually. I suggest You to try to change  "LcdWrite(LCD_CMD, 0xBf)"  with this one"LcdWrite(LCD_CMD, 0xB1)" as stated in the code. If still don't work try this library https://github.com/adafruit/Adafruit-PCD8544-Nokia-5110-LCD-library setting contrast to 55 or 60.
I hope it can help
PD: I've try the code You linked and It works


Thankyou juan1920
I had a Nikia display that I thought was not working, I bought it on Ebay.
I had tryed using the code from the palyground, with no luck, the display was total dead.
Then I tryed the code you are linking to, and it works !! :D

By the way I don't think it is a good idea just to connect to 5V, The tutorial on sparkfun recomments resitors:
And on Ladyada they use levelconverters

Try configure the contrast first: LcdWrite( LCD_CMD, 0xBf ); // Set LCD Vop (Contrast). Set the constrast value in the codes, to B4 which is from 191 to 180 in decimal, and the contrast will be much better

You can find the information here. http://www.electrodragon.com/?product=nokia-5110-lcd-pcd8544-driver-chip


I tried 2 different libraries and test programs that I downloaded,  didn't work.   The adafruit library works so I suggest you try that.
I ignored their 3.3 to 5V converter though,  works with 5V,  may die sooner.


The other thing which I could not understand about this,   is that it used SPI
communication,  but doesn't require to be connected to the SPI pins on the

The only conclusion i could reach,  is that the SPI communications were being
implemented "in software"  on any Arduino pin,   sort of like  SoftSerial.  But
I am guessing.

Anyone know for sure how this is done ?

Go Up