192x64 GLCD HS19264-1

Hi All,

I purchased myself a 192x64 LCD graphics display from dx.com.

I've got the glcd library installed and my lcd seems to be wired up correctly. I can load up the examples, however it does not display correctly. I've modified the glcd_config.h for a 3 chip lcd and modified the file to look for the ks-0108-192x64.h library. 2/3rds of the display is currently correct.

The data sheet for the display is minimal and can be found here

http://www.hslcm.com/uploadfile/85b17f6153dede6c2a1c530cb400e073.pdf

I'm sure their is something simple that I am overlooking here. Anyone have any suggestions for me?

edit: Here's a picture of the lcd hooked up. You can see the right 2/3rds of the display is sort of correct but the left 1/3 is a duplicate of the right 1/3.

Edit 2:
The struggle continues. I've been playing with the u8glib library today which doesn't expliciatly state that it can handle a 192x64 display however the results are the same. The first 1/3rd of the display is a duplicate of the last 1/3rd if i connect the chip select 3 pin of the display to ground.

I've also noticed that any modification to the glcd libraries to do with a 3 chip panel seem to have no effect on the display itself. Anyone else successfully connected a 192x64 graphic lcd?

Also for anyone using the glcd library experiencing a "avrdude: stk500_getsync(): not in sync: resp=0x00" error when uploading a sketch this seems to be related to connecting the reset pin of the lcd to the arduino reset pin.

From your description the issue is incorrect chip select signals.
There are multiple ways that chip selects on 192 pixels wide displays can be handled.
Some displays use 3 chip selects, some use 2.
And then the chip select signals can be active high or active low.
Your display uses 3 active low chip select signals.

The library must treat the chip selects properly or you will
see problems on the display like what you are seeing.

What library are you using?
That photo looks like the BigNums demo that comes with
both GLCDv3 and openGLCD libraries.

I no longer support the glcd library and would recommend using openGLCD
https://bitbucket.org/bperrybap/openglcd/wiki/Home
as it has many bug fixes, updates, and new features, including updated
documentation and examples for all the API functions.

Please read the openGLCD information on the wiki.
Also read the html documentation about ks0108 wiring before giving it a try.

Note that openGLCD is GPLv3 so if you are wanting to create a closed source
project, you will not be able to use openGLCD.

Although while GLCDv3 is LGPL v2.1+, which allows its use in closed source projects,
currently there is no way to comply with the LGPL 2.1 licensing terms
for a closed source project, when using Arduino since Arduino does not allow
linking against pre-compiled objects.

In terms of getting the chip selects correct, openGLCD comes
with an autoconfig file that should work with that display:
AutoConfig_ks0108-HJ19264A_Panel.h
That configuration file uses 3 active low chip selects.

About the reset signal,
both glcd and openGLCD libraries have quite a bit of documentation
that describes how to wire up the reset signal on the glcd module and how
to resolve/work-around upload issues that occur on certain revisions of the Arduino boards.
The upload issue is a h/w problem related to the auto-reset hack circuit used on Arduino boards.

--- bill

Thanks very much bill great information. The openglcd library works perfectly with the configuration you suggested.

Great!
I think you will be happier with openGLCD as it as many new features and examples over glcd.

--- bill