New Nokia 5110 display driver in the obex
JasonDorie
Posts: 1,930
For anyone interested, there's a very cheap backlit graphic LCD display available from Sparkfun. I'm planning on using one in a project of mine, so I wrote a simple object to initialize it and display text.
http://obex.parallax.com/objects/700/
The documentation from them is kind of sparse, so this is a mash-up of a bunch of different C & C# sources I found online, converted to Spin. It's fast enough for my needs, and doesn't take a dedicated cog. Displaying a single character takes ~188,000 clock cycles.
The display itself can be found here: http://www.sparkfun.com/products/10168
The image below is the output of the "sample usage" code.
Enjoy!
http://obex.parallax.com/objects/700/
The documentation from them is kind of sparse, so this is a mash-up of a bunch of different C & C# sources I found online, converted to Spin. It's fast enough for my needs, and doesn't take a dedicated cog. Displaying a single character takes ~188,000 clock cycles.
The display itself can be found here: http://www.sparkfun.com/products/10168
The image below is the output of the "sample usage" code.
Enjoy!
Comments
http://forums.parallax.com/showthread.php?124487-EtPhoneHome-v1.0-A-Nokia-6150%28like%29-pcb-redone-with-two-propellers.-PCD8544-l
The spin code inside my copy has complete documentation of what different commands the pcd8544 chip accepts
Feel free to hack up my info to get specific data out and copy it into yours for documentations, etc.
I never put it into the obex due to laziness on cleaning up the non-display related code.
EDIT : Its ok. was a connection problem.
Anyway, here is my code which works with my Nokia 5110 LCD module purchased on eBay for US$3.28
http://www.ebay.com.au/itm/261034182941?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649
Nokia5110A.spin
Notes:
I am now driving the power (3V3 and Gnd) from propeller pins (~0.2mA).
The LED backlight can also be supplied from a prop pin (~6.7mA) although I did not connect this pin.
My pin connections are not straight forward - change them to what you require.
I have included a writeup of the LCD commands in the spin code.
So if anyone's looking for C source for driving the 5110 from the Propeller, I just modified SparkFun's code a bit to make it a little more Propeller-friendly. It uses the SimpleIDE's simpletools library. Attached.
lcd5110.tgz