Motor velocity to inches per second

so I was trying to use inertial sensor to find out how fast our robot was actually moving but I can’t figure out how to convert motor speed (100%) to inches per second. so I need help finding it out.

1 Like

I don’t have any experience with the inertial sensor but based on the article I read, the inertial sensor isn’t the proper sensor to use to find how fast your robot is going. The inertial sensor can only measure acceleration in g forces which level out when you are traveling at a constant speed. The more appropriate Sensor would be the rotation sensor as it measures the RPM of the axle.
You could always use the RPM sensor that is built-in to the V5 motors. You have to do a little math to convert motor speed (RPM) to inches per second. Assuming you are direct driving the wheel or driving it at a 1:1 ratio, the math should look something like this.
(motor rpm * Circumference of the wheel) / 60
If you’re not directly driving the wheel, replace the motor rpm with your motor rpm * your gear ratio.
Simple block code for 4in wheels
Screenshot 2024-03-13 9.29.27 AM
This is my first ever post on the forum so I hope this helps.

2 Likes

you would take your weel circumference, multiply that by your gear ratio, your motor speed and the percentage it is spinning at, then divide by 60 (minutes to seconds conversion)
example:
360 rpm chassis (3:5, 600rpm) with 3.25 inch wheels

(.6 * 600 * pi * 3.25 * 100%)/60 → ~61 in/sec

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