Page 1 of 1

Sparkfun MPU9250 Products

Posted: Tue Aug 15, 2017 3:42 am
by Chrisau

I would like to know if the Sparkfun MPU9250 products would solve the problem I'm having, as follows.

I've been using an MPU6050 (3 axis gyro, 3 axis accel, with the built in motion filter called DMP) on a car axle to measure axle angle when driving. On a long banked corner (2 degrees) the sensor reads 0 degrees while moving (~40km/hr), but when stopped on the corner it reads correctly (2 degrees). The physical axle angle is the same though in both scenarios.

I believe the lateral force from going through the corner when moving is affecting the sensors interpretation of which way gravity is, and is adjusting the roll angles accordingly. See image;

[img width=500 height=197][/img]

Given that the Sparkfun MPU9250 sensors have a built in magnetometer and/or use a Kalman filter, will these fix the above issue?

Time is a critical factor at the moment in my project.

Thanks in advance for your input.

Re: Sparkfun MPU9250 Products

Posted: Tue Aug 15, 2017 5:23 am
by Chrisau
Sorry image link wasn't right.


Re: Sparkfun MPU9250 Products

Posted: Tue Aug 15, 2017 9:36 pm
by Ross Robotics
Sounds like the sensor is vibrating and being subject to forces which are out of spec. Even if it does sense that the vehicle is angled, with the vibration it just filterss those out. Once the car settles, the sensor isn't filtering out the "noise" and you are getting a correct reading.

My advice is to search around and make sure that it's automotive compliant. Or at least purchase a sensor that doesn't have a filter and use software to average out the readings.

Re: Sparkfun MPU9250 Products

Posted: Wed Aug 16, 2017 6:25 pm
by Chrisau
Thanks Ross.

The vibration when driving straight and cornering at the same, yet readings when driving straight at speed are accurate.

Some further research is giving me more insight into what the problem is and how others solve the problem. It seems those using fixed-wing UAVs also experience this. They primarily use a method to calculate the centrifugal acceleration, and then compensate for it.

These solutions come from William Premerlani in the fixed-wing UAV community.

Using GPS; ... ht-testing

Using only Accel and Gyro; ... lerometers

This solution coming from a research paper for fixed-wing UAV; ... _v1.04.pdf

Re: Sparkfun MPU9250 Products

Posted: Wed Aug 23, 2017 8:38 am
by paulrbarnard
The 9250 will help as it has a magnetometer which can be used to identify the gravitational component.

Re: Sparkfun MPU9250 Products

Posted: Sat Sep 09, 2017 4:57 am
by pbreed
For those of you using the MPU9250 break out board,
I've posted a STL file on thingverse that mounts the break outboard in the center of a cube.
This allows you to precisely rotate the MPU for calibration etc....

You can also clap a block or square to your desk and use that to constrain how the cube moves for more calibration options.

The details are somewhat fine it printed well on a form 2, not so sure how it would do in FDM.