Usual Tilt Sensors detect a large angle displacement. I needed an all axis sensor, so selected the VBS030600 (pdf attached).
This sensor has two gold balls inside and when moved, opens briefly the normally closed circuit.
Project needs to sense a movement of the box where the sensor is installed as an alarm system.
Have tried to use a counter and count how many times it opened before an alarm is given.
Also tried to average the pulses from the sensor with Darrel's Fast Averaging routine to the PIC but either sensitivity is greatly reduced or is very sensitive to vibration than tilting.
Any ideas on how to better use this sensor as tilt sensor is appreciated.
Attached the data sheet of the sensor and an example of the circuit using 1M pull up (for low sleep current) and interrupt on RB0 (Wake up from sleep).
Ioannis
Bookmarks