SunFounder ESP32 Starter Kit
Wiring
• Orange wire is signal and connected to IO25.
• Red wire is VCC and connected to 5V.
• Brown wire is GND and connected to GND.
Code
Note:
• Open the 4.3_servo.ino file under the path of esp32-starter-kit-main\c\codes\4.3_servo. Or copy
this code into Arduino IDE.
• After selecting the board (ESP32 Dev Module) and the appropriate port, click the Upload button.
• Always displaying “Unknown COMxx”?
• The ESP32Servo library is used here, you can install it from the Library Manager.
1.16. 4.3 Swinging Servo 59