Differential Drive Robot Calculator
Enter wheel radius, track width and wheel rpm to get forward speed, turn rate and turning radius, work out the wheel rpm for a desired speed and turn rate, or turn encoder counts into distance travelled, heading change and position.
S'exécute dans votre navigateur. Vos fichiers ne quittent jamais votre appareil. Voir comment vérifier
…
Comment faire
- 1Choose the calculation
Forward, inverse or odometry.
- 2Enter wheel radius and track
Metres.
- 3Enter wheel rpm or desired motion
rpm or m/s and °/s.
- 4Enter encoder data
Counts per revolution and counts.
- 5Read speed and pose
v, ω, x, y, heading.
À propos de cet outil
Most small mobile robots, robot vacuums and many warehouse robots steer like a tank: two independently driven wheels on one axle, with a caster for balance. Driving both wheels at the same speed moves the robot straight; driving them at different speeds makes it turn about a point on the axle line. The kinematics are simple but easy to get wrong in code. This calculator converts between wheel speeds and robot motion in both directions and integrates encoder counts into a new position and heading, the dead-reckoning odometry every mobile robot relies on between other position fixes.
Who this is for
Robotics students, makers, ROS developers, competition teams and engineers designing small autonomous vehicles.
Forward kinematics
- Wheel speeds: vL = ωL × r, vR = ωR × r (with ω in rad/s; rpm × 2π / 60). - Robot speed v = (vR + vL) / 2. - Turn rate ω = (vR − vL) / W, where W is the distance between the wheels' contact points. - Turning radius R = v / ω; equal and opposite wheel speeds spin the robot on the spot.
Inverse kinematics
For a desired v and ω: vL = v − ωW/2 and vR = v + ωW/2. This is what a motion controller (for example a ROS cmd_vel handler) computes.
Odometry
- Distance per count = 2πr / counts per wheel revolution (after any gearbox). - dL and dR = counts × distance per count. - Distance d = (dL + dR)/2, heading change Δθ = (dR − dL)/W. - Position change along the arc: Δx = (d/Δθ)(sin(θ0 + Δθ) − sin θ0), Δy = −(d/Δθ)(cos(θ0 + Δθ) − cos θ0). Update often (50-100 times a second) so each step is small.
Worked example
Wheels of 50 mm radius on a 300 mm track at 60 and 80 rpm: 0.37 m/s, 20°/s and a 1.05 m turning radius. For 0.5 m/s and 30°/s, the wheels need 80.5 and 110.5 rpm. With 1,024 counts per revolution, 3,000 left and 3,500 right counts move the robot about 1 m with a 29.3° heading change, ending at (0.954, 0.249) m.
Odometry errors
Wheel diameter mismatch, track width uncertainty, slip and uneven floors make odometry drift. A 1 % track width error causes a 3.6° heading error per full turn. Calibrate with the UMBmark square test, and fuse odometry with an IMU, wheel encoders on both sides and external fixes such as lidar or markers.
Choosing wheel size and track
Larger wheels go faster for a given motor speed but need more torque; a wider track makes the robot more stable and its heading estimate less sensitive to wheel errors, but slower to spin in place. Most indoor robots use 30-80 mm radius wheels and tracks of 150-450 mm.
Common mistakes
- Using wheel diameter where the radius is needed. - Counting encoder edges inconsistently (×1, ×2 or ×4 quadrature decoding). - Measuring the track width between wheel centres on wide tyres instead of the contact patches.
Limits
Rigid robot on a flat floor without slip. This is not professional engineering advice.
Exemple concret
r 50 mm, track 300 mm, 60 and 80 rpm: 0.37 m/s, 20°/s, 1.05 m turning radius.
L'essentiel
- Catégorie: Ingénierie et construction
- Fonctionne dans votre navigateur, sans inscription, sans envoi.
- Ce que vous saisissez reste sur votre appareil.
- Disponible en anglais.
- Contenu révisé pour la dernière fois:
- Source officielle: Differential-drive kinematics v = r(ωR + ωL)/2, ω = r(ωR − ωL)/W, instantaneous centre of rotation R = v/ω, and dead-reckoning odometry with exact arc integration (Siegwart, Nourbakhsh and Scaramuzza, Introduction to Autonomous Mobile Robots, 2nd ed.; Borenstein and Feng, UMBmark odometry calibration)
Questions fréquentes
How does a differential drive turn?
By driving the two wheels at different speeds.
How do I calculate the turn rate?
(right wheel speed − left wheel speed) / track width.
How do I convert v and ω to wheel speeds?
vL = v − ωW/2 and vR = v + ωW/2.
Why does odometry drift?
Wheel size errors, slip and track width uncertainty accumulate.
How often should odometry update?
Typically 50-100 times per second.
Is my data stored?
Robot parameters stay in the browser, unsaved.
