Glitch on OLED 1.3”

This is the first time I use OLED
I am running the example code
I set the address to 0x3C and pixels 128 by 64
The first line of OLED shows what I sent but the rest of screen is white, WHY?!

Please post a link to the actual display that you have bought. e.g. Ebay sale page.
Then we can see the pcb side of the display.

Please quote the library that you have installed by name (or link).
Please quote the library example sketch you are running (by name).

This information is only a few bytes. can be typed in seconds. Copy-pasting a link is even quicker.
Your photo is 1.9MB and does not even show your wiring properly.

I suspect that you have a SH1106 controller. Go to the IDE Library Manager. Search for a suitable SH1106 library.
If you edit a constructor statement e.g. in U8g2lib examples. Copy-paste the new constructor statement.

David.

If that screen was a 405 line TV, I'd start looking for the horizontal and vertical hold. :slight_smile:

OK this is a long shot.....
The arduino you are using needs 5V. You are powering the display with 3.3v.
First check that the display WILL operate at 3.3v (some OLEDs do, some don't).
I accept that fact that the I2C ought to handle the logic level differences here (as it's open-collector). But I have seen issues like this before.
So, first step would be to verify the necessary supply voltages.
Secondy, you could try a simple test sketch using an SSD1306 (I would be 99.8% sure that display uses SSD1306). There is a sample SSD1306 program on this site (DISCLAIMER, that is my site) bezelsanddisplays.co.uk/

I would be 99.9% sure that it is a SH1106. Or possibly a SSD1315.
Without a link to the actual item that you have purchased we can only guess. (Alternatively a clear photo of screen and photo of pcb but this is MUCH more effort)

The SH1106 has different register set to the SSD1306.

David.

1 Like

Hi amnahbukair,

I see an A4 and A5 of the Nano connected. This must be an i2c, 4 pin, I guess a SSD1306 controller perhaps 128*64. I wouild (again) guess an U8G constructor such as U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE | U8G_I2C_OPT_DEV_0);

David, you're right: no data no business.

regards, Photoncatcher

This topic was automatically closed after 96 days. New replies are no longer allowed.