Remote Control using PS2 GamePad

How do you make use PS2 GamePad as controller for your RC ?

This should be not so difficult, since there are many web page describe about how to interfacing to PS2 GamePad.

I found this page was very helpful : Interfacing a PS2 Controller.
I tried to find connector for PS2 GamePad, but no luck. I just have to cut the cable and crimp it with RJ-45. There are only 8 cables in the controller anyway, and that is just perfect for the RJ-45 connector.


But then I was stuck on wondering whether my GamePad will work on 5V ? Or will I destroy the Pad when I plug it into 5V System ?

Image result for level converter 3.3 to 5After wondering around, finally I decide to give it a try. My Sony PS2 Controller did not respond to Init Command. So, it is obvious that we need level converter to interface the PS2 GamePad with 5V System.

One method is by using MOSFET as shown here.

Both ports can be used as input or output.

We need only 3 of this converter for converting CMD, CLK and ATN from Microcontroller to the Pad. The rest of connections (DATA, ACK) can just use resistors without the MOSFET to make Microcontroller read the data from the Pad.

The Dunk's Robot site has information on how to "talk" to PS2 GamePad using bit-bang method which is suitable for ATtiny2313.


The GamePad Data is then transmitted using 315MHz RF Module. The method used for sending the information was based on Virtual Wire. I modify the code by removing unnecessary parts, so that it can fit on tight space of Tiny2313.

After development finished, I made this RC Controller board which holds ATtiny2313, 315MHz RF Module and salvaged laptop battery.

The controller works on 3.3V and no need to use level shifter.


The range tested so far is more than 70m. Not bad for a small transmitter.
Here is the schematics :


The additional transistors are needed to turn off RF Module if not needed, and save the power. The PS2 Gamepad requires pull ups for its output. So, don't forget resistor pull up in DATA line.

And here is the PCB layout :



Finished experiments placed on the floor tile :


Wondering about what this RC transmitter is controlling ?
Well here it is :





Comments