[vc_row][vc_column width=”1/1″][vc_column_text]LinkSprite spring based vibration sensor uses a spring based sensor. When there is vibration, it will output a digital signal.
There are pins: VCC, GND, and output signal.
Spring Based Vibration Sensor
SW-18010P series are spring type, no directional vibration sensor trigger switch, any angle can trigger.
Switch is open circuit OFF-state , when it is static, when external force to touch and corresponding vibration, or movement speed achieve adequate (partial) centrifugal force, conductive pick feet will produce instant conductivity is instant ON-state, when external force disappear, switch back to open circuit OFF-state.
Switch have the identification P at the bottom, for completely airtight;
In the normal,switch life can reach 20,0000 cycles lifespan
This series Switches have trigger high sensitivity
Electrical characteristics
- Voltage: <12V
- Current: <20mA
- Conductive time: 2ms
- Closed resistance: <30 ohm
- Open resistance: >10M ohm
Mechanical characteristics
- Temperature range: Storage: -40°C to 80°C, Operating: -40°C to 80°C
- Pull force of terminal: 500gf for 1 minute
- Humidity: 95% RH, 40°C for 96 hours
- Operating lifespan: 100,000 cycles
[/vc_column_text][vc_tour][vc_tab title=”Parts List” tab_id=”1389199434-1-25″][vc_column_text]1 x Spring Based Vibration Sensor
1 x pcDuino v2
Several Jump Wires[/vc_column_text][/vc_tab][vc_tab title=”Wire Diagram” tab_id=”1389199434-2-30″][vc_column_text]
+ of vibration sensor -> 5.0V of pcDuino
– of vibration sensor -> Ground of pcDuino
S of vibration sensor -> GPIO 0 of pcDuino[/vc_column_text][/vc_tab][vc_tab title=”Sample Code” tab_id=”1389199967189-2-3″][vc_column_text]We use the included Arduino IDE in pcDuino:
Sample Code:
#include <core.h>
int PathPin = 0;
void setup(){
pinMode(PathPin, INPUT);
}
void loop(){
int sensorValue = digitalRead(PathPin);
printf(“Value of Pin pathpin:%d\n”, sensorValue);
delay(100);
}[/vc_column_text][/vc_tab][vc_tab title=”Results” tab_id=”1389200095384-3-1″][vc_column_text]Click the left-point arrow to run the code on pcDuino, when there is no vibration, the sensor output will be 0, and will be 1 when there is vibration.
The following screen shows vibration detected.
Leave a Reply
You must be logged in to post a comment.