Robot calculator
Gears, wheels, a servo for an arm and a motor for a cart: how many revolutions and how much torque you need.
Servo torque and gear ratio
The calculator works out the torque at an arm joint for the arm stretched out horizontally, as the sum of mass × lever arm. A link's mass is applied at its middle, the next joint's servo at the end of the link, the payload at the end of the arm. The result is multiplied by a margin, 2 by default: the servo's datasheet gives the holding (stall) torque, at which the shaft stops.
Examples
- A 12-tooth gear on a motor at 3000 rpm and 0.5 kgf·cm drives a 36-tooth gear: gear ratio 36 / 12 = 3, output 1000 rpm and 0.5 × 3 × 0.95 ≈ 1.4 kgf·cm at a pair efficiency of 95 %.
- An arm with links of 12 and 10 cm weighing 40 and 30 g, a 55 g servo at the elbow and a 100 g payload: the shoulder needs 3.6 kgf·cm, which with a margin of 2 is 7.2 kgf·cm. At 6 V an MG995 (10 kgf·cm) or MG996R (11 kgf·cm) will do.
Common mistakes
- People calculate the arm from the payload at the end only: an MG996R weighing 55 g at the end of a 12 cm link adds 0.66 kgf·cm to the shoulder.
- People calculate speed from the motor rpm in the datasheet: it is often the no-load speed, and under load the cart moves slower than calculated.
- People use a gear with fewer than 17 teeth at a 20° pressure angle without profile shift: the tooth root gets undercut and weakens.
FAQ
- What is the torque of an SG90 and an MG996R at 4.8 and 6 V?
- According to the TowerPro datasheet an SG90 gives 1.8 kgf·cm (0.18 N·m) at 4.8 V and weighs 9 g; there is no torque for 6 V in the datasheet. An MG996R gives 9.4 kgf·cm (0.92 N·m) at 4.8 V and 11 kgf·cm (1.08 N·m) at 6 V, weighs 55 g, and turns 60° in 0.19 s at 4.8 V and in 0.15 s at 6 V.
- Is an SG90 enough for a 15 cm manipulator arm?
- If the link weighs 20 g and the payload at the end is 30 g, you need 0.02 kg × 7.5 cm + 0.03 kg × 15 cm = 0.6 kgf·cm, and with a margin of 2 that is 1.2 kgf·cm. An SG90 with 1.8 kgf·cm is enough; with the same margin it will hold about 50 g at the end of such an arm.
- How do I convert kgf·cm to N·m?
- Multiply by 0.0980665: 1 kgf·cm is the weight of 1 kg on a 1 cm lever at g = 9.80665 m/s². In reverse, 1 N·m ≈ 10.2 kgf·cm. On servos this unit is written as kg·cm.
- How do I calculate the gear ratio from tooth counts, and what happens to the torque?
- Divide the tooth count of the driven gear by that of the driving gear; with several stages, multiply the ratios. Output speed is divided by the gear ratio, and torque is multiplied by it and by the efficiency of each stage, 95-98 % for a pair of spur gears. Each pair reverses the direction of rotation.
- What speed does a 200 rpm motor give with a 65 mm wheel?
- v = π × D × n / 60 = 3.14 × 0.065 m × 200 / 60 ≈ 0.68 m/s, which is 2.45 km/h. Under load the motor turns slower than its datasheet rpm.