motion/vibration sensor with piezo

alexthefox

Senior Member
Another possibility?

I've just “found” one of these in my junkbox:
http://www.rapidonline.com/Electronic-Components/Sensors/Tilt-Tip-Switches/Non-mercury-vibration-sensors/72379/kw/vibration


And remembered this thread:
http://www.picaxeforum.co.uk/showthread.php?t=2262&highlight=vibration+sensor

Use the sensor like the switch in manual 3, p25.

I've just modified Ylp's original program slightly
Code:
ContactOpen:
if pin0 = 1 then OPToggle
goto ContactOpen

ContactClosed:
if pin0 = 0 then OPToggle
goto ContactClosed

OPToggle:

high 1
pause 1000
low 1 
pause 1000

if pin0 = 1 then ContactClosed
goto ContactOpen
It works very well on breadboard.

e

i bought the sensor from rapidonline about 5 mounth ago, but is is to much sense.
maybe i find this:
http://it.rs-online.com/web/search/searchBrowseAction.html?method=getProduct&R=3615100
 
Top