2.42" OLED SSD1309 with U8GLIB

zdravke:
Thanks, we are getting somewhere. I assumed that R13 and R15 should be the same value as R17. Now I have replaced both with 0R. I also pulled RES with 10K up to Vcc, and I am getting response from 0x3C. Should it be pulled with lower value?

Nothing yet on the screen though. At some point I got something, but not sure which combination of params was it.

U8GLIB is too slow over I2C so I was hoping that SSD1306Ascii could be made to work with it.

david_prentice:
I2C is not unreasonable. I would use Adafruit_SSD1306 library first. But I am sure that u8g would be fine too.

First step is to check DC. Does it have an existing 10k pulldown on the pcb? It is essential that DC has a stable value. Otherwise it will not know whether it is 0x3C or 0x3D.

As a general rule, a 128x64 monochrome is always going to be fast. There is only 1kB of data to repaint the whole screen.

David.

Hi mates,

I know the thread is old, but I want exponation my solution for a future people have the same problem with this display, because the manufacture don't gift any information o datasheet.

I'm working with same dislplay of Zdravke:

http://www.befr.ebay.be/itm/181943860429

Now, I have the display working properly in I2C with the library "Adafruit_SSD1306 library". David_prentice is right, first you need to remove R17 and put 0R in R13 and R15. About CS pin, the display works if you put to GND or not, both is correct, for example I put 0R in R18 it's the same that CS pin to GND, and it's working perfectly. About RES pin needs connect to the Arduino output pin, and you can put one resistor of 10k pull-up to 5Vcc (I did). About DC pin is the adress of display in the bus I2C, in this case if you use "Adafruit_SSD1306 library", you need to a put pull-up of 10K to 5Vcc, because if:

DC connect to GND, adress is 0x3C
DC connect to 5Vcc, adress is 0x3D

The "Adafruit_SSD1306 library" default use 0x3C for 128x32 display and 0x3D for all others, then we use de 0x3D because the display is 128x64.

Summary if you use this display in I2C and "Adafruit_SSD1306 library":

-R17 = Remove
-R13 = 0R
-R15 = 0R
-R18 = 0R (CS pin to GND)
-RES = connect to Arduino Output pin with a 10K pull-up
-DC = connect a 10K pull-up. (adress=0x3D)

I hope help somebody about this thread.

Charlie

DirecciónDisplayI2C.png