Instructables

Control anything with ps2 controller and Arduino (wirelessly)

Picture of Control anything with ps2 controller and Arduino (wirelessly)
In this instructable you will learn how to control a led with a playstation 2 controller and an Arduino, but you can basically control anything you want.

 
Remove these adsRemove these ads by Signing Up

Step 1: Materials

You will need:
Arduino
ps2 controller (wireless or not)

Circuit:
3x 1k resistors
2x 4.7uf capacitors
1x 10k resistor
1x lm2950 voltage regulator
1x zvn4602a mosfet
4x 1n4148 diodes

Step 2: Creating the Connection Cable

Picture of Creating the Connection Cable
1) Cut off the male end of the cable (the one with pins, not holes).
2) with a continuity tester find out which pin corresponds to which cable as seen on the image.



Step 3: Make the circuit and connect it to an Arduino

Picture of Make the circuit and connect it to an Arduino
1) Connect the J5 (Attention (Atn)) to pin 10
2) Connect the J6 (Command (Cmd) to pin 11
3)Connect the J8 Data to pin 12
4) Connect the J7 Clock (Clk) to pin 13

Step 4: Led

Attach the led to pin 7 and ground

Step 5: Software

1) copy the attached file to your arduino libraries folder
2) open the example file and upload it to your arduino

Step 6: Serial monitor

Picture of Serial monitor
you can also watch the buttons you press by opening serial monitor and setting the port to 57600
crisgt (author) 9 months ago
-brodylittle011: What you don't understand?
-chrwei: The problem is that playstation controller use 3.3v while arduino uses 5v logic signals so what this circuit does basically is to translate 3.3v signals to 5v signal and the other way around (It's a logic translator). And yes it works with both wired and wireless controllers.

hello crisgt, i am from argentina, i have try this circuit but i can´t make it work. the material you say i need is 4x 1n4148 diodes but in the schema i see only 3 diodes. also i gone to buy 1x zvn4602a mosfet and this does´t exist , any replacement? . the colour of the wires of my female adaptor is not the same but it no matter , i connect it with the tester (multimeter) measuring the continuity. please help me , thanks

Hello crisgt, i have get it to work, i follow the conexión from THE MIND OF BELL PORTER and now it show me the results in the monitor serial when i press on button of the controler. i just test your code to make switch on and off the led and it work perfect. Now i want to make move a servo progressively from one way to other and i can`t do it, please can you help me with this code ?

Etherxr6 months ago
Hi, i just realize that your component list does not tally with the amount used in the circuit. Does it optional or the correct amount is what used in the schematic? Plus, i`m still learning in applying schematic, so i guess from J1 to J4 is connected to the controller, right? And what does the Mosfet used in this circuit? I tried to google it, but your ZVN4602A doesn`t come out in the list. Please advise, thanks
juliusli6 months ago
DO all keys work with? such as the "mushroom keys".
Sandman.Gor8 months ago
Hi!

I tested in 2009 worked.
But when testing the Mega it does not work.
chrwei10 months ago
I'd tried this some time ago with limited success. the guides that came with the original psx lib just wired the pins directly, and one saying it wouldn't work with the wireless controllers. I'm assuming your circuit will work with a wires controller too, can you explain what this circuit does that makes it better than directly connecting?
crisgt (author)  chrwei9 months ago
The problem is that playstation controller use 3.3v while arduino uses 5v logic signals so what this circuit does basically is to translate 3.3v signals to 5v signal and the other way around (It's a logic translator). And yes it works with both wired and wireless controllers.
brodylittle01110 months ago
can you make a better schematic...
crisgt (author)  brodylittle0119 months ago
What you don't understand?
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!