Posts: 1
Joined: Sat Mar 05, 2016 7:54 am

Creating a NES controller driver

Sat Mar 05, 2016 8:26 am

Hi all,

I was wondering if anyone could tell me if the following would be possible...

I want to use a NES controller with the Raspberry Pi, but just buying a USB one seems a bit like cheating and not really in the spirit of what the raspberry pi is all about!

I've watched a video that explains all about how a NES controller works - one wire for data, one for clock, one for latch, one for power and one for ground, so would it be possible to write a "driver" that would be able to send the correct signals to the controller and get the data back via the GPIO pins? I feel like this would work in theory, but I'm not really sure where to start.

If anyone could point me in the right direction I'd be very grateful. To start off I'm going to get myself a breadboard and actually do some basic programming with the GPIO pins so that I'm not going into this completely blind!

Thanks in advance!

User avatar
Posts: 451
Joined: Thu Sep 08, 2011 10:58 am
Location: Newcastle, UK
Contact: Website

Re: Creating a NES controller driver

Mon Mar 07, 2016 2:48 pm

This thread about "Multi-console gamepad driver for GPIO" might help you:


Posts: 47
Joined: Tue Oct 23, 2012 4:15 pm

Re: Creating a NES controller driver

Tue Mar 08, 2016 7:20 am

There already exists one in WiringPi:
https://git.drogon.net/?p=wiringPi;a=bl ... 20;hb=HEAD

You should be able to run the NES controllers at 3.3v so no chips needed, just a bit of wiring and software.

Return to “General programming discussion”