Hi everybody, I've recently bought a mega 2560 and it came with a SG12864J4 glcd. I've done a few basic led sketches and have got the hang of it.
Anyway my question is, when trying to use the lcd I cant seem to even get it to light up, I've triple checked my wiring against the data sheet and its all fine.
Is the lcd stuffed and is there anyway to test it? Should the backlight come on if I connect power to power pin and gnd to gnd?
Sorry about the long question, I'm a complete noob to this.
Anyway my question is, when trying to use the lcd I cant seem to even get it to light up, I've triple checked my wiring against the data sheet and its all fine.
Is the lcd stuffed and is there anyway to test it? Should the backlight come on if I connect power to power pin and gnd to gnd?
What information did you come up with when you searched for 'SG12864J4'?
First thing is to make sure you have glcd v3 the older v2 library does not work
on the mega Arduino boards or with Arduino 1.x.
The glcd v3 library includes lots of documentation to assist in hooking up the module
and a bit of information on debugging some common issues.
From looking at the datasheet you linked to, the panel you have uses pinout B so you can
use the table to see which Arduino pins should be wired to which glcd module pins.
If you have any questions about the wiring please ask because miswiring can potentially damage
the glcd or the Arduino.
After it is wired up, run the diag sketch and it will offer additional information on the serial port
that can help diagnose any issues.
As far as the backlight goes, if you hook up the backlight correctly it should light up
without having any other wires connected to the arduino or any software running.
(backlight uses glcd module pins 19+ and 20- )
I'm not sure what current limiting resistor that module needs, if any, so make sure to use
one, at least initially, to avoid potentially damaging the backlight.
Unfortunately for everything else, pretty much all the wiring has to be correct and
the library running on the Arduino for anything else to show up on the glcd.
Oh and one final thing since I've been seeing this quite a bit lately.
Any connections used to the glcd module need to be soldered. I've seen cases where the
glcd module is placed on top of a 20 pin header in a bread board.
This will not work. If using wires or a 20 pin header,
all 20 connections to the glcd module must be soldered to the holes in the glcd module.