Basic Servo Control for Beginners
Introduction
From simply sweeping an object back and forth to adding steering to your robot or R/C car, hobby servos are a great way to add some motion to your next project. Servos allow you to easily control the speed, direction and position [1] of the output shaft with just three wires!
This tutorial covers a few different ways to control servos along with a project demonstrating how to control a servo from an external input. We will cover some basics of controlling servos with one example that requires no programming at all. Then we will control the servos with code using the Arduino IDE and Python. Feel free to jump to the example you would like to work with depending on the parts and code environment you prefer.
Recommended Reading
Before going through this tutorial, you may want to check out these related guides to get familiar with the concepts and parts used in the examples: