Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OLED - SH1106 display malfunctions #2500

Open
FurqanChaudhary opened this issue Sep 2, 2024 · 2 comments
Open

OLED - SH1106 display malfunctions #2500

FurqanChaudhary opened this issue Sep 2, 2024 · 2 comments
Labels

Comments

@FurqanChaudhary
Copy link

Hello,
I have been working on a project that involves two OLED displays, both of the SH1106 type. One display has the I2C address 0x3C, and the other has 0x3D and both are connected to the same I2C line. Both displays function perfectly, but after a random period, the information on one of the displays becomes corrupted or misplaced, while the other continues to work correctly. The issue occurs unpredictably—sometimes within 5 minutes, while other times it may not happen for over 24 hours. Could you please suggest what might be causing this problem?"
please see attached photos

bad
good

@olikraus
Copy link
Owner

olikraus commented Sep 2, 2024

Each display contains some bytes of configuration RAM. It seems that the RAM content might get corrupted after a while, especially if the power supply is not stable. Ideas:

  • Add a capacitor 1-10 uF at the power supply lines of the OLED
  • Ensure proper power supply in general
  • Refresh RAM content after some minutes (call u8g2.begin()). Drawback: The display will do a full reset during that operation.

@FurqanChaudhary
Copy link
Author

I am powering both OLED displays with a battery, so I believe the power supply is stable and shouldn't be the issue. Regarding capacitors, I’ve tried using various values, but unfortunately, they didn’t make any difference.
I also experimented with calling the u8g2.begin function every 5 minutes, but that caused the display to reset, where the screen goes blank ,before the information reappears. However, this doesn’t look ideal as it feels like the system is rebooting. Could you suggest any other solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants