I was wondering if it's possible to connect a USB female connector to the arduino board and then read data from a PC gamepad? I want to use the analog sticks of the gamepad to control servos. I have tried searching the forums but haven't found anyone using a USB gamepad.
I was wondering if it's possible to connect a USB female connector to the arduino board and then read data from a PC gamepad? I want to use the analog sticks of the gamepad to control servos. I have tried searching the forums but haven't found anyone using a USB gamepad.
If it is a USB device then the short answer is no you can't. You might have better luck if you could find a pre-USB gamepad to use instead.
An analog joystick is basically just 2 potentiometers. So you should be able to hook up the two analog joysticks to 4 analog pins on the Arduino board.
One caveat though! On some cheap playstation clone gamepads the joysticks are wired (on the PCB) in a wiered way that makes them work more like on / off switches than like pots. I disassembled such a gamepad (for a non Arduino related projected) and ended up cutting all the PCB traces around the joystick and just soldered wires directly to the potentiometer solder tabs to make them work.