Page 1 of 1

Creating a NES controller driver

Posted: Sat Mar 05, 2016 8:26 am
by gjames_dev
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!

Re: Creating a NES controller driver

Posted: Mon Mar 07, 2016 2:48 pm
by TonyD
This thread about "Multi-console gamepad driver for GPIO" might help you:

viewtopic.php?f=78&t=15787

Re: Creating a NES controller driver

Posted: Tue Mar 08, 2016 7:20 am
by Sonny_Jim
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.