PlayStation 2 Controller with FCE Ultra NES Emulator (using arduino)
Loading...
1,140
Loading...
Uploader Comments (ubuntupaper8)
see all
All Comments (8)
-
anus
-
Thanks!
-
Cool can you post the code and pin details?
-
Cool! can you post the code please? Do the joysticks work?
Loading...
Cool can you post the code please? Do the joysticks work?
goosenp 9 months ago
@goosenp
This is the arduino code: pastebin-dot-com/Gf37bnU8
This is the python code that receive data from arduino: pastebin-dot-com/0FTuqgM2 (It works on linux - tested on Ubuntu Maverik. If the port of arduino isn't /dev/ttyACM0, change it in the python code)
You mus take the PS2 controller lib (Check the descrption for link)
ubuntupaper8 9 months ago
@goosenp
For pin check this pic: store.curiousinventor-dot-com/media/images/guides/ps2/wiring.jpg
Check 22nd line of the arduino program for details.
Connect black to ground and red to 3.3 or 5v (I connected the red to +5, i never tried to 3.3v)
Bye, and sorry for my english :)
ubuntupaper8 9 months ago
@goosenp
Ah, PS: The python code simulates a "key press". You must set up FCEUltra key bindings.
ubuntupaper8 9 months ago