loading
Look at the riders of any city bus. Many of them are plugged into their music players, tapping along to the beat, pretending they have drums at their disposal. Now there's no need to pretend! Drum wear gives aspiring drummers a fully portable and fun drum kit anywhere they go. The system uses force-sensitive sensors built right into pants and shoes to create corresponding drum noises.

We'll take a bottom-up approach, starting from wiring up sensors into pants and shoes, and ending with getting the arduino to properly communicate to the computer.

You will need the following parts:
- pair of jeans
- pair of shoes
- arduino (duemilanove)
- computer (mac)
- 4 force-sensitive resistors
- electrical tape
- small pocketable box
- tiny and medium sized breadboards
- male and female headers
- resistors (200, 20k ohm)
- wire and wire trimmer
- soldering iron and solder

Step 1: Prepare the Sensors

Cut two pairs of wires long enough to reach from each knee to your left jean pocket. Strip a little bit off the ends and apply some solder to join the wire strands.

Next, attach two force-sensitive resistors (FSRs) to the wires by applying some solder to the wires and then bringing the FSR tips and carefully melting the solder. Warning: FSRs are encased in plastic which melts very easily while soldering.

After you've soldered the tips, take a piece of electrical tape and wrap it around each wire to ensure that they are properly insulated. 

Step 2: Wire the Pants

Use electrical tape to attach the FSRs to the inside of the jeans, around the knee area. Run each wire through the jeans from the knee to the left pocket. Note: electrical tape works especially well because it's so adhesive to clothing!

Step 3: Finishing the Pants

Put a tiny breadboard into a small box (I used a servo box) and create a pull-down circuit to connect to each FSR. Place this box in the left jean pocket.

Then, create a 4-pin female connector with the following pins: 
1. 5V power
2. Ground
3. Left Knee Input
4. Right Knee Input

Also, create a moderately long 4-pin male connector that will eventually be used to connect the female connector on the pants to the Arduino. Both male and female connectors can be made by soldering four wires to the connector, and then insulating each lead from the adjacent leads with electrical tape.

Step 4: Wiring the Shoes

Using the same technique as described in Step 1, attach wires to a FSR. Terminate the other end of the FSR with a 2-pin female connector. Create two pairs of long cables to reach each shoe and terminate them with 2-pin male headers. 

Take out your shoe's sole and attach the wired FSR to the sole with electrical tape as pictured. Place the sole back into the shoe and repeat the process for the other shoe.

Now you have shoes with 2-pin adaptors coming out of each!

Step 5: Connect the Arduino

Using another breadboard, recreate essentially the same circuit as you did in Step 3. Build the following circuit.

Step 6: Arduino Software

Now that you have the hardware properly connected, load this program on the Arduino. 

This program writes serial messages containing the Pad ID (for example, "right foot", "left foot", etc) and the intensity of the impact. You can easily configure basic parameters of this application in the beginning of the program.

Step 7: Python Software

You need python and pygame installed. Note: I had issues installing pygame on the python that ships with Mac OS X. As a result, I had to install the official python and then pygame for it.

Here is my python program as well as some samples that I use. The program listens on the serial port and synthesizes the right drum sounds.

After you've built the system, have some fun. I did! Watch my video on youtube!

By the way, feel free to use my code, but give credit where credit is due. It's free for your non-commercial use under the creative commons license. If you liked this post, please also visit borismus.com.
<p>DUDE THIS IS SO VAGUE!?! WHAT KIND OF WIRES DO WE USE... WHAT KIND OF MALE AND FEMALE HEADERS DO WE USE.. ARE THEY COMPATIBLE WITH EVERY FRIGGIN WIRE ON THE PLANET?! WILL 47 OHM RESISTORS WORK FOR THE 20K OHM BECAUSE THATS ALL I HAVE... AND ALSO... THANKS FOR THE SENTENCE LONG INSTRUCTIONS ON THE BREADBAORD SCHEMATIC FOR PEOPLE THAT HAVE NEVER REALLY DONE THIS... THIS INSTRUCTABLE NEEDS SERIOUS WORK, ATTENTION, AND SIMPLE COHERENCE IT LOOKS LIEK YOU WERE DRUNK WHEN YOU MADE IT. </p>
<p>What kind of wire are we talking about here? is there a specific type of &quot;wire&quot; we should get?</p>
That must be quite uncomfortable.
Awesome.<br>I'm in the process of making a set of electronic drums myself, and I really thought that you needed to use a midi interface for this.<br>Glad to see it can also be done by simply sending the data over serial and then picking it up with python!
12 year old kids want to do this- we are not yet ip to python_pygame speed.<br>Any simpler, way to make drum clothing?
Nice ...
Nice, have you seen this one?<br /> <a href="http://www.youtube.com/watch?v=ZsJtVi-5H8U" rel="nofollow">John Ottway</a><br /> <br /> L<br />

About This Instructable

10,223views

36favorites

License:

More by borismus:Drum Wear: drums in your clothing! 
Add instructable to: