Explainer
What servo oscillation without a controller requires
Short answer
No. A hobby positional servo cannot oscillate on a constant supply alone: with nothing changing on its signal wire it holds the position the last command pulse described. Automatic back-and-forth needs a source of changing pulses, and the cheapest one is a small Arduino-class board sharing ground with the servo and powering the servo separately at its stall current.

On this page
- Why constant power cannot move a positional servo
- What the command signal looks like
- Why the continuous-rotation conversion is the wrong repair
- Pulse widths for an automatic 180-degree stroke at 50 Hz
- Wiring the automatic stroke
- The manual end-to-end test and its one danger
- The decision, case by case
- Questions asked
Power alone will not make a positional hobby servo oscillate. Fed from a steady supply with nothing changing on its signal wire, the servo holds the position its last command pulse described: it sits still, or twitches once and sits still. Back-and-forth motion needs something that changes the command over time, and the cheapest automatic source of changing commands is a small Arduino-class microcontroller board emitting the two end pulses on the signal wire. What follows is why the command, not the supply, is the missing input; the pulse arithmetic for an automatic 180-degree stroke on a rack-and-pinion linear servo actuator; the wiring that makes the stroke repeat; and the decision for each version of the problem, including why converting the servo to continuous rotation is the wrong repair.
Why constant power cannot move a positional servo #
A positional servo is a closed loop in one small package. The signal wire carries the commanded position, an internal sensor reports the actual output position, and the internal electronics drive the motor until the two agree. The power leads supply energy only; they carry no position information, which is why a servo needs a controller between it and the motor no matter how small the axis is. Hold the command constant and the loop holds one position indefinitely. Change the command and the loop drives to the new position and holds there. Oscillation is nothing more than a command that keeps changing: there is no state in which a healthy positional servo wanders back and forth on a fixed input.
What the command signal looks like #
The command is a train of repeating pulses. Hobby servos read a pulse width of about 1000 to 2000 microseconds, repeated about 50 times a second — a 50 Hz frame. The width inside that range sets the commanded position: one end of the span commands one end of travel, the other end commands the opposite end, and the midpoint commands center. The frames must keep repeating even when the position does not change, because the servo is continuously comparing the latest command against its feedback. Parts differ around these typical hobby values, so take the exact width range and frame rate from the datasheet of the exact servo. The one fact that answers the bench question: a constant logic level on the signal wire is not a pulse, so it is not a command.
Why the continuous-rotation conversion is the wrong repair #
The tempting shortcut — open the case, neutralize the feedback potentiometer, let the motor spin freely — fails twice on this actuator. First, it destroys what makes the device a servo: with feedback gone, the command value sets speed and direction instead of position, which is also why a converted unit still creeps at its neutral command pulse. Second, the actuator already contains its own rack and pinion, so the linear travel is built in. A continuously spinning converted motor would drive that rack into its mechanical end stop and hold it there, and you would still need limit switches, a crank or a reversing mechanism stacked on top. That is more hardware than the problem needs, with no position control at the end of it.
The decision: keep the positional servo, keep its feedback, and fix the missing input instead — the command. What the conversion costs in positioning terms is what the test of continuous rotation servos on a drawing gantry shows.
Pulse widths for an automatic 180-degree stroke at 50 Hz #
The case is the one from the bench: a rack-and-pinion linear servo actuator that must sweep 180 degrees of command — 90 degrees each side of center — automatically, from a steady supply. Inputs: the typical hobby command span of 1000 to 2000 µs and the 50 Hz frame, both to be confirmed against the servo's own datasheet; the 180-degree command span set by the required stroke; and the timer behind the servo library on an Arduino-class board, which divides each frame into 4096 time slots.
The rule in words: the pulse width maps linearly across the command span, so each degree of stroke owns a fixed slice of width; the center of stroke is the midpoint of the span; the frame period is one second divided by the frame rate.
Arithmetic:
- Frame period: 1 s ÷ 50 = 0.020 s = 20 ms, which is 20,000 µs per frame.
- Width span: 2000 µs − 1000 µs = 1000 µs, spread over 180 degrees, so 1000 µs ÷ 180 degrees ≈ 5.6 µs per degree.
- Center command: the span midpoint, 1500 µs.
- End commands: 1500 µs − 500 µs = 1000 µs and 1500 µs + 500 µs = 2000 µs, because each half-stroke takes half the width span.
- Timer step: 20,000 µs ÷ 4096 ≈ 4.9 µs, so commanded widths land on about 4.9 µs steps — invisible at the ends of the stroke, visible as small quantizing if you hold a fine mid-travel position.
Result, for these inputs: the automatic stroke is two commands — the two end widths from the arithmetic above — each repeated every frame, with the center width in reserve as the exact midpoint.
Decision: emit one end width for a dwell, then the other end width, and repeat. Set each dwell above the servo's travel time at the working load, from its datasheet or measured once on the machine, so the rack arrives before the command flips. Any intermediate stop is a width between the two ends, at the 5.6 µs per degree computed above.
Wiring the automatic stroke #
- Use an Arduino Uno-class microcontroller board, or any board with a servo pulse library — the cheapest automatic command source for a single axis.
- Power the servo from its own supply, sized for the stall current on the servo's datasheet rather than its running current. Never feed the servo from a logic pin or a USB port: neither delivers stall current, and the inrush when the motor starts resets small boards.
- Join the grounds: servo supply negative and board ground at one point. A missing common ground is the most frequent reason a correct-looking pulse does nothing.
- Run a board output pin to the servo signal wire.
- Program the loop: emit one end width for a whole dwell, then the other end width, then repeat. Start with commands slightly inside the mechanical limits and widen them only after watching the rack reach each end under load.
- If the board resets when the rack starts moving, fit a bulk capacitor across the servo supply at the servo.
The manual end-to-end test and its one danger #
Without a board, practitioners tie the signal wire to the 5 V rail to command one end and to ground to command the other, because some input stages read a pinned line as a command outside the normal pulse span. Behavior depends on the servo's electronics — some units drive to an end, some ignore the level — so treat it as a bench test with a momentary switch, not as a design, and expect only fully out or fully retracted from it. One safety note: a pinned command that coincides with the mechanical stop stalls the motor at its stall current, and the case heats within seconds, so watch supply current and case temperature during the test and never leave it energized unattended. For anything automatic this path is closed — a switch cannot flip itself — which is why the small board is the answer for an unattended stroke.
The decision, case by case #
- One end on demand, flipped by hand: a two-position switch on the signal wire — the verified bench test above, nothing more.
- Automatic back-and-forth between the ends on a steady supply: the smallest board that outputs servo pulses, an Arduino Uno-class board being the cheapest practical choice, alternating the two end widths with dwells longer than the travel time.
- Intermediate or changing stops: the same board, computing each width from the linear mapping in the worked example.
- Reciprocating motion with no positioning and no electronics at all: a gearmotor driving a crank or Scotch yoke converts steady rotation into back-and-forth travel mechanically. That is the only way constant power alone produces a stroke, and it gives up position control entirely — the moment the travel must stop at known ends, the board wins.
Questions asked
Why does the servo stay still or twitch once when only power is connected?
With no pulses arriving there is no commanded position to follow, so the output stage does nothing or settles wherever its power-up state leaves it. That resting spot is not a command and is not repeatable, so treat an uncommanded servo as uncontrolled rather than off, and put a real command on the signal wire before relying on where the output sits.
Can a fixed oscillator module replace the programmable board?
Only if it emits proper servo frames: a pulse inside the servo's accepted width range, repeated continuously at the servo's frame rate. A bare on-and-off square wave or a duty-cycle trick is not a valid command. Compare the module's documented output against the servo datasheet before wiring it; a module that only produces a fixed square wave cannot command positions.
Why does the servo buzz or hum while holding one position?
A holding servo resists load with holding current, so a slight hum is normal. Steady buzzing under a clean command usually points to a noisy supply, a missing common ground, or a commanded width at the edge of the accepted range. Heat is the warning sign: a servo that keeps getting warmer at a fixed command is working against a stop or a load it cannot hold.
Can the same setup stop at positions between the two ends?
Yes. The commanded width maps linearly across the accepted pulse span, so any intermediate position is a width between the two end widths, computed exactly as in the worked example. Keep the frames repeating at the servo's frame rate while it holds, and expect small timer steps when holding a very fine mid-travel position.
Does a single repeating stroke justify a PLC or motion controller?
No. One axis moving between two commanded positions needs only a pulse source, and an Arduino-class board covers it. A PLC or motion controller earns its cost when the stroke must synchronize with other axes, follow a speed profile, or report to a line controller, not for one repeating stroke on its own.