In this video, I build an animated Guy Fawkes mask and control it from the Raspberry PI Pico. I used RGB LEDs to illuminate the eyes. A pan and tilt servos arrangement MG996R to move the head. Then three HC-SR04 range sensors so that the mask turns towards the closest object.
The example is easy-level electronics and fairly straightforward coding. I did introduce a little complexity so that the servo would accelerate and decelerate through movements. This required some task management and therefore simple use of FreeRTOS.
For more on RGB LEDs see my course: Raspberry Pi Pico MicroProjects on Udemy.
For more on Servos see my short video.
For more on HC-SR04 Ultrasound Range sensor see this video.
All of the source code for this project is published under the MIT licence on GitHub Repo.
