Go Down

Topic: GLCD library version 3 (Read 92960 times) previous topic - next topic

bperrybap


Hi everyone !

I am new to the arduino.   

and i have an GLCD  type of wdg0151-tmi  and i dont know to wire it and also how to program it with arduino mega .

please please help and thank you and sorry for my bad language 

start here: http://playground.arduino.cc/Code/GLCDks0108

bperrybap


Thanks Bill, I'll do that. In this part of the forum?

Sure, put it in "Displays". I'll see it.
--- bill

momtot

Bill

please help me to wire and control my wdg0151 lcd

with arduino mega

and thank you for your care  :*

bperrybap

momtot,
First thing you need be able to identify all the pins on the GLCD module.
This is critical since if things are mis-wired the glcd or the arduino could be damaged.
If your display does not have the pins labeled, Google around for a datasheet.
Again, it is critical that you have the correct information for the glcd pins.

While I can't be sure, this datasheet sounds like it is for the
display you have described:
http://www.mikroe.com/downloads/get/1010/glcd_128x64_spec.pdf

You can then use the data sheet, or pin labels if your glcd has them , to identify
the glcd pins and match them up to the Arduino pins for your Arduino board.
Use the "GLCD Panel Pinouts" table on the glcd playground page (I provided the link earlier).

Then simply look at the pin function on the glcd and wire that function to the
Arduino pin indicated in the table.
For example if the glcd module uses pin 9 for data bit 0 (DB0 or D0) and you are using a
arduino mega, you scan down the "Function" column in the table until you see "D0"
Once you locate "D0" look to the left in the "Mega" column and you will see a 22
So that means that you hook the GLCD pin for D0 to the Arduino Mega pin 22.

You will do this for all the pins on your glcd.
You must also hook up the GLCD reset pin, contrast pot, the backlight and the power connections for
the glcd. The playground page has quite a bit of information for how to do these things.

Read through the playground page and come back with any additional questions.

--- bill


I am not getting any display on my glcd jhd12864e when my connections are according to
http://playground.arduino.cc/uploads/Code/GLCD_Documentation.pdf
can anyone help me

bperrybap

For everyone following this thread and using the GLCDv3 library,
I will no longer be supporting this library.
I have instead decided to create a new glcd library and will be offering support for that.
The new library, called openGLCD, is a fork of the GLCDv3 library code.
The openGLCD library has many bug fixes, updates, and new features over GLCDv3.
While it is not 100% backward compatible with GLCDv3 it currently does offer
a GLCDv3 compatibilty mode which should allow most sketches to work with
only changing the header includes.
The biggest change from GLCDv3 is that openGLCD is released under GPL v3 instead
of the LGPL 2.1+ license that GLCDv3 used.
NOTE: This means that openGLCD can not be used on closed source projects.
openGLCD has not yet been officially released.
To read more about or even try the openGLCD library, it can be found on bitbucket:
https://bitbucket.org/bperrybap/openglcd
Please post any questions or support issues for this library in new threads.


For anyone still using or needing support for GLCDv3 I will leave this thread open
for anyone that would like to continue to support it.

--- bill

Chumbaz

I have this display:

http://ebmstore.it/index.php?route=product/product&path=139_140_142&product_id=805

it is based on the ST7920 chip and can be used in serial SPI mode.

Is it possibile to use this library or not? I have searched all over the web but I can't have an answer and i did several experiments but no success. Thank you.

bperrybap

Unfortunately, the ST7920 display is not supported by the GLCD or openGLCD libraries.
u8glib does support that chip.
http://code.google.com/p/u8glib/
--- bill

kikiz

Hello everybody,

I bought a graphic lcd a few weeks ago but i'm able to make it work.
I'm using an arduino uno (i also tried with a mega) but that's the same.

I tried the diags sketch but it seems to have a reset problem :

