AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Comparison

Absolute Position at N20 Size: Which Tiny Servo Gives It

Servo and stepper motion Published 8 min read By AutomateDirectUSA engineering team

Short answer

Absolute position in an N20-size package comes from where the position sensor sits, not the motor diameter. A micro RC servo with feedback on its output shaft reads its angle the instant power arrives, with no homing move. An N20 gear motor with a motor-shaft quadrature encoder is incremental: its counts die at power-off and every start needs a homing routine, so the micro servo wins this brief.

On this page
  1. Where absolute position actually comes from
  2. The four candidates at N20 size, compared
  3. Why the N20 encoder kit cannot do it alone
  4. Worked example: holding torque for a 0.3 kg dog on two stance legs
  5. Stall current, wiring and the first move
  6. Bench checks before the build
  7. The decision
  8. Questions asked

For a robot the size of a large matchbox, absolute position is a sensor-placement question, not a motor-diameter question. A positional micro RC servo puts its angle sensor on the output shaft, so it knows where the joint is the instant power arrives: no homing move, no reference switch, no start-up routine. An N20 gear motor with a magnetic encoder kit reads the motor shaft with an incremental sensor, so it forgets everything at power-down and needs a homing sequence at every start. That one difference decides the build. Medical-grade micro servos hold absolute position too, but they cost far above a hobby budget for performance a small walking robot never uses. This article compares the four candidates on that point, works the holding-torque number for a quadruped of the size described, and ends with the part class to order.

Where absolute position actually comes from #

Inside a standard RC servo sit a small DC motor, a multi-stage gear train, a control circuit and a position sensor coupled to the output shaft, almost always a potentiometer turned by the final output stage. The control circuit reads the command pulse width, compares it with the sensor reading, and drives the motor until the error closes. Commands repeat on a frame near 50 Hz; the pulse-width-to-angle span is vendor-specific, so take it from the datasheet of the exact part or sweep it on the bench.

Because the sensor is driven by the output shaft, the servo knows its joint angle the moment power arrives. There is no count to lose and no reference move to run. The reading is absolute across the part's mechanical travel, roughly half a turn for a typical positional hobby servo; past the internal stop there is no more position, by design. A continuous-rotation variant is a different part: its output-shaft feedback is removed or decoupled so the output can spin freely, which makes it a speed control with no position at all. Confirm the listing says positional before anything is ordered.

The four candidates at N20 size, compared #

Candidate Reads position from Position at power-up Start-up move The catch
Positional micro RC servo (2 g to 9 g class) Potentiometer on the output shaft Known, across its travel None Heat when holding; continuous-rotation variants give no position
N20 gear motor plus magnetic encoder kit Incremental A/B channels on the motor shaft Lost at power-down Homing against a hard stop or reference, every start Gearhead backlash sits outside the measurement
Tiny stepper, direct or geared Nothing: open-loop step counting Only relative to the last home Reference home every start A missed step under load is invisible until the next home
Medical-grade micro servo Absolute encoder on the output shaft Known None Cost far above a hobby budget for unused performance

None of these is a bad part; each fails one physical point of the brief. The N20 route and the stepper both need a start-up sequence because what they count is relative. The medical-grade units genuinely hold absolute output position, at a budget this kind of project does not have. That leaves the first row, and its only real envelope note is shape: a 9 g-class servo body is wider but shorter than an N20 cylinder, so filter candidates against the chassis pocket you actually have, not against motor diameter.

Steppers deserve one line of fairness: they are open-loop by construction, counting fixed step angles from the last reference, and how that compares with a servo's closed-loop resolution is laid out in servo positioning resolution versus stepper step angle explained.

Why the N20 encoder kit cannot do it alone #

The encoder kits sold for N20 gear motors mount a small magnetic sensor on the rear of the motor, ahead of the gearhead, and output two channels in the A/B quadrature pattern, 90 degrees out of phase, which lets a controller count edges and detect direction; what A and B quadrature signals mean walks through the signal form. The pattern is incremental: it carries counts, never a datum. Power down and the counts are gone.

