In this video we learn how to control servo motors using the ESP32, starting from the basics and gradually building more advanced control methods.
We begin with a single servo motor, then expand to multiple servos, control a servo using a potentiometer, and finally use an I2C servo driver to control many servos from the ESP32.
To finish the project, we build a WiFi web interface that allows the servos to be controlled from a phone or computer using simple sliders.
This tutorial covers several important concepts including PWM control, ESP32 servo libraries, power considerations, and scalable servo control using the PCA9685 driver.
By the end of the video you will be able to build projects such as robot arms, pan tilt camera mounts, animatronics, and other robotics systems using servo motors.
Code link:
https://github.com/TechTalkies/YouTub...
Topics Covered
• Understanding how servo motors work
• Controlling a servo motor with ESP32
• Controlling multiple servos
• Servo control using a potentiometer
• Using the PCA9685 I2C servo driver
• Controlling servos from a web browser using ESP32 WiFi
• Power considerations when using multiple servos
Hardware Used
ESP32
Servo Motors (SG90 or similar)
PCA9685 Servo Driver
Potentiometer
Breadboard 5V Power Supply (recommended for multiple servos)
Chapters
00:00 Intro
00:13 Servo Pins
00:26 Connecting a servo
00:58 Code and library
02:45 Potentiometer control
04:00 PCA9685
04:47 WiFi Server control