Li-Ion battery modification for Turnigy 9x    Posted:


Just followed along with this tutorial to convert my Turnigy 9X transmitter to use Li-Ion batteries.

I used the 2500mAh batteries from DealExtreme, nice and cheap. Hot-glued them together and soldered on an XT60 connector so I can charge them easily too. They're much bigger than they look in the photos, not AA sized, but they fit in the 9X compartment with no problems.

Overall, the modification seems to have worked fine, the initial voltage reading on the transmitter was 7.9V with the new batteries, after soldering in the 8.2k resistor it now shows 10.2V. Soldering the resistor was a bit tricky, but doable and certainly better than fussing around charging all those NiMH batteries.

QuadCopter frame ideas    Posted:


A simple version that looks quite nice:

And a deluxe version (that floats, awesome!):

DeX Quad from DeX on Vimeo.

ArduPilot test flights    Posted:


I built a pod from 3mm plywood & hot glue to mount and protect my ArduPilot on my AXN Floater. The box weighed in at about 29g and the entire ArduPilot at about 90g.

Photo_1

I immediately went out to test fly it and this turned out to be a mistake. It was a bit windy and the extra weight meant the plane had to fly too fast for the small field and I crashed into a tree. Thankfully the pod protected the ArduPilot nicely, though the same can't be said for my receiver. Though I didn't notice at the time, the coax antenna cable got a small cut in it, which caused a few problems later as the range was drastically reduced. I gave up and came back the next morning for another go.

The second session went terribly, presumably because of the reduced transmitter range. I switched the ArduPilot into Stabilisation mode at one point and it dived into the ground. Other times the engine would cut out or the throttle would open fully. This all ended in me climbing a tree to retrieve the plane, but nothing was seriously damaged.

Changing tack, I began testing the stabilisation mode by simply throwing the plane in a straight line with low throttle across the field and landing it. This worked fine, but exposed the range issue for what it was.

So, I replaced the receiver with my spare and rebuilt the pod with a bit more protection.

Photo_2

Test flying it this time in better conditions all went much better. Stabilisation mode works like a charm, the Fly-by-wire worked, but was a bit to "tame" with a turning circle that was too large for comfort. I haven't tested the other "more automatic" modes yet, but the data logger is working well.

The following screenshot from Google Earth shows a KML file I generated of the AXN Floater gliding down to a landing:

Log20-glide-landing

And with a lot of fiddling around (to synchronise the ArduPilot log with the video) I was able to overlay the stats from the log over the onboard video:

This flight starts nice and high, cuts the engine and then glides down under stabilisation mode to a landing.

It's not really clear to me yet how much the "instrument error" on the video is due to:

  • bad synchronisation (likely, an error of 1 second is more than enough to make the visuals not line up properly, and it was tricky enough getting the sound to synchronise as bad as it is...)
  • buggy rendering code, or
  • measurement errors (does the ATT: roll take account of centrifugal force for example)

Programming an ArduPilot mode switch for Turnigy 9X transmitter    Posted:


I just managed to setup my Turnigy 9X transmitter so I can use a toggle switch and the 3-way switch to select between 6 modes on the ArduPilot. It took a lot of experimenting, and interminable beeping, but it's just about perfect now:

  • The "THR CUT" switch (back left) switches between "Manual" modes and "Auto" modes, and
  • The 3 position "AUX 3 F. MODE" switches between "sub modes": Manual / Stabilised / Fly-by-wire and Auto / Loiter / RTL.

The Turnigy 9X (aka FlySky 9X, iMax 9X ...) transmitter is cheap and works well but has attrocious documentation and menus, add to that my limited experience with radio control and it's a bit of a miracle I figured this out.

  1. Go into the FUNC SETTING menu
  2. Go to the [AUX-CH] menu on the second page
  3. Change CH5 to THRO HOLD, hit Menu to save and return to the menu
  4. Go up to [PROG.MIX]
  5. Setup MIX1 as follows:
    State: ACT
    Master: GYR
    Slave: FLP
    Offset: 000
    Uprate: -020
    Dnrate: -020
    Sw: ID2Hit Menu to save.
  6. Setup MIX2 as follows:
    State: ACT
    Master: GYR
    Slave: FLP
    Offset: 000
    Uprate: -050
    Dnrate: -050
    Sw: ID1
  7. Setup MIX3 as follows:
    State: ACT
    Master: GYR
    Slave: FLP
    Offset: 000
    Uprate: -100
    Dnrate: -100
    Sw: NOR
  8. Check the [DISPLAY] to make sure that the FLP output is changing to 6 different positions depending on the positions of the 2 switches.
  9. Connect CH6 of the receiver to the APM Mode input (IN8)
  10. Connect to the APM CLI
  11. Go into the "setup" mode
  12. Calibrate the tx/rx using "radio", including all the positions of the 2 switches.
  13. "exit" "setup" mode and go into "test" mode
  14. Use the "pwm" test to ensure the pwm values on IN8 for each switch position falls within the ranges required by the APM readSwitch() function:
    Pos 0: <= 1230
    Pos 1: 1230 - 1360
    Pos 2: 1361 - 1490
    Pos 3: 1491 - 1620
    Pos 4: 1621 - 1750
    Pos 5: >= 1750
  15. Go back into the "setup" menu and enter "modes" and set them up to your liking. I did the following as it meant that the "THR CUT" switch flips between the "manual" modes and the "auto" modes, and the 3-way switch selects the sub-modes and most importantly, that "position 5" which is hard-coded to "Manual" mode corresponds to both switches being in the "up" position which is required for the transmitter to start without it's "Switch error!" message:Pos 0: Auto
    Pos 1: Loiter
    Pos 2: RTL
    Pos 3: FBW_A
    Pos 4: Stabilize
    Pos 5: Manual

While setting this all up, I made constant use of the [DISPLAY] function on the Turnigy 9X to see that the output was getting closer to what I wanted.

Since I wasn't able to find any working information on this elsewhere I'm posting it in the hope it helps other people get their transmitters working nicely with the ArduPilot and so I can do it again if and when I need to.

It should be simple enough to vary these instructions to use a different button/channel too.

There are a couple of downsides to this setup (that I know of, if there are more or you have any improvements, please let me know):

  • CH5 is now not really usable
  • The "AUX 3 F. MODE" can't be used for whatever it usually does...

Note: At this point, it's also worth figuring out how to have multiple models saved in the transmitter, so you can switch between the ArduPilot setup and a simple version for flying without the ArduPilot installed. It's easy enough, though editing the names is very tedious.

An ArduPilot of my own    Posted:


I ordered an ArduPilot Mega Kit from DIYDrones.com last week and it arrived today.

According to my tech tree, it was the most productive step to take, providing me with lots of cool functionality for the plane and staring down the path to a QuadCopter. I considered the OpenPilot board, which looks and sounds great, but since it isn't really available yet I'm hoping ArduPilot will do everything I want.

It's really much smaller than I expected, not a lot bigger than my receiver. I actually thought for a second that maybe they hadn't sent me everything (it was buried in a big box with lots of polystyrene peanuts):

Img_2887

182 solder joints later and it was ready to be assembled:

Img_2888
Img_2889

Loading the firmware (following along with this post to get Arduino and the ArduPilot Mega Planner installed on Ubuntu and running under mono, I haven't linked it to the simulator yet):

Img_2891

The board was recognised with no problems by Ubuntu, showing up as /dev/ttyUSB1 (I already have another FTDI device that shows up as /dev/ttyUSB0.)

Connecting it up to the receiver (I'm still considering how to mount it "permanently" onto my AXN Floater):

Img_2893

A little clip showing the stabilisation mode in action, I had to use the DIP switch to reverse the elevator:

There'll be lots more info coming as I really get it going.

Aerial panorama of Melbourne skyline    Posted:


A panorama from the Royal Park video (view full size & make sure your browser hasn't shrunk it to fit):

City_skyline_royal_park_2-apr-2011

The panorama consists of 36 frames from a 6 or 7 second period (approximately every 1/5th of a second) and was stitched with Hugin which also did some exposure compensation.

It's a bit messy because of the receiver aerial (red) and timestamp (yellow) which could probably be removed with some more effort.

The image is about 1.8 megapixel and spans about 155 degrees. Not bad from a $20 camera.

Royal Park photos    Posted:


A couple of shots from a quick flight at Royal Park with Reilly.

Screenshot-sunp1601Screenshot-sunp1601Screenshot-sunp1601Screenshot-sunp1601Screenshot-sunp1601Screenshot-sunp1601Screenshot-sunp1601Screenshot-sunp1602

Got some closer views of the city, but the wind and a little rain meant it was hardly good conditions for flying.

Royal Park video, stabilisation post-processed    Posted:


Post-processed video from a session at Royal Park.

I used the Deshaker plugin for VirtualDub (running under Wine) to "stabilise" the video a bit. An interesting effect. Unfortunately, filling in the black borders automatically didn't really work, particularly due to the timestamp in the bottom right corner. The settings were roughly an 85% zoom and doubling the default smoothing and maximum zoom/pan values.

For comparison, the same video zoomed a little and cropped to remove the black borders a bit instead:

And the original unprocessed video:

RC StackExchange    Posted:


Forums suck, StackExchange FTW.

  • RC Q&A
    Seems to be one of the first generation StackExchange sites, though it could be a clone, I'm not sure...
  • RC Modelling proposal on Area 51
    This may be redundant or merged with the other one? Not sure, but support it as it would be good if it were to go live.

April Fool flying    Posted:


Started with some nice flights and dewy landings at the usual oval:

971926202321

And then headed down to Caulfield Park for a change of scenery, first the city:

10

Across to Mt Dandenong:

5

North:

7

To St Kilda and the bay:

23

The new bowls club/rec center thing:

18

Me way down there:

20

This is a frame you wouldn't expect to see from a crash. The plane came out of it miraculously and completely unscathed:

11

A bit too close to the council workers after a moderately successful attempt at inverted flight:

2

And immediately after I was climbing a tree to get the plane down:

1

And it's still perfectly flyable, quite a plucky little plane :)

© 2013 tompaton.com · Source · RSS