Servos
Lesson (25 mins):
Classroom Code / Project: Use a Positional Servo, Use a Continuous Rotation Servo
Equipment: (1 for each Trainee)
Micro:bit
computer
USB cord
positional microservo
continuous rotation microservo
servo connector
battery pack
Skills
Robotics
Physical computing
Using servos
Keywords
loops
troubleshooting
In Game Application
Open-ended projects, robotics
What is a servo?
Continuous vs Positional
A servo is a type of motor that is often used in robotics and automation because it can be controlled very precisely. They come in different sizes, but what we usually have here at the Academy are microservos. They’re small, so they don’t have a lot of strength (they can’t be used to pick up heavy things or control big objects) but work great with the micro:bit.
There are two types of microservos: positional and continuous rotation.
Positional ones can only move 180 degrees (half a rotation), but you can tell it exactly what angle you want it to go to. That’s useful for things like moving a robot arm to a specific position.
Continuous ones can go all the way around. You can’t tell them to stop or go to a particular angle, but you can control the speed and which direction they go. They’re useful for things like making a robot move with wheels or winding a pulley.
[Demo with the Familiar?]
Student Activity
Open-Ended Exploration
Students should try attaching materials to the servo arm and trying different things with the code for different effects. Some ideas for inspiration:
Adding a cardboard or paper arm or arrow to a servo
Adding a wheel to a servo
Using various inputs to trigger servo movement
Tying a particular input that moves the servo autonomously — i.e., using the loudness to dictate the servo angle for a karaoke effect, or controlling the servo angle based on the orientation of the micro:bit