Ssd1306 128x32 i2c not working after few month in storage

Hallo,
I have something problem about my 0.96" oled display. I have 3 pcs OLED 0.96" display and all not working after few month or maybe a year not used.
I just tried with the same program but the display is blank.
I'm sure the display is working before and one of those is still soldered in my pcb project.
Do you have any clues what can I do?

Thank you.

  • Show us your wiring.

Is a breadboard involved?

Sorry I'm in office now. But I'm 100% sure my wiring is correct. It is just 4 wire Vcc, Gnd, SDA and SCL.

Only with jumper cables for the spare parts and I have soldered the other OLED to the PCB. Both do not work after storage in the warehouse. The oled that I soldered worked last year and then I kept it in my warehouse. And now after I turn it on the display doesn't work.

I guess... your warehouse turned out to be a wearhouse.

Were they stored in air tight anti-static bags out of direct sunlight in a temperature controlled environment?

I keep the module in the carton box. Average temperature is 30 deg. celcius.

And is it impossible what you connect the displays to (whatever that is, care to tell us?) is broken? Is that board the same the displays was connected to before?

Hi ledsyn,
I have 3 OLEDs display 1 soldered to pcb and I apply to electric panel. I'm sure all of my oled working last year and the other oled I have tried "Hello world" with wire jumper last year then the pcb I dismantle from panel and kept without power around a year. The last I try to power on the oled not work.
Sorry with my bad english.

We have already established that, but you do connect those OLEDs TO something, an Arduino or similar, right?

???? --> OLED

Tell us what ???? is.

Edit: You should provide links to the OLED screens specification or datasheet, and same for the "Arduino".

????? = arduino
Sorry with my bad english.
I use the simple language to avoid miss communication..

See my problem step.

  1. I tried Ssd1306 128x32 i2c connect to arduino nano and running well.
  2. OLED not used a year.
  3. I try again (step no.1) with the same program but not work
  1. Does the power LED on the Nano light up?
  2. I there power on the OLED?
  3. Does the Blink example work on the Nano?

No.1 2 and 3 are ok
I test with i2c scaner found address 0x3C for my OLEd

Post your code inside code tags <>.

Do you have a multimeter?

Test for continuity between the Nano and OLED data pins , A5 CLOCK ,A4 DATA ,, WITHOUT ANY POWER ON THE PROJECT.

Does any of the examples in the Library work?

I think with I2C scanner result show the communication between nano and OLED is correct.
tomorrow I'll share my code.

Yes , that's correct.

Something strange is going on with your OLED'S.

I'm still waiting for the new module to ensure that the old module is damaged due to storage or not being operated for a long time.

Here is my code:

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

uint16_t l = 0;
uint16_t m = 0;
uint8_t n = 0;

U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0);

void setup(void) {

  u8g2.begin();  
}

void loop(void) {
  char m_str[6];
  char l_str[6];

  strcpy(m_str, u8x8_u16toa(m, 5));    /* convert m to a string with two digits */
  strcpy(l_str, u8x8_u16toa(l, 5));    /* convert l to a string with two digits */

  u8g2.firstPage();
  do {
  u8g2.setFont(u8g2_font_courR10_tf);  // choose a suitable font
    u8g2.drawStr(0,10,"adc PV ");
    u8g2.drawStr(55,10,"=");
    u8g2.drawStr(70,10,m_str);

    u8g2.drawStr(0,23,"adc SP ");
    u8g2.drawStr(55,23,"=");
    u8g2.drawStr(70,23,l_str);
    
    u8g2.drawHLine(2, 30,n);
  } while ( u8g2.nextPage() );
  delay(10);
  l=n;
  m++;
  n++;
  if ( m == 32767 )
    m = 0;
  
  if ( n == 127 )
    n = 0;
    
}

Did you check the ID for the OLED , it must be changed in the library since it is not in the code you posted , just guessing maybe the OLED'S is faulty.

How to change the address in this library?