Author Topic: [HELP]USB interface for RC Tx  (Read 8138 times)

mummson

  • Newbie
  • *
  • Posts: 3
[HELP]USB interface for RC Tx
« on: May 05, 2013, 06:31:38 am »
I wanted to know how much of an effort it would be to make a USB interface for USB joysticks to connect them to RC Transmitters. I have a Turnigy 9XR

That controller has a Futaba and JR trainer ports which if I understand correctly takes PPM Signal's in. So what I would need to make is a interface with USB in whichconvert's the joysticks signal to PPM and has a mono jack output for the JR plug.


Would this be possible with the Digistump?

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
Re: [HELP]USB interface for RC Tx
« Reply #1 on: May 09, 2013, 04:41:39 pm »
Unfortunately not. USB has devices and hosts, and both a digispark and a USB joystick are a device, so they cannot talk to each other. You would need to go through a PC, in which case it would be pretty straight forward to create a PPM signal generator.

mummson

  • Newbie
  • *
  • Posts: 3
Re: [HELP]USB interface for RC Tx
« Reply #2 on: May 10, 2013, 02:40:42 am »
Unfortunately not. USB has devices and hosts, and both a digispark and a USB joystick are a device, so they cannot talk to each other. You would need to go through a PC, in which case it would be pretty straight forward to create a PPM signal generator.


Are you sure about that? I am pretty sure I saw on [size=78%]http://www.instructables.com/[/size] some one do a similar thing with an Arduino Due can't find it atm ill try to dig it up. But I really doubt that this is not possible...

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
Re: [HELP]USB interface for RC Tx
« Reply #3 on: May 10, 2013, 05:44:55 am »
The arduino due is arm based, and some arm chips do have usb host capability. The digispark and older/cheaper arduinos are based on the AVR architecture, and I don't think any AVR devices have USB host functionality built in.

mummson

  • Newbie
  • *
  • Posts: 3
Re: [HELP]USB interface for RC Tx
« Reply #4 on: May 10, 2013, 06:19:40 am »
The arduino due is arm based, and some arm chips do have usb host capability. The digispark and older/cheaper arduinos are based on the AVR architecture, and I don't think any AVR devices have USB host functionality built in.


MMkey .. thanks for the info :) ill look into arduino solutions

Mark

  • Full Member
  • ***
  • Posts: 196
Re: [HELP]USB interface for RC Tx
« Reply #5 on: May 10, 2013, 11:08:14 am »
Sparkfun (and others) make a USB host shield for fullsize Arduino.
https://www.sparkfun.com/products/9947
Whether its suitable or not ...(its the end of a night shift, so I'm heading to bed ...you guys work it out)
cheers
Mark

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
Re: [HELP]USB interface for RC Tx
« Reply #6 on: May 11, 2013, 04:36:51 pm »
If you can find a suitable joystick from game consoles before the xbox and ps3, all that stuff uses something like SPI interfaces or shift registers to communicate with the console, which is much easier to work with from a digispark point of view. Old PC joysticks that used the midi/joystick soundcard port aren't very suitable though as they do not have a digital interface, and some of the atari/amega era joysticks and gamepads also do not use a digital interface. Things like NES controllers are shift registers, PS1 and PS2 controllers are SPI, while dreamcast controllers use serial through a weird proprietary serial protocol, as do gamecube and n64 controllers. Anything which plugs in to the bottom of a wii remote is i2c based. at worst these digital interfaces require four pins, which leaves two spare on a digispark - one of which can act as your output for PPM signalling. The wii nunchuck is a kinda neat controller because it has an analog stick, two buttons, and a three axis accelerometer via a simple digital interface.

Mark

  • Full Member
  • ***
  • Posts: 196
Re: [HELP]USB interface for RC Tx
« Reply #7 on: May 11, 2013, 10:38:53 pm »

Nintendo Wii use I2C.

The protocol is available, and I've used a wireless Nunchuk version (US$15 from DealExtreme) to control my robot.


Mark

 

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: [HELP]USB interface for RC Tx
« Reply #8 on: May 12, 2013, 12:39:18 am »
Our next batch of prototype PCBs we are working on has a first draft of a Wii Nunchuck shield, and we hope to offer it for sale soonish...