Improve your Robots by adding feedback to your servos, so you know the angle the servo is at using this simple hack. I use the ADC (Analog to Digital Convert) on the Raspberry PI Pico to have full control of a Servo.
Whether you’re using servos for complex robots or just a pan and tilt platform this technique will give you feedback quickly to your Raspberry PI Pico on the position of the Robot. This allows us to remove that disturbing jerk when a robot first starts up and the servos quickly establish position. Follow along as I explain how a servo works, how to tap the potentiometer in the servo and read its value on the Raspberry Pi Pico.
There is some disassembly of the servo and soldering involved. These come with risks to the servo and your health. So take care and be prepared to damage a servo.
Great example repo for controlling a servo and reading it’s position.
⏰Timestamps
- 0:00 Introduction
- 1:29 How Servo’s work
- 5:20 Soldering a feedback wire
- 6:05 Reading position from feedback wire
- 10:30 Demonstration
Get more out of your servos with the Raspberry Pi Pico using this hack. Subscribe for more C++ programming tips and tricks, like if you found this tutorial helpful, and comment below with your thoughts or questions. Follow us on social media for the latest updates and exciting content
