3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How to build a Nintendo arcade

Step 2Hack the keyboard to use as an interface

Hack the keyboard to use as an interface
«
  • 06.JPG
  • 07.JPG
  • 08.JPG
  • 09.JPG
  • 10.JPG
  • 11.JPG
  • 12.JPG
  • 13.JPG
  • 14.JPG
  • 15.JPG
  • 16.JPG
  • last photo ←
»
Now let's work on the interface for the joystick/buttons. This is how the controls will communicate with the PC.

You can buy encoders pre-made and save a lot of time, or you can do it on the cheap and spend a lot of time soldering. I prefer to do as much as possible myself, without buying special parts.

Take apart the keyboard and inside you will find a thin transparent piece of plastic film. It's actually two pieces that you must separate. After doing so, take a sharpie and mark the contacts that correspond to the keys you want to use.

I used the following keys: tab, esc, ctrl, alt, R, F4, enter, num lock, and the numbers 2,4,5,6,8, all from the num pad, that is very important. The numbers across the top of the keyboard will not work. This is because I used 2,4,6, and 8 as the up, down, left and right controllers for the emulator. By turning on sticky keys, these same numbers control the mouse cursor. The num locks enables/disables sticky keys. The number 5 key is the left mouse click. If you are using an 8-way joystick, you can also use the numbers 7,9,1, and 3 for the respective diagonals. I chose to keep it simple with a 4-way joystick since it was only going to emulate and old school NES.

Inside the emulator, you can choose which keyboard keys control what. This is what I used:

Main buttons:

UP-------------------num pad 8
DOWN--------------num pad 2
LEFT----------------num pad 4
RIGHT--------------num pad 6
START--------------enter
SELECT------------tab
B button------------ctrl
A button------------alt

Secondary buttons:

Mouse Mode----------num lock
Reset-------------------ctrl+R
Hide/show menu----esc
Mouse click-----------num pad 5
Exit----------------------alt+F4

Now that you have keys marked on the films, we need to trace the contacts out and see which pin corresponds to which contact. each film will have its own set of pins. One set will be grounds and the others will be opens. The film that is the grounds will have the least amount of pins. My grounding film had 8 pins and the open film had 20 pins. For example: Take the R key on the ground sheet and using a multimeter in continuity mode, find out which pin of the 8 pins leads to the contact for the letter R. In my case it was pin 5. Doing the same thing for the letter R on the open field shows the R key corresponds to pin 11. Now we know that if we make those two pins touch each other, that will activate the letter R. That is how a keyboard works. Repeat this for every keyboard key you are going to use, making a list of this information as you go.

solder wires between the contact pins you need and a prototyping circuit board from radioshack. A nice tip is once you have your solder point done, smother the entire thing in hot glue so no wire accidentally get pulled off.

Once the interface is complete, you will wire the buttons to the prototyping boards.
« Previous StepDownload PDFView All StepsNext Step »
22 comments
Aug 4, 2011. 1:55 PMx-muts-x says:
But if you're using an LCD or Plasma,
You won't be able to play Duck Hunt...
Which is the best game ever...
And you can't put an old screen in there. They're huge..
Apr 14, 2012. 7:04 AMfarmerboyk says:
Im sure the screen doesn't matter if its LCD/Plasma.
Jul 11, 2011. 12:40 AMmitch and sean says:
Is the diet coke have to come in later on or is it used for something?