Every start therefore needs a homing move against a hard stop, a limit or a reference. There are ways to home an incremental axis without adding a switch — homing an incremental encoder axis without a proximity switch covers the routines — but the start-up move itself stays, and the awkward power-up the project wanted to avoid is exactly what it buys.

The deeper problem is which shaft the sensor rides. Ahead of the gearhead, the reading is the motor shaft's angle, and the gearhead's backlash sits outside the measurement, so the reported angle and the leg angle differ by that slack — the same geometry that has to be handled when mounting a motor encoder behind a belt reduction on a larger machine. It is also the industrial classic: why a servo feeder stops on motor position, not strip position is this exact fault wearing steel. The RC servo arrangement answers it by construction, because its sensor sits on the far side of its own gear train.

Worked example: holding torque for a 0.3 kg dog on two stance legs #

The inputs below are example values for a build in the envelope described — a body slightly larger than a Pi Zero, micro servos, a small battery and a frame — and you weigh and measure your own assembly before relying on them:

  • Total robot mass: 0.30 kg, an example value for that envelope
  • Gravity: 9.81 m/s², a constant
  • Horizontal distance from hip axis to center of mass: 40 mm, that is 0.040 m, example geometry taken in the worst pose
  • Legs on the ground in a walking gait: 2 (a slower crawl gait puts 3 down and divides the load by 3)

The rule, in words: each stance hip must hold a torque equal to the robot's weight times that horizontal lever, shared across the number of legs on the ground.

The arithmetic, in SI units throughout:

  • Weight: 0.30 kg × 9.81 m/s² = 2.943 N
  • Torque all on one hip: 2.943 N × 0.040 m = 0.1177 N·m
  • Shared across two stance legs: 0.1177 N·m ÷ 2 = 0.0589 N·m per hip

The result: about 0.059 N·m per stance hip, which is 5.9 N·cm, or 0.60 kgf·cm in the unit hobby servo datasheets quote.

The decision: apply the hobby rule of thumb that static hold should stay at or below one third of stall torque, and the requirement becomes 3 × 0.0589 N·m ≈ 0.18 N·m, about 1.8 kgf·cm, of datasheet stall torque at the supply voltage you will actually run. Read the stall-torque row from the datasheet of the exact part — TowerPro's sheet for the SG92R family is the document for the common 9 g-class parts — because stall torque falls as supply voltage falls. Then confirm on the bench: stall the horn against a small travel scale at a known radius and compare the force-times-radius result, and run a timed hold at the worst pose to watch the case temperature plateau. Treat a landing leg as a design load above the static hold; stripped output gears, not static torque shortfall, are how builds of this size usually die.

Stall current, wiring and the first move #

Stall current is the number that sizes the supply, and it is datasheet-specific: TowerPro's datasheet for the MG996R, a mid-size hobby servo far bigger than this build, lists 1400 mA at stall, and equivalent-looking parts from other sellers list different figures. For the tiny classes the rule is the same: sum the stall currents of every servo that can be stalled at once — a leg pinned against its stop while the other hips hold — and rate the servo power path above that sum.

Wire the servo power path separately from the logic supply and tie the grounds at one point. Hold the PWM output at the neutral pulse width before servo power comes up, so no horn starts a lurch toward a stale command. Clamp the commanded range inside the measured safe span so a joint can never be driven against its internal stop, where it sits at stall current until the command changes.

One safety note for the bench: for first powered tests, feed the servos through a current-limited supply and keep fingers out of every gear train, because a micro servo at stall can pinch hard and the power-up lurch is the most common way it happens.

