GLCD problem with arduino MEGA 2560.

I'm having some problems with my GLCD and arduino mega. I'm not really sure about how to connect the GLCD to arduino. One of the problems is that i don't know what controller my lcd uses. The model of the GLCD is "J12864", but i can't even find the datasheet. Can you help me? Btw, i'm using the "HELLO WORLD" example that comes with the GLCD library.

http://arduino.cc/playground/Code/LCD12864

@abrookfield: Your link won't really help until he determines that he has the appropriate controller. Don't let the magic numbers 12864 throw you off, they just mean that the display has 128 rows with 64 bits in each row.

@nicomatex: You may get some help identifying your board and/or controller if you post some nice clear photos of both sides of the display.

Don

Pictures of my display:

Back:

Front:

Should I post them in a new topic?

Should I post them in a new topic?

No, they are appropriate to this topic, but they didn't provide too much information other than you know that they haven't been lying around for several years.

You should look for "GLCD Library Version 3" and see if anything there looks familiar. Hopefully Bill (bperrybap) will spot this thread before long and give you a hand.

Don

Yay! I found it! the controller is ST7920 . But now, my problem is, how do i connect it to Arduino Mega? Because the wiring of this page: Arduino Playground - LCD12864 , doesn't work for Arduino Mega because pins 14,16,17 and 18 are Communication pins (TX).

The ST7920 pinout is close to the ks0108 but they are different and work very differently.
Notice the PSB signal and the NC (no connect) on the header holes on ST7920?
The KS0108 will have chip select lines instead (CS1, CS2, etc...)

The ST7920 is not currently supported by the glcd library.
The good news is Oliver's u8glib does support it:
http://code.google.com/p/u8glib/

--- bill