Reported Arduino Revision: 1.6
--------------------------------------------------------------------
GLCD Lib Configuration: glcd ver: 3 glcd_Device ver: 1 gText ver: 1
GLCD Lib build date: Mon Dec  5 01:50:07 CST 2011
GLCD Lib build number: 442
Panel Configuration:ks0108
Pin Configuration:ks0108-Arduino
--------------------------------------------------------------------
GLCD:ks0108 DisplayWidth:128 DisplayHeight:64
Chips:2 ChipWidth:64 ChipHeight:64
CSEL1:14(PIN_C0) CSEL2:15(PIN_C1)
RES:19(PIN_C5) RW:16(PIN_C2) DI:17(PIN_C3) EN:18(PIN_C4)
D0:8(PIN_B0) D1:9(PIN_B1) D2:10(PIN_B2) D3:11(PIN_B3)
D4:4(PIN_D4) D5:5(PIN_D5) D6:6(PIN_D6) D7:7(PIN_D7)
Delays: tDDR:320 tAS:140 tDSW:200 tWH:450 tWL:450
ChipSelects: CHIP0:(14,0x1, 15,0x0) CHIP1:(14,0x0, 15,0x1)
Data mode:
d0-d3:nibble mode-Non-Atomic
d4-d7:nibble mode-Non-Atomic
--------------------------------------------------------------------
Diag Loop: 1
Initializing GLCD
GLCD initialization Failed: RESET wait Timeout (status code: 2)



As you can see, reset is wired to analog5 because when i wire it on reset pin,
i can't upload the sketch => avrdude: stk500_getsync(): not in sync: resp=0x00.

To use analog5 as reset, i uncommented that #define glcdRES          19    // Reset Bit on
ks0108_Arduino.h.

I don't know what else to do...
Can anybody help me?
Thanks
Kikiz

bperrybap

kikiz,
I can help you if you are willing to switch to using openGLCD instead.
I no longer support the GLCDv3 library: http://forum.arduino.cc/index.php?topic=56705.msg1509585#msg1509585
--- bill

kikiz

Hello Bill,

I'm going to try your new library tomorrow. But i think your link is not good
because it send me to the same html page. I already download openGLCD but
i didn't find a forum to help me. Tell me where to contact you to talk about openGLCD.

Thank you.
Regards,
Kikiz

kikiz

Hello Bill,

I just tried the diags sketch of your library openGLCD but i got the same problem.

Here is the result of the diags :

Serial initialized
--------------------------------------------------------------------
Reported Arduino Revision: 1.0.6
F_CPU: 16000000
--------------------------------------------------------------------
Lib Configuration: openGLCD ver: 1.0rc1 build: v1.0rc1
Panel Configuration:ks0108-128x64
Pin Configuration:ks0108-Uno
--------------------------------------------------------------------
GLCD:ks0108 DisplayWidth:128 DisplayHeight:64
Chips:2 ChipWidth:64 ChipHeight:64
 CSEL1:A0(PIN_C0) CSEL2:A1(PIN_C1)
 RW:A2(PIN_C2) DI:A3(PIN_C3) EN:A4(PIN_C4)
 D0:8(PIN_B0) D1:9(PIN_B1) D2:10(PIN_B2) D3:11(PIN_B3)
 D4:4(PIN_D4) D5:5(PIN_D5) D6:6(PIN_D6) D7:7(PIN_D7)
Delays: tDDR:320 tAS:140 tDSW:200 tWH:450 tWL:450
ChipSelects:
 CHIP0:(A0,0x1, A1,0x0)
 CHIP1:(A0,0x0, A1,0x1)
Data mode:
 d0-d3:nibble mode-Non-Atomic
 d4-d7:nibble mode-Non-Atomic
Backlight: <Not configured>
--------------------------------------------------------------------
Diag Loop: 1
Initializing openGLCD
GLCD initialization Failed: RESET wait Timeout (status code: 2)

Thanks for helping me, i'm desperate.
Kikiz

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy