We are building a 4-pad Sound Toy. In this recipe you are going to open a common USB keyboard, remove the small circuit inside and solder your own switches to this circuit. We are working with a USB keyboard because these can be used on both Macintosh and Windows computers. If you are using a Windows computer that has a PS/2 plug, you can use a PS/2 keyboard instead. They are usually cheaper than the USB ones.
Concepts and techniques in this recipe:
Tinkering with a keyboard
Basic soldering
Controlling software with physical world input
BEFORE YOU START, make sure to have all the parts and tools you need for this example
Parts and Tools
USB keyboard
Screwdriver
Pliers
Solder
Soldering Iron
Multimeter
Sandpaper
Wire (2 colors)
4 pushbuttons
This is what you are about to build:
![]()
1.a Keyboards
![]()
How do keyboards work?
In simple terms, a keyboard allows you to press a key, which closes a circuit associated with a particular keystroke. That closed circuit is detected by a mini-computer inside the keyboard called a keyboard encoder, which recognizes which key has been pressed. The keyboard encoder takes that information, encodes it in a digital form the main computer can understand, and passes it to the computer via the keyboard port.
The actual physical makeup of a keyboard can vary quite a bit. A typical design includes either a circuit board or a flimsy material (hereafter simply ‘flimsy’) that lies underneath the buttons on the keyboard. Laid out on the flimsy is a maze of circuits. Directly beneath each keyboard button on the flimsy are two halves of a circuit. The underside of the button has a conductive material of some kind. When the button is pressed, the conductive material comes into contact with the two halves of the circuit below, completing the circuit. Variations on this design exist, but almost all are similar. In this recipe we are going to extract an ingredient from a USB keyboard. Take a moment to examine the front and back of the keyboard and understand how the casing is made.
1.b Search for a way to open the keyboard
![]()
Most keyboards can be opened by unscrewing the little screws in the back cover of the keyboard.
1.c Unscrew the back cover of the keyboard
![]()
There is usually a simple and easy way to open electronic objects which does not require force. Try to find screws and open all of them; if you still can’t open the cover, check again - you might have missed a screw.
1.d Remove the back cover
![]()
Always gently remove the cover, without destroying the casing or the electronic parts inside.
2.a Locate the keyboard circuit
![]()
As you open the keyboard you will notice that inside there is a small printed circuit. Usually it is green. This circuit is connected to some wires that end up being the cable with the USB connector.
2.b Extract the keyboard circuit
![]()
Free the keyboard circuit from the flimsy transparent sheet and unscrew it from the keyboard frame.
3.a Understanding the circuit
![]()
At the bottom of the circuit there is an area of metal contacts (the two orange-brown rows of stripes in the picture on the right) . These transfer the keystroke data to the USB port, via the encoder circuit. If you count the contacts you will see that they are not enough to map all the keys of a typical keyboard (more than a 100 keys). If the design of a keyboard was configured to have a single discrete contact for each key we would need more than a 100 contacts.
To save money and space, keyboards use a design technique called a matrix -
Note that the metal contacts are divided into two groups - each group with 13 connectors. This means that by combining two inputs the keyboard is able to map 13×13=169 keys: more than enough to map all our keys.
4. Exposing the contacts
![]()
We will soon solder wires to the metal contacts.
Gently sweep fine sandpaper over the two contact rows to remove the protective coating paint and to prepare it for soldering.
5. Exploring the contacts
![]()
We are ready to explore the mapping of our keyboard circuit and identify the four characters we will associate with our push-buttons. We can use any character as long as they are not special characters but common ones.
Many kinds of software enable you to see which keys are being pressed on a keyboard. You can use Keypress, a small flash utility found on the FlashKit site, or simply use any text editor and take note of what characters are being entered. The only downside of using a text editor is that if you activate special characters like ‘Page Down’ or F1 these functions will actually be performed.
Connect the USB connector to your computer. Take a short piece of wire. Touch one end of the wire to a contact in the left group and the other end to a contact in the right group. See what happens in the software.
There is no standard way in which matrices are configured, each manufacturer has its own. So you need to find four keys by yourself.
On our keyboard we discovered that connecting the second contact of the right group with the first, second, third and fourth contacts of the left group maps to the keys ‘z’, ‘x’, ‘c’ and ‘v’ respectively. To have the same layout as ours, choose one contact on one side and find four contacts on the other side that map to simple characters.
6.a Preparing wire tips for soldering
![]()
Cut a length of blue wire. Expose each end of the wire,
twist it and cover it with a small amount of solder.
The tip should look pretty much like the one in this picture.
6.b Preparing contacts for soldering
![]()
Always remove the USB connector from the computer before you start soldering.
To prepare a contact for soldering we put a very small drop of solder on it. Careful! if you drop too much solder on the contact you might connect two adjacent contacts and this is not good at all.
If that happens, try to disconnect the contacts by moving a very hot solder iron in-between the contacts; this should cause the solder to melt and retract to a single contact.
Another way to do so is to use a tool called a ‘Solder Sucker’.
Now that you know how to prepare a contact, prepare one on one of the contact groups located on the keyboard circuit, as shown in the picture.
6.c Soldering the wire to the keyboard encoder
![]()
Now solder the wire tip to the metal contact. In order to create the layout of keys described above, this wire is going to be shared by the four pushbuttons. It should be long enough to reach the first button.
6.d Soldering the other side of the matrix
![]()
Connect four orange wires to four contacts on the other contact group, using the same technique as before. These should be long enough to reach to the four buttons.
7.a Pushbuttons
![]()
And here is a pushbutton switch.
This kind of switch works as follows: pressing the button creates a connection between two of its pins. But our pushbutton has four pins. We need only two and we need to know which two before we solder.
Learn more about PushButtons And switchs here
7.b Multimeters
![]()
Time to use a multimeter! This handy tool is used to perform diverse measurements in electronics. Here we use it in its simplest function: the beeper.
Rotate the dial until it points to the sound icon. This beeper setting allows us to check if the two multi-meter probes are connected by a conductive material. Touch the two probes to each other - if everything is set as it should you will hear a beep.
7.c Beep!
![]()
You need to discover which is the right pair of pins. Touch the multi-meter probes to different pin pairs: if you hear a ‘beep’ while you press the button, and no beep when you depress it, you have found the right pair.
8.a Solder the first button
![]()
Take a button and find a pair of pins. Solder an orange wire from the keyboard circuit to one of the pair’s pins (it doesn’t matter to which pin).
Now solder the blue wire from the keyboard circuit to the second pin. The button should look like the one in the picture.
8.b Add another blue wire
![]()
Cut another length of blue wire and connect it to the same pin to which the first blue wire is connected. You now have two wires coming out of the same pin. Amazing!
8.c Solder the other buttons
![]()
The diagram below represents in visual language the electronic circuit of this project. It represents the layout you are creating.
Now do the remaining soldering to complete this layout. Solder the other three orange wires to the other three buttons, each wire to one pin in a pair, which is the same pair as the one you found before, respectively. Then use blue wires to connect the other pins of all buttons to each other. To clarify the picture on the right, go back and check out the project schematics at the beginning of this page.
Done! You are now ready to test your buttons. Plug the USB connector to your computer and open the text editor or software you used to test character input. Press each of the buttons: you should get a different character for each.
Does it work?
You are now ready to add sounds to your buttons…
![]()
GO TO TASK 3: SET UP AND EXPORT THE WIRING CODE TO THE MICROCONTROLLER
[…] le direttive del professor Steiner, abbiamo smontato una tastiera per estrarre il cicuito con il quale costuire il prototipo. […]
[…] La verdad es que la Campus Party me está decepcionando un poco, todo lo que había visto, leído y oído otros años sobre ella hacía que se me hiciera la boca agua estando en casa sin poder disfrutar de ello; sin embargo, una vez que estás aquí la cosa no es para tanto. De todas las charlas a las que he ido se salvan dos: la de los compañeros de la UPV del IEEE sobre antenas wireless y la de Yaniv Steiner sobre Diseño e Interacción donde hemos hecho un mando para el Guitar Hero de un teclado viejo. […]
[…] InstantSOUP / Physical Computing » Build 31 Jul 2008. That closed circuit is detected by a mini-computer inside the. 1.b Search for a way to open the keyboard. Keyboard hacking 2.. Plug the USB connector to your computer and open the text editor or software you used to test character input.. Pingback by Progetto Air guitar: Make it real..www.nastypixel.com/instantsoup/?page_id=19 - InstantSOUP / Physical Computing » Build […]
… [Trackback] …
[…] Read More: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Informations on that Topic: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Informations on that Topic: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Find More Informations here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Informations on that Topic: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] There you will find 78326 more Infos: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] There you will find 67110 more Infos: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More Infos here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Find More Informations here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Informations on that Topic: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] There you will find 66021 more Infos: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Informations on that Topic: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More Infos here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] There you will find 67418 more Infos: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
Gems form the internet…
[…]very few websites that happen to be detailed below, from our point of view are undoubtedly well worth checking out[…]……
… [Trackback] …
[…] Find More Informations here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
Great website…
[…]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[…]……
… [Trackback] …
[…] Informations on that Topic: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Informations on that Topic: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] There you will find 69357 more Infos: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
… [Trackback] …
[…] Read More: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
Recent Blogroll Additions…
usually posts some fascinating information like this. If you’re new to this site…
… [Trackback] …
[…] Read More: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
Amazing post…
Read More…
… [Trackback] …
[…] There you will find 76844 more Infos: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
Recent Blogroll Additions…
usually posts some fascinating information like this. If you’re new to this site…
Websites you should visit…
below you’ll find the link to some sites that we think you should visit…
… [Trackback] …
[…] Read More Infos here: nastypixel.com/instantsoup/recipes/soundpad/sound-pad-build/ […] …
Condo Rentals in Siesta Key…
[…]below you’ll find the links to some pages that we think you should visit[…]…
{Amazing|Wonderful|Awesome|Incredible|Marvelous|Superb|Fantastic} {site|wwww|post}…
Wow, fantastic blog layout! How long have you been running a blog for? you make blogging glance easy. The whole look of your website is fantastic, as neatly as the content material!…
{Amazing|Wonderful|Awesome|Incredible|Marvelous|Superb|Fantastic} {site|wwww|post}…
Wow, superb blog format! How lengthy have you been running a blog for? you made blogging look easy. The entire look of your website is fantastic, let alone the content material!…
Teeth whitening san diego…
[…]check out some links to websites that we link to because we think they are worth visiting[…]…
home warranty companies…
[…]while the websites we link to below are`nt related to us, but are worth checking out[…]…
Salt Lake City Parties …
[…]while the pages we link to below are completely unrelated to ours, we think they are worth a read, so have a look[…]…
Related……
[…]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[…]……
Colorado Springs Cosmetic Dentistry…
[…]Read the content we have linked to overhere[…]…
Kids Franchise…
[…]while the web sites we link to underneath are completely unrelated to ours, we think they are worth a peep, so take a look[…]…
Extended Car Warranty…
[…]visit the content or websites we have linked to underneath[…]…
Massage Pittsburgh…
[…]just below, are some totally worth checking out sites[…]…
family health insurance quotes…
[…]checking out we have linked to above[…]…
Auto Warranty Reviews…
[…]websites worth visiting[…]…
Read was interesting, stay in touch……
[…]please visit the sites we follow, including this one, as it represents our picks from the web[…]……
cupid dating…
Thanks for the strategies you are giving on this site. Another thing I’d prefer to say is the fact that getting hold of duplicates of your credit profile in order to look at accuracy of each and every detail would be the first step you have to underta…
Bird Feeders…
[…]while the pages we link to underneath are completely unrelated to ours, we think they are worth a read[…]…
Cnc Cutting…
[…]here are some links to sites worth going to[…]…
flood damage colorado springs …
[…]just below, are some totally unrelated sites to ours, however, they are definitely worth checking out[…]…
Denver Seo Agency…
[…]places we recommend to look at[…]…
[…]the time to read or visit the content or sites we have linked to below the[…]……
[…]here are some links to sites that we link to because we think they are worth visiting[…]……
computer repair los angeles …
[…]visit the content or websites we have connected to above[…]…
Window cleaning costa mesa…
[…]here are some links to places that we link to because we think they are worth visiting[…]…
Alarm Companies Atlanta …
[…]while the web site we link to below are`nt related to us, but are worth going to[…]…
Online Article……
[…]The information mentioned in the article are some of the best available […]……
[…]The information mentioned in the article are some of the best available […]……
[…]below you’ll find the link to some sites that we think you should visit[…]……
Websites worth visiting…
[…]here are some links to sites that we link to because we think they are worth visiting[…]……
Online Article……
[…]The information mentioned in the article are some of the best available […]……
Denver Apartment Locator …
[…]checking out we have linked to below[…]…
Carpet Cleaning Monument CO…
Its hard to find informative and accurate information but here I noted…
Tour Dubai …
[…]below are some sites worth checking out[…]…
Heater Repair in Colorado Springs …
[…]below you’ll see the links to some web sites that we think you should visit[…]…
[…] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[…]……
[…] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose […]… …
[…]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[…]……
[…]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[…]……
[…]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[…]……
[…]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[…]……
[…]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[…]……
[…]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[…]……
[…]Sites of interest we have a link to[…]……
[…]usually posts some very interesting stuff like this. If you’re new to this site[…]……
Kirk Veneziano…
great article: %BLOGURL%…
Bryan Racko…
amazing point of view: …
Read More…
[…]…We like this Blog…[…]…
[…] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[…]……
[…] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose […]… …
Read More…
[…]…Very Creative…[…]…
Wilson Bolanos…
link to original post :…
Websites we think you should visit…
[…]although blogs we backlink to below are considerably not related to ours, we feel they are actually worth a go through, so have a look[…]……
[…]The information mentioned in the article are some of the best available […]……
[…]below you’ll find the link to some sites that we think you should visit[…]……
Read More…
[…]…Thankfor for the help…[…]…
Read More…
[…]…Great Post…[…]…
Related……
[…]just beneath, are numerous totally not related bogs to ours, however, they are surely worth going over[…]……
Flexible Packaging …
[…]here are a few links to places that we link to because we think they are worth visiting[…]…