Parallax Forums
  HomeLog InRegisterCommunity CalendarSearch the ForumHelp
   
Parallax Forums > Public Forums > Propeller Chip > Nokia LCD interface anyone  Forum Quick Jump
 
New Topic Post Reply Printable Version
[ << Previous Thread | Next Thread >> ] | Show Newest Post First ]

ALIBE
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2006
Total Posts : 299
 
   Posted 2/26/2007 10:07 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
I am trying to get a larger LCD screen on my robot and thought this one might be a good one to go w/ for $19 a pop. 
 
Has anyone tried this w/ the Prop? Any pointers would be great.
 
Are there other similar LCDs that people have tried w/ the Prop in this forum?
Thanks in advance
 
 


"any small object, accidentally dropped, goes and hides behind a larger object."
 
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
 

Back to Top
 

mahjongg
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2007
Total Posts : 140
 
   Posted 2/26/2007 10:55 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Elektor recently had an article about interfacing such LCD's to microcontrollers, it should not be too hard to do.

Mahjongg
Back to Top
 

Paul Baker
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2004
Total Posts : 6323
 
   Posted 2/26/2007 11:10 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Thats amusing, I just adapted Bean's BS2 code over the weekend. The display flickers, but I think this is due to Sparkfun's LED driver circutry (it's an older version before they modified the carrier)


Paul Baker

Propeller Applications Engineer

Parallax, Inc.

Post Edited (Paul Baker (Parallax)) : 2/26/2007 6:16:04 PM GMT

Back to Top
 

mahjongg
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2007
Total Posts : 140
 
   Posted 2/26/2007 7:02 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Okay, I checked, and the Elektor article is about interfacing Alcatel GSM LCD,s and can be found here:

www.elektor-electronics.co.uk/Default.aspx?tabid=27&art=53289&PN=On

The article itself can be downloaded as a .PDF, but its not a free download.


You might therefore also want to take a look at the LCDHype forum board which has a lot of info about using LCD's, you will find it here:

lcdhype.de/index.php?act=idx

Mahjongg
Back to Top
 

inservi
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2007
Total Posts : 114
 
   Posted 2/27/2007 4:04 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Hello, some time ago (one or two years), i read an article in Elektor about the using of recuperating Nokia screen with µC.

I will try to find it.

dro.


in medio virtus

Back to Top
 

ALIBE
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2006
Total Posts : 299
 
   Posted 2/27/2007 6:22 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
LCDHype has tons of info - not just one type of LCD - but so many mftrs' . Thanks for forwarding the link mahjongg!!


"any small object, accidentally dropped, goes and hides behind a larger object."
 
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
 

Back to Top
 

Paul Baker
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2004
Total Posts : 6323
 
   Posted 3/2/2007 9:25 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Here's the file I promised in the PM, like I said it is really really slow. Switching to an assembly version of the SPI routines would drastically speed things up.  It's not well commented because I used Bean's example code from the sparkfun website.
 
Credit goes to Bean for his code and Martin for his SHIFTOUT routine.


Paul Baker

Propeller Applications Engineer

Parallax, Inc.



File Attachment :
NokiaLCD.spin   3KB (application/octet-stream)
This file has been downloaded 312 time(s).
Back to Top
 

ALIBE
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2006
Total Posts : 299
 
   Posted 3/3/2007 6:23 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Paul, Bean, Martin - thanks a lot for this.

I tried this on my LCD and all I see it that the blue screen and a short-lived refresh (from possibly the ::Cls() ). I don't see any other activity.

I have 10Ks for each of the pins except for the VDD and VSS. I have the LCD riding on the knock-off carrier board

what am I doing wrong.

thanks in advance


"any small object, accidentally dropped, goes and hides behind a larger object."
 
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
 

Back to Top
 

inservi
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2007
Total Posts : 114
 
   Posted 3/3/2007 6:35 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Hello here are the article from Elektor 06/07/2006.
dro.


in medio virtus

Post Edited (inservi) : 3/3/2007 1:44:56 PM GMT


Image Attachment :
Image Preview
article1.jpg
  79KB (image/jpeg)
This image has been viewed 373 time(s).
Image Attachment :
Image Preview
article2.jpg
  93KB (image/jpeg)
This image has been viewed 324 time(s).

File Attachment :
050200-11.zip   1KB (application/zip)
This file has been downloaded 169 time(s).

File Attachment :
060080-11MKII.zip   988KB (application/zip)
This file has been downloaded 167 time(s).
Back to Top
 

ALIBE
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2006
Total Posts : 299
 
   Posted 3/3/2007 7:08 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
wanted to add;
I changed the contrast adjusting loop from "130" to various settings and still do not see a difference. just a blue scr.


"any small object, accidentally dropped, goes and hides behind a larger object."
 
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
 

Back to Top
 

ALIBE
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2006
Total Posts : 299
 
   Posted 3/3/2007 7:28 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
I "see some light" :)

