Watch this video to see how it works. Then flip through the steps to find out how to make one using the Arduino controller.
IMG_0538.MOV4 MB
Remove these ads by
Signing UpStep 1: Parts and schematic
To successfully complete this project, you will need to know how to solder, how to build simple electronic circuits, and have experience programming the Arduino microcontroller.
Pictured are some of the parts you will need. Here's a complete parts list:
1 ea Arduino Duemilanove or equal ( Radio Shack 276-128 Arduino Uno REV3 will work also) with power adapter
1 ea Arduino Proto Shield (Radio Shack 276-140 is slightly different but will work)
2 ea Phone jacks (Mouser 161-3508-E)
1 ea Terminal block, 5.08mm (Mouser 651-1935561)
1 ea Tactile PB switch (DigiKey SW407-ND)
1 ea 10K ohm variable resistor (DigiKey AAS14CT-ND)
1 ea 2N3904 transistor (Radio Shack 276-2016)
1 ea 47mf 16v electrolytic capacitor (Radio Shack 55047407)
1 ea 1K ohm, 1/4w film resistor (Radio Shack 271-1321)
2 ea 10K ohm, 1/4w film resistor (Radio Shack 271-1335)
1 ea 22K ohm, 1/4w film resistor (Radio Shack 271-1339)
1 ea PowerSwitch Tail II (Adafruit .com ID 268 or Sparkfun.com COM-10747)
And finally, the schematic diagram of the circuit.







































Visit Our Store »
Go Pro Today »




soundValue = analogRead(soundIn);
oldSoundValue = soundValue;
Why you don't set directly and you save one assignment and you win some efficiency and readability?
oldSoundValue = analogRead(soundIn);
I say more, you can do this:
oldSoundValue = analogRead(soundIn);
delay(20);
change = analogRead(soundIn) - oldSoundValue;
And if you won't change the variable "m" you can use #define m 5.
The same idea with led and overrideSw. This its like write directly the values in code but you can change it easily. Typically we used capital letter for this definitions, so M, LED, OVERRIDESW ;so when other people read this they know that it is not a variable.
With this you can save 2 assignments and 4 variables. It makes your code more efficient and accurate.