DIY Shock Sensor
A speaker works by activating an electromagnet which is nearby a "regular" magnet. This produces vibration, resulting in sound. So if instead of supplying current to the speaker, we can produce current (if very little) by moving the speaker itsself. This current can then be detected and interpreted by a microcontroller such as the Arduino. Step 1: Find a Speaker You will need to find a speaker that you are willing to sacrifice for this project. You can buy one at SparkFun for under a dollar, but you probably already have one somewhere. I used a small speaker from an old pair of headphones, but you can find one almost anywhere - like a musical greeting card or an old alarm clock. Next: Cut a jumper wire in half Strip the ends of it Solder it onto the speaker (there were probably already some wires on there - just cut them off) Alternatively, you could use alligator clips if you have them. Step 2: Build the Circuit Materials needed: Arduino U...