Pages: [1]   Go Down
Author Topic: Graphic LCD Troubleshooting  (Read 1200 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 8
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I've got KS0108 GLCD connected to the Arduino (Seeeduino - 100% Arduino Diecimila compatible) wired as a common Pinout B panel according to this www.arduino.cc/playground/Code/GLCDks0108 It supposed to have two lines moving, one from top to the bottom, second one from left to right. LCD is 100% properly connected, but picture is garbled. Any suggestions how to fix it?
Please check picture below along with links to its manual and video.

GLCD model: LM12864M

GLCD manual here: http://www.topwaydisplay.com/Pub/Manual/LM12864MBC-Manual-Rev0.1.pdf

Video here:

Thank you in advance!!!

Logged

London
Offline Offline
Tesla Member
***
Karma: 10
Posts: 6255
Have fun!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's a little odd that the top line (first 8 vertical bits) is ok and the others are completely garbled. People do seem to have more problems with the type B display but I have not seen anything quite like this before.  Type B displays seem to have more problems but I don't know why, they are supposed to be following the same spec as the type a chips. Perhaps just coincidence.

Anyway, I have been working for a while on finding a way to get the problem panels to work without slowing them down to a crawl. I have had limited success so far, impeded somewhat by the poorly documented ks0108 chip. But I plan to spend some time on this over the holiday period so hope to have something for the new year.

If you are impatient and want to do some investigation for yourself, you can try the code posted here: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1210427907/42#42

It would be worth reading the other posts discussing timing problems and see if you can find a delay that solves your problem.  Don't forget that you need to delete the ks0108.o file in the library directory for any changes in the library source code to take affect (otherwise the code will not be recompiled)

If you do get it working better, please post what you did. If not, perhaps I will have something in the new year.

Have a happy holiday.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 8
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you mem for pointing me in a right direction, if I get it working I will let you know.
Thanks!
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 8
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Wow! mem, Thank you mate!
I've tried to change ks0108.cpp as you described here: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1210427907/30
tweaked delay. Set it to 50

#define DELAY_EN_ON  50
#define DELAY_EN_OFF 50

And it worked! There still some pixels missing, but any way you can see a clear picture.
You can download a modified ks0108.cpp file from here http://www.dim-len.com/misc/ks0108.cpp



So this means I've got a slow display :-? huh?
What models would you recommend for best performance?
Logged

Pages: [1]   Go Up
Jump to: