breadboard
Example project · Builds & projects

ESP32-S31 servo sweep

MCPWM on GPIO0 sweeps the powered servo with 20 ms pulses. Serial reports the programmed angles; the servo maps 1–2 ms pulses to its own 0–180° range. Enable verbose in Serial to see the stock INFO lines. Unmodified pinned ESP-IDF development source on the bounded S31 simulator profile; no physical flashing.

The ESP32-S31 servo sweep circuit as rendered by the simulator

What's on the bench

  • Battery
  • ESP32-S31 (development source)
  • Servo

How it's wired

  • Battery · pos→ESP32-S31 (development source) · vin
  • Battery · neg→ESP32-S31 (development source) · gnd
  • ESP32-S31 (development source) · g0→Servo · sig
  • ESP32-S31 (development source) · vin→Servo · vcc
  • ESP32-S31 (development source) · gnd→Servo · gnd

This project runs prebuilt firmware on the emulated board; open it in the simulator to watch it work and inspect every part live.

Related projects