raul,
There is some sort of a wiring issue.
When I look at the image, I don't see exactly the same thing on the left and right sides.
I see "right2" only on the right side and not on the left.
But wiring issues can create some very strange effects.
What did you use to create the text on the image shown?
I'm curious because with the failure that diags is reporting any
attempts to use the display would normally hang waiting on BUSY.
Were there any wiring changes between whatever created
the display image and when diags were run?
If you run your test sketch after diags fails does it still produce the same results?
Assuming that there were no changes between the sketch that created your sample image
and the diags, then the sample image offers some useful information.
It indicates that nearly everything is wired and working correctly and that
there is probably an issue in the wires or connections themselves rather than
where the wires are connecting.
In other words there is probably a bad connection within the wires.
Whenever you see data duplicated between portions of the display, it often indicates
a chip select issue like a broken chipselect wire or poor connection.
Carefully check your chip select wires. One or both of them may not
be making good connection.
Whenever you see "BUSY" or "RESET" timeouts from initialization, it can be many things
but given you were able to draw a character, I'd focus on the RW, DI, and chips select lines.
My guess is that one of those wires is either not making connection or is marginal and
only making partial connection.
Thank you Bill, you were right, there was a wire connected in an wrong pin on Arduino.
Ok now I tried also the GLCDdiags everything works fine and here is the report:
Megaionstorm,
The library and its configuration system handles that.
There is mention of a few 192x64 panels that people have used
on the glcd/ks01080 playground wiki.
Also you will see in the panel config files that you can specify
the number of chip lines and the chip select levels used to
select each individual chip.
The interface should be panel B according this and the pinout from the ebay URL:
I wired everything, but the LCD displays nothing only the backlit works, I can also change the contrast with the variable resistor.
I'm using the newest library DLed from http://code.google.com/p/glcd-arduino/downloads/list
I have an UNO. Can you advise something how to proceed?
It isnt' clear what type of display you have.
The picture from that ebay auction does not match the information in the technical diagrams.
The picture is of a st7920 lcd and the technical information which includes the pinout is for
a ks0108 module.
I'm assuming you actually have a ks0108 (vs what is shown in the photo) since the diags is working.
My suspicion at this point is that the contrast pot is miswired.
What is each of the 3 pins of the contrast pot hooked up to?
If it was incorrectly wired in the past, even briefly, it is also possible that the VEE power supply
was blown. But if that is the case you won't seen any pixels.
When you say you can change the contrast, you are seeing the display change
from no pixels on to all the pixels on?
Can you show a clear closeup photo of the board and its wiring
and in particular the wires going to the contrast pot.
I have an HJ19264A GLCD I purchased from eBay. It was relatively inexpensive. However, it didn't clearly match A, B or C models in the docs (and the data sheet was in Chinese), so I spent a great deal of time hooking this up. I thought I'd share the connections in case others are having this problem.
GLCD Pin Arduino Pin
VSS Ground
VDD +5v
VO Middle Pin 10k pot
RS 36
RW 35
E 37
DB0-7 22-29 (in order)
CS1 33
RST reset
CS2 34
CS3 32
VEE first pin of 10k pot
LA +5v
(last pin of 10k pot goes to ground)
I'm having a lot of problems to get my display work with Arduino UNO rev3.
I have this display: http://www.sparkfun.com/products/710 bought from sparkfun.
I did all the connection like specified in the documentation for the panelA but I always have all dark pixels and i read nothing else also when i upload the hello world sketch.
if i carefully rotate the potentiometer i can only have two situations: all pixels dark and all pixel blank.
All the connections are correct and this is the diagnostic report:
Initializing GLCD
Displaying ChipSelect Screens
Serial initialized
Sounds like the power and contrast pins are wired up correctly.
The diags seems to be reading all zero bits.
This is more than likely due to some miswiring.
Check the wiring very carefully, to ensure that the wires
from the Arduino pins are connected to the glcd function pins as
indicated in the diagnostic output.
Pay particular attention to the control lines: R/W, DI, EN, CS1, CS2
Is there anything else hooked up to the Arduino?
Can you post some clear closeup photos of your wiring as well as wide shot
that shows all the wiring?
All the wires are connected and soldered as specified in the library docs for panelA displays.
Sometimes, it happens that if i upload "life" example, the display works very well but if i shutdown and power on arduino again, it does not work and display strange characters.
Sounds like some sort of intermittent issue.
If diags is reporting an error, there is still a problem.
Since it sounds like it works some of the time, here are some likely possibilities:
wiring issue
This could be anything like a loose wire or improper solder joint, using wires that are too long,
to an actual mis-connected wire.
In particular, what is the glcd modules reset pin (glcd module pin 14) connected to?
Some glcd modules are very picky about the reset signal.
bad or insufficient power.
Can you measure the voltage between pin 1 and pin 2 of the glcd module?
Is everything powered from the same power supply?
bad glcd module.
This tends to be quite rare but it does happen.
Was the glcd module ever mis wired and powered up? even briefly?
Can you post some clear photos of your setup with closeups of the solder connections
on the glcd and a photo that clearly shows all the wires and their connections?
These are some photos about the display.
The first and the second photos are for Hello World example while the third is for Life example.
I didn't take the photo about the wiring since it is not possible to understand something since there a lot of wires, all with the same colour.
However, they are all ok since display works fine sometimes.
I have no other device attached to my Arduino UNO rev3, only the display.
I have Serial library since i write something on the serial port just to see if my program is working.
Supply voltage is +5VDC from Arduino which is also the source voltage; i'm not using any additional source.
The module was never been connected with a wrong configuration.
The glcd memory is mapped 8 bits at time vertically. Each 8 vertical pixels is
written at once. The text is corrupted within that 8 bits.
It still could be a wiring issue.
Broken, disconnected, or poor connecting wires can create some really strange problems
as the signals float around and vary depending on loading and what is being done.
Diags is going to be the best bet for diagnosing the problem.
From looking at the display data bits 2 and 3 (glcd module pins 6 & 7) seem to be having issues.
Take a very close at the wires on those connections.
When diags runs what does the initial animation pattern look like?
(It should be a triangle from upper left to lower right).
Does diags get past the initial walking ones test?
You measured the voltage at pins 1 & 2 on the glcd at exactly 5v?
Can you get a clear shot of the wires so I can see the solder joints?
What is on the other end of the wires?
Are the wires going into a breadboard, or directly into the Arduino board?
How long are the wires and do they have any breaks or re-connections in them before
being connected to the Arduino headers?
Between pin1 and pin2 there are 5.01VDC.
I check the continuity with a tester on all the connections and they are all ok.
Unfortunately, i tried to take a photo about the wiring but it is not clear since there are too many wires.
Pins 6 and 7 are ok.
Wires are very short, about 10 centimeters and they do not have reconnections or breaks: they directly go to the atmel microcontroller.
I'm using a perfboards, so all the wire are soldered.
However, i tried to connect and re-connect the display to my arduino several times and all the time connections are ok but there are strange characters on the display.
The most important thing is that when I run the diagnostic sketch, I'm able to see the triangle which is under all the strange characters and the black pixel lines.
As you can see in the previous photos, sometimes the correct characters are in background since strange characters and black lines are foreground.