bolderflight / invensense-imu

Arduino and CMake library for communicating with the InvenSense MPU-6500, MPU-9250 and MPU-9255 nine-axis IMUs.
MIT License
508 stars 213 forks source link

Accelerometer giving constant values #73

Closed Syed-Muddassir closed 3 years ago

Syed-Muddassir commented 4 years ago

I've been running the basic I2C example code and i found out that my x-accelerometer is pretty accurate, z-accelerometer is a little inaccurate but my y-accelerometer is giving a constant value of 156.9. Can someone please help in this to debug this problem? What are the chances that it's a hardware issue?

Ananfruit commented 4 years ago

Can you share the code when you calibrate your accel and gyro, please? Thanks in advance!

Syed-Muddassir commented 3 years ago

my imu was faulty. i replaced it and now it works fine.