Detection of Sudden Movements With SW520D & Arduino Board
by Mohammed BENHADINE in Circuits > Electronics
4159 Views, 54 Favorites, 0 Comments
Detection of Sudden Movements With SW520D & Arduino Board
One way to detect anomalies is to monitor the brutal vibrations that will be seen at a point of the circuit's environment . I made this small circuit when i was working in a project about detecting the cuts of cables and there's no way to develop another logic to detect that (the voltage of the cables was 2000V).
So after searching a little i found the SW520D,a vibration sensor component, coupled with a set of resistors and capacitors to adjust the vibration threshold desired,i could fix all the problem.
Logic of Working
Knowing that consumption is a constraint on the field, this component consumes anything
It is its major advantage .In fact, it is a special switch which the opening and closing of the contact are sudden movements. Inside there are two bubbles that realize the contact between the two pins of the component
I used this scheme (Figure 3) to take advantage of these two modes of operation and at the same time to adjust the sensitivity of the sensor.
After some measurements and tests I set the values of the two components of setting R = 10kOhm and C = 100nF.
In the static case (incident) switch is in the ON state, the test port will bring 0V (= GND)
In case of vibrations in a split second we'll have an open circuit at the test pin (OFF state) .So the value of the Pin is high (4 xxV), which will be visible by the Arduino, and to visualize this state I used a red LED that flashes and a buzzer (Alarm).
The Circuit
This's the circuit which i used ,you can check the code to identify each PIN with which component
Code
Downloads
Experience
I made the video in French but never mind it's just for testing the capture of vibrations