I tried VOLDOWN ($D7) and, "Houston, we see some activity" - not there fully yet though.


"any small object, accidentally dropped, goes and hides behind a larger object."
 
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
 

Back to Top
 

ALIBE
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2006
Total Posts : 299
 
   Posted 3/3/2007 8:23 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
it is working - I agree - it is slow!

outside of writing some of the guts in ASM, are there any recommendations to making this faster. Also, any thougths on displaying regular text? Will that be any faster than the Gx plotting ?

thanks


"any small object, accidentally dropped, goes and hides behind a larger object."
 
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
 

Back to Top
 

Paul Baker
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2004
Total Posts : 6323
 
   Posted 3/3/2007 11:56 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
When plotting consecutive points you can streamline it a bit, but you really need to make the SHIFTOUT routine assembly. There are some examples in the object library (if there isn't an explicit example, the SD routines have a shiftout/in type of interface at thier core).


Paul Baker

Propeller Applications Engineer

Parallax, Inc.

Back to Top
 

Harrison.
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2004
Total Posts : 474
 
   Posted 3/3/2007 1:10 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Beau wrote a nice spi library in asm as an example in a sticky in this forum. Go here http://forums.parallax.com/forums/default.aspx?f=25&m=141093 and search for shiftout on that page.

You can also download the object directly at: http://forums.parallax.com/forums/attach.aspx?a=8953
Back to Top
 

paulmac
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Oct 2006
Total Posts : 51
 
   Posted 3/4/2007 2:02 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
serdisplib (linux software) has code for the pcd8544 displays mentioned in that Elektor article. It also has a lot of info about the hardware.


I stand on the shoulders of giants

Back to Top
 

ALIBE
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2006
Total Posts : 299
 
   Posted 3/4/2007 4:36 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
paulmac, inservi; thank you both for the additional material.

Harrison, Beau, currently checking the SPI Lib in ASM - will report back

thanks all


"any small object, accidentally dropped, goes and hides behind a larger object."
 
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
 

Back to Top
 

lnielsen
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2007
Total Posts : 72
 
   Posted 3/5/2007 12:13 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
I am also looking at adding a display with soft buttons for my robot controller. DigiKey has the OSRAM Pictiva displays which are oLED based. I don't know if I need color so I am leading towards the 1" 128x64x4 grayscale for $9. I am thinking I can show images from the PropCam on it once that is available and still have room for the soft buttons. I am also interfacing to a Logitech wireless PS2 controller. I wish I could get the new PS3 controller working with the motion sensing features as well but that will take bluetooth.

I will be ordering the display soon and will try the SPI as well.

Len
Back to Top
 

Jello
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 9
 
   Posted 4/4/2007 4:14 PM (GMT -7)    Quote This PostAlert An Admin About This Post.

Hi everyone,

Paul Baker has done the Epson driver for this lcd.  Has anyone done a Phillips driver for the (nearly identical) Phillips lcd? The pin outs are the same. Nokia phones are supposed to be smart enough to figure out which driver to use.

I scrounged my lcds from a Nokias 3390 and 6030 (if i remember right), and they still work in the phones when i put them back,  but my problem is (according to info in the link below) they're talk Phillips not Epson.  

http://www.electricstuff.co.uk/noklcd.html

Anyway, I have tried to convert the Epson driver code to use Phillips commands etc., but not having much success. A pretty blue screen that does nothing.

Oh, and i am using the SparkFun lcd break out board. http://www.sparkfun.com/commerce/product_info.php?products_id=600 using Header 1 (vin, cs, clk, data, reset, gnd) , tried jumpers jumped, unjumped.

If someone has already been thru this for the Phillips, I would really like to here about your experience.

thx

 <edit> attached my Philipized version of Pauls code, such as it is.

Post Edited (Jello) : 4/4/2007 11:25:02 PM GMT



File Attachment :
PaulsNokiaConvertedToPhillipsLCD.spin   4KB (application/octet-stream)
This file has been downloaded 168 time(s).
Back to Top
 

paulmac
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Oct 2006
Total Posts : 51
 
   Posted 4/4/2007 4:22 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Jello said...
A pretty blue screen that does nothing.

I have heard of a similar result with some LCD. It turned out to be the contrast control.


I stand on the shoulders of giants

Back to Top
 

Jello
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 9
 
   Posted 4/4/2007 4:27 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
yeah, I tried the tweeking the contrast WRCNTR (write contrast) from it's min to max settings, but I can't see any difference.
Back to Top
 

Jello
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 9
 
   Posted 4/6/2007 1:25 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Hotdog!
The good news is: the lcd was not seated properly in the board! hooray! (shame on me for not looking closer)
The other good news is my version of the Philips driver even works! hazaa! yippee!
But.. like stated in an earlier post, it's really, really slow.. but it's better than nothing :)
So, I took some advice (also in an earlier post) and refactored to use the faster SPI Engine.spin assembly spi code.
The bad news is, the spi engine does not seem to work.
Attached is the updated Philips driver if anyone gets a hankering to look at the spi engine calls.
Seems like it should work. hmm. 
 
 
thx!
 
 
<edit> to update attachment

