Pages: [1]   Go Down
Author Topic: USB joystick to RS232 to Arduino  (Read 1400 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I would like to use a USB gamepad (PS2 like) to control some DC motors with Arduino.

Is it possible to plug USB gamepad to a RS232 converter and then read from converter's RX/TX with Arduino?

Regards
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Unlikely. You'd be better off getting a USB host shield for your Arduino.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Do I need some special library to interact with the USB gamepad via USB host shield or can I communicate with the USB host shield by addressing the RT/TX?
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You would need the appropriate libraries. The circuits@home shield (http://www.circuitsathome.com/products-page/arduino-shields/usb-host-shield-2-0-for-arduino/) has libraries and examples including a USB Joystick sketch https://github.com/felis/USB_Host_Shield_2.0/tree/master/examples/HID/USBHIDJoystick.
Logged

Pages: [1]   Go Up
Jump to: