Gibberish on 128x64 LCD

I have a "TG12864D" LCD screen, at least that's what the technical document calls it. The screen says "HS12864-16A" on the back of the PCB. I think it's slightly off the "standard 128x64" because it has 4 icons at the top of the screen, a battery, an up arrow, an X with a circle around it, and a triangle. When trying to run the ks0108 demo sketch, those icons blink along with the gibberish displaying on the screen. The pins are #'d and labeled, so I'm sure I have it wired correctly.
If you want to see the tech sheet on it, I posted the PDF on my site: http://www.neonsquirt.com/TG12864D-04.pdf
Is there a different library I should use that might be more compatible with this particular screen? Or maybe a simple change that I can make to the library?


That's what it looks like while it's running, that should be the glcd demo sketch on the screen.. The gibberish moves in a way that you can tell the sketch is running, just seems like the protocol is slightly off or something..

Your file hosed my browser (IE8) after the 1st page. 266K downloaded out of 900+K, then things went south.
Saved it, then opened it, that worked better.
Where is "ks0108 demo sketch" located?

I compared your datasheet against the datasheet for my graphic LCD and the pinout
and the commands are identical. I would recommend that you recheck your wiring.
As for the icons, I see nothing in the datasheet that mentions them other than the LCD
layout. There are no special commands for accessing so I'd presume that they are used
by a slightly different controller and you have no control over them in this product.
Sometimes companies do this with products.

-Rusty-

Ok Rusty, thanks for that. I'll go back over my stuff and figure out where I went wrong.
CrossRoads, sorry about the hassle, didn't realize anyone still used IE. :slight_smile: The demo sketch comes with the glcd library..

Are you running the ks0108 library or the newer glcd v3 library that replaces
it that is in beta release?
If you are not running the glcd v3 library I highly recommend moving to
that library as it includes many updates, better/more documentation, and is also much faster.

I wrote and have included a glcd diagnostic sketch in this library to help diagnose
glcd hardware and wiring problems.

Here is a link to thread (on the old forums) about it:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1279128237/0

--- bill

I suspect your LCD panel isn't based on a KS0108. I recently bought a pair of panels advertised as KS0108 but they displayed something similar to yours. After doing some research on the internet I discovered they were based on a ST7920 :-((

I sent them back and bought some actual KS0108 panels instead.

Iain

I believe the data sheet is correct. Look closely on page 2 and you will see an image that looks
exactly like glcd with the icons and everything.
The icons are the controlled by using 4 pixels in the lower right corner of the display.
To use those icons would take modifications to the library.
("as is", they will just kind of randomly "blink")

My suspicion is either either a wiring error or the delay timing in the library is incorrect.
The newer version of the library (glcd vs ks0108) has much better and accurate delay
timing. It has been tuned and tested to work with many different brands of glcds and
should not require any user tweaking
(vs the earlier ks0108 library which might need user tweaking of the timing).

I suggest using the newer glcd library, if it is not being used,
and running the diagnostic sketch provided in the library
and posting back the results including the serial port output.

--- bill