Downloading Model Assistance

image (2).png

Image

I’ll add this provided board photo as a stable project asset and update the README image section to use it.
Done — I added the provided board photo as a project asset and updated the README to reference the stable local asset path.
Can you fix the formatting on page Betaflight Firmware?
I’ll clean up the Betaflight Firmware document formatting while preserving its content, then verify the result.
Done — I cleaned up the Betaflight Firmware page with proper Markdown headings, bullet lists, numbered setup steps, a fenced CLI code block, and a safety/bring-up checklist.
Review firmware mapping
Fix README images
Run project review
Check BOM accuracy
Export manufacturing files
U1
Manufacturer Part Number
AMS1117-3.3
IC1
+3V3
OSD_MOSI
UART1_RX
VIDEO_OUT
OSD_CS
OSD_XFB
USB_D+
UART3_RX
NRST
OSD_LOS
GYRO_CS
I2C_SCL
LED2
+3V3
OSD_LOS
UART6_RX
UART6_RX
I2C_SDA
GYRO_CS
SW1
BUZZER
VIDEO_IN
VIDEO_IN
AVDD
USB_D-
OSD_SAG
AVDD
I2C_SCL
GYRO_SDA
+V_USB
GYRO_INT
AVDD
+3V3
OSD_XFB
OSD_SCK
OSD_CS
UART1_TX
UART6_TX
OSD_MISO
SW2
+5V
+5V
+5V
UART3_RX
OSD_CLKIN
+V_USB
VIDEO_OUT
OSD_SCK
USB_D-
+3V3
+3V3
+3V3
I2C_SCL
LED1
PPM_IN
UART1_RX
I2C_SDA
SW2
OSD_MOSI
USB_D+
I2C_SDA
OSD_SAG
GYRO_SDO
UART3_TX
UART6_TX
GYRO_SCL
GYRO_INT
OSD_HSYNC
+V_USB
OSD_CLKIN
+5V
UART1_TX
+5V
OSD_VSYNC
OSD_MISO
GYRO_SDO
OSD_VSYNC
+3V3
LED2
LED1
OSD_HSYNC
UART3_TX
+3V3
SW1
GYRO_SDA
+5V
+3V3
GYRO_SCL
C4
Capacitance
10uF
R7
Resistance
22 Ω
USB
R2
Resistance
4.7kΩ
R15
Resistance
10kΩ
UART_3_6
UART1_I2C
R17
Resistance
1kΩ
R5
Resistance
4.7kΩ
R3
Resistance
10kΩ
R4
Resistance
10kΩ
R16
Resistance
1kΩ
5V_RAIL
R14
Resistance
10kΩ
R10
Resistance
75 Ω
R8
Resistance
22 Ω
R9
Resistance
75 Ω
R11
Resistance
1kΩ
R13
Resistance
1kΩ
GND_RAIL
R1
Resistance
10kΩ
VIDEO
R12
Resistance
1kΩ
SWITCHS
D2
S1
C2
Capacitance
0.1uF
C17
Capacitance
0.1uF
C8
Capacitance
0.1uF
C11
Capacitance
0.1uF
C1
Capacitance
0.1uF
C10
Capacitance
0.1uF
C3
Capacitance
0.1uF
C5
Capacitance
10uF
U2
C13
Capacitance
0.1uF
C16
Capacitance
0.1uF
C9
Capacitance
0.1uF
Y1
C14
Capacitance
47uF
LED1
X1
C15
Capacitance
47uF
LED2
U5
C7
Capacitance
2.2nF
C6
Capacitance
1uF
C12
Capacitance
0.1uF

Refine this doc
Ask about this doc
README
STM32F4 Flight Controller
Сompact template of the STM32F4 flight controller, modular platform designed for rapid prototyping of quadcopters and experiments with sensors and flight algorithms.
image (2).png

Image


