AI agents & screen readers: for a machine-readable, text-only catalogue, start at /llms.txt. Products are available as Markdown (/products.md, /products/{handle}.md) and JSON (/products.json, /products/{handle}.json).
Store
Control a continuous servo
Beginner 25 minutes

An interactive 3D build with a live HTML servo controller and Arduino code.

Control a small continuous-rotation servo from your browser. Learn how power, ground and a timed signal work together, then experiment with speed, stopping and reversing.

This build uses USB power through the Uno’s 5V pin for an unloaded demonstration. Keep the horn clear and unplug USB before changing connections. If the Uno resets or the motor struggles, unplug it and stop.

View Markdown

Step 1 — Watch the complete build

Press Play for the narrated build, or follow one connection at a time below. Drag the 3D view to inspect it; scroll to zoom. Keep USB disconnected until the wiring check.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

We’ll control a continuous rotation servo: change its speed, stop it, and reverse it. U S B powers this small unloaded demonstration. Keep the horn clear and leave U S B disconnected while wiring. Connect ground on the Uno to the lower negative rail with a black jumper. This rail gives the circuit a shared return path, so the servo and controller have the same reference. Connect five volts on the Uno to the lower positive rail with a red jumper. The two rails stay separate: one carries power, and the other returns to ground. This is a continuous rotation servo, so we control speed and direction rather than an angle. Its cable has three leads: brown is ground, red is power, and orange is the signal. Connect the servo’s brown ground lead to the lower negative rail with a black jumper. Its male end fits the servo’s female socket. The rail completes the return path to the Uno. Connect the servo’s red lead to the lower positive rail. That completes the five volt power path from the Uno. Leave the motor unloaded for this U S B-powered demonstration. Connect digital pin nine to the servo’s orange signal lead. The Servo library sends timed pulses along this wire; their length tells the servo which direction to turn and how fast. Check the red and black connections before adding power. Connect the square U S B plug to the Uno, then the other end to your computer. Upload the program in the editor below. Start with a modest positive speed and hold Run. Release it to stop. Now try a negative speed to reverse direction. If the horn creeps at zero, adjust the neutral setting in small steps.

Step 2 — Meet the build

We’ll control a continuous rotation servo: change its speed, stop it, and reverse it. USB powers this small unloaded demonstration. Keep the horn clear and leave USB disconnected while wiring.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

We’ll control a continuous rotation servo: change its speed, stop it, and reverse it. U S B powers this small unloaded demonstration. Keep the horn clear and leave U S B disconnected while wiring.

Step 3 — See the hidden breadboard connections

The cutaway below explains the metal connections hidden inside the plastic. The terminal strips are shown in two colours to distinguish the two sides; those colours do not assign power or ground.

Inside the breadboardFive terminal holes share one metal strip. Opposite sides of the centre gap are isolated. Positive and negative rails are separate. Real rails can have a break.Hidden metal strips make the connections+ rail · power− rail · groundFive holes. One connection.The adjacent column is a different strip.Centre gap · no connection across itThe other side has its own strips.Rail markings are labels, not a power source.Some boards split their rails: inspect your board and check continuity unpowered.

In this build, each rail joins the listed contacts along one side. The opposite rail does not connect automatically. If your board has a split rail, bridge the two sections only after checking which holes belong together. Never bridge positive to negative.

FromToWire
Uno 5VLower + rail, hole 5Red
Uno GNDLower − rail, hole 5Black
Servo brown/blackLower − rail, hole 42Black jumper
Servo redLower + rail, hole 41Red
Uno D9Servo orange/yellow signalOrange

Step 4 — Connect the ground rail

Connect ground on the Uno to the lower negative rail with a black jumper. This rail gives the circuit a shared return path, so the servo and controller have the same reference.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect ground on the Uno to the lower negative rail with a black jumper. This rail gives the circuit a shared return path, so the servo and controller have the same reference.

Step 5 — Connect the power rail

Connect five volts on the Uno to the lower positive rail with a red jumper. The two rails stay separate: one carries power, and the other returns to ground.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect five volts on the Uno to the lower positive rail with a red jumper. The two rails stay separate: one carries power, and the other returns to ground.

Step 6 — Add the continuous servo

This is a continuous rotation servo, so we control speed and direction rather than an angle. Its cable has three leads: brown is ground, red is power, and orange is the signal.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

This is a continuous rotation servo, so we control speed and direction rather than an angle. Its cable has three leads: brown is ground, red is power, and orange is the signal.

Step 7 — Connect servo ground

Connect the servo’s brown ground lead to the lower negative rail with a black jumper. Its male end fits the servo’s female socket. The rail completes the return path to the Uno.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the servo’s brown ground lead to the lower negative rail with a black jumper. Its male end fits the servo’s female socket. The rail completes the return path to the Uno.

Step 8 — Connect servo power

Connect the servo’s red lead to the lower positive rail. That completes the five volt power path from the Uno. Leave the motor unloaded for this USB-powered demonstration.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the servo’s red lead to the lower positive rail. That completes the five volt power path from the Uno. Leave the motor unloaded for this U S B-powered demonstration.

Step 9 — Connect the control signal

Connect digital pin nine to the servo’s orange signal lead. The Servo library sends timed pulses along this wire; their length tells the servo which direction to turn and how fast.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect digital pin nine to the servo’s orange signal lead. The Servo library sends timed pulses along this wire; their length tells the servo which direction to turn and how fast.

Step 10 — Connect USB

Check the red and black connections before adding power. Connect the square USB plug to the Uno, then the other end to your computer. Upload the program in the editor below.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Check the red and black connections before adding power. Connect the square U S B plug to the Uno, then the other end to your computer. Upload the program in the editor below.

Step 11 — How the signal works

Pulse length commands speed and directionShorter than neutral, neutral, and longer than neutral command opposite directions and stop. Neutral is calibrated near 1500 microseconds. This does not set an angle.Same signal wire. Different pulse lengths.Shorter → one directionNeutral → stopLonger → other directionNeutral starts near 1,500 µs. Trim it for your servo.This controls rotation speed—not a shaft angle.D9 carries the command; the red lead powers the motor.

The Servo library sends pulse-length commands on D9. A continuous servo interprets these as speed and direction. Zero in the App means the calibrated neutral pulse, not an angle of zero degrees. Positive and negative values select opposite directions; which one looks clockwise depends on the servo and your viewing side.

The on-screen horn illustrates the command. It cannot measure the physical shaft’s speed or position.

Step 12 — Upload the Arduino program

Keep the servo unloaded and its horn clear. In Chrome or Edge, choose Pair board, select the Uno, then Verify and Upload. Wait for Ready before using the App below.

The sketch starts stopped, uses 115200 baud, and stops within one second without Run heartbeats. USB powers this demonstration through Uno 5V; the brown lead and Uno share ground.

Control a continuous servoOpen in English ↗

Step 13 — Control the servo

The connection is shared with the code editor above. Set a modest speed and hold Run; release to stop. Negative values reverse the servo. If the horn creeps at zero, release Run, open Neutral calibration and adjust the neutral pulse in small increments before testing again. Power off before touching the horn or wiring.

Download the App HTML to reuse in English → App → Edit HTML. The on-screen horn follows commands; it is not position feedback.

Step 14 — Run, stop and reverse

Start with a modest positive speed and hold Run. Release it to stop. Now try a negative speed to reverse direction. If the horn creeps at zero, adjust the neutral setting in small steps.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Start with a modest positive speed and hold Run. Release it to stop. Now try a negative speed to reverse direction. If the horn creeps at zero, adjust the neutral setting in small steps.

Step 15 — Try, predict and compare

  1. With the horn clear and no mechanical load, choose a small positive speed such as 15 and hold Run. Expect slow continuous rotation.
  2. Release Run. Expect the motor to stop. Try −15 and compare the direction.
  3. Return to zero. If the horn creeps, release Run and adjust Neutral calibration by a few microseconds. Retest until stationary.
  4. Compare 15 and 30. The number is a command percentage, not a measured RPM; twice the setting need not produce exactly twice the speed.

Step 16 — Troubleshoot your build

What you seeWhat to check
No movementWait for Ready after upload, select a nonzero speed, and hold Run. Check D9 and the shared ground.
Creeps at zeroTrim neutral in small increments; do not force the horn by hand.
Uno resets, motor stutters or strugglesUnplug USB and stop. This unloaded demonstration may exceed a particular USB source’s available current. A larger load needs a correctly rated external motor supply with common ground; do not tie its positive output to Uno 5V.
Rotates to an angle and stopsCheck the part: this lesson requires a continuous-rotation servo, not a positional SG90.

The program starts stopped and stops after one second without Run heartbeats. Disconnect USB before changing wiring.

Parts List

Required Parts (4)

Uno R3 - Little Bird
Uno R3 - Little Bird

Controller; connect its USB only after wiring.

x1

$19.55

In stock
Full sized breadboard
Full sized breadboard

830 contacts; use the labelled rails.

x1

$11.95

In stock
Micro Servo 9g - Continuous
Micro Servo 9g - Continuous

Continuous rotation; speed and direction rather than an angle.

x1

$8.20

In stock
40 pin 15CM Jumper wire M/M
40 pin 15CM Jumper wire M/M

One pack; use five male-to-male jumpers.

x1

$5.10

In stock

Optional Extras (1)

USB Cable A-B for Arduino Uno/Mega
USB Cable A-B for Arduino Uno/Mega

Additional USB data cable; use an existing one if available.

Optional

$2.00

Project Summary

5 parts total

Required parts $44.80
Optional extras +$2.00
Total (required) $44.80

Unavailable items will be skipped

Maddy, co-founder of Little Bird

Need help? We're here for you!

Hi, I'm Maddy. My team and I are ready to help with your order or any questions.