Stable Sensors SW-18015P Vibration Switch Module micro Vibration
1. the scope: small current vibration switch
2. Fast Delivery
3. hot sale sensor
4. reliable quality
5. stable fuction
Working Voltage: 3~5V
Component model SW-18015P
Pin Dimension 2.54mm
Type Vibration switch
Material PCB + Brass
Size 29 x 16 x 8 mm / 1.14 x 0.63 x 0.31 inch
Weight 1 g / 0.04 oz
1, the scope: small current vibration switch. Products sloshing
around in the horizontal electrical changes produced in low current
circuit (secondary circuit) with a vibration sensor.
2 Operating temperature range: 5 ~ 70 º C Humidity 85 [%] or less.
3 Storage temperature range: 15 ~ 45 º C Humidity 80 [%] following
storage for 90 days.
4 Test Status: Test and test if no special provisions under the
following standard conditions Temperature: 5 ~ 35 º C Relative
Humidity: 45 [%] to 85 [%].
We first look at his specific pin functions
Also the only three leads, connect the power, after a good ground,
we received a digital signal output port on
Can be used (we then use the 7th).
The module test
Arduino controller × 1
USB data cable × 1
Vibration switch module × 1
Led indicator × 1
Here, everything is ready, we will now begin to build a test
Here we use it for a simple application that senses the vibration
switch vibration LED is lit
Lights to warn it, there are unusual circumstances happen? ?
Well, look at the code under test it, maybe you can guess what will
happen. . . . .
int ledPin = 13; / / signal indicator output pin;
int switchPin = 7; / / vibration switch input;
int value = 0; / / latch vibration switch key;
void setup ()
pinMode (switchPin, INPUT); / / Define port attribute;
pinMode (ledPin, OUTPUT);
void loop ()
value = digitalRead (switchPin); / / read the key state;
if (HIGH == value) / / there is vibration;
digitalWrite (ledPin, HIGH); / / steady state, led other off;
digitalWrite (ledPin, LOW); / / lit led lights;
The program features: Let vibration switch vibration, you can see
the arduino board 13 pin led lights are lit for a while,
When the shaking soon will light or blink when.
10 x SW-18015P Vibration Sensor
1. Convenient & Friendly Customer Service
2. Low Prices Direct From Factory Suppliers
3. Fast Delivery Around the World.
4. High Quality With Global Standards.
5. 1 Year Factory Warranty
6. Safe Shipping Way and Payment