loading

Step 5: Let's Finish!

Solder the headers terminal and the output wires and commence testing. (make sure you screw in the potentiometer.)
<p>sir I am building this but unfortunately in your finished pic I can see another board in between ,now I am totally confused.where to do what.i have ardiuno board and drum kit board ,do I need anything more? Please email me or leave comment My email is sagar.ndl@gmail.com</p>
Hi bro...! I'm new to Arduino!! Currently using uno...Im.doin a project on Arduino drums! I successfully built a midi drums.<br>.now try to upgrade to e drum..I fetched the audio samples into the Arduino Uno..&nbsp;<br>Used piezo sensor as input ..getting output thr 11<br><br><br><br>PCM library<br>(https://github.com/damellis/PCM/zipball/master)<br><br><br><br>When I hit one piezo i can able to hear the sound..but when I hit two piezo simultaneously..(.I.e kick and hats at same time )o I can't able to hear the both sound same time...struggling alot n this issue.I googled ,but n't able to find a solution...plz help me to fix the problem...<br><br><br>Fetching sample to Arduino&nbsp;<br>http://highlowtech.org/?p=1963<br><br><br><br>Code example;-<br>Void loop(){<br><br>If { piezo 1 &gt; 100)<br>{&nbsp;<br>startPlayback( sample 1);<br>}<br><br><br>If { piezo 2&gt; 100)<br>{&nbsp;<br>startPlayback( sample 2);<br>}<br><br>}
Like I said in my previous response, the problem is that the Arduino sequentially loops through the program waiting for a piezo hit, and when it detects one, it breaks the loop to play the sound that was hit. In that case, the Arduino is no longer checking for other hits, which is why two sounds can't be played simultaneously. I put some possible solutions in the reply to your last comment.
thnks for u reply...but its workin fine ..initially I have created MIDI drums...as a midi .. Arduino works fine...means it's checking simultaneous hits....<br><br><br><br>http://www.spikenzielabs.com/SpikenzieLabs/DrumKitKit.html<br><br><br>I guess the problm is on pcm...<br><br>help me...but I'm sure it s checking simultaneous piezo hits
Hi...I'm doin a project on Arduino drums..I added the drum kit samples in my uno..and played whenever piezo sensor reaches the maximum value..I.e <br>if ( piezo read &gt; 80) <br>startPlayback();<br><br>for each sensor I assigned respective samples.<br><br>now the problm is.i m not able to play 2 samples simultaneously..means..wen I hit kick and hats same time...it doesn't workin...<br><br>I'm not using DAC ..playin digital signal directly ..used pcm library<br><br><br><br>please help soon as possible
<p>Hello, doing two things at the same time on any processor is usually a problem, especially on microcontrollers like the Arduino. While I can't diagnose the exact problem without seeing the actual source code, I would imagine that the problem is that the Arduino sequentially loops through the program waiting for a piezo hit, and when it detects one, it breaks the loop to play the sound that was hit. In that case, the Arduino is no longer checking for other hits, which is why two sounds can't be played simultaneously. There are a few ways to fix this problem: although inefficient, a hardware solution would be to make each sound its own Arduino; a different solution would be to fiddle with the code to see if it can also check for double piezo hits. While I can help with the problem, I currently have limited access to a computer (on vacation for the next two weeks), so it might take a while before I can look in depth into any programming heavy problems.</p>
Why is hat and crash the same?
I don`t understand what the Pot is for. What does it do?
It is used for speed control. The drum sounds slow down/speed up as you turn the pot.
Nice! What resistance is the pot?
It can be any value you want...I used 1Megaohm but 10K, 5K 100K and most other values will work.
Let's hear what it sounds like!
I guess I was too lazy to shoot a video...Better get started...will get back soon.

About This Instructable

19,863views

57favorites

License:

Bio: I love building things and taking pictures. If you want me to build something...I'm open to ideas. My motto? "If you want something ... More »
More by blinkyblinky:Keeping Up Appearances with Chindogu A Complete Beginner's Guide to Raw Files And Raw Processing Hypercard - An Impossible Paper Object 
Add instructable to: