Using Servos with CircuitPython
Servos are tiny motors that you can control the position of by generating a special signal. You might use a servo to move something back and forth, like moving a dial to indicate a measurement or even moving a latch to open and close a door. There are even special ‘continuous rotation’ servos that can act like little motors with control over their speed and direction–perfect for building a simple robot! The possibilities for movement with servos are unlimited!
This guide will explore how to control servo motors from CircuitPython and Python code. You can use simple Python code to move a servo to different positions. You can even use the CircuitPython REPL to move a servo interactively!
In addition this guide will also show basic servo control with Arduino code too!
Familiarization
Before you get started it will help to familiarize yourself with servos by reading these guides:
- Adafruit Motor Selection Guide – Servo Motors
- Arduino Lesson 14: Servo Motors
- CircuitPython Essentials
Read More: Using Servos with CircuitPython