What You Need
- One of the following boards:
- Arduino Uno
- Arduino Nano
- Pre-programmed Arduino Uno from the RetroSpy store
- USB cable to connect the Teensy to your computer
- An IR Receiver tuned to 36kHz or 38kHz, I used a TSOP38238
- Wires connect to the IR receiver, like these
- The latest Arduino software
- Firmware for the Teensy
- My branch of cyborg5’s IRLib2 Arduino Library, found here.
- PC software to connect to the Arduino and display the controller
#2 and #4 above are included in the release package of RetroSpy. The firmware is located in the
firmware folder and is called
firmware.ino. Just run RetroSpy.exe to launch the display software.
Hooking it up
- Download and install the latest release of RetroSpy.
- Install the latest Arduino software, download the Windows Installer option. If you are not programming your own board you can skip this step.
- Hook up the IR sensor to your Arduino according to this pinout.
IR Pin Arduino Pin Data 2 Power 5V or 3.3V GND GND
- Plug the USB cable into the Arduino.
- Plug the other end of the USB cable into the display PC.
Once the wiring is done and everything is hooked up to your game system and computer, now for the easy part.
- Make sure the the USB cable between your Arduino and PC is connected and if you are not going to program your own board you can now skip to Step 10.
- Open the Arduino software that you installed above.
- You should see “Arduino on COMX” at the bottom right corner if everything is working. If not, you may need to restart and/or replug the USB connector.
- Install RetroSpy’s fork of cyborg5’s IRLib2 from here.
- Open common.h in the RetroSpy installation directory (by default this is
C:\Program Files (x86)\RetroSpy\firmware) with any available text editor and uncomment the line to enable the use of the library in the RetroSpy firmware.
- In the Arduino software select File->Open from the menubar and open the
firmware.inofile from the firmware folder of the installed RetroSpy release (by default this is
C:\Program Files (x86)\RetroSpy\firmware).
- Now uncomment the option for
MODE_CDI. Note that
MODE_SNESis uncommented in this image.
- Hit the upload button (right pointing arrow) located just under the ‘Edit’ menu, this will upload and run the software on the Arduino. It should look like the following image. Once successfully uploaded, you won’t have to upload software again to the Arduino again unless you want to change controller modes.
- Power on the console.
- The selection here should be pretty straightforward, select the ‘COMX’ port that the Arduino is on, select the controller you are using, select a skin, and hit ‘Go’. If everything is hooked up correctly you should see your controller and inputs displaying.