100% meat-free code

Month: January, 2014

Raspberry Pi in a Super Nintendo Case – Part I

I always wanted a Super Nintendo when I was a kid, but I never got one. So this my new Raspberry Pi project: Put a Pi into a SNES case and make it emulate SNES/NES games. Further I will use originial controllers and set them up to work with the Pi. Thank god, a lot of work has already been done over at the RetroPie Project.

For the first stage of my project I will connect the the SNES controllers to the GPIO interface of the Raspberry Pi.


  • a SNES. I ordered a broken one on eBay
  • Tools to open the SNES. Yes, Nintendo uses proprietary screws. You can either google for some hacks to open the case with a ball pen or self made screw drivers. I simply ordered a Gamebit (4.5) on eBay which is certainly the easiest method
  • At least one original SNES controller
  • Raspberry Pi, a SD card with at least 8GB, a micro USB power supply, a HDMI cable for connecting it to your TV and a keyboard (for setup only)

After opening the SNES you will see that a flat flex cable connects the controller board with the main board. I removed this cable and wired the controller board to the GPIO pins.

Wired SNES controller board

The controller boards has 11 pins which I wired in the following manner to the GPIO pins to make it work with RetroPie. The numbering is left to right if you look at the back of the board (which is probably not as Nintendo intended as this way pin 1 connects to GND…)


Wired GPIO

That’s its. Now fire up emulationstation and play a ROM of your choice.

Playing Donkey Kong on my Raspberry PI

New years resolutions 2014

Its already a little late, but not too late for the same procedure as every year: new years resolutions. But this time I will try something different to make them stick: I will use peer pressure (by making them public).  So here they are:

  • Start a blog. In the past I started some (mostly programming) side projects but never finished even one. My new side project will be this blog.
  • Stop biting my nails (awful habit). I bite my nails as long as I can think back. I already tried to stop several times (I remember that I once managed to stop for at least a month or two) but always failed.
  • Eat less chocolate. I eat a lot of chocolate and once I start, I cannot stop. For this year a will restrict the amount of chocolate I eat and try to enjoy it more.