Generate PPM with Arduino for Taranis X9D Trainer Port

Electronic projects that are either related to the firmwares for the 9x, or simply great for radio control applications.
Post Reply
Starscream
Posts: 16
Joined: Fri Apr 11, 2014 6:14 pm
Country: -

Generate PPM with Arduino for Taranis X9D Trainer Port

Post by Starscream »

Hi you all,

I've started to work on a little project, recently.
I bought a taranis x9d radio and a D8R-II plus receiver and I've used them on my hexa, and they work perfectly.

I've thought to control the drone from my PC, by sending PPM signals from my Arduino to the X9D radio. I asked on this forum about this, and some kind people (MikeB, Kilrah) told me that I can use my the X9D's trainer port to send this signal to the remote receiver.

After this I've started to search for libraries which could help me to generate these signals.
I'd like to generate a PPM signal with a frame of 20 ms, so a frequency of 50 Hz.

First of all I'd like to move a servo motor, which is connected to the D8R-II output, just for testing. After this test I'd like to go on and control the drone, but I can't understand the PPM signals generation very well! :(

What I want to obtain is something like this:
PC --- servo's position ---> Arduino ----- PPM ---> Taranis X9D ------ PPM signal ---> D8R-II receiver ---- position ----> Servo Could you give me any suggestion please?
I've read different topics but I can't find and build what I wish...

Thank you in advance for you replies and your help! :D
Hi you all I'm a University student and I'm interested on UAVs and microcontrollers

User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Generate PPM with Arduino for Taranis X9D Trainer Port

Post by jhsa »

There is a similar project going on that will use eepe to control the servos on an model allowing to setup the model and see the changes in real time. Something has already been done but the completion of the project depends on people having time to actually finishing it. I am waiting patiently. ;) :D There is some arduino code though that I could give you. I used it with an arduino pro mini connected to the PC via an FTDI cable. It receives the servo position from the PC and outputs PPM.

Joao

Sent from my GT-I9195 using Tapatalk
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
Starscream
Posts: 16
Joined: Fri Apr 11, 2014 6:14 pm
Country: -

Re: Generate PPM with Arduino for Taranis X9D Trainer Port

Post by Starscream »

Could you be so kind to share it with me? I'll analize it :D
My e-mail is: [email protected]

Thank you in advance :D
Hi you all I'm a University student and I'm interested on UAVs and microcontrollers
Starscream
Posts: 16
Joined: Fri Apr 11, 2014 6:14 pm
Country: -

Re: Generate PPM with Arduino for Taranis X9D Trainer Port

Post by Starscream »

The code is perfect jhsa, but there some parts of its tha I can't understand! :(
Hi you all I'm a University student and I'm interested on UAVs and microcontrollers
Starscream
Posts: 16
Joined: Fri Apr 11, 2014 6:14 pm
Country: -

Re: Generate PPM with Arduino for Taranis X9D Trainer Port

Post by Starscream »

I'VE GOTTEN IT!!!!
If someone wants some suggestions or the code just write me!
Hi you all I'm a University student and I'm interested on UAVs and microcontrollers

User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Generate PPM with Arduino for Taranis X9D Trainer Port

Post by jhsa »

Why don't you post it here and let us know what you did? ;) :)

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
willburn
Posts: 1
Joined: Fri Nov 03, 2017 1:14 pm
Country: -

Re: Generate PPM with Arduino for Taranis X9D Trainer Port

Post by willburn »

João is right ! :)
User avatar
bob195558
Posts: 2377
Joined: Sun Dec 16, 2012 7:24 pm
Country: United States
Location: New England, Vermont
Contact:

Re: Generate PPM with Arduino for Taranis X9D Trainer Port

Post by bob195558 »

Hi willburn,
Welcome to openrcforums ! :)
You are replying to an old posting from Apr 29, 2014.
I have done the same thing sometimes, by not checking the data of the posting also. :oops: :mrgreen:

Bob B.
Er9x on 9x radio, with Smartieparts Programmer and TelemetrEZ Board.
ErSky9x on Taranis, Sky9x, 9Xtreme radios.
3D-Printing: (https://openrcforums.com/forum/viewforum.php?f=129).

Post Reply

Return to “General RC Electronic Projects and Discussion”