microcontrollerserial-communicationraspberry-pi-pico

Inconsistent Mpu6050 Readings | raspberry pi pico w


i connected mpu 6050 digital motion processor with 12c interface with my rspberry pi pico W. I coded it with micropython but when i read the accelerometer data registers, it shows in consistent values which keep on fluctuating a lot. can some help me in determineing what i am doing wrong.

i even tried connecting pull up resistors(4.7K) but nothing changed

Code Output


Solution

  • while reading data from the i2c bus the microcontroller recieves data from the register next to the register adress we give as an argument

    since registers 3B to 40 contain accelerometer meter data in mpu6050 so i should have passed 0x3A register adress as an argument