In the latest Explaining Computers video, Christopher Barnatt explains how to use servo motors with Raspberry Pi. Using servos is a great introduction to the digital making side of computing; servos allow you to control the movement of all manner of project components with your Raspberry Pi and a motor controller attached to its GPIO pins.
Control of SG90 servos in Python on a Raspberry Pi, including an explanation of PWM and how a servo differs from a motor. You can download the code from the video at: https://ift.tt/385gqid The five-pack of SG90 servos used in this video was purchased on Amazon.co.uk here: https://ift.tt/2Ngezif with a similar product on Amazon.com here: https://amzn.to/2QHshx3 (affiliate links).
Servos and your Raspberry Pi
Christopher picked up his SG90 servo motors online, where you’ll find a variety of servo options. What type of servo you need depends on the project you want to create, so be sure to consider the weight and size of what you plan to move, and the speed at which you need to move it.
As the motor controller connects via GPIO, you can even use the tiny £5 Raspberry Pi Zero to control your servo, which makes adding movement to your projects an option even when you’re under tight space constraints.
Find out more
For other detailed computing videos, be sure to subscribe to the Explaining Computers YouTube channel.
And for more Raspberry Pi projects, check out the Raspberry Pi projects page.
Raspberry Pi projects PSA
We’re always looking for people to join our incredible community of translators to help us translate our free resources, including the free projects found on our projects page.
If you speak English and another language and would like to give a portion of your time to making our resources available to more people across the globe, sign up as a translator today.
The post How to control multiple servo motors with Raspberry Pi appeared first on Raspberry Pi.