Many methods have been improvised, invented, and hacked to sense sudden movements,ย acceleration, and vibration. Todayย tiny, solid-state accelerometers are available toย do these jobs, and theyโre embedded in manyย smartphones, tablets, and electronic gameย controllers. These miniature accelerometers areย available for reasonable prices, or you can use theย smartphone itself for vibration detection.
DIY vs. Solid-State Vibration Sensors
But thereโs no need for specialized accelerometerย circuits if all your project needs is a simple vibrationย detector. Many DIY methods are available โย and some are more sensitive than the solid-stateย accelerometers in smartphones.
This can be demonstrated with an Einstein Tablet educational computer (einsteinworld.com). The Einstein can store data from up to 16 sensors, including its own internal 3-axis accelerometer and photodiode. These 2 sensors allow us to directly compare a solid-state accelerometer with a DIY vibration sensor made of a light source and the Einsteinโs photodiode.
First, transform the Einstein into a pendulumย by suspending it from a tabletop with 2″ shippingย tape. The photodiode (the dark square sensor below) should face down and the screen shouldย face away from the table. Place an LED flashlightย on the floor and point it up at the photodiode.
Select the accelerometer and photodiodeย options by checking them in the Einsteinโs launchย window. Set the sample rate at 10 per second, theย sampling duration at 50 seconds or more and theย sensitivity of the photodiode at 0โ600 lux. Pressย the Start arrow and then pull the Einstein 1″ or soย away from the vertical. Then release the tablet soย that it swings back and forth. Experiment with theย placement of the flashlight for best results.
The chart below compares the movement response of the z-axis of the Einsteinโs accelerometer and its photodiode. The photodiode is plainly more sensitive to movement, and even shows a periodic wobble in the swing of the tablet. Clearly, a simple pendulum or cantilever made from a light source and a photodiode can provide a very sensitive movement and vibration detector.
Make a Piezoelectric Vibration Sensor
Hereโs another DIY method thatโs simple and doesnโt need to be shielded from external light. A piezoelectric crystal or ceramic generates a voltage when it is bent or struck. A very simple vibration sensor can be made from the type of piezo ceramic disc that emits tones and sounds in watches, phones, greeting cards, and alarms.
The schematic below shows a circuit that flashes an LEDย and emits tone bursts when piezo disc PZ1 (mineย was salvaged from a greeting card) is touched orย vibrated. The piezo disc is connected to the invertingย input of a TLC271 or similar operational amplifierย connected as a voltage comparator. A voltageย divider formed by potentiometer R3 is connectedย to the noninverting input of the op-amp.
In operation, R3 is adjusted until the output of the op-amp switches from low to high. This switches off the tone generator formed by a 4011 quad NAND gate. A very slight mechanical shock will cause PZ1 to generate a voltage that will switch the comparator output from high to low. This will flash the LED and cause the 4011 to generate a tone burst.
This circuit can be built on a solderlessย breadboardย that allows for easyย modifications. For example, the tone frequencyย can be decreased by increasing the value of C1.ย The sound volume can be increased by replacing PZ2 with the input side of a standard audio outputย transformer having an input impedance of 1,000ฮฉย and an output impedance of 8ฮฉ (RadioShack 273-ย 1380 or equivalent). Connect a small 8ฮฉ speakerย to the transformerโs output. For even moreย volume, connect pin 4 of the 4011 and ground toย the input of an external amplifier.
The sensitivity of the circuit can best beย demonstrated by connecting PZ1 to the circuitย with a pair of 4″, 24-gauge jumper wires as shownย in Figure D. Solder one end of each wire to theย connection points on the backside of the piezoย disc. Connect the other 2 ends of the wires toย the circuit so that the piezo disc is cantilevered,ย suspended about 1″ over the breadboard.
When PZ1 is still, adjust R3 until the LED glowsย and the tone generator is on. Then back off on R3ย until both the LED and the tone are off. Now whenย you barely touch the piezo disc, the LED and toneย generator should respond. Tap the piezo disc soย that it bounces up and down, and the LED andย tone will respond accordingly.
PZ1 can be kept in the cantilever mode orย cemented or clipped to a wall, curtain, step, car,ย etc. The circuit can be made much more sensitiveย by cementing to its upper surface a stiff metalย rod with a small weight mounted on its free end.ย Footsteps can be detected when a piezo disc withย an attached rod is mounted on or under a flatย surface such as a wood floor or step.
Going Further
Sensitive pendulum and cantilever vibration sensorsย can be made from hardware found in almostย any workshop. Suspend a weight from the end of aย vertical metal rod or mount it on the end of a horizontalย metal cantilever. Mount a machine screwย and nut near the movable weight so the screw canย be adjusted to nearly touch the weight or its rod.ย You now have a movement and vibration sensitiveย on-off switch.