Go Down

Topic: USB joystick to RS232 to Arduino (Read 1 time) previous topic - next topic

danijels

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

dxw00d

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

danijels

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?

dxw00d

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.

Go Up