|
|
|
| Thread Tools |
| This thread is privately moderated by SVentas, who may elect to delete unwanted replies. |
|
|
|||||||||
|
Lithuania, Vilnius Region, Vilnius
Joined Apr 2012
47 Posts
|
Rex Caeli FC: from nothing to the first flight
Warning! English is not my native language. I am a biologist so don't expect high quality professional results in electronics because it's just my HOBBY!
Welcome to my first attempt to build a flight controller (FC) with ARM chip on board. Rex Caeli is an absolutely free DIY project mainly for educational purposes. It is not a commercial product and will never be available for sale! Almost three years ago I started to play with Atmel’s microcontrollers (or Arduino, if you like). It was my first journey into digital electronics from absolute zero. Programming in C was not a big deal because I was familiar with it. Actually, programming was my very first serious hobby. Six months ago I decided to try something different. Building a flight controller with ARM chip on board for untrained and unqualified person should be a quite challenging task, shouldn't it? The first question was where to start from? I knew there was an OpenPilot project and their CopterControl (CC) board had an ARM chip. Making a plane copy of CC was not acceptable, because sensors were too expensive and 4-layer PCB board design was expensive too. Nevertheless the open source politics caught my eye. I downloaded EAGLE software and started to build something similar to CC, but cheaper. I was really surprised that much powerful ARM chips cost less then Arduino. One of the cheapest solutions was to use STM32F103RBT6 micro-controller unit and experimental LSM330DL sensor (3-axis acc + 3-axis gyro in one chip) from STMicroelectronics. Reading data sheets, getting familiar with the new stuff and changing the board layout was my best free time entertainer for almost four months. When I was happy with my unprofessional board design,
I sent Gerber files to one of the cheapest Chinese PCB prototyping services called ITeadStudio. One month later I saw the result: ![]() After three nights of hand and hot air gun soldering the bear PCB turned into real hardware: ![]() ![]() Software adaptation process was the most interesting part. OpenPilot CopterControl firmware is much more complicated then for example MultiWii firmware. I wrote a driver for poorly documented LSM330DL sensor chip and modified other parts of the code to match my hardware. After a few days I was very happy when I saw data coming out from LSM330DL sensor to the Ground Control Station software making lines and curves in response to the board movements.
Maiden flight was quite terrible. There were a lot of oscillations, but after some firmware tweaks and PI tuning things became much better.
The flight is still far from ideal. Quadcopter wobbles a little bit, but HEY it's the very beginning. I am very happy with my first result and I hope that it will get better. Another adopted firmware is baseflight (MultiWii for STM32) by timecop. I added a very simple SPI driver because my LSM330DL chip is on SPI bus, not on I2C. All sensors are active and working properly.
|
||||||||
|
|
|
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Discussion First They Came for the Jew, but I Wasn't a Jew, So I Did Nothing... | Highflight | Life, The Universe, and Politics | 30 | Apr 22, 2012 01:38 AM |
| Discussion Free Flight FC or Multiwii? Also, some first build questions. | machina | Multirotor Talk | 2 | Jan 04, 2012 02:50 PM |
| Discussion T-Rex 450: First FPV Flight Video! | jarod120 | Video Piloting (FPV/RPV) | 4 | Jan 03, 2012 03:26 AM |