Pages: [1]   Go Down
Author Topic: ps2 controller interface using fets  (Read 980 times)
0 Members and 1 Guest are viewing this topic.
South Louisiana
Offline Offline
Full Member
Karma: 0
Posts: 180
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have been trying to interface a ps2 controller to my mega (1280) using bill porters ps2x library.

I eventually manged to get a hard wired controller working. It was a pelican brand from wally world.

it didn't seem to like 5 volts and I couldnt find a relaitivly simple way to convert without having to buy the tsx0104 as shown here.

doing some more research on level shifting I found what these guys were doing with an I2C circuit.

so what I ended up doing was merging these two ideas and getting it working. the hard wire model worked fine with only level shifting the command, attention, and clock line. the data line was wired directly to the arduino.

I used a 2n6660 fet. tied the gate to 3.3 volts. the source tied to the controller with a 10k resistor pulling the line up to 3.3. the drain is tied directly to the arduino with no pull up.

I went ahead and shifted all 4 lines when I made the shield just to be sure I wouldn't have any issues with wireless controllers.

I made a quick hand drawn diagram and scanned it in for reference. It only shows one circuit but that same thing is repeated 4 times. 1 for each com line.

It has been tested with the two controller i have. One wireless Pelican, One wired Pelican.

* IMG054.jpg (1008.86 KB, 2592x1944 - viewed 45 times.)

* PS2 Controller Quick Diagram.jpg (28.78 KB, 781x291 - viewed 43 times.)
« Last Edit: November 29, 2011, 02:26:52 pm by Goofballtech » Logged

Pages: [1]   Go Up
Jump to: