Need some help with my T6963-based display!

Hey!
I've obtained a couple of these T6963-based displays (http://pdf1.alldatasheet.com/datasheet-pdf/view/163028/BOLYMIN/BG12864F.html), which would be nice to use for my robot project.
However, I'm not really sure how to get this thing working. It doesn't seem like this display uses the more common libraries out there, and it contains a couple of pins who are new for me.
I've been using a modified library with an example from another thread on the forum (http://forum.arduino.cc/index.php?topic=22624.0), but the display stays blank.
However, I think that the problem is the number 17 pin on the display, which I don't know what to do with. It says that it needs negative voltage (-5V), but how do I produce negative voltage?
Maybe its the library that isn't compatible with my display, the number 17 pin, or a combination of both.

What do you think?
All help is really appreciated!
By the way, you have to do two clicks in the link to get to the datasheet.

// Andreas

U8GLIB_T6963_128X64(d0, d1, d2, d3, d4, d5, d6, d7, cs, a0, wr, rd [, reset])

from Google Code Archive - Long-term storage for Google Code Project Hosting. might work.

cs = /CE
a0 = C/D

The datasheet claims, that the -5V is generated and available at Vee: Place a variable resistor of 10K .. 20K between GND and Vee. Feed the output of the wiper of the variable resistor into V0.
Connect FS to GND. MD2 probably also needs to be connected to GND, but i am not sure. HLT must be connected to +5V.

Let me know if this works. The U8GLIB_T6963_128X64 constructor was not tested very much...

Oliver (u8glib)

Hey! Thanks a lot!
I now got the display itself working, but it's only showing a black square on the screen.
I've installed the library you linked, but I'm not sure what to do next with the code you gave me.
I also tested the example-code from the libraries, but they gave me an error saying "ug8g was not declared in this scope".
Could you give me a complete "hello world" example?

// Andreas

I now got the display itself working, but it's only showing a black square on the screen.

This is very good. You need to trim your variable resistor in that way, that the black pixels just disappear.

U8glib supports many displays. You need to uncomment the correct display constructor first:

// setup u8g object, please remove comment from one of the following constructor calls
// IMPORTANT NOTE: The complete list of supported devices is here: http://code.google.com/p/u8glib/wiki/device
...
//U8GLIB_T6963_128X64 u8g(8, 9, 10, 11, 4, 5, 6, 7, 14, 15, 17, 18, 16); // 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7, cs=14, a0=15, wr=17, rd=18, reset=16

Additionally you need to inform U8glib how the display is connected to your Arduino board. For example if D0 is connected to Pin 8 of your board, the the first argument must be 8 for the constructor.

Could you give me a complete "hello world" example?

Could be done, but I need to know how the display is connected to your Board (see above).

Oliver

Alright, I think I get it!
But since I don't have that many digital ports, I have to use my analog as well.
So my question now is: how do I define analog outputs?

So my question now is: how do I define analog outputs?

A0 = 14
A1 = 15
A2 = 16
...
see also: http://www.arduino.cc/en/Reference/AnalogPins

Oliver

Hi! Yeah I figured it out by myself and got it working!
Some characters looks strange tough, like if only half the character is visible :~
Might just be bad contact between my jumper wires, or could it be the program?

// Andreas

How did you connect FS and MD2?
Will there be a change if you connect MD2 to GND or 5V?
You could also post a picture...

Oliver

Oh, I haven't connected those!
MD2 to GND/5V you said.. and for the FS?

Edit: I got a "HLT" pin as well, which I don't know where to connect.

// Andreas

Hi

Connect FS to GND. MD2 probably also needs to be connected to GND, but i am not sure. HLT must be connected to +5V.

FS is discussed on the u8glib page as well. The datasheet is also a good source of information regarding these pins.

Oliver

Hey!
Thanks a lot for all your help!
Got it all up and running now :slight_smile:
There's however one thing that still bother me - the display is pretty much eating all my outputs on my UNO.
Is there any way to solve this? I know there's backpacks available for the more common displays, but what for this one?
Would connecting the display to something like a https://www.sparkfun.com/products/11114 and then control it by serial with my UNO be a proper solution?

// Andreas

Hi

I am glad to read that your display is working. I also agree, that a lot of pins are required for this type of controller. More modern controller provide serial interfaces (I2C, SPI) which use only a view number of pins.

Your idea of having an additional graphics processor sounds nice. However, inexpensive serial displays are also available: http://www.buyincoins.com/new_en/details/lcd12864-graphic-display-module-5v-3v-logic-power-supply-blue-screen-backlight-product-11573.html

Oliver