Speeding up MPU 6050 data collection

TomGeorge:
Hi,
Can you tell us the application of your code?
Why do you need fast acquisition?

Thanks.. Tom.. :slight_smile:

I am using an IR sensor to count the revolutions of a driveshaft. The RC car can go up to about 40mph. At this speed, the driveshaft is spinning at 150 revolutions per second. So I need the code to be running fast enough to pick up all of these revolutions. I 3D printed a wheel for the driveshaft that has 6 spokes on it. So the IR sensor picks up 6 readings for every revolution.
The problem is keeping up with the speed of the vehicle. I don't need a ton of readings from the MPU6050. Just need a lot of readings for the velocity. The way I have my code written requires both to give lots of readings.

Read the MPU-6050 every tenth or fiftieth velocity reading.

jremington:
Read the MPU-6050 every tenth or fiftieth velocity reading.

Ok, I will give that a try. Thanks

Hi,

zack19:
The problem is keeping up with the speed of the vehicle. I don't need a ton of readings from the MPU6050. Just need a lot of readings for the velocity. The way I have my code written requires both to give lots of readings.

So you will be using the acceleration figures to calculate velocity?
What are you looking for?
Wheel spin by comparing the two velocity figures?
Tom... :slight_smile:

TomGeorge:
Hi,So you will be using the acceleration figures to calculate velocity?
What are you looking for?
Wheel spin by comparing the two velocity figures?
Tom... :slight_smile:

I am using the IR sensor to read revolutions of the driveshaft. That will give me velocity. The MPU6050 is giving me the acceleration figures. I am trying to instrument an RC car to present Understeer, Oversteer, and Neutral steer conditions. Having X and Y accelerations and velocity will help me accomplish this.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.