Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    setup() loops when the arduino is repeatedly resetting ... maybe the arduino has inadequate power Commented Jun 9, 2023 at 15:34
  • 1
    Please show us your circuit and explain how you are powering everything Commented Jun 9, 2023 at 18:29
  • Not sure this is related. but according to the Adafruit_SH110x library, the api for create an instance is Adafruit_SH1107(WIDTH, HEIGHT, &Wire), you seems to had it revered with width = 64, and height = 128 in Adafruit_SH1107(64, 128, &Wire). Commented Jun 10, 2023 at 5:57
  • If the OLED was working independently then resetting the Arduino due to incorrect initialization (dimensions) is unlikely. The same can be said for using an outdated version of the Adafruit GFX library. Never the less, the Adafruit SH1107 driver does come w/this warning: "This library depends on Adafruit_GFX being present on your system. Please make sure you have installed the latest version before using this library.". Please double check these settings/configurations and update your Question if necessary. Commented Jun 10, 2023 at 13:42
  • Also, can you please clarify that you can run the sensors while the OLED hardware is installed but the OLED software is not in the Sketch? All these devices (OLED, Accelerometer & Stress Sensor) exist on your I2C bus. And several have independent pull up resistors. In a good hardware design there should only be 1 set up pull up resistors at the far end of the I2C bus. Having multiple higher resistance pull up resistors will likely work but there is an upper limit. Commented Jun 10, 2023 at 13:49