Bench checks before the build #

  • Angle sweep: command three pulse widths across the span, read the horn against a protractor, and write the angle-versus-pulse table per unit; units of the same model differ.
  • Power-cycle test: displace the horn by hand, restore power with the same command, and watch. A true output-shaft-feedback servo returns to the commanded angle with no homing move; one that stays displaced has lost its feedback or is a continuous-rotation type.
  • Timed hold: park the worst pose under realistic load for a fixed time. Case temperature must plateau; a rise with no plateau means the joint is running near stall and the torque margin is too small.
  • Rail log: command every joint at once and log the servo supply voltage. A dip below the servo's minimum voltage shows up as resets and jitter that imitate control faults but are supply faults.

The decision #

For a dog with a body slightly larger than a Pi Zero and joints at N20 scale, order positional micro RC servos with output-shaft feedback, starting at the 9 g class for the hips and holding each datasheet against the roughly 0.18 N·m stall-torque bar worked above at your supply voltage. Take the N20-plus-encoder-kit route only if a homing move at every start and gearhead backlash inside the position error are acceptable. A tiny stepper fits only where a missed step costs nothing. The medical-grade absolute micro servos do the same job at a budget the project rules out. Run the bench checks — sweep, power-cycle, timed hold, rail log — before anything is bolted to a chassis.

Questions asked

Does a positional micro RC servo need a homing move at power-up?

No. Its sensor sits on the output shaft, so the control board reads the true horn angle the moment power arrives and drives straight to the commanded pulse width. Hold the PWM output at the neutral width before you enable servo power, so the horn does not lurch toward a stale command when the rail comes up.

Can I add an encoder to an N20 gear motor and still get absolute position?

The common magnetic kits for N20 motors are incremental quadrature types mounted on the motor shaft, ahead of the gearhead. They lose their counts at power-down and they sit outside the gear reduction, so the reported angle differs from the output angle by the gearhead backlash. Every start still needs a homing move against a hard stop or a reference.

Is a continuous-rotation servo still absolute?

No. Continuous-rotation parts have the output-shaft feedback removed or decoupled so the output can spin freely, which turns the part into a speed control with no position reading. If a listing says continuous rotation, 360 degree rotation or wheel mode, it is the wrong part for a joint that must know its angle at power-up.

Why do several servos moving together reset my microcontroller?

Servo current arrives in pulses, and the supply rail dips when several joints accelerate at once. A sag below the servo minimum voltage or below the logic voltage shows up as resets and jitter that look like control faults. Give servos their own power path rated for the summed stall currents, keep the logic supply separate, tie the grounds at one point, and log the rail during a full-body move.

How do I measure a tiny servo stall torque on the bench?

Hook the horn to a small travel scale at a measured radius from the shaft and command the servo against it until the output stops. Torque is the scale force times the radius, so the same method works for any part size. Compare the measured value with the datasheet row at your supply voltage, because stall torque falls as supply voltage falls.

Keep reading

  • Troubleshooting

    Servo Position Counts Up While the Motor Is Stationary

    Counts that rise while the motor shaft is held still are false feedback counts, not motion. Compare the controller's tell-position reading against the drive's rotor-position display: a drive value steady within 1 count while the controller climbs condemns the simulated-encoder path. Isolate the encoder output, cable, breakout and counting input by substitution, one part at a time, cheapest check first.

    Servo and stepper motion

  • Troubleshooting

    Using a servo motor encoder as external machine feedback

    A servo motor's native encoder is the drive's feedback interface, not a spare input for the controller. Changing i7010 from 8 to 3 can reassign the hardware that also carries the pulse command, which is why the drive reports Invalid Pulse command as soon as you jog. Keep i7010 = 8, take machine feedback from the drive's documented encoder output, and scale that signal into counts per unit on a separate controller input.

    Servo and stepper motion

  • Troubleshooting

    Absolute Encoder Counter Overflow Alarm on a Servo Drive

    Alarm 41, absolute encoder counter overflow, means the multi-turn revolution counter passed its specified limit. Check real overtravel and the encoder parameter set first, then cable and supply, then reinitialize the position reference with the drive's documented function and power-cycle. Clearing the alarm without fixing what feeds the count only postpones the next stop.

    Servo and stepper motion

Why servo output splines strip printed joints and the fix