Showing posts with label Piano. Show all posts
Showing posts with label Piano. Show all posts

Wednesday, June 26, 2013

Arduino Air Cap-Sense Piano

oie_FjzfHXVZyE3V.jpgI recently got my shipment of 10 buzzers I ordered about a month ago, so as soon as I got them I was eager to make something fun with them, so I looked around a bit and searched for what to do with them, and by spending some time on www.arduino,cc and posting lots of questions on the forums, I figured out what I am going to make.

I decided to make an air piano which is based upon cap-sense and the arduino.

Materials;
    Aluminum tape or aluminum foil     Some wires     8 10M Ohm resistors     Piezo buzzer     Arduino     9V battery or USB cable

Basically, there are square pieces of aluminum tape stuck onto a thick card which is attached to a jumper cable and a resistor, 8 replicas of this are made, then all the other ends of the resistors are attached together and to pin3 of the arduino, this will act as the common base pin for all the sensors. The resistor values can be 2M or 10M or 40M Ohm. 2M Ohm will make it so that it only senses when you press on the aluminum tape, 10M Ohm resistor makes it so that your hand can be sensed at a little height of 2-4cm or so and 40M Ohm will sense quite a bit further, but it gets a little messy as if the aluminum tape pieces are too close together then at that height interference occurs therefore other keys might get pressed. If you want to use this 40M Ohm version then you have to make sure to place the aluminum tape pieces a little far away from each other.
I used 10M Ohm for my device and it works perfectly when I wave my hand over the note I want to use.

titre_web20.pngThe principle behind this is that the aluminum tape detects the difference between human body capacitance and the capacitance of air, or in other words the aluminum tape is given a small voltage by the arduino which creates an electrical field in that area, and when our finger(being a conductor) touches it or moves close to it so as to disturb the electric field, we form a capacitor. This change is detected by the aluminum tape and therefore sends a signal to the arduino with which we can tell it to send a signal to the buzzer.

(I have heard that we can also use resistive sensing instead of capacitive but I'm not exactly sure how it works.)

For more information: http://en.wikipedia.org/wiki/Capacitive_sensing


View the original article here

Sunday, June 23, 2013

Capacitive-Touch Arduino Keyboard Piano

You'll first want to collect all of the parts you will need for the project:

• An Arduino (or Arduino-compatible) microcontroller board.
• Any Arduino board should work: Uno, Leonardo, Mega, Pro Mini, etc.
• Eight 2.2 Megaohm (2.2 MO) resistors
• Anywhere between 1 MO and 4.7 MO should work
• You need one resistor per piano key
• A 2.2 MO resistor has a color code of Red-Red-Green or Red-Red-Black-Yellow
• A piezo buzzer
• Some spare wires or jumper cables
• Aluminum foil
• A foot or two should do
• Tape
• A surface to tape your keys to
• We used a scrap piece of cardboard, but it can be anything you like, even the tabletop itself!

Equipment that you may need:

• Soldering iron and solder
• You can probably get by without an iron by wrapping wires together instead of soldering, but the connection will not be as reliable
• Scissors to cut aluminum foil and tape


View the original article here