+

Biasanya Tertutup Getaran Sensor Modul Alarm Sensor Modul Sw-420

USD 0.56

Biasanya Tertutup Getaran Sensor Modul Alarm Sensor Modul Sw-420

Description

Module features:

1. Sw-420 normally closed vibration sensor produced by our company is adopted.2, comparator output, clean signal, good waveform, strong driving capacity, more than 15mA3. Operating voltage: 3.3v-5v4. Output form: digital switch output (0 and 1)5. Fixed bolt holes are provided for easy installation6. Small board PCB size: 3.2cm x 1.4cm7. Use wide voltage LM393 comparator

Module instruction:

1. When the product is not vibrating, the vibration switch is in the closed conduction state, the output terminal outputs low level, and the green indicator light is on;2. When the product vibrates, the vibration switch is instantly disconnected. The output terminal outputs a high level, and the green indicator light is not on;3. The output terminal can be directly connected with the MCU to detect the high and low level through the MCU, so as to detect whether there is vibration in the environment and give an alarm

The front and back appearance of this series of modulesProduct structure and wiring diagramOpen circuit diagram, the need for friends can refer to the following figure

SCM test program/

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *Sensor trigger testSCM: STC89C52Baud rate: 9600Application: vibration induction trigger, alarm trigger.* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /# includeUnsigned char date;# define uchar unsigned char# define uint unsigned intSbit key1 = P0 ^ 1;/ * function declaration -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - * /Void delay (uint z);Void Initial_com (void);/ / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ ** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *** function name: delay(uint z)** function function: delay function* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ** /Void delay (uint z){Uint I, j;For (I = z; I > 0; I -)For (j = 110; J > 0; J -);}/ / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *//***** ** serial port initialization function *********** *******/ / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *Void Initial_com (void){EA = 1; / / total interruptionES = 1; // serial port interrupt is allowedET1 = 1; // allow interruption of timer T1TMOD = 0 x20; // timer T1, generates baud rate at mode 2 interruptPCON = 0 x00; / / SMOD = 0SCON = 0 x50; // mode 1 is controlled by timerTH1 = 0 XFD; // baud rate set to 9600TL1 = 0 XFD;TR1 = 1; // timer T1 runs the control bit}/ / * * * * * * * * * * * * * * * * * * * * * * * * *//********** ***** main function ********** **/ / * * * * * * * * * * * * * * * * * * * * * * * * *The main (){Initial_com ();While (1){If (key1 = = 1){Delay (); / / jitterIf (key1==1) // confirm the trigger{SBUF = 0 x01;Delay (200);}}If (RI){The date = SBUF; // MCU acceptSBUF = date; // MCU sendRI = 0;}}}

Specification

Origin : Mainland China

Certification : NONE

Package : No

Type : Bluetooth,WIFI,IR

Compatible Audio & Video Equipment Style : Earphones & Headphones,Speakers,Amplifier,Player,Digital-to-Analog Converter (DAC),Professional Audio Equipment,Stage Equipment,Recording Equipment,Display Equipment

+