# F450 Drone ESP32 Flight Controller

DIY F450 quadcopter built on ESP32 using the esp-fc open-source flight controller firmware. Includes sensor test sketches (MPU-6050, BMP280, GY-271, GPS-6M), full wiring…

拿 ESP32-WROOM-32 的 38 针开发板当飞控，跑打过补丁的 ESP-FC 0.2.1，四路电机 PWM 落在 GPIO 27、25、4、12，MPU-6050、BMP280 和 HMC5883L 共用 GPIO 21/22 的 I2C 总线。

- id: arkadip2007-f450-drone-esp32-flightcontroller
- author: Arkadip2007
- repository: https://github.com/Arkadip2007/F450-Drone-ESP32-FlightController
- license: MIT
- shape: robot
- scenes: tools
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/arkadip2007-f450-drone-esp32-flightcontroller/
- html_zh: https://esp32gallery.com/zh/projects/arkadip2007-f450-drone-esp32-flightcontroller/
- json: https://esp32gallery.com/data/catalog/projects/arkadip2007-f450-drone-esp32-flightcontroller.json

## Hardware

Supported hardware: ESP32. Confirm the exact board revision and pin map in the upstream repository.

支持硬件：ESP32。烧录前请在上游仓库核对板卡版本与引脚定义。

## English

```
An F450 quadcopter flown by a 38-pin ESP32-WROOM-32 devkit running a patched ESP-FC 0.2.1. Four motors take hardware PWM on GPIO 27, 25, 4 and 12; an MPU-6050, BMP280 and HMC5883L share an I2C bus on GPIO 21 and 22. The patch is one line: counterfeit gyro boards answer the WHO_AM_I register with 0x98, which the stock whitelist rejected, so the aircraft refused to boot. Four library-free Arduino sketches test each sensor before flight firmware goes on. Measured on the bench: a 691 Hz sensor loop and over 323 KB free heap. Betaflight Configurator tunes PIDs over USB or Wi-Fi using MSP. Only bench tests and motor direction checks are done; the first flight, barometer, compass and GPS come later.
```

## 中文

```
拿 ESP32-WROOM-32 的 38 针开发板当飞控，跑打过补丁的 ESP-FC 0.2.1，四路电机 PWM 落在 GPIO 27、25、4、12，MPU-6050、BMP280 和 HMC5883L 共用 GPIO 21/22 的 I2C 总线。补丁只改一处：山寨 MPU-6050 的 WHO_AM_I 回 0x98，原版白名单不认，飞机直接不开机。配套还有四个不依赖第三方库的 Arduino 程序，先单独验每颗传感器再上飞控。台架实测传感器循环 691 Hz、剩余堆 323 KB，Betaflight Configurator 走 USB 或 Wi-Fi 的 MSP 调 PID。BOM 里还有 F450 机架、A2212 1000KV 电机、30A SimonK 电调和 1045 桨，遥控是 FlySky FS-i6 / FS-iA6B 走 i-BUS。目前只做完通电和四电机转向测试，首飞、气压计、罗盘、GPS 都还在后面。
```
