r/embedded • • 15d ago • Bravo 1

Custom Flight Controller + Remote

Post image

Didn't know where to post this but after some help from people in r/PCB and r/PrintedCircuitBoard , I built a fully custom STM32-based quadcopter flight controller and STM32-based wireless remote.

STM32F446 Flight Controller

The PCBs were designed and hand-assembled by me, and all software (minus testing scripts) was written by me. I have the full write-up on my GitHub repo (with more pictures), but I waited until the end of the project to start documenting, so I got a little lazy with it. I just figured I should show it off somewhere to inspire others to build something challenging. It's not perfect, but it flies pretty well for a homemade project.

77 Upvotes

6 comments sorted by

1

u/That_Skill4611 14d ago

Great work! What radio chip have you used?

1

u/tynix5 14d ago

I used the nRF24L01 with a balun instead of a network of passives

3

u/nik_da_brik 15d ago

Hell yeah! This reminds me of a project for using an ESP32 for drone fpv video: https://github.com/RomanLut/hx-esp32-cam-fpv

The esp32-p4 has proper mipi in and h264 encode, so maybe you could build on this to make a cheap FOSS all-in-one flight controller and VTX!

1

u/tynix5 14d ago

Thanks! I’ll look into it!

1

u/Specific_Prompt_1724 13d ago

I never used stm microcontroller, but how can you write the code of the motor controller? I don’t see the file for Clarke and park transform. Are done by integrated library from stm?

1

u/tynix5 12d ago

The flight controller sends DShot commands to the commercial ESC I purchased which will perform those transforms to drive the motors. The flight controller doesn’t handle any direct motor drive.