Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Robot arm & drive lab

Move a two-joint robot arm by angles or by pointing at a target, drive a two-wheeled robot along curves, and work out the wheel motor torque and speed.

°

°

How to use

  1. Robot arm: type the two link lengths, then move the shoulder and elbow sliders (forward kinematics), or type a target point, or click on the drawing, and press Reach it (inverse kinematics). Choose elbow up or down: most points can be reached both ways. Add the link and payload masses to see the torque each joint motor must hold.
  2. Two-wheel drive: type the speed of each wheel and the distance between them. You get the robot's speed, how fast and how tightly it turns, and its path over time.
  3. Drive motors: type the robot's mass, wheels, the steepest slope and how quickly it should speed up. You get the torque and speed each wheel needs, and how your motor and gearbox would cope.

Keyboard and touch

Arrow keys on a sliderTurn a joint 1° at a time
TabMove between tabs, sliders and boxes
Click or tap the arm drawingSet a target and reach for it
Enter in a boxWork it out

Tips

  • Angles are measured anticlockwise: the shoulder from the horizontal, the elbow from the line of the upper arm.
  • The arm needs the most holding torque when it is stretched out sideways. Choose servos with at least twice the torque worked out here, because moving needs more than holding.
  • To spin a two-wheeled robot on the spot, run the wheels at the same speed in opposite directions.
  • Hobby gear motors often list free speed and stall torque in kg·cm: divide kg·cm by 10.2 to get N·m.
  • Rolling resistance is about 0.01 to 0.02 for hard wheels on a smooth floor, 0.03 to 0.05 on carpet and more on grass or sand.

About this lab

Forward kinematics of a two-link planar arm: x = L₁ cos θ₁ + L₂ cos(θ₁ + θ₂), y = L₁ sin θ₁ + L₂ sin(θ₁ + θ₂). Inverse kinematics uses the law of cosines, cos θ₂ = (x² + y² − L₁² − L₂²) ÷ (2 L₁ L₂), with θ₁ = atan2(y, x) − atan2(L₂ sin θ₂, L₁ + L₂ cos θ₂). Holding torque treats each link as a uniform rod with its weight at the middle and the payload at the tip, under standard gravity.

Differential drive: speed v = (vL + vR) ÷ 2, turn rate ω = (vR − vL) ÷ track width, radius v ÷ ω; the path is an exact circular arc. Wheel force = m g sin(slope) + Crr m g cos(slope) + m a. The DC motor follows a straight torque-speed line from stall torque to free speed, through a gearbox with the given efficiency. These are estimates for learning and hobby robots. Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product