Building an F450 Quadcopter – Adding a Mobius Camera and Gimbal

Sheraton_top

Sheraton Mahwah

Multirotors are amazing tools for capturing stunning video and photos from angels and locations that would previously have been impossible.  But spend any time watching aerial video and you will quickly realize that image stabilization is a must if you want keep your audience from feeling seasick.

Some of this can be done with software but, while this helps, it does so at the expense of quality. If you are really serious about it you are going to need a stabilized gimbal.

For those not in the know a gimbal is a piece of equipment that will keep your camera stable regardless of what the platform it is on is doing.  I’m sure there’s a good explanation involving sensors and things but I prefer to think of it as magic.

Here’s what one looks like in action.

And here’s what it looks like in the natural world

Gimbals are so important that the first drone film festival, held in New York on March 7th, wouldn’t accept submissions that were not shot using a gimbal.

Mobius

For the camera I opted for the Mobius Actioncam. This little sturdy camera has proven itself to have comparable quality to a GoPro but at about 1/3rd the cost and weight.  Having already lost one GoPro while filming I didn’t want to risk that kind of money again.

Of course the GoPro is practically a standard and so there are many more gimbal options to choose from if you go in that direction.  For the Mobius there was only one gimbal that fit and reviews of that were mixed, but I decided to go for it anyway.

mobius1

What did I get myself in to?

The HobbyKing video said that the gimbal could be assembled in 10 minutes.  

As soon as I opened the pack and saw all the little pieces I knew that wasn’t going to happen, but it really wasn’t that hard to do and with some patient following of the instructions I had it all together in a little over an hour.  One thing that helped was downloading the PDF version of the instructions so that I could zoom in and save my poor old eyes from unnecessary strain.

IMG_1610To power it I made a special lead which could go in between the power lead and the battery with pigtails coming off and used JT connectors so that I can disconnect the gimbal easily.

Now it was time to flash the firmware which was achieved by following the instructions in this video.

By far the longest part of this was that I had to downgrade my kids laptop from Windows 8 to Windows 7, since the software provided only runs on Windows 7 or XP.  Why the gimbal isn’t provided pre-flashed is beyond me.  

APM Config

APM Configuration

I wanted to be able to control the tilt of the camera by remote and just two wires are needed to set this up.  I was a bit confused initially because all the pictures I saw showed the 9 pins with the wire going to the top.

Only when looking at the gimbal under a magnifying glass did I discover it was upside down and I really needed to be hooking up the bottom pin.  I configured the APM to use pin 11 on the for control (off of channel 6 from the controller) and as soon as I did that everything magically worked.

That left the last task of finding a good place for it on the quad.  I wanted it to be placed forwards so that there would be less chance of legs showing in the pictures.  That meant moving the battery (previously slung underneath) to a new location inside but positioned towards the back of the quad and moving the receiver from the top of the platform to the bottom.  Nothing too difficult and the use of a few well placed zip ties and we were good to go.

With the weather finally starting to warm up I’m looking forward to getting back out there and capturing some nice shots of the area. 

Only thing left to do on the quad now is add FPV!

 

Note:  An alternative that I considered was a kit that transforms the Mobius into a GoPro form factor – affectionately known as a “Gobius” – which allows for a much wider range of gimbals.

Gobius

 

 

4 Comments

Filed under Building Multirotors

Building an F450 quadcopter – Removing the Wobble

With plenty of flight modes now available it was time to address the wobble I noticed on the first flight. 

Some Googling pointed to the most likely candidate for wobble and the copter sounding “angry” was that the P-gain was too high.  I don’t know what that means but I figured that this would be easy to take care of.  Take off in Altitude Hold, run Auto Tune and, voilà!  Problem solved.  

Unfortunately it turned out to be more difficult than that.

With my new-found knowledge of how to set up the controller I was able to configure one of the options to be Altitude Hold, and set up a switch to start Auto Tune and I set off to get it done.

It was a somewhat windy day so I chose a local school (it was Saturday) that had a nice square protected on three side by buildings thinking this would give me some protection.

I took off in stabilize, stopped at about 15′ and switched to altitude hold.  Immediately the quad shot up about another 20′.  It was now high enough that it was no longer protected by the low buildings and it started to drift fast!  I immediately pressed down on the throttle and it came down, but much slower than I hoped.  I switched back to stabilize as it got near the ground and it dropped very fast, bounced once and landed up side down.  Bummer!

A quick check and things seemed OK, or so I thought.

I sent her back up again and exactly the same thing happened.  This time I had left myself more room and tried to leave it in alt. hold, but now it was really acting oddly.  Pressing the lever to make it go forwards caused it to climb more each time and, with the wind, it was now high up and drifting over the top of the school buildings.  I was convinced it was going to end up on the roof and, in a last desperate act, pushed forwards all the way.  Finally it responded and shot away from the school.  Bringing it down again was, once again, very slow and with the lever all the way down I switched back to stabilize.  Unfortunately the throttle all the way down in stabilize basically means turn the props off and the quad drop out from the sky like a brick.

