NES Controller to Raspberry Pi 2 GPIO
-
I am looking since 2 days for a tutorial how I can connect a NES Controller to GPIO of Raspberry Pi 2.
Found this:
http://blog.petrockblock.com/2012/07/03/snesdev-rpi-a-snes-adapter-for-the-raspberry-pi/
http://blog.petrockblock.com/2012/07/19/connecting-snes-sockets-to-the-raspberry-pi-an-assembly-guide/Well I have connected the NES to GPIO like below
Restarted Raspberry Pi and only Button A and Button B are recognized. All other Buttons has no function.
Another Problem is after I have installed: https://github.com/petrockblog/SNESDev-RPi
And run the command "sudo ~/SNESDev-RPi/bin/SNESDev &" there is no folder /bin/ inside SNESDev-RPi.pi@retropie:~ $ sudo ~/SNESDev-RPi/bin/SNESDev &
[1] 11044
pi@retropie:~ $ sudo: /home/pi/SNESDev-RPi/bin/SNESDev: command not foundInstalling GameCON Driver with Retro-Pi-Setup, it fails and will not install.
http://blog.petrockblock.com/2012/08/26/gamecon-driver-module-for-nes-snes-and-n64-controllers-added-to-retropie-setup-script/Would be happy if there is a Tutorial or some help to run the Controllers.
cheers
-
No help?
-
I'm currently using the SNES pads tied to the GPIO in the same way. The gamecon driver works great, however I do know that when I first started if I had the SNESDev installed, I could not install the gamecon driver. Had to reimage and do the gamecon driver by itself. You also have to modify a file that loads at startup (the driver install configures for SNES, you have to change it for NES I believe) that I can't remember the name of. I'll look when I get home tonight... Not sure if that helps...
-
I was using the Berry Boot RetroPi and had all the time problems with Gamecon Drivers.. Will test now with a fresh installed Raspian.
Waiting to your reply too. Thanks!
-
Check out my post here:
https://retropie.org.uk/forum/topic/54/gpiov1-on-retropie-3-6/2 -
To remove temporarily remove, modprobe <nameofmodule> -r
To permanently remove you have to edit /etc/init.d
-
Hey SuperSirLink,
I got it work without to edit the File but somehow the PAD will not be recognized.
My Connection for NES Controller on GPIO
GPIO4 - DATA
GPIO19 (MOSI) - CLOCK
GPIO23 (SCLK) - LATCH
GPIO1 - 3.3V
GPIO9 - GNDI disabled on boot SNESDev-Rpi at RetroPi-Setup but configured anyway the File /etc/snesdev.cfg and set it like this options gamecon_gpio_rpi map=2,2,2,2,2,2 to be sure if NES Controller will be recognized.. And yes the 4 buttons are recognized but not the PAD.
Will take a deep look into your Post too..
Btw: I am using a Raspberry Pi 2
EDIT:
pi@retropie:~ $ jstest /dev/input/js1
Driver version is 2.1.0.
Joystick (NES pad) has 2 axes (X, Y)
and 4 buttons (BtnX, BtnY, BtnThumbL, BtnThumbR).
Testing ... (interrupt to exit)
Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off -
So got it working also with the arrow keys too.. Nothing changed.. After a restart all has worked without a Problem..
Now its time to Test :P
-
Is there needed to config the Controller again to play with the ROMs? I can control everything in Menu but if the ROM is starting than the Controller is not anymore working.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.