Go Down

Topic: Hell with QY-12864bg (Read 3 times) previous topic - next topic

todda

Hi All,
My 1280mega has finally arrived allong with the LCD a QY-12864bg.
I've had a play with the board and some LED's and now I want to get the LCD working.
I have tried wiring it up like the example here..http://arduino.cc/en/Tutorial/LiquidCrystal
but with obviously adding 5vdc with a 200? resistor to LED+ and LED- to GND.

I get the funny feeling that a)I'm wiring it up incorrectly, as I'm not using a specific scem
                                      b)I'm not using the correct drivers, I've seen GLCD mentioned

It's a 128 x 64 back lit LCD with P/N:QY-12864bg
The exact thing I bought can be seen here..http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=270667842473&ssPageName=STRK:MEWAX:IT

The pins are as follows;
VSS
VDD
VO
RS
R/W
E
D0
D1
D2
D3
D4
D5
D6
D7
CS1
CS2
RST
VOUT
LED+
LED-


Please can someone help get this thing to at least get this thing to display some text on the screen, I can work from there.

P.S. I'm going to need help with both wiring and code
                                   

todda

Ok using the following setup I've managed to get it to display something but its just a scrambled mess.


floresta

#2
Feb 12, 2011, 05:28 am Last Edit: Feb 12, 2011, 05:36 am by floresta Reason: 1
Quote
I get the funny feeling that a)I'm wiring it up incorrectly, as I'm not using a specific scem
                                     b)I'm not using the correct drivers, I've seen GLCD mentioned


Correct for both (a) and (b).

If this GLCD is like most then you have your connections reversed end for end.  The backlight is generally connected to the highest numbered pins and the power for the LCD controller is connected to the lowest numbered pins.  Pin 18 is a negative supply that feeds one end of the pot.  The wiper goes to pin 3 and the other end goes to GND (VSS).

The LiquidCrystal library is designed to work with Character Mode LCDs and you have a Graphical LCD.  Search for GLCD articles and libraries.


Don

olikraus

It could be this display:
http://www.sure-electronics.net/mcu,display/DE-LM112_Ver1.0_EN.pdf
So you might try the KS0108 library
http://arduino.cc/playground/Code/GLCDks0108

Oliver

todda

I've managed to sort it!!! woohoo!
I will post the correct scem later as I'm at work

todda

#5
Feb 12, 2011, 04:30 pm Last Edit: Feb 12, 2011, 08:12 pm by todda Reason: 1
here we go,

GLCD          ARDUINO MEGA
LED-                     200?R --> GND
LED+                     5VDC
VOUT                    POT3
RST
CS2                       34
CS1                       33
D7                        29
D6                        28
D5                        27
D4                        26
D3                        25
D2                        24
D1                        23
D0                        22
E                          37
R/W                      35
RS                        36
V0                        POT2
VDD                      5VDC
VSS                       GND


POT1                     GND

floresta

What about the reset (RST) pin?

Don

todda

to be honest it doesn't seem to make a difference if i connect it or not, so I left it off.

todda

#8
Feb 12, 2011, 07:08 pm Last Edit: Feb 13, 2011, 09:53 am by todda Reason: 1
actually I've just noticed if I have the reset cable attached I can't flash updated code to the card.

don't laugh if this is how it should be..lol

floresta

Quote
to be honest it doesn't seem to make a difference if i connect it or not, so I left it off.

It looks like they could have saved some money by leaving that pin off when they fabricated the chip.

Don

zaphodikus

Having hell too. What chipset is the QY-12864bg? Was it a KS0108?

Go Up