Time for some self-analysis and to find the culprit of the problems with altitude hold.

vibrationMore Googling revealed that altitude hold issues are often caused by vibration.  Fortunately the APM captures logs every time you fly and I was able to download those into Mission Planner and (after some experimentation) view the vibration logs. This proved to me that this wasn’t the problem. 

flight_mapIt also showed me that this little APM flight controller is super cool. If you have time it is well worth looking into the logs and what they can tell you.  You can even upload these into Goole Earth and get a 3D picture of your flights complete with color coding to show you which flight mode you were in.  Nice!!

Since Auto Tune was off the cards until I could figure out what was wrong with the altitude hold it was time to start asking for help.  Someone on the Quadcopters group provided me with the settings they had that worked and, in comparing those, I noticed that a TRIM_THROTTLE value of 33% seemed much too low compared with his settings.  This is APM’s estimate of the throttle required to maintain a level hover calculated automatically from the pilot’s throttle input while in stabilize mode.  Mine was way too low and actually outside of the 40-60% that is the mid point for altitude hold.

On a hunch that I hadn’t flown in stabilize mode enough for it to get a good reading I went into the back yard and ran through two fully charged batteries doing nothing but trying to keep it in place in stabilize.  Then it was off to a large open area and, voilà!  Alt hold was now working without any crazy behavior!  I was losing altitude on long runs, but for the most part it was well-behaved.  Checking later I found the  TRIM_THROTTLE value of was now a much more sensible 43%.

While working on identifying the Alt hold issue I had also found out that I could assign a knob on the controller to Ch 6, and set that up such that I could adjust the P-Gains while in flight.  I did that, used the knob to back off the Rate Roll and Rate Pitch P gains until it calmed down.  When I got home I found out I had dropped from .15 to .13 so I locked those values in and saved the configuration file to my hard drive as a baseline.

Oh, and for the record, let me just say that testing altitude hold while tying the quad down to a table gives the barometer false readings and doesn’t work, so don’t try this :)

But what about Auto Tune?  Now that I had a copter that could stay in the air I went out the next day with a fully charged battery and ran it.  It is very odd watching your quad do it’s dance with no input from you, but it finished without incident.  The results?  Terrible!  It was back to being funky again and very difficult to control.  The good news – remember above when I said I saved my working results as a baseline?  Well, I just restored those.  My old developer habits still keep me honest.

I still have a problem with the craft losing altitude when flying forwards.  I think I might have improved that by stuffing the APM with cotton wool, since I had lost the little piece of foam.  Sadly that was three weeks ago and I have not had a chance to fly since then when it wasn’t raining, snowing or blowing 35mph winds.  I’ll keep you posted on how that goes.

Leave a comment

Filed under Building Multirotors, Education

Building an F450 quadcopter – Setting up Flight Modes

After the first flight there were a couple of obvious items that needed to be addressed.  More flight modes and getting rid of the wobble.

First the flight modes.  

I had only figured out how to set up the controller to allow for two different flight modes (stabilze and altitude hold).  With so many modes available on the APM this seemed like a shame.  It took a while but by carefully following the instructions on this page I was finally able to get myself up to six flight modes by using a combination of 2-way and 3-way switches.

flight modesAlong the way I had an epiphany that the controller sends out frequencies (or something that can be counted) and that the APM looks for values from the different input channels being in ranges (because it isn’t exact).  So a value between 1,231 and 1,360 (for example) can be assigned to a particular flight mode.

Great!  A mystery solved.  Now all those calibration movements make sense.

Not only did I manage to assign the six flight modes, but on the extended tuning I was able to assign Channel 7 to a switch on my controller that would automatically tell the quad to land.  This has been a real life saver because even when it starts going crazy, switching to land will calm it down and bring it down to Earth better than I can do.  

Leave a comment

Filed under Building Multirotors, Education

Building an F450 quadcopter – After the Build

flight_mapAfter our successful first flight it quickly became obvious that having a machine that can fly is just the beginning.  In the weeks that followed there were a number of change, crashes, and not an insignificant number of problems some of which are still not yet solved.

All of this occasionally has me wondering why I decided to build a quad copter instead of just plunking down money and to answer that we need to go back about 10 years to when I took my first tentative steps into the world of websites.  Back then I started a web small business with a friend and the venture lasted about two years before closing it’s doors.

Was I sad that the company closed?  No!  In those two years I had learned far more by doing than I could have learned in the same time at school, and the same applies here.

Each problem is a puzzle to be solved, an opportunity to learn and, as I have discovered, a great way to make new friends.  As I learn I like to give back to the community that helped me when I can and, as such, I plan to memorialize much of my learning here in small posts dealing with very specific subjects.  Much will not be of interest to people, but my hope is that one day someone will benefit from the time it took to put this together.

Pay it forward!

 

Leave a comment

Filed under Building Multirotors, Education

Building an F450 quadcopter – Beware Idle Hands

 The first time I ordered something from China it was supposed to arrive in 2 to 4 weeks.  It took 7!