Ples explain
Mar 10, 2012. 11:54 AMthethiny1919 says:
some people dont get the joke
Jul 22, 2011. 10:42 AMpblanscet says:
it is for all the energy. caffiene
Mar 16, 2011. 3:59 PMjackman27 says:
i cant get the sticky key trick to work, any help?
Mar 23, 2011. 4:32 PMjackman27 says:
i found out you use mouse keys
Mar 13, 2011. 10:29 AMDrandula says:
http://drandula.deviantart.com/gallery/#/d2y5gw2
And this have been collecting dust for long time, 'cause I am too lazy to wire keyboard or install computer inside.
Oct 26, 2009. 11:52 AMmrsocky says:
where did you get your software to open the games and was there any aditional programming?i realy would like to do this but thats the only problem.
Mar 10, 2011. 7:33 AMqazwsx755 says:
The "front end" I use in my arcade machine is called RockNESX and you can download RockNESX here http://www.rom-world.com/file_emu.php?id=48.
For the NES roms I get them from rom-world.com.
Aug 3, 2010. 12:37 PMmrsocky says:
where did you get your games?
Dec 10, 2010. 6:21 PMtrete says:
whats the paper you have? And how exactly would connect the wires to the pins and all?
Jun 21, 2010. 3:12 PMMatthewEnderle says:
could you please post a link to the matrics... or anything i need about this keyboard since i have the same exact one to cut time... great instrucable by the way!
Mar 29, 2010. 12:06 PMhabzbah says:
 where can i buy the nes controller/keyboard thing pre-built?
Apr 5, 2010. 11:40 PMvexerr says:
google: i-pac
Sep 9, 2009. 1:01 PMDrandula says:
I had ordered joysticks and buttons, but I dont understand this. Please, could you do step-to-step? So I could check what I must do before I can even connect them.
Sep 12, 2009. 10:19 PMDrandula says:
Dont need anymore, I finally understood (couple days ago really). Ordered two joysticks for two player :)
Oct 27, 2009. 6:05 PMDrandula says:
Nah, not going very well. I don't have plywood so I can't do the cabinet :/
But I have already those controllers made and I had tried make some
simply coin slot, and software for forking. Keyboards Leds shows how much playtime you have left (All three on=more than 5 minutes, one is blinking=4 minutes, two on=3minutes etc.). Also I have games already but my computer, what I would used, smashed up :I

So like that its going. I am more working on fangame project:
http://www.youtube.com/watch?v=pF_127st6Mo

Games forum topic:
http://gmc.yoyogames.com/index.php?s=b75bb2b3ebd909045714183e14e3b8fe&showtopic=447977&st=0

Oh and I also am making chainmall(arh, will not be ready for Halloween) and Kalevala comic.
Oct 29, 2009. 5:57 PMturtleshane says:
 i checked the zelda game out it looks sick :D im still not getting how you put the emulator and download the games and make sure the program is the first one to open :? i should know this to!! i used to do all this stuff and i still in my free time build gadgets and robots haha
Oct 24, 2009. 6:31 PMturtleshane says:
 i really want to do this but im confused and have some questions haha for starters where did you get the keyboard controller
Oct 27, 2009. 2:25 PMturtleshane says:
alrite so i googled ipac and found the controller but im still not getting what exactly is goin on at that part.  The ipac controller and the keyboard controller are different.
Oct 27, 2009. 3:14 PMturtleshane says:
nevermind did some research and now im starting to get all of this, but if i use the ipac then how do i program buttons such as select, mouse mode, exit, reset, mouse click, and hide/show menu?
Oct 27, 2009. 4:12 PMturtleshane says:
but that is for if you were to use a keyboard right? Or for the ipac do you use the switch that is the r key on a keyboard for example.  here is the link for what im talking about.
http://www.ultimarc.com/ipac2.php
Oct 11, 2009. 7:42 PMAnimalCrackersRGood says:
 How would you make it 2 player?
Sep 14, 2009. 2:13 PMmigueIII says:
i need!help please! can you send me a step by step i have the key board apart but i just dont understand
Sep 14, 2009. 3:20 PMDrandula says:
http://www.instructables.com/id/Hacking-a-USB-Keyboard/

That would be helpful, its pretty simply when you understand it.
Sep 5, 2009. 8:01 AMSamdrag1 says:
can you send me a step by step instructions to my email?
Aug 25, 2009. 12:36 PMdevsfan1830 says:
Am I correct in assuming that one lead of the multimeter is on the key location and the other is run along the pins of the sheet until u make a connection

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
122
Followers
7
Author:russm313