sensebox / senseBox-MCU-S2-ESP32S2

new senseBox MCU-S2 with ESP32S2
1 stars 0 forks source link

MPU6050 occasionally gives status 2 or 5 #4

Closed PaulaScharf closed 10 months ago

PaulaScharf commented 11 months ago

The onboard mpu occasionally gives status 2 or 5 after the MCU was restarted. This happens with both the MPU6050 and the MPU6050_light library. It is solved by replugging the usb cable between computer and MCU. The status codes come from the endTransmission call from the Wire library: status 2: received NACK on transmit of address status 5: timeout

PaulaScharf commented 10 months ago

This seems to have been an issue cause by the MPU6050_light library. It doesnt (or rarely) occurs with for example the Adafruit_MPU6050 library.