Continue to Site

Welcome to

Welcome to our site! is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] MPU6050 returns large gyroscope readings on power up

Not open for further replies.


Full Member level 1
Sep 16, 2010
Reaction score
Trophy points
Activity points
I am using an mpu6050 accelerometer+gyroscope sensor with a pic32 and I am getting large readings from the gyroscope whenever I plug in the power to my system.

The sensor readings are in 16 bit signed format and I get readings towards the far ends of the range (around -20k or 20k) when my device is static. The gyro readings seem to fluctuate accordingly when the system moves, just that the gyro returns these large values when it is supposed to be returning zero.

I would also like to add that this only happens when I disconnect and reconnect power. Whenever I reprogram my mcu, the gyro readings are correct, even when I reset the mcu. The accelerometer readings i obtain are correct, and only the gyro behaves like this. I have also tried my system with another module and it behaves the same.

Any ideas on what may be causing this? Many thanks.

I think I have partially solved my problem. I'm actually using the 10 DOF IMU sensor from Waveshare (as well as their C code for the module).

The initialization sequence for the sensors includes a small routine for obtaining offsets for the gyroscope readings. These offset values are then subtracted from future readings. I temporarily set the offsets to 0 to prevent anything from being subtracted to sensor readings.

Not open for further replies.

Part and Inventory Search

Welcome to