Vibration Sensor Module SW-1801P
-
RM4.50
- Product Code: SW-1801P
- Availability: In Stock
Description:
Features:
1. High sensitivity vibration switch by SW-18010P vibration sensors .
2. The comparator output signal with good waveform ,driving ability , more than 15mA
3. Working voltage: 3.3V-5V
4. Output format : digital switching outputs ( 0 and 1 )
5. With M3 holes, Easy installation
6. PCB board size : 3.2cm x 1.4cm
7. Using a wide voltage LM393 comparator
Module wiring instructions:
1.VCC: positive power supply
2.GND: negative power connection
3.DO: digital signal output
4.AO: This vibration sensors with this function does not work
Instructions for use:
1. if no vibration, switch in disconnected state, output a high signal , no green indicator light;
2. Vibration detected, switch instantly turns on, output a low signal with green indicator light ;
Application:
Vibration triggering actions , anti theft alarm, smart car, electronic building blocks and more.
Module Pinout:
This Module has 4 pins:
Code:
#define Dig_pin 7
int Dig_out = LOW;
int Ana_out = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
Dig_out = digitalRead(Dig_pin);
Ana_out = analogRead(A0);
Serial.print("Anaolog : ");
Serial.print(Ana_out);
Serial.print(" Digital :");
Serial.println(Dig_out);
delay(500);
}