MuTech RoboticsLearning Hub
Kids OK with adultESP32Level 3/3

This Drone’s Body Is a PCB! ESP32 Mini Drone

A tiny quadcopter whose circuit board is also its frame, flown from a phone over Wi-Fi.

Sign in to save
This Drone’s Body Is a PCB! ESP32 Mini Drone
Kids OK, with an adult

DIY project. Children must build this only with an adult (16+ years) beside them at all times. Not suitable for children under 8 years.

An adult charges and handles the LiPo battery, with a proper LiPo charger. Fly indoors in an open room, away from faces, hair and pets, and keep fingers clear of the propellers.

Strictly follow the description given with this video.

Video

How it works

  1. The PCB frame carries the ESP32, the motion sensor and four MOSFETs, one for each coreless motor.
  2. The ESP32 makes its own Wi-Fi; the phone page sends throttle and direction.
  3. The motion sensor reports tilt 250 times a second, and the ESP32 speeds up or slows each motor to stay level.
  4. A battery-sense pin watches the 1S LiPo and lands the drone when it runs low.

Parts you need

  • ESP32 module on the drone PCB× 1
  • 6-axis motion sensor6-axis motion sensor₹172× 1Buy
  • Coreless motor with propeller× 4
  • Logic-level MOSFETLogic-level MOSFET₹52× 4Buy
  • Schottky diode (one per motor)Schottky diode (one per motor)₹4.6× 4Buy
  • 1S LiPo battery (3.7 V 300 mAh)× 1

Wiring

GPIO25Front-left motor MOSFET gateGPIO26Front-right motor MOSFET gateGPIO27Rear-left motor MOSFET gateGPIO14Rear-right motor MOSFET gateGPIO21Motion sensorSDASCLGPIO22GPIO34Batterydivider+−Motors + and 3.3 V regulatorGND
PowerGroundSignal
#FromConnect to
1 SignalFront-left motor MOSFET gateGPIO25
2 SignalFront-right motor MOSFET gateGPIO26
3 SignalRear-left motor MOSFET gateGPIO27
4 SignalRear-right motor MOSFET gateGPIO14
5 SignalMotion sensor SDAGPIO21
6 SignalMotion sensor SCLGPIO22
7 SignalBattery dividerGPIO34
8 PowerBattery +Motors + and 3.3 V regulator
9 GroundBattery −GND

3D print files

This project has no 3D-printed parts.

Code

Get the code