Pages: [1]   Go Down
Author Topic: Hell with QY-12864bg  (Read 3551 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 38
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
                                   
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 38
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 32
Posts: 4245
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: February 11, 2011, 11:36:42 pm by floresta » Logged

Germany
Offline Offline
Edison Member
*
Karma: 132
Posts: 1440
If you believe something is right, you won't see what's wrong (David Straker).
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 38
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 1
Posts: 38
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: February 12, 2011, 02:12:43 pm by todda » Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 32
Posts: 4245
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What about the reset (RST) pin?

Don
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 38
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 1
Posts: 38
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: February 13, 2011, 03:53:12 am by todda » Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 32
Posts: 4245
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: