Description
Vibration Sensor with LM393 Amplification KR08099
Vibration switch sensor module intelligent
1.On board LM393 voltage Comparator chip and Vibration sensing probe.
2.Support 5V/ 3.3V voltage input (Vcc).
3.On board the output signal indication,output effective signal is high level, and the same time the indicator light up, output signal can directly connect with microcontroller IO.
4.Signal detection sensitivity can be adjusted.
5.Reserved a line voltage compare circuit. (P3 is leaded out).
6. PCB size: 30(mm) x15(mm).
Contoh Koneksi dan Script Arduino (sederhana untuk deteksi getaran) :
Pin Gnd (Sensor) >> Pin Gnd (Arduino)
Pin DO (Digital Output Sensor) >> Pin D7 (Arduino)
Pin AO (Analog Output Sensor) >> Pin A0 (Arduino
Pin Vcc (Sensor) >> Pin Vcc (Arduino)
/* SW-18010P-Vibration-Sensor-Module made on 05 Jan 2021 by Amir Mohammad Shojaee @ Electropeak Home */ #define Dig_pin 2 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); } Berikut video hasil pengujiannya :