ESP32 Drone Wiring Diagram: MOSFET Motor Pins
Here is the full schematic circuit. Each motor channel is the same: battery + ā motor ā MOSFET ā GND, with the ESP32 pin controlling the gate. The MPU6050 talks to the ESP32 over I²C (SDA on GPIO 21, SCL on GPIO 22).
Parts and connections
- GPIO 25
- ā Q1 ā front-left motor
- GPIO 26
- ā Q2 ā front-right motor
- GPIO 27
- ā Q3 ā rear-left motor
- GPIO 14
- ā Q4 ā rear-right motor
- GPIO 21
- ā MPU6050 SDA
- GPIO 22
- ā MPU6050 SCL
Check before the next step
- All GNDs connected together
- No bare wires touching
- Check with a multimeter before connecting the battery