Quadrocopter update

I used to have a tuning rig for my quadrocopter but I forgot it at my parents place before I stopped working on it for more than a year and now the rig is gone. Now that I want to continue working on the quad I had to build a new tuning rig.

Quadrocopter tuning rig
I made a new tuning rig for the quadrocopter.
Close up on tuning rig.
A close-up on one of the arms holding the quadrocopter. A small piece of aluminum tube with an inner diameter of 8 mm is striped to the MDF. Inside a M8 threaded rod is inserted into the square bar of the quadrocopter and is secured with a M8 nut and washer.

It is a little larger and better looking than the last one and there is less friction when rotating the quad. This hopefully leads to a better tuned software. I managed to tune the angular rate mode this weekend, I think it will be flyable right now but I haven’t tested it yet due to bad weather. I’ll upload a video as soon as I have tried it outdoors.

This is what I have left to do with controller software:

  • Filter yaw gyro signal, it’s to noisy right now to use as a feedback signal for yaw control
  • Activate and tune feedback control for yaw
  • Tune pitch/roll control in angle mode
  • Activate battery voltage measurement, blink LEDs with different speed depending on battery voltage. (and install LEDs on the quad)
I also started to work on a v. 2.0 of the controller with a faster processor, more sensors, more outputs and more inputs.

Quadrocopter revisited

I started talking about multirotors with a colleague a couple of days ago and I suddenly got the motivation back to finish my quadrocopter that I started to build over a year ago. I wanted to build my own quadrocopter controller based on my kalman filter for angle estimation. But I never really got the control parameters tuned good enough for stable flight.

I don’t think I’ve posted any pictures on the quadrocopter in my previous posts so I’ll post some here.

Assembled quadrocopter before painting
Assembled quadrocopter before painting
Earplugs used to isolate controller board from vibrations
Earplugs used to isolate controller board from vibrations

and some videos to show how far I got with the controller tuning.

The first thing I did when starting to work on the controller again was to rewrite the controller part of the code from scratch. This time I think I’ll implement two different control modes, one that I call stable and one that I call acrobatic. Actually I’m more interested in the stable mode since I want to use the quad as a camera platform but it’ll be nice to have an acrobatic mode as well. This is two rough sketches on how I plan to implement them.

Stable quadrocopter controller
Stable quadrocopter controller
Acrobatic quadrocopter controller
Acrobatic quadrocopter controller

In the stable controller the angle of the platform is controlled by the radio, while the acrobatic takes the angular rate as an input. If you tilt the stable platform 15° and then release the controller it will return to horizontal level while the acrobatic will continue to lean 15° until you pull the lever in the opposite direction and tilt the platform back.

As I wrote in my post about the Kalman filter it is actually two identical filters for pitch and roll working completely individually. This works great for angles up to somewhere around 45° but the filter will go crazy if you start doing loops  and rolls. That’s why the Kalman filter is removed in the acrobatic mode leaving a controller that works directly on the gyro signals.

Right now the code is ready and parameters for the new PID controllers needs to be found. Last time I did this I built a rig but I left that at my parents house a while ago.

Quadrocopter test rig
Quadrocopter test rig, the quad rotates freely around one axis.

I dare not to test the new parameters without having the quadrocopter securely fastened to something heavy. On full throttle the motors produce around 1,2-1,4 kW of power which can do some real damage. I realized that the hard way…

My hand before the doctor stitched it together .
A 3cm long cut in my hand (actually 4 or 5 cuts from the rotating propeller) before the doctor stitched it together.  It was all the way through the skin, I was lucky that no tendons were harmed.

I plan to visit my parents in a couple of weeks, I’ll post an update once i fetched the test rig.