Mode Switch Setup for Turnigy 9x

 

Mode switch setup for Turnigy 9x

First thanks to tiger in the ardupirates thread at RC Groups who not only supplied me the files to reflash my radio back to standard, but included a model in the eeprom file with the mixes already setup. I just had to tweak the numbers a little and write a story.

 

I am an AC2 user so there may be some APM differences I have missed.

 

Some things in this tute may be a little obvious as I have tried to aim this one at novices. I figure some of you more advanced users will have upgraded this radio to ER9x firmware.

 

We will be using the 3 position F. MODE switch and either the 2 position GEAR or THRO HOLD switch in this example to be able to get all six flight modes for the APM/AC2.

Ch6 from the receiver will be used to supply the APM board. We are aiming to get pulse widths of 1165, 1295, 1425, 1555, 1685, and 1815. Remember that 1815 will put APM into hardware manual because it uses the ch8 input, so you may as well assign manual mode to that position when you setup your chosen flight modes in CLI. AC2 uses the ch5 input for mode control, so you can choose whatever you like.

 

Use the PWM(AC2) or RADIO(APM)  test in CLI to read the pulse width numbers for ch5 on AC2 and ch8 on APM.The pulse-width readout is now conveniently located on the Radio Calibration page of the Planner. I have used a servo programmer here as it is convenient for photos. Remember the inputs are ch5 for AC2 or ch8 for APM. Don't confuse receiver outputs with APM inputs.

 

Please don't just blindly copy my values as your radio may produce different pulse widths. The Turnigy is not as accurate as my 12fg and the pulse values seem to vary slightly every time I cycle power. Hey, it's a $55 radio :)

Remember to use the MENU key to exit the menu you are editing. The EXIT key does not save changes, ask me how many times I kicked myself.

 

1. Clear any flight mode mixing you may already have.

2. Start with end points at +- 100 and subtrim 0 for ch5 and 6.

2a. Use the ch6 output from the receiver for the APM/AC2 mode selection. Ch5 from the receiver is left unconnected.

3. Go to the AUX-CH menu and set ch5 to either THRO HOLD or GEAR. Choose whichever you find most convenient to use in conjunction with the F. MODE switch, you can come back later and swap if you’re not happy with your choice. You can also assign switches/dials to any other channels now if you like, but do not assign anything to ch6.

 

 

4. Put the F. MODE switch in position 2 and THRO HOLD/GEAR switch to the rear.

Go to the PROG.MIX menu and then setup MIX1 to look like this. Adjust the DNRATE value to get a pulse of 1555.

 

 

5. Leave F. MODE in position 2 and move the THRO HOLD/GEAR switch forward.

Adjust the UPRATE value to get a pulse of 1425, then hit Menu to save and backup to the PROG.MIX screen.

 

 

6. Put the F. MODE switch in position N and THRO HOLD/GEAR switch to the rear.

Setup MIX2 to look like this. Adjust the DNRATE value to get a pulse of 1685.

 

 

7. Leave F. MODE in position N and move the THRO HOLD/GEAR switch forward.

Adjust the UPRATE value to get a pulse of 1295, then hit Menu to save and backup to the PROG.MIX screen.

 

 

8. Put the F. MODE switch in position 1 and THRO HOLD/GEAR switch to the rear.

Setup MIX3 to look like this. Adjust the DNRATE value to get a pulse of 1815.

 

 

9. Leave F. MODE in position 1 and move the THRO HOLD/GEAR switch forward.

Adjust the UPRATE value to get a pulse of 1165, then hit Menu to save and backup to the PROG.MIX screen.

 

 

 

10. That’s it. If you flick through all 6 combinations, it should be pretty close to what the APM/AC2 expects to see.  I ended up with  1165, 1297, 1425, 1555, 1683 and 1814.

If something has gone wrong, you probably hit the EXIT key to back out of a menu instead of the MENU key. Remember EXIT doesn't save, stupid firmware.

Views: 80747

Comment by Gordon on May 21, 2011 at 9:12pm
There is an example sketch in the arduino ide. Go to file>>examples>>arduinoisp. I haven't used it because I just use an avrispmkII. The sketch looks well commented.
Comment by Russell B. Sutton on May 21, 2011 at 9:39pm