Inspiration & Idea
I was inspired by projects like this glove-controlled drone (https://www.hackster.io/news/building-a-glove-controlled-drone-8faecd3fe50b) and wanted to build a platform that lets me implement whatever control logic I imagine — simple commands (forward, left, right) or advanced autonomous behaviors. I therefore built a flight controller on the STM32F405RGT6 and a companion ESC to give me full hardware control — a compact, configurable base ready for adding AI-based object detection and tracking.
Complementary ESC project: readme
Drone
image.png

Image

You can view the drone's build here - skeleton-and-muscles-of-a-quadcopter

Board Specs
The design includes the core subsystems typically needed in a multirotor controller:
  • MCU: STM32F405RGT6 (Cortex-M4, FPU)
  • Input voltage: VIN 5V (on-board regulators for 5V/3.3V)
  • On-board sensors: IMU (SPI/I2C) support; no barometer included
  • Sensor interfaces: SPI, I2C, I2S (for IMU/compass/other)
  • Motor outputs: 4–8 PWM / DShot-capable outputs (ESC control)
  • Communication: UART (telemetry/config), USB (DFU/serial), CAN optional
  • Firmware: modular structure (drivers, sensors, control, comms), RTOS-ready (FreeRTOS compatible)
  • Telemetry: supports DShot telemetry / UART telemetry to GCS
  • Protections: failsafe, arming checks, sensor calibration routines
  • Expandability: external barometer/GPS/camera/AI module via UART/I2C/SPI/USB
  • Documentation: schematic, BOM, configuration files, and flash/build instructions (link to files to be added)
  • Complementary ESC project: readme
Flight Through Failures
Warning: Always remove propellers before adjusting hardware or firmware!!!
Overview
I started as an experiment — I wanted a working platform to quickly develop flight logic, so I soldered a controller based on the STM32F405RGT6 and simultaneously designed my own ESC to have full control over the hardware. The modular firmware architecture let me work in parallel on drivers, sensors, and motor control.
You can find out why I chose this particular STM32 here - why-the-stm32f405rgt6
image.png

Image

Hardware Challenges
The hardest issues were hardware-related: routing pins for all interfaces without conflicts, eliminating motor-induced power noise with a VIN = 5V supply, and thermal/current problems on the ESC under load. Electromagnetic interference from motors affected the IMU, so I tested filters, shielding, and sensor placement. The OSD chip initially failed because it was on “slow” MCU pins — I solved it by lowering the SPI clock for that interface (or by remapping the OSD to a faster pin).
Firmware & Calibration
Firmware work required synchronizing PWM/DShot, calibrating the IMU and magnetometer correctly, and implementing failsafe and arming procedures. These features needed extensive bench testing before mounting propellers.
I documented the main Betaflight settings in the betaflight-firmware
Test Flights
I conducted many test flights, including several flyaways caused by unsynchronized motors, which forced improvements to motor timing, ESC calibration, and safety logic. ESC testing also highlighted the need for additional over-current protection and more accurate shunt measurement.
Current Status & Next Steps
The platform now flies and enables rapid prototyping of movement logic, but achieving stability required many small fixes, schematic revisions, and fine-tuning. Next I plan to integrate AI modules for object detection and tracking and address the identified hardware/software improvements first.
Building It Yourself
If you want to build your own flight controller, you can order the PCB from a fab like JLCPCB or fork the project and adapt it to your needs. You’ll also need the firmware source—update pin mappings/resources and rebuild (STM32 toolchain/STM32CubeIDE or Makefile).
Recommended steps:
  • Review and update the BOM for available parts and suitable substitutes.
  • Adjust PCB layout/pin mapping if you need different connectors, sensors
  • Order prototypes (small batch) from JLCPCB or a similar service.
  • Populate power rails and regulators first; verify voltages before installing the MCU.
  • Flash minimal firmware, fix resource conflicts, then add sensors and ESC connections.
  • Perform bench tests (props off), calibrate IMU/magnetometer, apply Betaflight settings, and only then do flight tests.
Like Edison, who turned thousands of attempts into the light bulb, persistence wins. Keep experimenting, and you will succeed!

  • README

  • STM32F4 Flight Controller

  • Inspiration & Idea

  • Board Specs

  • Flight Through Failures

  • Overview

  • Hardware Challenges

  • Firmware & Calibration

  • Test Flights

  • Current Status & Next Steps

  • Building It Yourself

Documents

  • README

  • Betaflight Firmware

  • Why the STM32F405RGT6

  • Skeleton and Muscles of a Quadcopter

Assets

Assembled flight controller photo

Assembled flight controller photo

assembled-flight-controller-photo.png
image1

image1

image1
STM32F4 Flight Controller Template image.png

STM32F4 Flight Controller Template image.png

STM32F4 Flight Controller Template imageThumbnail
Assembled power modules photo

Assembled power modules photo

assembled-power-modules-photo.png
Assembled board photo

Assembled board photo

assembled-board-photo.png

STM32F4 Flight Controller Template

STM32F4 Flight Controller Template thumbnail
STM32F4-based flight controller featuring a 6-axis IMU (accelerometer + gyroscope) for stable flight dynamics and a MAX7456EUI OSD generator for real-time video overlay of flight telemetry. #drone #flightController #STM32F405 #controller #OSD #video #referenceDesign #project #MPU6000 #template

Pricing & Availability

Distributor

Qty 1

Arrow

$7.19–$12.51

Digi-Key

$12.62–$12.63

HQonline

$8.97–$9.06

LCSC

$24.55–$24.72

Mouser

$14.57

TME

$17.52–$17.57

Verical

$5.60–$38.27

Controls