Você está na página 1de 10

MAKE: PROJECTS

Musical Glove

Make a glove that emits different tones when you tap each of your fingers!
By Stephanie Category: Arduino, Art & Design, Music Time Required: Dependent on experience Difficulty: Easy Comments 1

This tutorial will give you step-by-step instructions to make your own musical glove that will produce a different note for each finger pushed.

PARTS

10K ohm Resistors (4) USB cable (1) Male-Female Jumper Wires (5) Adafruit Wave Shield for Arduino board- v1.1, (optional) (1) Arduino microcontroller, Uno or Duemilanove (1) Push Button (5) Glove (1) Piezoelectric speaker (1) SD Card, (optional) (1) Hookup Wire Small Breadboard (1) Project code, (zip file)
TOOLS

Any computer w/ internet Tape/glue

Print Project

STEPS
PROJECT STEPS
1. Start by gathering all materials... 2. Insert the code from Musical... 3. Set up the breadboard for... 4. If all this is done... 5. If you want to take...

Step #1:
Next Prev

Musical Glove

Start by gathering all materials listed under Tools & Parts. We will begin by getting one button to produce noise! Assemble breadboard and Arduino for one button using the circuit diagram to the left. Although not shown in the diagram, instead of attaching the button directly to the board, connect it to one end of an extender cable. Then attach the other end of the cable to the board. This way you can put the button in the glove later. (See picture.)

Step #2:
Next Prev

Insert the code from Musical Glove Code 1-1 zip file into the Arduino IDE program and click the Upload button. At this point, if you push the button, the speaker should emit a tone. Save your work.

Step #3:
Next Prev

Set up the breadboard for the rest of the buttons. The code supports up to five buttons. If you want to add more, follow the instructions on the subsequent line, if not, then move onto the next page. Set up another button on the breadboard exactly as the others were set up, only connect this one to analog pin 6. (Any additional buttons will connect to analog pin 7, then 8, etc. The same concept should also be applied to all subsequent steps.) Add the following code to your current code. i n ts e n s o r s i x=a n a l o g R e a d ( A 5 ) ;This sets the sensor to its corresponding analog pin. Label each additional sensor with a new name and analogRead pin; e.g., the code for sensor seven would be s e n s o r s e v e n=a n a l o g R e a d ( A 6 ) ; .

S e r i a l . p r i n t l n ( s e n s o r s i x ) ;i n tt h i s P i t c h 6=m a p ( s e n s o r s i x ,0 , 1 0 2 3 ,4 0 0 ,2 0 0 ) ;This sets the sensor to a defined pitch. To change the pitch, change the last value after the map function (currently 200). The higher the number, the higher the pitch, and vice versa. i f( s e n s o r s i x>t h r e s h o l d ){t o n e ( 9 ,t h i s P i t c h 6 ,2 0 ) ; }If the reading from the sensor is greater than the threshold value (as when the button is pushed), then the speaker will emit a tone.

Step #4:
Next Prev

If all this is done correctly, the speaker should emit a tone for every button that is pushed. If not, go back to steps 1-3 and double-check the code and your physical setup. If it is working, assemble the glove! Cut holes into the fingers of the glove, or wherever you want a button to go. Insert buttons and secure with tape, glue or thread. Secure the extender cables with tape or glue. Enjoy your new musical instrument!

Step #5:
Next Prev

If you want to take it a step further and have the glove emit noises other than simple tones, then I'd recommend buying an Adafruit Wave Shield for Arduino board- v1.1. This board will allow you to record and upload different noises to your glove! You can stack the shield directly on top of the Arduino, but what I did was to connect the needed pins by using extender cables. It's messy, but it's quick and easy. (See pictures to the left to see just how messy it gets! You've been warned.) For more information, click the following links: OVERVIEW, BUY, CODE, FAQ

BY STEPHANIE

ONE RESPONSE TO MUSICAL GLOVE

Stephanie on December 5th, 2012 at 5:52 am said:

Thank you for the advice! Im glad you caught that.


Reply

Trending

Shared

Commented

// WHAT'S TRENDING
47 Raspberry Pi Projects to Inspire Your Next Build

By: Nick Normal Hits: 14681


2013 in Review: Our Favorite New Tools

By: Stuart Deutsch Hits: 4010


Teardrop Camper Trailer

By: Werner Hits: 3663


$150, 12 Swing, Metal Lathe/Mill/Drill

By: Pat Delany Hits: 3158

Raspberry Pi Design Contest Slideshow

By: Nick Normal Hits: 2387


Glow Plug 3D Printer Extruder

By: Adam Kemp Hits: 2194


More Death ray Lasers..?

By: Alasdair Allan Hits: 2146


Knife Switches, Patent Stamps, and Cats Celebrating the New Year with Pratts SteamPower

By: Nick Normal Hits: 1855

Você também pode gostar