Explainer
Can Continuous Rotation Servos Position an XY Drawing Gantry
Short answer
No, not by themselves: a continuous rotation servo's pulse commands speed and direction, never angle, so drawn shapes do not close. Add feedback — an encoder on the axis, a servo reprogrammed to standard 300-degree mode on a rack (about 199 mm of travel with a 3 in pitch-diameter pinion), or a homed stepper — and the gantry positions.
On this page
- Why can't a continuous rotation servo hold a position?
- How far will the pen drift during a drawing?
- Can the commanded pulse stand in for measured position?
- How much travel does a rack and pinion give a 300-degree servo?
- Which feedback option should I choose for a pen gantry?
- How do I verify the axis before trusting it with a drawing?
- Questions asked
No — not by themselves. A continuous rotation servo takes a pulse width as a speed and direction command, never an angle, so position exists only as speed multiplied by time and nothing on the machine measures the result; drawn shapes drift open and stay open. The gantry becomes a positioning machine exactly when you add measurement: an encoder or linear scale closing the loop in your controller, a dual-mode servo reprogrammed to standard 300-degree rotation driving a rack (about 199 mm of travel on a 3 in pitch-diameter pinion), or a stepper counted from a home switch. This article gives the drift arithmetic, the travel and resolution numbers for the rack route, and a decision for each feedback option.
Why can't a continuous rotation servo hold a position? #
Because the pulse width commands speed and direction only: a continuous rotation servo has no angle command and no position report, so the controller knows only what it asked for, never where the pen is.
A standard hobby-class servo is a closed loop in a case: a sensor on the output shaft reports angle, the incoming pulse width is the angle setpoint, and internal circuitry drives the difference to zero. Converting that servo to continuous rotation throws the loop away. The sensor no longer represents shaft angle, the electronics reinterpret the same pulse as a velocity command centered on neutral, and the only position information left in the system is the command you issued. For a machine that draws, that is the whole problem: a circle or rectangle is defined by where the pen is, and the controller never learns where the pen is.
How far will the pen drift during a drawing? #
Without measurement the error is the integral of speed error, so it grows with every segment and never corrects: a reported continuous rotation servo showed a 170 µs neutral deadband at 6 V, and any command outside that window moves the pen.
Every one of these feeds that integral:
- A neutral command that sits outside the servo's deadband window, producing slow creep at a supposed stop. The same reported servo widened to a 200 µs window on a 5 V supply; on the 6 V figure, your neutral pulse must land within ±85 µs of the servo's true center (170 ÷ 2) or the axis walks.
- Speed that shifts with supply voltage and with load, including pen drag and rack friction.
- Acceleration and deceleration transients the drawing program does not model.
- X and Y servos whose speed constants differ, which turns a commanded circle into an ellipse or a spiral.
Because none of it is measured, the error accumulates segment by segment and is never subtracted back out. Trimming the neutral pulse is the first, cheapest check — the procedure for stopping continuous rotation servo creep at zero command — but trim fixes creep, not the drift that builds while the pen is moving.
Can the commanded pulse stand in for measured position? #
Only while every move runs to completion: the pulse you sent is a record of what you commanded, so it stops being position the moment a stall, an interrupt, or a sensor stop ends the move early.
The stand-in holds under three conditions at once: one axis, one motor, and moves that always finish with nothing interrupting them. Add a second motor, a sensor that ends a move early, an interrupt that stops the axis mid-stroke, or a stall against an obstacle, and commanded position stops matching physical position from that instant — with nothing to flag the difference. That is why the trick collapses on a two-axis gantry with a pen-lift input and limit sensing: the more the program interacts with the real world, the more often commanded and actual diverge. If you keep the arrangement anyway, re-home before every drawing so each error budget starts at zero.
How much travel does a rack and pinion give a 300-degree servo? #
About 7.85 in (199 mm) of carriage travel per axis with the setup you describe: a 3 in pitch-diameter pinion driven through the servo's 300 degrees of standard-mode rotation.
Travel follows from the pinion's pitch circumference and the fraction of the circle the servo sweeps:
travel = π × pitch diameter × (rotation ÷ 360°) travel = π × 3 in × (300 ÷ 360) = 7.85 in, about 199 mm per axis.
Resolution is travel divided by the number of distinct commands. As a calculated example for stated inputs, not a measured result: take a 1000 µs usable pulse span (the common 1.0–2.0 ms command convention) and a 5 µs effective command step, set by whichever is coarser — your controller's timer resolution or the servo's own deadband. That gives 1000 µs ÷ 5 µs = 200 distinct commands, so 7.85 in ÷ 200 ≈ 0.039 in, about 1 mm per command, or roughly 25 commands per inch. Read the exact usable span from the datasheet of your servo, and expect the real step to be coarser, because geartrain backlash and rack tooth flex add error on top. That coarse step is workable for shape sketching, and the arithmetic in calculating pulses per inch for a rack and pinion axis scales it to any pinion you make.
Two limits decide the design. First, the servo's internal sensor reports shaft angle only, so the loop closes at the shaft, not at the pen: rack slip or a stalled carriage stays invisible to it. Second, 300 degrees is a hard stop at each end — fit mechanical end stops so the commanded range sits inside the physical range, because a servo held against a stop stalls at full current and heats, and a moving gantry edge is a pinch point to guard as your risk assessment requires. Dual-mode servos documented by their maker for both standard and continuous operation are switched with the manufacturer's programmer; confirm the 300° sweep by commanding the pulse extremes at no load before building the mechanics around it.
Which feedback option should I choose for a pen gantry? #
For a lightweight Cartesian plotter, a homed stepper on each axis is the default answer; the dual-mode servo on a rack is the cheaper acceptable option with the calculated 0.039 in-class step; keep the continuous rotation servos only if you add an encoder and close the loop yourself.
| Route | Position comes from | Decision |
|---|---|---|
| Continuous rotation servo, no sensor | Nothing — time integral of commanded speed | Reject for closed shapes; error grows without bound |
| Continuous rotation servo plus encoder | Encoder counts, loop closed in your controller | Workable; the servo becomes a geared motor you command for speed |
| Dual-mode servo in standard mode on a rack | Internal shaft sensor, PWM angle command | Accept for sketching: 199 mm travel, 0.039 in-class step (calculated example), plus a home switch |
| Linear servo actuator | Internal feedback in the actuator | Accept; the fixed stroke (a 3.9 in, 1.2 in/s, 6.8 lb thrust class exists) sets drawing size |
| Stepper plus homing switch | Counted steps from a known home | Default choice; step loss under overload is silent unless you add an encoder |
| Camera tracking with inverse kinematics | Vision-derived position | Overkill on a Cartesian gantry; a switch and a counter solve it for far less effort |
The servo-versus-stepper tradeoff for a light axis like this is laid out in positional servo or stepper for a lightweight positioning axis, and if you take the stepper route with a scale, tuning a closed-loop stepper with linear scale feedback is the companion piece. The camera option earns its complexity only on a non-Cartesian arm, where inverse kinematics are unavoidable anyway.
How do I verify the axis before trusting it with a drawing? #
Accept the axis only on measured closure: draw a square ten times without re-homing and require the start-to-end gap to stay under about 0.5 mm (0.020 in) — a rule of thumb for pen work, with roughly 0.040 in the visible-failure line.
Run four checks and write the numbers down:
- Closure. Draw the same square ten times without re-homing and measure the start-to-end gap each pass. A gap that holds steady points to calibration — fix it with a pulse-to-position table built by commanding known pulses and reading carriage position off a ruler or dial indicator. A gap that grows pass by pass points to drift or slip, and no calibration fixes that; it needs feedback.
- Backlash. Command the same point from both directions and measure the difference; that number is backlash plus deadband.
- Repeatability. Repeat one single-axis move twenty times and record the spread.
- Load. Measure with the pen up and the pen down, because pen drag changes the servo's load and therefore its speed.
If a fault appears once the loop is closed — stalls, dead axes, wrong scale factors — work through a pen plotter motion fault troubleshooting sequence before changing the mechanics. The decision, per case: continuous rotation servos alone, no; continuous rotation servos with an encoder you loop yourself, yes; standard-mode servo on a rack for the 199 mm coarse-step sketching described above, yes; homed stepper, yes and default.
Questions asked
Can I keep my continuous rotation servos and still get position?
Yes — treat each one as a geared motor with a speed command and add an encoder, mounting it after the geartrain on the pinion shaft, or use a linear scale on the carriage, so gear backlash stays inside the measured loop. Your controller then counts its way to coordinates; the servo just follows the speed commands that loop issues.
Why do my shapes get worse the longer the machine runs?
The speed of a continuous rotation servo moves with supply voltage and with load, so a battery that sags during a long drawing lengthens every stroke after the first. Feed the axis from a regulated supply, re-trim the neutral pulse for that voltage, and re-home between drawings. If error still grows with run time on a regulated rail, the cause is slip or lost motion, not the supply.
Do both axes need feedback, or can I instrument just the bad one?
Both. On a Cartesian gantry the axes are independent, and the measured axis cannot correct the unmeasured one — a drifting Y with a healthy X draws circles as widening spirals rather than closing them. Instrument one axis and the other is still free to drift.
What should the axis home to?
A limit switch at one end of travel, tripped the same way every cycle. The switch needs repeatability, not accuracy: it only sets the zero the counted steps are measured from, so a switch that trips within a few thousandths of an inch each time beats an accurate but loosely mounted one. Re-home at the start of every drawing.
Is the servo's internal sensor enough, or do I need an external encoder?
Internal is enough while the question is shaft angle: in standard mode the servo holds the commanded angle on its own. It is blind to everything after the output shaft — rack backlash, pinion slip, a stalled carriage — so when line placement must be tighter than the roughly 0.039 in command step of the 199 mm rack axis, add a linear scale or an encoder on the driven member.