MPU6050 icon indicating copy to clipboard operation
MPU6050 copied to clipboard

Getting Random Values

Open JoaquinEduardoArreguez opened this issue 3 years ago • 4 comments

Hi! First of all, thanks for this library! But I am having issues with it: With the sensor standing still , when I use MPU6050_Read_All I am getting random values that repeat over time without a noticeable pattern. With MPU standing still, the values read vary between positive and negative values in all Acc and Giro values. Havent tried yet temperature and Kalman values. Any Ideas about what could be causing this issue??

Thanks in advance!

JoaquinEduardoArreguez avatar Oct 05 '20 03:10 JoaquinEduardoArreguez

Hi. I can only make the following assumptions:

  1. Check the power supply, the module should come to +5V. Since the module itself has a downgrading LDO to 3.3V;
  2. Try to put additional pull-up resistors parallel to the SDA and SLC buses.
  3. Reduce the length of I2c bus wires if possible;
  4. Try to read values on a clean project without any FreeRTOS or other.

P.S. If nothing helps, try interviewing the sensor using the Arduino libraries to localize the problem in software or hardware.

leech001 avatar Oct 05 '20 06:10 leech001

Not exactly an issue, but why the use of Accel_Z_corrector = 14418 , instead of 16384. Because if we use that value, if left parallel to a table (face up), we should get values of (about 0, about 0, close to 1), for the ACC. In my case i get a value of 1.27 and generally the Z axis reposponds sometimes not so good. So all in all what I'm asking, the correction value is an issue with the module in general or yours in particular?

BTW, really good and simple driver for the module, worked on the first try. Thanks a lot!

anasvag575 avatar Oct 07 '20 13:10 anasvag575

Hi! thanks for the quick reply!! I just made some changes, and I am now getting correct values (I think). As @anasvag575 noticed, Az value is around +1.2 , shouldn't it be closer to 1? I have the same question the correction value is an issue with the module in general or yours in particular?

Giro values are: Gx: between +0.6 and +0.8 Gy: between -2.6 and -3.1 Gz: between -0.6 and -0.9

Values become super noisy even when you move it carefully to get usefull data

Is there a recomended calibration method?

JoaquinEduardoArreguez avatar Oct 08 '20 02:10 JoaquinEduardoArreguez

While reading the data, Live expression freeze, I am thinking that, the data got stop on reading.

What would be the issue, any idea on that?

iamnarendrans avatar May 05 '24 13:05 iamnarendrans