@ Gordon  Thats just what I needed to know.  When I get my replacement Tx I'll give it a try. 

Thanks Gordon! 


Distributor
Comment by Dany Thivierge on May 31, 2011 at 8:12pm
Hey guys,

I was able to follow all instructions and in PWM test I get 1165, 1296, 1423, 1555, 1684 and 1815... so I taught I was all good....

now I should say that I am using 2.0.20 BETA but when I go into the MODES setup flipping through all options only register position 0 and 5 (both extremes...)
what am I doing wrong??
is the values changed on 2.0.X ? (was your test on ardu pirate?)

Help me out if you can... I would love to unlock the other flying modes. :)

Thanks

3D Robotics
Comment by Alan Sanchez on June 1, 2011 at 6:55pm
Thank you!!! works great
Comment by Gordon on June 1, 2011 at 11:36pm

Dany, I got the spare board programmed up. Sorry to say I can't reproduce your problem, I even tried deliberately doing things wrong like not erasing eeprom or doing the radio calibration steps. I used whatever the planner installed, 2.0.20  I assume.

 

 Please double check that the channel that is responding in PWM is channel 5 on the terminal screen. Hopefully it is just your wiring out by 1 or 2 positions.

 

Alan, just happy to be able to contribute, lots of people have helped me over the past...too many years, such as @tiger who gave me the basics for this howto.


Distributor
Comment by Dany Thivierge on June 2, 2011 at 4:58pm

Yes Gordon, thanks for all the efforts,  as usual it was just a stupid thing... I taught the Ch6 was the mode switch on the APM... wrong! it's Ch5 so I just need to switch the cables around.... :)

 

 

Comment by Jan Vervoorst on June 17, 2011 at 9:22am
Gordon, thanks for all the work! Allow me a few questions, I think I still have setup problems:

Currently, channels 1-6 of my Turnigy receiver are connected with Input 1-6 of my APM board (I use Arducopter 2). I then set channel 5 in AUX-CH to GEAR and follow all your other instructions.
When I run PWM in CLI, I see the following behavior: Channel 6 values change to my adjusted settings when I use the GEAR or F.MODE switches. Channel 5 changes from approx. 1067 to 1910 when I change the GEAR switch.

I'm confused about the channel wiring!
- Channel 6 of my receiver now gives me the six different settings wanted for the mode switching.
- The AC2 manual says that input channel 5 on the APM board is used for mode switching.
- So does that mean I have to wire receiver channel 6 to APM board input channel 5?
- What do I wire receiver channel 5 to? Since it changes values depending on the GEAR switch, can I still use it or simply leave it unconnected?
Thanks again everyone for the help!
Comment by Gordon on June 17, 2011 at 12:53pm

Jan, you have guessed correctly, ch6 from receiver connects to ch5 of APM.

-ch5 from receiver is left unconnected and is not used.

 

Just for information. The ch connection order is completely dependent on the brand of radio. eg. JR/Spektrum has ch1 to ch4 as thro, elev, ail, rudd.

Comment by Matteo Carnevali on July 26, 2011 at 10:09am

Hi Gordon, tnx for your tutorial but I've tryed with no results.

I've went through your tutorial but as long as I move the uprate and the dwnrate nothing changes under the CLI PWM test...     (I got an eurgle 9ch radio, I believe it should work)

I was initially confused about wirings same way as Jan Vervoost some posts ago. I've left ch6 from APM not connected but at that point it's like the APM is not receiving any inputs from rx and looking through the PWM test any channel is stuck at some PWM value; as I'm moving sticks on my radio nothing happens. If I do connect APM ch6 to -for example- ch 7 of Rx everything "wake up" again

 

Please help me, sorry for my bad english I'm from Italy

Matteo

Comment by Matteo Carnevali on July 26, 2011 at 10:18am

Just to be clear

Comment

You need to be a member of DIY Drones to add comments!

Join DIY Drones

Groups

Season Two of the Trust Time Trial (T3) Contest 
A list of all T3 contests is here. The current round, the Vertical Horizontal one, is here

© 2019   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service