How to Make a Prank Musical Caps-lock Keyboard

Introduction: How to Make a Prank Musical Caps-lock Keyboard

Kipkay has a number of great DIY videos, but my favourite has got to be the keyboard prank.

The gist of it is to fit a fun music module from those musical greeting cards inside a keyboard and wire it to the caps-lock key to trigger the music each time the key is pressed. Do it on a friend's keyboard, unbeknownst to them, and wait for them to press caps-lock by mistake. Genius!

I'm in the ideal situation because many of my colleagues have the same standard issue Dell keyboard at work, so I took one home, wired the caps-lock key with some cheesy Christmas music and took it back to work ready to put my colleagues in the mood before the holidays. Once one is bored of it, I could simply move the keyboard to someone else!

Here's how to make yours!

- Ingredients:

  • Keyboard with caps-lock LED
  • Musical greeting card
  • NPN transistor
  • Thin wire

- Utensils:

  • Phillips screwdriver
  • Solder iron & solder
  • Electrical tape

(Version francaise)

Step 1: Choose the Right Keyboard and Take It Apart

Let's start simply:
Here we have a USB Dell keyboard with the caps-lock LED next to the wire connection.
Turn it over, remove the many screws holding it in place and keep them in a safe place for now.
Take the cover off and keep it close by.
The caps-lock LED is likely to be marked as such on the circuit board. It will be easy to locate.

Step 2: Get the Musical Module

Choose a greeting card with a great cheesy music. Christmas being only a few weeks away, I decided to put everyone in the mood early and went for Jingle Bells. Get something that plays the music quickly, because people tend to stop it early as they trigger it by mistake, so don't get something with a slow start. Also get a loud one, something embarrassing (:

Take the module out carefully and look at how the music is triggered.

Here it's a piece of paper preventing the contact from the battery. Classy.

Step 3: Find a Space for the Module Inside the Keyboard

This could be tricky. I fitted mine near the arrow keys but I had to cut some plastic tabs away to make space for it and it just fitted diagonally.

Step 4: Wire the Module to the Keyboard

This is the biggy! That a lot of soldering steps, but it only takes a few minutes, don't worry.
Fire up the solder iron.

Cut two lengths of wire (about 15 inch each, preferably one red and one black), strip and tin them.
Cut the musical module switch away, you will replace it with the transistor.

Get the NPN transistor and hold it flat side up, pins away from you. Spread the pins apart.
  • Solder the left pin to the positive contact of the battery.
  • Solder the right pin to the other contact of the switch, leading to the music chip (big black blob).
  • Solder the red wire to the middle pin.
  • Solder the black wire to the same contact as the right pin of the transistor.

Now find the caps-lock LED, look at it carefully and find the negative and positive pins (the circuit board will likely have a + sign to indicate it). Turn the board over and:
  • Solder the other side of the red wire to the positive side of the LED.
  • Solder the other side of the black wire to the negative side of the LED.

Note that I used blue instead of black. As long as you keep your colours consistent you should be fine.

Step 5: Test It and Clean Up

That's it!

Now you need to test it. Make sure the board on the keyboard is in place properly, plug in the USB cable into your computer, test the keys to make sure it works ok, and... press caps-lock. Can you hear the music?

Yes? Victory! Tidy-up the wires with electrical tape, make sure you can close the keyboard properly and put it all back together. Congratulations, you're done!

No? Here are a few things to check that could have gone wrong:

  • The solder connections could be dry, weak or otherwise dodgy. Check them carefully.
  • The transistor could be the wrong one or the wrong way around, or soldered at the wrong location on the music module.
Ah that's a tough one.
You can use a screw-driver to short the left and right pins of the transistor (not the middle), you should hear the music. If not the problem might be with the music module itself.
You can unsolder the wires from the LED side and touch them to a 1.5V battery (red one to the positive), you should hear the music. If not, then the transistor is probably at fault (is it really an NPN?)

Good luck!

Step 6: The Final Product

The result is completely invisible. The Kipkay video suggests to tape the module to the back of the keyboard, but I think it's worth the effort to fit it inside.

Step 7: How Does It Work ?

Ah, but how does it work?

Here's the schematics.

I've highlighted the new connections and transistor in red.

The transistor replaces the switch on the musical module. A transistor is essentially an on/off switch that turns on when it receives current on the B pin. When you press the caps-lock key, the keyboard tries to light up the LED, which sends a current to the transistor and triggers it like a switch and turns on the music! When caps-lock is pressed again, the keyboard turns off the LED, which stops the current to the transistor, which opens the circuit again and stops the music.

Simple!

Thanks Kipkay for the original idea.
Check out my blog for my other projects.

Thanks for reading!
Lionel.

Share

    Recommendations

    • Metalworking Contest

      Metalworking Contest
    • Organic Cooking Challenge

      Organic Cooking Challenge
    • Water Contest

      Water Contest

    55 Discussions

    it seems like it would be easier just to program it so when you press the button your computer makes the noise. I have actually seen people do this, seems cheaper and simpler.

    9 replies

    I'm going to make a program that whenever you push ANY key it plays a different sound. I'm going to put it in my flashdrive, and have it that whenever I plug it in it'll copy it to the startup programs. >:D Maybe people should learn not to leave there comps logged in when they walk off!

    I never really got around to making it. The main problem is that any program like this that hooks global key input is registered as a key logger in most antiviruses.

    im interested as well, would be really funny to have in your back pocket

    You can still get in if you know how. No i'm not telling here. If you want to know, go read 101 spy gadgets for the evil genuis.

    KipKay's 'ible: November 6, 2007 jgillick's 'ible: April 3, 2008 How did he plagiarize from something written 6 months before it was written?

    omg that would be halarious! that would be so annoying and would be a great gift ahahaha... totaly