PlayStation 2 Controller with FCE Ultra NES Emulator (using arduino)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,140
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 26, 2010

Un'arduino UNO gestisce un joistick sony per Playstation2 e invia due byte al PC tramite la porta usb dell'arduino. Un programma in python riceve e simula la pressione dei primi nove tasti q w e r t y u i o p (tramite xsendkeycode).

--

An arduino uno control an Sony controller for playstation 2 and send 2 bytes to pc (using serial usb connection @ 57600 baud). A python program receive these byte and simulate a key press (using xsendkeycode). All on Linux (ubuntu Maverik)

Playing super mario bros. (Europa)

PlayStation 2 controller lib: http://www.billporter.info/playstation-2-controller-arduino-library-v1-0/
Python and arduino: http://www.arduino.cc/playground/Interfacing/Python

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (ubuntupaper8)

  • Cool can you post the code please? Do the joysticks work?

  • @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)

  • @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 :)

  • @goosenp

    Ah, PS: The python code simulates a "key press". You must set up FCEUltra key bindings.

see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • anus

  • Thanks!

  • Cool can you post the code and pin details?

  • Cool! can you post the code please? Do the joysticks work?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more