Arduino Forum

Topics => Device Hacking => Topic started by: aggrav8d on May 07, 2013, 02:51 am

Title: Have you made a joystick from an Arduino? I need your expertise, please.
Post by: aggrav8d on May 07, 2013, 02:51 am
I did my homework and found two methods of getting an arduino to show up as a joystick.

1) DFU
2) "Don't use DFU, buy specialized hardware."

I'd like to solve this without having to buy extra hardware, if I can.  What's your method?

Thank you!
Title: Re: Have you made a joystick from an Arduino? I need your expertise, please.
Post by: Osgeld on May 07, 2013, 05:53 am
vusb

http://www.obdev.at/products/vusb/index.html

and here is an instructable that is for making a wii controller into usb, but its handy as it explains USB descriptors and whatnot
http://www.instructables.com/id/USB-Wii-Classic-Controller/#step1
Title: Re: Have you made a joystick from an Arduino? I need your expertise, please.
Post by: aggrav8d on May 07, 2013, 06:31 pm
"making it possible to build USB hardware with almost any AVR® microcontroller, not requiring any additional chip."

Thanks for the quick reply.  Unfortunately this doesn't meet my needs.
I don't want to build any extra hardware.  I don't want to buy some wierd programming device.
I'm led to believe there's a way to change the bootloader so that my existing sketch stays on the chip and it will show up as a joystick.  It's supposed to use the existing USB port.

Have you got a way to do that, please?
Title: UNO as a HID compliant joystick?
Post by: aggrav8d on May 07, 2013, 07:14 pm
Hi!

I want my UNO to show up as a HID compliant joystick.  I've already written the sketch to run on the microcontroller.  I don't have the bootloader right.  I've been told DFU can do it, but then people in arduino said "no, buy extra hardware to do the job right."  I'd really really like to do the job without buying extra hardware.  Please: Is there a way?

Thank you!
Title: Re: UNO as a HID compliant joystick?
Post by: AlxDroidDev on May 07, 2013, 07:28 pm
This is easier to achieve with a Leonardo or a USB Host shield.

The UNO itself can't do it, because the Atmega328P on it doesn't talk directly to the USB port on a computer. It needs something in between, be it the Atmega8u2 or Atmega16u2 on it or the USB host shield.

If you reprogram the Atmega8u2 (or 16u2) on your UNO, you'll lose the feature of uploading sketches through the UNO's USB port.
Title: Re: UNO as a HID compliant joystick?
Post by: aggrav8d on May 07, 2013, 08:22 pm
Total cost UNO + USB Host Shield > Leonardo.  Decision made.

Thanks!
Title: Re: Have you made a joystick from an Arduino? I need your expertise, please.
Post by: Coding Badly on May 07, 2013, 08:59 pm

@aggrav8d, please do not cross-post.
Title: Re: Have you made a joystick from an Arduino? I need your expertise, please.
Post by: Osgeld on May 08, 2013, 02:26 am

I don't want to build any extra hardware.  I don't want to buy some wierd programming device.


its 3 resistors and 2 diodes running on a standard arduino, so apparently you didnt look too hard, hack up the usb interface on the uno or buy an Leonardo