Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: ModMob on September 24, 2011, 10:51:17 AM
-
Hello,
I have a setup where I’m using MATLAB for some computing on my PC; then I send and receive information with my three mobile robots via an XBee point to multi-point network. This part works, because the coordinator XBee appears as a virtual serial COM on my PC. I also want to use a USB game controller, but MATLAB can only communicate with a USB device if it appears as a virtual serial COM port.
So, I need a gamepad or gamepad driver that can emulate a serial port, but I haven’t found a quick solution. I have Logitech F310 gamepad and it doesn’t support this. I would use any gamepad that has two joysticks and at least 6 other inputs.
Does anyone know if any of the common USB gamepads appear as a virtual serial COM on your PC?
Any info helps...
Cheers,
Mod
-
Have you looked into this (http://tech.groups.yahoo.com/group/psychtoolbox/message/581)? I find it hard to believe that Matlab has no support for USB joysticks.
As far as I know, no USB joystick/gamepad will have a usb-to-serial interface, simply because the USB specification already defines a joystick interface, which is generally preferred.
-
No I hadn't. Looks promising. My assumption about MATLAB not supporting USB is from:
http://www.mathworks.com/support/solutions/en/data/1-195HX/?solution=1-195HX (http://www.mathworks.com/support/solutions/en/data/1-195HX/?solution=1-195HX)
I'm no expert, so maybe there is a straight forward way. I have heard of some support for specific types of joysticks and more complicated solutions. The controller interfacing is something I need for my research, but not the topic, so I'm looking for a quick and easy way to do it.
Thanks for your advice.