MPU6050
MotionDriver v5.1
5 Hz sampling rate
100 kHz I2C
I'm working on a logging device that takes and logs samples from an MPU6050. During testing, the MPU6050 is completely stationary, no movement whatsoever.
About once every 15 minutes (but not *every* 15 minutes), the MPU6050 goes crazy for *exactly* 3 samples:
Pitch,Roll
...
23,46
23,46
170,5 *
170,5 *
170,5 *
23,46
23,46
...
My I2C analyser does not show any corrupted transmission during this time.
Anybody any idea what could possibly cause the MPU6050 to return wrong data for exactly 3 samples once every 15 minutes?
- Log in to post comments
phpbb Topic ID
15141
Re: Re: MPU6050 going crazy for short period
We haven't experienced this issue. Is there any additional detail you can provide from your testing configuration? i.e. whether using the provided hex file, rebuilt, changes made, what host the library is operating on?
Re: Re: MPU6050 going crazy for short period
All the info you requested was already in my original post:
MPU6050
MotionDriver v5.1
5 Hz sampling rate
100 kHz I2C
No changes to MotionDriver, host is in my opinion not important, it's plain and simple I2C.
Anyway, host is a Freescale iMX25 (ARM926) running Windows CE 6.0 R3 using a BSP from GuruCE.com.
The I2C traffic capture just before, during, and just after the faulty data looks fine.
Re: Re: MPU6050 going crazy for short period
Here (https://www.dropbox.com/sh/ze1ryxxvt9i4150/cxAKrbi7AI) you can find some I2C traces that show the MPU suddenly starts returning wrong quaternion data. This happens for a couple of samples (usually spanning less then 2 seconds) before it returns to normal, correct values.
There are no I2C errors before, during or after this episode of "bad values".
The files on the dropbox link are in csv format. You can open those in Excel. There's also a text file containing an excel VBA macro that you can use to quickly calculate Pitch and Roll data from the I2C data representing the Quaternions.
This is a showstopper for us, so please respond as soon as possible. If you need more information please contact me by email directly. Response times on this forum are too long...
Re: Re: MPU6050 going crazy for short period
Does this anomaly appear only in the euler angle output, or is reflected in the quaternion, or raw data as well? The Euler angle conversion function just converts from the quaternion.
Re: Re: MPU6050 going crazy for short period
SectionBest,
Did you look at the files on the dropbox link?
You can see the error is in the RAW data. The excel macro shows the calculation I use for the Roll & Pitch as well.
Please have a look at the I2C captures on the dropbox link.
Re: Re: MPU6050 going crazy for short period
We cannot access the dropbox link over our server. Can you send the file in an email or other channel?
Re: Re: MPU6050 going crazy for short period
Absolutely, where do I send it to?
Re: Re: MPU6050 going crazy for short period
developers@invensense.com