KXW12864J-4 not working with a MEGA2560

Was wondering if anyone has managed to get one of these boards working with the GLCD version 3
I have only had an Arduino MEGA 2560 for a week and it came with this board, I found a data sheet for it and it seems to match
the GLCD ks0108 pin outs in columb B of the graphics LCD library page. The screen lights up and I can vary the contrast with a pot coupled to pin 3 from pin 18 and ground. Thats about all it does. I am not sure what to do with the reset pin17 I have tried coupling it to 5V and gnd and leaving it not connected.
I have loaded the sketch from the ks108 library I am not sure if you have to modify it in any way to run the MEGA ? I have tried loading the original code importing the library and compiling it then sending it to the MEGA. I have also tried removing all the other includes apart from the one for the MEGA. and still have the same result no display. I have been thrrough the connections half a dozen times all seem correct. I tried placing an LED on a flying lead and checking the data pins to see if there was any pulsing on them pin 12 and 14 (pins 27 and 29 on the MEGA ) were pulsing the LED but the signal was coming out of the KXW12864J-4 board not the Arduino. Does anyone know of any tests I can run on the board to just get it to display a single character or if I can wire LEDS directly to the MEGA pin outs to see if the sketch is the problem.

Thanks in advance for any help you can provide me with I have just ran out of Ideas of what to try to find the problem.

It's all good now my problem was I had downloaded the ks108 library I should have downloaded the glcd all is working how it should.

Hi

I think I have a similar issue with the 12864. Mine is a TM12864L-1, ks0108 type. I connect it to Arduino board, follow the column B on GLCD guide as you did. Pin 17 caused the problem when I connected to the RESET pin (mega2560), the sketch can't upload and with the error COM port in use (the serial port on PC which connects to USB). Disconnect pin 17, the upload works fine.

I can see the panel light up and nothing else, the pot (10K) doesn't work when I turn the nob ( the manual requires 20K pot).
I use the new GLCD ver.3 library.

Do you connect your board exactly as column B on the guide ? How do you resolve with pin 17 ?
Thanks.
Tony

Pin 20 is at one side of the POT, pin 19 has a resistor (i use a 220ohm) and then plugged to a 5v, pin 18 is connected to the other side of the POT. Pin 3 is connected to the middle of the POT.

PS: POT, I mean a 10k potentiometer.

Regards,

I.D.E.

Guys,
There seems to be some issues with certain glcd modules affecting the autoreset circuitry.
I am assuming that certain glcds have a strong pullup on their reset signal.
There are three options.

  1. leave the glcd module RST pin disconnected (may not work in all cases)
  2. connect the RST (reset) pin from the glcd module directly to vcc.
  3. alter the pin configuration file to allow the library to control the reset signal.

Try #1 first.
If that doesn't work, you can try either of #2 or #3.
#3 is ideal if you can spare the pin.

To make this change you have to edit the pin configuration file.
glcd/config/ks0108_Arduino.h (arduino 328 based board)
glcd/config/ks0108_Mega.h (mega based board)

Look near the bottom for the line that configures the pin for reset and
remove the comment for the pin and use that pin # to connect to the glcd modules
reset pin.

I need to update the documentation to add this to the troubleshooting.

--- bill