1.3" 128x64 OLED I2C Problem/Malfunction

Hi guys,

new here, signed up because I am dealing with an issue I simply cannot get solved by myself:

I am using the following 1.3 inch OLED I2C Display in my coffee machine connected to my Arduino Nano via I2C. Hooked the display up to an external 5V-power supply for not having to rely on the Nano's 5V output.

I have a 328 Nano that runs a PID code for keeping the exact brewing temperature. I am trying to get the display to work following this example.

The I2C-Scanner finds a device at 0x3C which I changed in the example. All that happens is that I get a few fuzzy blue lines at the bottom of the display (see attachments).
Also tried using the U8g2 Library like so:

#include <U8g2lib.h>
#include <Wire.h>

U8G2_SH1106_128X64_NONAME_1_HW_I2C u8g2(U8G2_R0);

void setup(void) {
  //u8g2.setI2CAddress(0x78);
  u8g2.begin();
}

void loop(void) {
  u8g2.firstPage();
  do {
    u8g2.setFont(u8g2_font_ncenB14_tr);
    u8g2.drawStr(0,24,"Hello World!");
  } while ( u8g2.nextPage() );
}

That only leads to a completely black screen. Tried the SSD1306 instead of the SH1106 constructor as well, did nothing either.

Might the display be simply broken?

Any help/tips are greatly appreciated!

I can't find your constructor reference
U8G2_SH1106_128X64_NONAME_1_HW_I2C
in U8g2lib - but that could just be me not looking in the right place. :roll_eyes:

hmmm... the refered ebay article got removed because it might be damaged or list. Strange.
This indeed indicates a damaged display.
Otherwise you could test the display with the u8g2 logo: Will it display more lines?

Oliver

Thanks for your input guys.

Tried several different u8g2 constructors, none of them seem to work. Might two missing pull-up resistors for the i2c bus be the issue?

I ordered a display from amazon now, seems a little more trustworthy than the ebay offer. Will keep the thread updated.