loading

Step 3: Mock-up

You should test out your circuit on a small scale before going crazy with wires and solder. 

We did this by using 2 bread boards, placing a 4051 multiplexer/demultiplexer in each, and then connected inputs/outputs to the correct places on the Arduino.

Once again, refer to the schematic at http://www.arduino.cc/playground/Learning/4051.

Here are some basic things to remember (all of the following pin numbers refer to the 4051 chip):

Attach the two Vcc inputs (pin 16) to the shared 5 V source of your Arduino. 
Attach E (pin 6), Vee (pin 7), GND (pin 8) of both chips to the shared ground of your Arduino.
Attach z (pin 3) to an Analog In of your Arduino. If you use our exact code, attach the chip with the piezos to A5, and the chip with LEDs to A0.
Attach S0 (pin 11), S1 (pin 10), S2 (pin 9) to Digital Outputs on your Arduino. Once again, if you use our exact code, attach the chip with piezos to 2, 3, and 4, and the chip with LEDs to 8, 9, 10. 


Ok! Now that you have a crazy mess of wires, you should connect your components to the remaining pins. 

At first, we just wanted to make sure it worked, so we only hooked up 2 piezo sensors and 2 strings of LEDs.
These go in any of the remaining I/O pins on the 4051. 

For the sensors:
Connect a wire from a 4051 pin to a piezo disk and 1 MΩ resistor, and then connect this to ground. (We advise making a shared strip of ground on your breadboard.) 

For the LED strings:
Ideally, connect a wire from a 4051 pin to a resistor, and then 3 LEDs in parallel, and then to ground. (This depends largely on the types of LEDs you have- you should look at the voltage drops across them and calculate what size resistor you need in order to moderate the 5V power supply from the arduino.)

***You should hook up the LED string to the same numbered pin on the 4051 as the pin its respective piezo disk is hooked up to. 

CAUTION: When we were trying to test this, we encountered some random, sporadic data. Then, we hooked up all our floating pins of the 4051 to ground, and everything worked fine. We're not quite sure why, when the pins aren't connected to anything, they give off random readings, but, in any case, connect every pin you're not using to GROUND.

Now, uploading and running the Arduino code, you should be able to tap the piezo disks and then see numbers on the serial monitor, as well as see the respective LEDs lighting up. 

(It's a great feeling when this works.)
<p>Hello, You folks are incredible. I am so hoping I can gets some help/answers. </p><p>I have electric drums including snare, 4 toms, kick or bass drum,high hat and 3 cymbals. My cymbals are acrylic and Ive already embedded SMD LEDs into the edge so that 12 volts will fire them up. I would be creating a box with an input and equal output for every piece. The inputs would come from the Roland TD 15 sound module. Then I can jump right over to the other side where an equal amount of TRS jacks will allow the circuit to complete for the drum part. Then I thought I could steal the piezo signal and run it to one of these boards. Im hoping one of these boards can handle more than one drum. Then right next to each output TRS I would put some other type of jack depending on my wire requirements. Right now im single color which is fine. Each drum can be different, unless you know how I can make say a cymbal cycle colors RGB every time its struck? Please I build guitars so Im good at soldering pots in guitars but I am no way an electronics expert but I follow directions well. Ill gladly pay someone to write the program too. I have an apple IMac and no access to any windows computer. Thanks for your patients. My direct email if thats ok is mark@markscustomguitars.com. </p>
<p>Hey </p><p>i am making this project for one of my courses.. But i am facing a problem making a mock up circuit on the breadboard. I am not sure where pin 1 to 5 goes and the other pins that are not being used</p><p>If anyone can send me a picture of the connections or send me a descriptive schematic, That would be great<br>I need it asap<br>THANKS A LOT :)</p>
flora and their rgb flora would work well, random positions and colours with reduced wires
What a clever idea, I am thinking now i might make something similar. <br>Since it is such a low current application, you could get away with the smallest wiring, like tiny ribbon cable, it could be fed down the main pole of the umbrella, a small plastic 3d printed box could be used to waterproof the main electronics and act as a handle. <br> <br>just cool idea, well done
Now think of this in reverse, the sensors on a car wind shield and you get the bug hit count when driving in the country. :) I have been looking for a means to record the data - now I know :) <br>
what if I want to put more LEDS per strand ?
Beautiful idea, this is what Arduino was made for!
This is so cool!!! Where does someone go to learn how to do all this stuff? Engineering school?
Not quite. We attend Pomona College. It's a liberal arts school in Southern California, and students are lucky enough to have classes and resources like this!
I am a student (15 years old) and I'm making one of these for my computing project! :D How would I go about printing a circuit board?
Hi there!<br><br>It's actually a pretty complicated process, and we are lucky enough to have the facilities to do that on campus. You might want to contact any local universities or engineering companies? Or google it? Sorry I can't be more help! Good luck!
Good Instructable! Really good idea! <br> <br>A question though for anyone: Can I buy an identical chip to fit into the slot in the arduino mini and just program it, then remove it, and then plug it into a pcb or breadboard so that I can program many chips and still keep the arduino? For programming..
good idea, will you please upload the image when the LED lights on?
wow! nice one. would be better with conductive thread, smt leds and lilypad arduino. <br>
Nice project, but I think you dont need an arduino for that.
Congratulations! <br>You are featured on Hack-a-Day! <br>http://hackaday.com/2012/05/20/rain-activated-light-show-in-an-umbrella/ <br> <br>
Great project. We really love it. <br> <br>We also want to inform you that your instructable has been published on our arduino facebook page (http://www.facebook.com/faceuino). Feel free to join us and answer community questions. <br> <br>Sincerely, <br>Faceuino team
Thats awesome! I could have used one of those today!
That is very awesome! Great idea and great job making it!
Brilliant project! <br> <br><sub>(You do know you can embed the YouTube video into your Instructable, don't you? Just remember to use the &quot;old code&quot;.)</sub>

About This Instructable

50,806 views

147 favorites

License:

More by snl017: Pressure Activated Light-Up Umbrella
Add instructable to: