Showing posts with label Turnigy. Show all posts
Showing posts with label Turnigy. Show all posts

Saturday, September 1, 2012

ArduPilot TX Flight Mode Switch

flight mode switch (image from seller)

I have posted several times about modifying my FlySky FS-TH9X radio.  I modified the radio for use with an ArduCopter multi-rotor UAV that I built.  The ArduCopter is controlled by the ArduPilot autopilot flight system.  The ArduPilot has several selectable flight modes that change the flight characteristics.  For example, the "Alt Hold" mode will automatically maintain the current altitude of the UAV.  "Loiter" mode holds the UAV in it's current location.  While these modes improve the flight experience, they are somewhat difficult to program and select.

Normally the six flight modes are selected based on the position of two switches on the transmitter; such as the three position flight mode switch and the two position aileron dual rate switch.  3 x 2 = 6 possible switch combinations for six different modes.  While this setup works, there are two problems.  1)  It is somewhat difficult to program the switches to work properly with the flight modes.  It took me several attempts to get it right.  And 2), it's not that easy to remember what switch settings correspond to which flight modes.  Luckily I found a simple solution one day while searching eBay.

The idea of this system is to replace one of the potentiometers (pots) on the transmitter with a six position switch.  The switch is then wired to four miniature pots.  The resistance of each pot can be adjusted separately.  With the four pots and a positive and a negative lead, you can have six different resistance values for each position of the switch.  Those six values can then be easily adjusted to correspond to six flight modes by simply adjusting the pots.  The result is easier programming and selection of the flight modes. 

parts in the kit

pots glued together

Construction

While the switch can be purchased preassembled from the same seller, I opted for the DIY kit.  Assembly was easy.  I started by gluing the four pots together with cyanoacrylate glue.  Then I folded the leads down on each side of the pots and soldered them together.  I found a piece of scrap ribbon cable and peeled off six wires.  The six leads of the ribbon cable were soldered to each of the tabs on the switch except the "brown" labeled tab.  That tab is soldered directly to the radio wiring.  The four center wires of the ribbon cable were soldered to the four center leads of the pots.  The outer wires (labeled "red" and "black" on the switch) were soldered to the outside leads of the pots.

wiring diagram

outside leads soldered together

finished switch assembly

Installation

The seller suggests mounting the switch in place of the "pit trim" pot.  However, I use that to control the vertical angle of my FPV camera.  So, I decided to mount mine in place of the hover pitch pot.  I desoldered the pot and removed the nut holding it in place.  I then soldered the red and black (+ and -) wires go to the "red" and "black" labeled tabs on the switch.  The center wire of the pot (yellow in my case) was soldered to the "brown" labeled tab on the switch.

back of TX removed

close-up of hover pitch pot to be replaced

To mount the switch I opened up the hole with a 9/32" drill bit by hand.  Then I drilled a 7/64" hole for the tab that prevents the switch from spinning in the hole.  With the switch installed I secured the micro pot array with hot glue.  The shaft of the switch was too long for the cap that is included.  I cut it shorter so that the cap would mount flush with the radio case.  I then reassembled the radio (without screwing it together).  To make sure everything was working.  I programmed channel 8 to use P1 (the designation for the hover pitch pot) and turned the switch to each position.  With the main screen displaying the value bars for each channel, I could see the values for channel 8 change as I turned the switch.  Looks like it works; time to program.

Turns out the fit was a little tight.  When I tried to close up the case, the pot hit one of the switches on the other half of the case.  I had to bend down the pot tabs and trim some plastic off the corner of one of the switches to get everything to fit.  I added a piece of electrical tape over the pot just to prevent any shorts.

new switch installed

Programming

The switch is programmed with the Mission Planner software (see step 3).  With the TX paired to the software through the APM, select the "Flight Modes" tab.  Positions 1 and 6 should correspond to flight modes 1 and 6.  Turn the switch to position 2 and adjust the pot that is wired to that tab.  Select Modes 2-4 until you see the PWM value change in the software.  Adjust the pot to get the ideal PWM value.  Repeat for switch positions 3 and 4.  When you are finished, turn the switch though all of the positions.  You should see all six flight modes get selected as you turn.  Set the modes that you want from the pull down menus and reassemble your radio.  You are done.  It took me less than 5 minutes to program and I got it right first time. Big improvement over original method.

programming the flight modes

Before, I had to remember the correct switch combination and move two switches to get the flight mode I wanted.  And, I had to pray that I didn't accidentally flip one of the switches while I was flying.  Now to change flight modes, I just turn one rotary switch to the correct labeled position.  Now if I could just get my Arducopter to fly right!

installed switch with label

Thursday, April 19, 2012

FlySky FS-TH9X Battery Upgrade

Rechargeable battery upgrade for FlySky transmitter

The manual for my FlySky radio shows a nice picture of a charger and rechargeable NiMH battery pack.  But it doesn't come with one.  And there isn't one available as an option from the seller.  Instead it comes with a battery holder for 8 AA NiMH batteries.  It works well enough but NiMH batteries have limited capacity, discharge relatively quickly, don't hold their charge even when not in use, and don't recharge very well.  Luckily we can easily swap out the 8 AA's for a much better LiPo battery pack.  With increased capacity, the LiPo pack will last a lot longer than a bunch of AA's and it can be recharged over and over again. There are just a few things to consider when purchasing a replacement pack.

lame!

Battery Size
The dimensions of the battery compartment are 112 x 32 x 25mm.  Make sure the pack you order will fit your receiver.

Capacity
Your best NiMH batteries can provide around 2500 mAh.  But your typical AA is more likely to be rated at around 1200-1500 mAh.  Get the largest capacity LiPo that will fit for the longest run time.

Discharge Rate
This one is important.  Standard LiPo batteries can discharge 30-40 times their capacity.  That means a 2000 mAh battery can output 60-80 amps at one time.  Obviously your radio will never draw that much current but the pack is capable of supplying more than enough current to fry your transmitter.  Select a battery made for radio transmitters with a low (1C) discharge rate.

Voltage
Eight AA batteries can supply 12 volts.  But they discharge quickly, so you never actually run at 12v for long.  More realistically they run at about 1.2 volts per cell or 9.6 volts total.  A 3 cell LiPo is only rated at 11.1 volts (3.7 volts per cell).  That is plenty to run your transmitter, especially since it stays at that level for a long time.  However, when fully charged, a 3 cell LiPo can provide up to 4.2 volts per cell (or 12.6 volts max).  12.6 volts may not damage to your transmitter, but just to be safe you should undercharge your battery.  You can do this by setting your smart charger to charge the pack as a LiLo battery.  That should charge it to a max of about 4.1 volts per cell, or 12.3 volts total.

charging as a LiLo

I ended up ordering this battery from HobbyKing.  It is a Turnigy 2650 mAh, 11.1 volt, 3S 1C LiPo pack.  I just needed to make a few changes to get it to work.  It comes with three leads.  The four wire lead is the balance plug.  Leave that alone.  The white plug is a battery lead for JR or Spektrum radios.  It won't fit the FlySky so I cut it off to save room and prevent someone from accidentally trying to plug it in.  Heat shrink the remaining ends to prevent a short.  The black plug is for Futaba radios.  That one will fit in the FlySky battery plug but DON'T PLUG IT IN YET!!!  The wires are in the wrong order and you will short out your radio.

extra lead removed

battery plug color coded

Plug in your AA pack and note the location of the black and red (negative and positive) wires.  I used markers to color code the battery connector.  The black wire on the battery needs to be moved to the opposite side of the Futaba connector.  Some careful prodding with a tiny screwdriver will free the tabs and let you remove it.  Then just slide it in the correct hole and it should lock in place.

cramped leads

With that done, the LiPo pack will plug in but the battery wires get pinched between the plug and battery pack.  I removed the leads from the plug again and cut away some of the plug so that the leads could comfortably bend up without being pinched.

plug cut for clearance

much better

And that's it.  Select a suitable battery, check your connections carefully (fix if needed), undercharge, and you are ready to go.  Your transmitter will run a lot longer and you will save money on batteries.

running on LiPo (11.6 volts)

Friday, December 23, 2011

How to get a $600 radio for $39.99.

Turnigy (aka FlySKy/Imax/Eurgle) 9 channel radio

Uh...wait.  Let me rephrase that.  How to turn a $40 radio into a $600 radio.  Make that a $65 radio.  Hold on, $89.  One more part, $135.  Forgot shipping.  What about the battery?  OK.  How to turn a $193 radio into a $600 radio.

OK, let me explain the prices.  I originally ordered this radio from HobbyKing for $39.99.  That was on backorder so I ordered the same radio shipped from the US from HobbyKing for $64.75.  That was on backorder too.  So then I ordered the same radio off of eBay for $159.95 (I was on a deadline and desperate). Guess what?  Backorder!  I finally found the FlySky (same radio, different name) at HobbyPartz for $89.  Paid an extra $29 for rush delivery.  Then I spent another $53 with shipping for the smartieparts board.  Add 23 more dollars (with shipping)  for a rechargeable battery and you're there.

I have been posting a lot about modifying my FlySky FS-TH9X radio (aka Turnigy 9X) to improve its form and function.  With a few simple modifications, you can give this cheap, yet capable radio the features of a radio costing hundreds more.  This blog is just a list of links to those posts with a brief summary.

  1. Upgrade the firmware - The weakest point of this radio is the buggy and complicated firmware.  Install a board that allows you to upgrade the firmware to a better version.  Bonus, you get a backlight too!
  2. Move the USB plug - Relocate the USB plug on the upgrade board for easier access.
  3. Fix the trainer port - This radio will not work with flight simulator software unless you unplug the TX module.  Adding a resistor will fix this.
  4. Move the antenna - The TX module is hard wired to the antenna.  It should be removable so you can swap in a new module.  See how to move the antenna from the radio to the TX module.
  5. Fix the LED - The indicator LED on the RX is almost impossible to see.  Cut the label and see the light!
  6. Add a rechargeable battery - Who wants to keep replacing 8 NiMH disposable batteries?  Add a rechargeable LiPo battery for economy and longer radio life.

Smartieparts USB Plug Mod

easy access

I covered the installation of the smartieparts board here.  The board has a USB jack that inserts into a slot in the battery compartment.  To program your radio, you open the battery compartment and plug in your USB cable.  This isn't so bad but I thought I could make it a little more convenient to access the USB jack.


charging jack

The radio comes with a charging jack on the side.  Ironically, the radio does not come with a rechargeable battery...or a charger...nor have I ever even seen one available as an option.  So while it seems like a nice feature, it is useless.  Since the charging jack just slides into a slot in the case I figured it would be easy to remove it and put the smartieparts USB jack in its place.

charging jack removed

I pulled the jack out of the case and cut the wires where they were soldered to the circuit board.  The USB jack almost fit right into the hole in the case.  I used a file to open up the hole just a little.  If you go slow, you can get a nice tight snap fit for the USB jack.  I mounted the front of the jack flush with the side of the case.

USB jack fitted to case

The jack needs to stay in place under pressure as the USB cable is plugged in and out.  So I used some epoxy on the bottom of the jack to glue it in place and fill the hole in the case.  I covered the front of the hole with tape to keep the epoxy from running out.  Gave it a few hours to set, added a black marker paint job, and she's done.  Now I can plug my radio into my computer easily without having to open up the battery compartment.  It also opened up some space in the battery compartment which will come in handy when I swap the NiMH battery pack for a rechargeable LiPo.

finished USB jack

FlySky FS-TH9X LED mod

LED next to the "Y" in "SKY"
I have been having some trouble getting my radio to bind with the receiver.  During the process, you need to be able to see the status of a red LED inside the RX case.  Although the case is translucent, the top of the case is covered with a decal.  So to see the LED you need to look through the sides of the case.  It is difficult to see and very inconvenient, especially if the RX is already installed in something.  Since I have been trying to bind my radio over and over for the past few days, that little light was starting to tick me off.  So I looked through the sides, guestimated where the LED was in the case, and cut a window through the decal.  Much better!  The LED now appears nice and bright and I don't have to contort to see it.