Tilt/Vibration Sensor


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,116

    Default Tilt/Vibration Sensor

    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
    Attached Images Attached Images  
    Attached Images Attached Images

  2. #2
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Re: Tilt/Vibration Sensor

    Hi,

    Cant you use an interupt that will start a timer when the circuit opens.. and then you use an interups to stop the timer when the circuit closes and reload timer.

    Then you set up the timer to overflow at a suitable time. If the box is tilted the timer will overflow and give you a timer interupt. If the box is just shaked the time between sensor toggle is so small so you will not get an overflow.

    maybe ;-)

  3. #3
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: Tilt/Vibration Sensor

    You could put a capacitor across the sensor to "average" the oscillations. Better yet, a RC network tuned to give you the desired time you want.

    I'm curious though, there is nothing in the datasheet says this will work as a "tilt" sensor. Only says it's a "vibration" sensor yet doesn't give you any specs on minimum movement required to trip the sensor. If someone moved the sensor very slowly would the sensor sense that? If not, it won't work as a tilt sensor as those trip when something is tilted no matter how slowly it's moved.

  4. #4
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    966


    Did you find this post helpful? Yes | No

    Default Re: Tilt/Vibration Sensor

    The last time I did something like this I used a mercury bulb switch. Yes, those were still available some years back; not sure about now. A slight tilt would cause the mercury blob to move thus breaking the circuit. For a vibration sensor, a cheap chinese toy was inspiration. Just needed a straight wire soldered perpendicular to a pcb surrounded by a spring (also soldered to pcb) with a blob of solder on its end to make its end heavy. Movement causes the blob to oscillate leading to multiple closures of the contact between spring and wire.

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,116


    Did you find this post helpful? Yes | No

    Default Re: Tilt/Vibration Sensor

    Quote Originally Posted by Jumper View Post
    Cant you use an interupt that will start a timer when the circuit opens.. and then you use an interups to stop the timer when the circuit closes and reload timer.

    Then you set up the timer to overflow at a suitable time. If the box is tilted the timer will overflow and give you a timer interupt. If the box is just shaked the time between sensor toggle is so small so you will not get an overflow.

    maybe ;-)
    Yes, it is a good idea to try. But the main issue is that the sensor gives a series of pulses when triggered. Is not like the mercury tilt switch. Either shaked or tilted.

    Quote Originally Posted by AvionicsMaster1 View Post
    You could put a capacitor across the sensor to "average" the oscillations. Better yet, a RC network tuned to give you the desired time you want.

    I'm curious though, there is nothing in the datasheet says this will work as a "tilt" sensor. Only says it's a "vibration" sensor yet doesn't give you any specs on minimum movement required to trip the sensor. If someone moved the sensor very slowly would the sensor sense that? If not, it won't work as a tilt sensor as those trip when something is tilted no matter how slowly it's moved.
    Since we have a microcontroler, why make an integrator with RC net? As for the kind of sensor, yes it is more a vibration that tilt sensor, though very sensitive and can be used I guess as such.

    Quote Originally Posted by Jerson View Post
    The last time I did something like this I used a mercury bulb switch. Yes, those were still available some years back; not sure about now. A slight tilt would cause the mercury blob to move thus breaking the circuit. For a vibration sensor, a cheap chinese toy was inspiration. Just needed a straight wire soldered perpendicular to a pcb surrounded by a spring (also soldered to pcb) with a blob of solder on its end to make its end heavy. Movement causes the blob to oscillate leading to multiple closures of the contact between spring and wire.
    If this kind of sensor is commercially available, please give a link. This is going to be used in a relative low production.

    Thanks all for the contribution.

    Ioannis

  6. #6
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: Tilt/Vibration Sensor

    RS components has a lot of tilt switches, see this link: http://uk.rs-online.com/web/c/?searc...es&sra=oss&r=t

    Cheers

    Al.
    All progress began with an idea

  7. #7
    Join Date
    Dec 2012
    Location
    Tennessee
    Posts
    262


    Did you find this post helpful? Yes | No

    Default Re: Tilt/Vibration Sensor

    I have done some vibratin sensors using a old headphone speaker with a small ball point pen spring superglued to the cone , I have tried perpendicular and parallel, #2 works better, but I had to use a LM386 to amplify it and used a germanium diode to rectify it. it might be possible to use a opto isolator in place of a amplifier, just depends how much voltage you can get out of a vibrating speaker, usually not much.
    Chris


    Any man who has accomplished anything in electronics at one time or another has said... " STOP! WAIT! NOOO! Dangit.... Oh Well, Time to start over..."

  8. #8
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: Tilt/Vibration Sensor

    Most of car alarms use coil and magnet on spring, signal from coil is goes to comparator, output to monostable.
    This way you can set trigger level, and you can define duration of output signal.
    In stand of coil, magnet and spring you can use piezo.

  9. #9
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,116


    Did you find this post helpful? Yes | No

    Default Re: Tilt/Vibration Sensor

    No in my case. PIC must be in sleep mode until a clear TTL level trigger wakes it up.

    So, anything like a switch can be used. Not analog senors.

    Thanks for the input.

    I am waiting for the new spring sensors and also trying ways with the ball sensor.



    Ioannis
    Attached Images Attached Images  

Similar Threads

  1. IR Temperature Sensor
    By TravisM in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 23rd October 2012, 15:04
  2. 2-axis tilt sensor
    By Ramius in forum General
    Replies: 9
    Last Post: - 31st May 2012, 12:34
  3. Tilt Sensor Reading
    By sincity337 in forum Serial
    Replies: 6
    Last Post: - 20th September 2010, 05:23
  4. Replies: 6
    Last Post: - 18th January 2008, 08:17
  5. ultrasonic sensor
    By PoTeToJB in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 9th May 2006, 20:26

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts