The aim of this project was to use as much as possible things which are laying around in my workshop to build a quadrocopter. I wanted to buy as little as possible.
Components
1×
STM32F4 Discovery Board
A giveaway from the last "Electronica" in munich
The next thing was to add an LED backlight because the display isdifficult to readin the sun.
Unfortunately the firmware is not the best choice. But since it has an AVR Mega as main controller, there are a couple of alternative firmware projects for this remote control. I decided to put "er9x" on it. All I have to do is to solder an ISP plug on the right pins of the controller and take my AVR JTAG ICE3.
The FlySky TH9X is a relative cheap 8 channel 2,4GHz remote control. I payed 80 Euros for a brand new couple of a receiver and the transmitter.
TheMPU-6000 IMU (inertial measurement unit) boardwas notto get for areasonable price.
Instead,I gotanMPU-6050 breakout boardfor2,55 € in China.
Unfortunately, theMPU-6000andMPU-6050 arenot100% compatible. Thus, theMPU-6050, for example,noSPIbut onlyI²C. Witha small changeat theAeroquadsourceisalsonot a problem.
The Discovery board is connected to the "AeroQuad Configurator" through the USB/serial interface. With that software you can do several configurations and tests.
First of all I tried to simulate the remote control by my little frequency generator and looked what the motor output shows on the oscilloscope.
Fortunately by accident I found the the AEROQUAD Project. They developed an open source flight control for multicopter, running also on the STM32F4Discovery board!
Because i had a STM32F4Discovery board laying around, I wanted to use it as the flight controller for the quadrocopter.
Hi Clovis, thank you! After some investigations in kalman filters and quaternion mathematics, I decided to take the open source firmware from the Aeroquad project. It would have taken too long to develop everything themselves. The Aeroquad firmware is also running on an Arduino based flight controllers. Maybe I will document some more details about it in the next day´s...
Nice, good job, man. I am just starting the same journey, having just bought an off-the shelf (Arduino based) flight controller, which I will use to program it from scratch as well. I have also bought crazyflie motors and will try and build my own ESC's.
Can you share your code? Thank you.