LCD nokia 5110 Issues.

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?

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 Regards, Juan 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: http://www.sparkfun.com/tutorials/300 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 Arduino.

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 ?

Sorry for reviving a v.old thread but have just gone through some troubleshooting with around 100 Nokia 5510 screens and this is a thread I found on the way.

Using the Adafruit 5510 library the top contrast is 127. If that doesn't give you a black rectangle the size of your screen, chances are you might need to reseat the LCD on the PCB. These are robust screens and unless there's a crack or you can see the liquid crystal leaking they should be able to be repaired fairly easily.

With the LCD powered on and connected take the top end (where it says Nokia5510) and squeeze the silver metal frame of the LCD towards the PCB gently - between thumb and forefinger. You should see the contrast change (it should darken). If that works it may benefit you to bend the metal pins that attach the frame of the LCD to PCB slightly to achieve a better contrast. Then adjust it back down in code.

If that's not worked there's one last thing to try. Remove the LCD from the PCB by compressing the metal pins that attach the frame of the LCD to the PCB. Once you have two pieces remove the rubber bung connector that's sat in the back of the LCD then reseat it gently. Reassemble and try again.

Note: Every time you remove the LCD to do something, reset the Arduino board or it won't refresh your changes and will stay blank.

Hope this helps someone!

Well even my LCD keeps blanking out sometimes. But push the LCD against the PCB brings the display back again. Seems some problem with the rubber contacts of the LCD with the PCB.

michinyon: 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 Arduino.

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 ?

That's surely a fair guess...... I see it as an SPI device only inasmuch that, if it on the SPI bus, it will coexist with other SPI devices, but I don't know if that really is a criterion. My first 5110s were on shields made for Uno and used SPI, but they work fine on Mega with no change. My latest just uses pins 5,6,7,8,9 for more convenient wiring. I don't think there is any mention of SPI in the Philips PCD8544 library.