SunFounder ESP32 Starter Kit
Available Pins IO13, IO12, IO14, IO27, IO26, IO25, IO33, IO32, IO15, IO2, IO0, IO4, IO5, IO18, IO19,
IO21, IO22, IO23
Schematic
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_swinging_servo.py file located in the esp32-starter-kit-main\micropython\codes
path, or copy and paste the code into Thonny. Then, click “Run Current Script” or press F5 to execute it.
• Make sure to select the “MicroPython (ESP32).COMxx” interpreter in the bottom right corner.
3.18. 4.3 Swinging Servo 353