Post Edited (Jello) : 4/7/2007 1:47:23 AM GMT



File Attachment :
NokiaLCDPhillips.spin   4KB (application/octet-stream)
This file has been downloaded 176 time(s).
Back to Top
 

Jello
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 9
 
   Posted 4/6/2007 8:28 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Actually, only the sendData works with the assembly shiftout.
The controller takes 9 bit commands/data
Cmd = 0 + 8bits of data
Data = 1 + 8bits of data

PUB SendCommand(cmd)
SHIFTOUT(SData, SClock, cmd, MSBFIRST, 9) ' spin version
'SPI.SHIFTOUT(SData, SClock, MSBFIRST, 9, cmd) ' assembly version not working here

PUB SendData(data)
' SHIFTOUT(SData, SClock, data | $100, MSBFIRST, 9) ' spin version
SPI.SHIFTOUT(SData, SClock, data | $100, MSBFIRST, 9) 'assembly version DOES work here

It's got to be something simple. I am just not seeing it yet.

J
Back to Top
 

jkroylance
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 2006
Total Posts : 12
 
   Posted 4/8/2007 1:11 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
I've been playing with this LCD and code for it, and I tried myself to merge the SPI routines into it and use them instead of the Spin ones. After driving myself nuts for several hours trying to figure out why the LCD works with the Spin code and not with SPI, I stumbled across something: If you issue the very first command to the LCD using the Spin shiftout code (even if it's not a valid command), then start using the faster SPI code, the LCD works fine, and is much faster. Only problem is I can't stand wasting that amount of space on code that's used just once. Attached is an archive of the version I got to work... This is my first attempt at working with propeller programming, so please excuse the sloppiness of the code. I commented alot & tweaked a bunch of stuff trying to figure out why it wouldn't work.

Nokia Test.spin (top object file)
NokiaLCD.spin
SPIEngine.spin

The part I was messing with is in NokiaLCD.spin toward the bottom of the file in InitLCD, there's a SendSpcCommand() call which calls the Spin shiftout routines to send a $00 to the LCD, then everything's SPI after that. My LCD works fine like this, but if you change SendSpcCommand() to SendCommand() (or even just comment out the whole line), the LCD is unresponsive.

Hopefully someone can figure this one out, it's got me stumped!

File Attachment :
Nokia LCD - SPI (sorta) works!.zip   6KB (application/x-zip-compressed)
This file has been downloaded 203 time(s).
Back to Top
 
[ << Previous Thread | Next Thread >> ]
New Topic Post Reply Printable Version
 
Forum Information
Currently it is Thursday, July 29, 2010 5:18 PM (GMT -7)
There are a total of 462,440 posts in 62,066 threads.
In the last 3 days there were 90 new threads and 803 reply posts. View Active Threads
Who's Online
This forum has 20143 registered members. Please welcome our newest member, ME01.
61 Guest(s), 13 Registered Member(s) are currently online.  Details
John Abshier, Rayman, Kevin Wood, BradC, Julian800, prof_braino, Harley, Sapieha, Gene Bonin, wiresalot, laser-vector, localroger, Nick McClick