pico-examples icon indicating copy to clipboard operation
pico-examples copied to clipboard

fix mpu6050 sensor initialization issue

Open Bartosz89k opened this issue 1 year ago • 1 comments

In my case the sensor (mpu6050), was not initialized correctly and returns erroneous data. The proposed changes works fine. In particular, I'm not sure why the second byte (0x80 == 1000 0000) is messing up the initialization. As I understand from the documentation (page 40): https://pdf1.alldatasheet.com/datasheet-pdf/view/1132807/TDK/MPU-6050.html the seventh bit of register 0x6b should be set to one: 0x80 = 1000 0000 but it doesn't work that way.

Bartosz89k avatar Apr 30 '24 22:04 Bartosz89k

Related to #352 and the big discussion in #319 ?

lurch avatar May 01 '24 07:05 lurch