Aerosky

When I decided to build a quadcopter I found a kit on eBay that seemed just the ticket.  The price was good and the seller had great reviews but, unfortunately, they were in China.  Expecting the same delays I found myself nosing around various website the following weekend and came across a ready to fly H100 very similar to the one I was planning to build.

The controller wasn’t as fancy as our build (no GPS) but it down from the regular price of almost $500 to just $200.  

My mind got to reasoning this way.

  • The parts aren’t going to arrive for a quite a while, so if I buy this I’ll have something to fly until the other one is ready.
  • Having a pre-built one nearby will help with figuring out where things go.
  • I’ll be able to upgrade the controller and add a GPS later and can then either have two fully features quads or could sell one (perhaps even at a profit).
  • I had a little extra income which would more than cover the cost of this.
  • That price was so good…I’d be throwing money away if I didn’t buy one!

After putting it into and out of the shopping cart a few times, I finally pulled the trigger.  Since it was only coming from California it would arrive on Friday…the parts for the build arrived the Wednesday before!  

Not only that but the weather turned nasty bringing wind, ice and snow with the result that the maiden flight of this machine ended up occurring about 5 minutes before the maiden flight of the our build.

Thanks Mr. Murphy – you did it again!

Leave a comment

Filed under Building Multirotors

Doing the right thing…even when you’re scared!

When I was in second grade we lived in a little street in Plumstead, East London.  It was the sort of place where the houses were all joined together and everyone knew everyone else’s business.  For the most part everyone was in the same boat with little money to go around.

Across the street lived a chap named Clem.  Clem was one of the few people that we considered successful since he ran a construction business and owned both a van and a Jaguar when most people had neither.

Clem was well regarded and generally considered a decent sort. His wife was a permanent fixture hanging out of the upstairs window and surveying the street.  Nothing much escaped her eyes.

catapaultWith limited resources improvisation was the name of the game and one day I found a large piece of elastic and used it to fashion a simple catapult.  To say it wasn’t accurate was a huge understatement, but what it lacked in directional ability it more than made up for in power.  

I spent a happy few hours dropping stones into the little cup I had and flinging them up the street with gay abandon.

But then I pushed my luck a little too far with the size of one of the rocks.  It was a little large to fit in the cup and was quite a snug fit.  I figured with sufficient power it would easily fly out and, as I had done dozens for times before, aimed up the street and let fly.

Smashed-windowsUnfortunately in this case the rock did not immediately fly out, instead staying in the cup just long enough to fling around sideways and exit at a very acute angle, right into the side window of Clems van.  There was a pop and the window was immediately transformed into a million small fractures, rendering it almost opaque.  

I did what any self respecting 7 year old would do.  I ran!  I shot into our house, ran up to our bedroom at the back of the house and sat on my bed in a panic. What should I do?  Did anyone see me?  Could I get away with this?

Knowing that we didn’t have the kind of money available to repair a window like this I was sick with worry.

But, as I sat there, it slowly dawned on me what I had to do.  It took a while, probably 20 minutes or so, but I eventually found myself walking across the street and knocking on Clem’s door.

Clem answered and I slowly stammered out.  “I’m really sorry, but I was playing with my catapult and I broke your van window.”

I waited for the anger, the righteous indignation, and the demands for reparations that neither I nor my Mother had any means of paying.  In those days a good whooping wouldn’t have been out of the question either, and when my Mum found out I’d get the same from her.

Instead he just looked at me and said “I know.  Don’t worry about it.”  And, without another word, he went back inside and closed the door.  He never told my Mother and it was never mentioned again.  A few days later the window was repaired and life went on as though nothing had ever happened.

I often wonder what would have happened if I had not come forth.  Would the result have been the same?  Would I have been the same?  I don’t know, but I do know that i felt an enormous sense of relief and gratitude at how things turned out.

I never expressed my gratitude to Clem for the kindness he showed that day, so I’ll say it now.

Thank you Clem, you were a real gentleman.

2 Comments

Filed under Children, Life - or something like it

Building an F450 quadcopter – Maiden Flight!

We finally had a break in the weather long enough to get outside and get up in the air!

Before leaving there was some question about which two flight modes I should start with.  Key candidates were Stabilize, Altitude hold and Loiter.  I finally opted for the first two.  Stabilize because it doesn’t rely on anything fancy, and then Alt. hold to make flying a little easier.

The result?  In a word – awesome!  It’s been a while since I was able to fly and it was great to finally get back into the air.   See for yourself.

The F450 has some wobble to it.  Nothing terrible and it should be something we can fix using the Autotune feature of the APM.

S. loved it and wanted to try it out, but was too nervous.  That’s actually good as I would really like things 100% sorted before she does that.  But in the car on the way home she told me she wants a little quadcopter that is all her own :)

What a wonderful journey!

I’ve shared my parts list including links to where I bought things in case anyone is interested.  You can see those details here.

2 Comments

Filed under Building Multirotors, Children, Technology