søndag den 20. december 2015

DJI s900 with 3DR Pixhawk - initial parameters and maiden flight


Hi again,

has been a while since my last blog entry. I already had some succesful flights with my s900 and the Pixhawk. It is a good and reliable team and I'm quite pleased with the performance. Nevertheless I want to go on with my build log to ease the entry steps for other pilots thinking about this combination. 

In this part of the build log I want to give you some hints on setting up some of the more important Pixhawk parameters before you do the first flights.

When you leveled the accelerometers and learned the RC controls in the initial setup, you might have tried to arm the copter already. I had an issue with a missalligned compass, where Pixhawk statet a “Compasses inconsistent“ failure. That means acceleration sensor's forward direction (together with internal compass) and external compass forward direction are off with more than 45 degrees misalignment.
This issue was a bit odd to solve for me. I tried recalibrations of Pixhawk, multiple  alignments of GPS sensor with different combinations of compass direction parameter, but I couldn't solve the problem for two evenings. Maybe I made some other mistakes and I can't tell what did the trick in the end but eventually everything worked out and s900 is performing perfectly. RTL, all flight modes and autonomous functions are working flawless. I find it a bit strange and even scary to fly and have not really figured out why it is working. But I assume there was something like a “Layer-9 issue“ (human failure) with not rebooting Pixhawk after the first correct configuration of compass and flight controller. So my final parameter settings with Pixhawk mounted in backward facing direction and compass mounted in forward facing direction looks like this:


So now with everything correctly configured for arming the copter you will most likely face the next special behaviour of s900 and Pixhawk combination. When you arm the copter the motors may not spin at all. The reason is that the DJI ESCs integrated at the end of the arms below the motor mounts are expecting a certain minimal PWM value for start rotating the motors. If you push up your throttle after arming (Be Careful!)  the motors will come to life nonetheless, but I have used to the behaviour that motors start spinning after arming. There are two parameters you will have to tweak for this. The first one is the “Mot_Spin_Armed“ parameter. This was added to APMs/Pixhawks by the developers in recent SW versions. Of course you can also leave that turned off if you like your motors stand still after arming, but find that a security issue as you won't be able to tell if copter is armed or not. OK there is a LED you can check, but this can be failing or covered by obstacles or cables. Six ESCs and motors failing at once seems a bit more improbable to me.
The second step to get your motors spinning when armed is raising the lower threshold of minimal PWM output at ESC connectors of the Pixhawk. The parameter for this is called “Thr_Min“. You will have to play a bit with the values until all motors kick in reliable after arming asthe ESCs seem to differ a bit for low PWM threshold. Even on one and the same copter. Maybe due to some part deviations of some resistors or capacitors on the ESC's input filters. I haven't investigated further. So after all my mot_spin_arm and thr_min parameters look like this:




If your motors all start spinning now after arming then CONGRATULATIONS! Now you are basically ready to start a first flight attempt if you haven't added any further equipment else as battery, Pixhawk, power supplies (UBECs) and receiver. It seems that without any gimbal or other heavy equipment the s900 flies quiet reliable on the Pixhawk's stock PID values.
(Please be aware that these initial values might change over time and in different SW versions!)

I have recorded some footage of the maiden flight for you all with stock PID parameters. You can tell from the video that these are OK for some first circles and testing. But take it easy and don't crash your toy on the first steps (BTW: have I told you already that I'm not responsible for you crashing your equipment when you are following my hints? HA! Now you read it and I'm not to blame for anything anymore ;) )



On last tip for pilots using the pre-3.3 software version for your Pixhawk:
The automatic gear functionality for retractable landing gear is to be implemented in 3.3 and ongoing versions. At least this is my up-to-date knowledge.
I am running version 3.2 when writing this. Call me a scaredy cat, but I am not willing to trying Beta-SW on a machine meant to carry 2000€ of photo equipment and weighing itself in at nearly the same amount of money ;)
So back to adding retractable landing gears to the pre 3.3 SW Pixhawk:
The workaround is, using one of the gimbal controls in the “additional gear" menu of APMPlaner2 (or whatever configuration software you are using). 
Select the according RC channel you want to use (in my case, Channel 8 of my RC transmitter) and select the correct output on the Pixhawks backside output pin bar. Counting of Pixhawks additional outputs starts with number 'RC9' on the right edge of housing (directly viewing on pin bar ). More info on this can be found here: http://copter.ardupilot.com/wiki/landing-gear/
When you have done that, it should look like this:


So that is it for today.

Now you  should have a DJI s900 combined with a Pixhawk that can at least fly and raise its legs. Isn't that a nice starting point for going on to a solid machine for carrying some weight?! In my next post I will show you all my setup for adding an XCAM A10 GoPro gimbal with 360° rotation ability.

Until then: wish you save flying, a nice Christmas and a happy new year if I can't make it to write the next post.
All the best!

fredag den 11. december 2015

Poor man's styrofoam cutter

Hi everybody. Still working on my DJI s900 and the next post will be posted soon hopefully, but for the time being I have another little project to share.

Two months ago I bouhgt a small Blade Nano QX. An eighteen grams leight and 14cm long & wide Quadcopter. Partly for praticing in my flat and partly for another small project next year, where I will  give a two hours evening lecture about Multicopters in german "Volkshochschule".
(Volkshochschule is some kind of public adult education center in Germany.)
But back to the Nano QX. It is a nice little quad an I wanted to try to use it for some special surprise on a company party. and this surprise is where I needed a styrofoam cutter for. You will see at the end of the post what it is for. :)

So let's start with the poor man's hot wire cutter.
You will need the following:
  • Some thin copper wire
  • Two bigger screws or nails
  • Something to hold the screws/nails (I used my small vise)
  • Your solder iron

Additionally I used some more wire and two 1.5 liter water bottles for tensioning the hot copper wire which you will see on the pictures.

So how is the setup for the "hot-wire-styrofoam-cutter":
  • clamp the two screws into the vise
  • wrap the copper wire around the first screw
  • wrap it two to three times around the tip of your solder iron
  • wrap the open end around the second screw
What you will get from this is a setup that looks hopefully something like this:


 As you can see on the picture I have wrapped some more wire around the neck of the 1.5 liter bottles and used these bottles as weights to tension the hot copper wire.
Here is another overview of this simple setup:


And a detailed view of the tip of my cheap solder iron:



Only thing you need to do now is heat up your iron as much as you can (I set mine to 450 degree Celcius). Your copper wire will, of course, get hot. And it will have several temperature regions with which you will need to experiment at cutting your styrofoam. 

Cutting will then look something like this:




The cutted styrofoam has some really decent edges and is not frayed in any way (falling appart into many small bubbles of styrofoam; like when you try to cut with a knife). Sometimes there a small and thin plastic fibres sticking on the cutted foam edges, but you can just pull them of.

So what can you do now with this setup?
I glued some printed paper on a 10mm styrofoam board from the local hardware store, cut it with my poor man's styrofoam cutter and the result looks like this:


Quite some nice and clean edgeds!
Stick this onto a Nano QX (or the quadcopter of your choice ;) ) and start to fly:




 

I think this looks really nice in flight and has a really nice effect when there is a small Smart vehicle flying around your flat ;)

OK, the readers with a sharp eye will write now that this is no paper/styrofoam-sandwich on this QX. And yes this is just the two printed paper pages glued together in that video, but only paper was to soft and sluggish during flight and lead to crashing the Nano QX over and over again.
I will post the final video of the flight with the paper/styrofoam snadwich here when it is finished. But until then I wish you mich fun with cutting styrofoam. :)

All the best!
Sebastian