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.

Hacking a USB Keyboard

Step 5Other keyboards and considerations

Other keyboards and considerations
«
  • shiftreg2.JPG
  • usb2.JPG
  • 4mac.JPG
  • 4mac1.JPG
  • 7socket.JPG
Some keyboards have sockets. If it does, it saves you a lot of work. What you need to do is get your own socket or set of header pins and solder wires to each connection. Once you have a socket or header pins with wires attached, plug it into the socket on the board. Test it to see if it works by touching a wire on each side together. If it works, glue the header pins or socket into the socket on the board and you're done. It's so simple to connect, in fact, that you may not even want to bother tracing the plastic sheets and just try to figure out the key combinations by trial and error.

Also, there are Mac USB keyboards that allow you to connect other USB devices to the computer through them. I wish I could tell you something more enlightening about the USB connections on those boards, but I can't. Maybe you can do something profound with them. Otherwise, you can just attach wires to it using the method shown in Step 4.

other considerations:

-The USB cable has a tendency to rip off the shift register board. You may want to glue it in place.
-USB devices are 5v 100ma
-Some boards have LEDS attached (see picture). You may be able to send data back from the computer to light them up. If you can control the LEDS, then you can attach low voltage relays to them and have outputs as well as inputs. I haven't tried to figure it out yet, but if you want to give it a go, a good place to start may be here:

http://www.beyondlogic.org/keyboard/keybrd.htm
« Previous StepDownload PDFView All StepsNext Step »
3 comments
Nov 18, 2008. 5:39 AM2ManyProjects says:
I thought the speculation on the use of the LED to switch a relay was cool, so I did some research. You can get relays that use 3V to energize the relay, which is about the voltage needed for an LED. I also found programs that sets the numlock key on and off and energizes the LED at: http://www.somacon.com/p339.php. I have used this type of hack on a couple of projects, but had always considered keyboards input devices only. Thanks for pointing this out!
Sep 10, 2009. 9:26 PMtheshades says:
Use an optoisolator and turn on any thing you want! DC or AC.
Sep 11, 2009. 5:57 AMKasm279 says:
gazoontight!
Sep 8, 2009. 10:28 AMrecordmasta001 says:
what is the prime use for this?

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!
2350
Followers
200
Author:randofo(Randy Sarafan loves you!)
I am the Technology Editor here at Instructables. I am also the author of the books 'Simple Bots,' and '62 Projects to Make with a Dead Computer'. Subscribing to me = fun and excitement!