Skip to main content
Easton's stuff

Main navigation

  • Code
  • SnackLinux
  • Home

Breadcrumb

  1. Home

NES controller on the Raspberry Pi

NES controller on the Raspberry Pi

By Easton , 19 December, 2012

Because I wanted the full experience, I wanted to hook up my NES controller to my Raspberry Pi and play NES games. I looked around and didn't find anything that fit my needs.

I wrote a script, that's up on Github now, that converts button presses on the NES controller to keyboard presses. So for example, by pressing the A button it registers as pressing the Z key on a keyboard. How to set it up is all right here.

I spliced the wires on the NES controller (thanks to this diagram) and used a breadboard to connect the appropriate wires to ground, +5V, the data, latch, and clock pin. Now I can play Mario in retroarch with a NES controller!

Tags
linux
raspberry pi
nes
Attachment Size
CAM00116.resized.jpg (841.56 KB) 841.56 KB

Anonymous Coward (not verified)

12 years 11 months ago

Cool! Check out PiMAME.

Good job! I recently found myself trying to solve the same problem. Instead of possibly damaging my precious NES controller from my childhood, I opted for a the NES Female Port to USB Male adapter. http://www.retrousb.com/product_info.php?cPath=21&products_id=28

Unfortunately they sent me the damn USB NES RetroPad. On it, the left direction only works sometimes :(. BUT it does work with PiMAME out of the box! http://blog.sheasilverman.com/pimame-raspberry-pi-os-download/

Anonymous Coward (not verified)

12 years 8 months ago

Great

Could You repost "this diagram" thing again please ?

mknjhill (not verified)

9 years 3 months ago

I used a usb nes controller

I used a usb nes controller on my pi. (well one of my pi's haha)

Navigation

  • GitHub Profile
  • SnackLinux
  • Popular pages
    • Restoring a Macintosh Plus
    • Getting root access on a $10 Aliexpress Wifi repeater
    • Remote code execution on no-name wifi repeaters: Part 2
    • Building your own handheld GPS with an ESP32
    • Remote code execution with Hitron CGNM-2250
    • NES controller and a RaspberryPi
    • 4000 series CMOS 24 hour clock
  • Toyota Overland
RSS feed



 

Powered by Drupal