Arduino Mega · USB serial

Servo Control

Set an angle, control movement speed, or sweep back and forth.

Not connected

Join a servo room

Join the same room from your phone and the Windows computer connected to your Arduino. Your PC connects to the Cloudflare room server automatically.

Join a room, then connect the Arduino by USB from this computer.
Not in a room
Room—
Arduino deviceOffline
Controllers0
Position

Choose an angle

90°
0° · Left90° · Center180° · Right
Movement

Speed

60°/s
1°/s · Slow90°/s180°/s · Fast
Target angle90°
Movement modeIdle
Signal pinMega D33

Important setup notes

This version is for a standard positional servo. It moves to an angle between 0° and 180°; it does not spin continuously. The speed setting controls how quickly the Arduino steps through angle commands. Actual speed depends on the servo and its load.

Servo signal (usually yellow/orange/white) goes to D33, red to a suitable regulated 5V supply, and brown/black to GND. For most servos, use a separate 5V supply rated for the servo's current instead of powering it from the Mega's 5V pin. Connect the supply GND to Mega GND.

Upload arduino/servo_controller.ino first. Close the Arduino IDE Serial Monitor before connecting this page. Test a small range first and never force the servo against its mechanical stops.