Servo Control
Set an angle, control movement speed, or sweep back and forth.
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.
Choose an angle
Speed
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.