Ultrasonic and infrared induction switch and circuit thereof

By adopting a layered structure design in ultrasonic and infrared induction switch circuits, digital-to-analog separation is achieved, and the interference problem during the integration of ultrasonic and infrared induction devices is solved, the detection performance and data transmission stability are improved, and the cost is reduced.

CN221948156UActive Publication Date: 2024-11-01WENZHOU MTLC ELECTRIC APPLIANCES
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420281035.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-02-05
Publication Date
2024-11-01
Estimated Expiration
2034-02-05

AI Technical Summary

Technical Problem

The detection method of a single ultrasonic or infrared induction switch is not comprehensive enough, and ultrasonic waves are prone to interference when integrated with infrared induction devices, affecting performance.

Method used

Design an ultrasonic and infrared induction switch circuit, and realize digital-analog separation through the hierarchical structure of rectifying filter module, infrared detection module, ultrasonic detection module, setup module, processing module and control module, reduce interference between components and improve Data transmission stability.

Benefits of technology

While maintaining the volume, the interference between components is reduced, detection performance and data transmission stability are improved, and cost is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221948156U_ABST
    Figure CN221948156U_ABST
Patent Text Reader

Abstract

The utility model relates to the field of switches, in particular to an ultrasonic and infrared induction switch and a circuit thereof, and the switch comprises a rectification and filtering module which carries out the rectification and filtering of power supply input; the infrared detection module is used for carrying out infrared detection to obtain an infrared signal; the ultrasonic detection module is used for carrying out ultrasonic detection to obtain an ultrasonic detection signal; the setting module is used for a user to perform man-machine interaction to form a setting signal; the processing module outputs a control signal after calculation processing; the ultrasonic control module receives the control signal and controls the ultrasonic detection module to start and stop; the control module receives the control signal and controls on-off of a load; the rectifying and filtering module and the triggering module are arranged on the same circuit board, the infrared detection module, the ultrasonic control module, the setting module and the processing module are arranged on the same circuit board, the ultrasonic detection module is arranged on the same circuit board, and different circuit boards are electrically connected through power strips. The method has the effects of reducing interference and reducing cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of switches, and in particular to an ultrasonic and infrared induction switch and a circuit thereof. Background Art

[0002] As people's lives become more and more automated, such as automatically turning on lights when someone passes by, automatically alarming when someone passes by a prohibited area, etc., ultrasonic switches or infrared induction switches are often used to detect people through ultrasonic or infrared, and trigger loads when targets that meet the triggering conditions are detected. The loads can be lights, buzzers, etc. However, the detection method of single ultrasonic or single infrared is relatively simple and incomplete. If ultrasonic and infrared are integrated together, the volume must be kept small, which can easily cause interference between components, such as magnetic interference, thus affecting performance. Utility Model Content

[0003] In order to improve the problem of interference caused by integrating ultrasound and infrared, the present application provides an ultrasonic and infrared sensing switch and a circuit thereof.

[0004] The present application provides an ultrasonic and infrared induction switch circuit, which adopts the following technical solution:

[0005] A circuit for ultrasonic and infrared induction switches, comprising:

[0006] The rectifier and filter module is used to rectify and filter the power input before outputting it;

[0007] Infrared detection module, used for infrared detection and obtaining infrared signals;

[0008] An ultrasonic detection module, used for performing ultrasonic detection and obtaining ultrasonic detection signals;

[0009] The setting module is used for the user to perform human-computer interaction and form corresponding setting signals;

[0010] A processing module, used for receiving the infrared signal, the ultrasonic detection signal, and the setting signal, and outputting a corresponding control signal after performing calculation processing;

[0011] An ultrasonic control module receives the control signal and controls the opening and closing of the ultrasonic detection module;

[0012] A control module receives the control signal to control the on and off of the load;

[0013] The rectifier and filter module are electrically connected to the control module on the same circuit board, the infrared detection module, the ultrasonic control module, the setting module and the processing module are electrically connected to the same circuit board, the ultrasonic detection module is electrically connected to a circuit board, and power supply and signal transmission are achieved between different circuit boards through sockets.

[0014] By adopting the above technical solution and through reasonable layering, the strong current part and the weak current part are separated, that is, digital-analog separation is achieved, the influence of components on each other is reduced, the stability during data transmission is improved, and the interference is reduced while maintaining the volume, thereby improving performance and reducing costs.

[0015] Optionally, the rectification and filtering module includes chip U101, chip U102, chip U103, a LINE end, a COMMON end, and a varistor MOV101. The varistor MOV101 is connected in parallel between the LINE end and the COMMON end for protection. The LINE end and the COMMON end are used to receive power supply input. The chip U101 receives the power supply input. The chip U101 outputs after rectification and filtering. The third pin of the chip U102 and the third pin of the chip U103 are connected in parallel to the output of the chip U101. The second pin of the chip U102 outputs VHDC, and the second pin of the chip U103 outputs VDD.

[0016] By adopting the above technical solution, the power input is rectified and filtered, thereby improving the stability of the input power supply.

[0017] Optionally, the control module includes a relay K101 and a transistor group, the transistor group receives the output of the chip U101 for power supply, the transistor group is electrically connected to the third pin and the fourth pin of the relay K101, the transistor group receives the control signal to control the conduction direction, and realizes the on-off control between the first pin and the second pin of the relay K101, the second pin of the relay K101 is electrically connected to the load as the LOAD end, and the first pin of the relay K101 receives power from the LINE end.

[0018] By adopting the above technical solution, the on-off state of the relay K101 is controlled by controlling the conduction direction of the triode group through the processing module, which is convenient, fast and reliable.

[0019] Optionally, the infrared detection module includes a chip U2, an infrared PIR, and a capacitor C2. The Vdd and Vss ends of the chip U2 are powered by the VDD, the first pin of the infrared PIR is powered by the VDD, the VDD is electrically connected to the non-inverting input end of the operational amplifier U2B of the chip U2, the inverting input end of the operational amplifier U2B of the chip U2 is connected in parallel with the output end of the operational amplifier U2B of the chip U2 and then electrically connected to the non-inverting input end of the operational amplifier U2A of the chip U2, the capacitor C2 is connected in series between the first pin of the infrared PIR and the non-inverting input end of the operational amplifier U2A of the chip U2, and the output end of the operational amplifier U2A of the chip U2 outputs the PIR1 signal.

[0020] By adopting the above technical solution, the chip U2 converts the different signals collected by the infrared PIR into high-level or low-level PIR1 signal output through the operational amplifier, that is, after comparing the collected signal with the threshold, the PIR1 signal of the chip that meets the trigger condition and does not meet the trigger condition is output to the chip U1, which is convenient for the chip U1 to process.

[0021] Optionally, the ultrasonic detection module includes a chip U3, a chip U4, a transmitting end TX1, and a receiving end RX1. The Vdd end and the Vss end of the chip U3 are powered by the VHDC. The transmitting end TX1 is used to send ultrasonic waves. The first pin of the receiving end RX1 outputs the received signal to the inverting input end of the operational amplifier U3A of the chip U3. The non-inverting input end of the operational amplifier U3A of the chip U3 is powered by the VDD. The inverting input end of the operational amplifier U3A of the chip U3 is connected in parallel to the output end of the operational amplifier U3A of the chip U3 and outputs it to the The inverting input terminal of the operational amplifier U4B of the chip U4, the non-inverting input terminal of the operational amplifier U4B of the chip U4 receives the VDD power supply, the inverting input terminal of the operational amplifier U4B of the chip U4 is connected in parallel to the output terminal of the operational amplifier U4B of the chip U4 and outputs the signal to the inverting input terminal of the operational amplifier U4A of the chip U4, the non-inverting input terminal of the operational amplifier U4A of the chip U4 receives the VDD power supply, the inverting input terminal of the operational amplifier U4A of the chip U4 is connected in parallel to the output terminal of the operational amplifier U4A of the chip U4 and outputs the ULT1 signal.

[0022] By adopting the above technical solution, the different signals collected by RX1 are converted into high-level or low-level ULT1 signal outputs through operational amplifiers through chips U3 and U4. That is, after comparing the collected signals with the threshold, the ULT1 signals of the chips that meet the trigger conditions and those that do not meet the trigger conditions are output to chip U1, which is convenient for chip U1 to process.

[0023] Optionally, the setting module includes a switch S3, a potentiometer VR1, a potentiometer VR2, and a dip switch DIP1. The number of the switch S3 input terminals is multiple, and the multiple input terminals of the switches S3 are connected in parallel to the VDD, and different input terminals of the switches S3 are connected in series with resistors with different resistance values. The output terminal of the switch S3 outputs a MODE signal, the input terminals of the potentiometer VR1 and the potentiometer VR2 receive the VDD power supply, the output terminal of the potentiometer VR1 outputs a LL_SET signal, and the output terminal of the potentiometer VR2 outputs a US_SET signal. The user dials the dip switch DIP1 to output DIP1-4 signals and DIP5-7 signals.

[0024] By adopting the above technical solution, the threshold is adjusted through the LL_SET signal and the US_SET signal, and the mode of the chip U1 is controlled through the MODE signal, which is convenient for users to control and adjust according to the working environment, thereby improving the accuracy of infrared detection and ultrasonic detection.

[0025] Optionally, the processing module includes a chip U1, a first pin of the chip U1 receives the VDD power supply, the chip U1 receives the ULT1 signal and the PIR1 signal, calculates and processes the ULT1 signal and the PIR1 signal with a preset threshold, and then outputs corresponding TRIG_OFF signal and TRIG_ON signal to the transistor group, the chip U1 receives the LL_SET signal and the US_SET signal, determines the threshold value when calculating the ULT1 signal and the PIR1 signal, and the chip U1 receives the DIP1-4 signal and the DIP5-7 signal to determine the working mode of the chip U1.

[0026] By adopting the above technical solution, the chip U1 processes various signals and then outputs corresponding control signals.

[0027] Optionally, the ultrasonic control module includes a chip U5, a transistor Q1, and a socket J5. The VCC and GND terminals of the chip U5 receive the VHDC power supply. The chip U1 determines and outputs a corresponding US_ENABLE signal based on the DIP1-4 signal and the DIP5-7 signal. The base of the transistor Q1 receives the US_ENABLE signal, and the US_ENABLE signal controls the on-off of the transistor Q1. The socket J5 is electrically connected to the chip U5. The on-off of the transistor Q1 controls the on-off of the socket J5 and the chip U5. The on-off of the socket J5 controls the on-off of the transmitting end TX1.

[0028] By adopting the above technical solution, chip U1 outputs the corresponding US_ENABLE signal according to the DIP1-4 signal and the DIP5-7 signal to control the opening and closing of the ultrasonic detection module, which is convenient and fast, and also convenient for users to turn on and off the ultrasonic detection module according to the working environment.

[0029] Optionally, the control module includes a transistor Q101 and a transistor Q102, the base of the transistor Q101 is electrically connected to the LOAD end, when the base of the transistor Q101 is triggered, the collector of the transistor Q101 outputs a LOAD_Signal signal, and the chip U1 receives the LOAD_Signal signal to determine whether the LOAD end outputs normally; the base of the transistor Q102 is electrically connected to the LINE end, when the LINE end is input, the collector of the transistor Q102 outputs an AC_Signal signal, and the chip U1 receives the AC_Signal signal to determine whether the power supply is input normally.

[0030] By adopting the above technical solution, the chip U1 detects whether the load output and the power input are normal through the LOAD_Signal signal and the AC_Signal signal, automatically troubleshoots the fault, and if a fault occurs, the cause of the fault can be quickly obtained.

[0031] The present application provides an ultrasonic and infrared induction switch, which adopts the following technical solution:

[0032] An ultrasonic and infrared sensing switch comprises a shell, on which an infrared detector for infrared detection and an ultrasonic detector for ultrasonic detection are arranged, a first circuit board, a second circuit board and a third circuit board are arranged in the shell, a plurality of socket strips are arranged on the first circuit board, the second circuit board and the third circuit board, the rectifying and filtering module and the control module are arranged on the first circuit board, the infrared detection module, the ultrasonic control module, the setting module and the processing module are arranged on the second circuit board, and the ultrasonic detection module is arranged on the third circuit board, and power supply and signal transmission are realized among the first circuit board, the second circuit board and the third circuit board through the socket strip.

[0033] By adopting the above technical solution and through reasonable layering, the strong current part and the weak current part are separated, that is, digital-analog separation is achieved, which reduces the mutual influence and improves the stability during data transmission. While maintaining the volume, the interference is reduced, thereby improving the performance and reducing the cost.

[0034] In summary, the present application includes at least one of the following beneficial technical effects:

[0035] 1. Reduce the impact of components on each other and improve the stability of data transmission.

[0036] 2. While maintaining the volume, interference is reduced, thereby improving performance and reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is a module schematic diagram of a circuit of an ultrasonic and infrared sensing switch in an embodiment of the present application.

[0038] Figure 2 This is the circuit diagram of the rectifier and filter module.

[0039] Figure 3 yes Figure 2 A magnified schematic diagram of center A.

[0040] Figure 4 yes Figure 2 A magnified schematic diagram of point B in the middle.

[0041] Figure 5 This is the circuit diagram of the infrared detection module.

[0042] Figure 6 It is the circuit diagram of the ultrasonic detection module.

[0043] Figure 7 is a circuit diagram for setting up the module.

[0044] Figure 8It is the circuit diagram of the processing module.

[0045] Fig. 9 It is the circuit diagram of ultrasonic control module.

[0046] Fig.10 It is a schematic diagram of the overall structure of an ultrasonic and infrared sensing switch in an embodiment of the present application.

[0047] Fig.11 It is a schematic diagram highlighting the exploded structure of the first circuit board.

[0048] Explanation of the accompanying drawings: 1. Rectification and filtering module; 2. Infrared detection module; 3. Ultrasonic detection module; 31. Ultrasonic control module; 4. Setting module; 5. Processing module; 6. Control module; 7. Shell; 71. Infrared detector; 72. Ultrasonic detector; 73. First circuit board; 74. Second circuit board; 75. Third circuit board; 76. Socket strip. DETAILED DESCRIPTION

[0049] The following is combined with Figure 1-11 This application is described in further detail.

[0050] The present application embodiment discloses a circuit for ultrasonic and infrared induction switches. Figure 1 The circuit of the ultrasonic and infrared sensing switch includes a rectifier and filter module 1, an infrared detection module 2, an ultrasonic detection module 3, a setting module 4, a processing module 5, an ultrasonic control module 31, a control module 6, a socket J104, a socket J1, a socket J2, a socket J3, a socket J4, a socket J5, a socket J201, a socket J202, and a socket J203. The rectifier and filter module 1 and the control module 6 are electrically connected on the same circuit board, the infrared detection module 2, the ultrasonic control module 31, the setting module 4 and the processing module 5 are electrically connected on the same circuit board, and the ultrasonic detection module 3 is electrically connected on a circuit board. Power supply and signal transmission are realized between different circuit boards through different sockets.

[0051] Reference Figure 2 and Figure 3 and Figure 4The rectifier and filter module 1 includes a chip U101, a chip U102, a chip U103, a LINE terminal, a COMMON terminal, a varistor MOV101, a resistor R102, a resistor R106, a resistor R107, a resistor R3, a diode D101, a diode D104, a diode D105, a capacitor C103, a resistor R117, a resistor R118, a resistor R119, and a resistor R120. The LINE end is connected to the live wire as the power supply input, the COMMON end is connected to the neutral line, the varistor MOV101 is connected in parallel between the LINE end and the COMMON end for protection, the positive electrode of the diode D101 is electrically connected to the LINE end, the negative electrode of the diode D101 is electrically connected to the fourth pin D of the chip U101, one end of the resistor R102 is connected in parallel between the positive electrode of the diode D101 and the LINE end, the positive electrode of the diode D104 is electrically connected to the other end of the resistor R102, the positive electrode of the diode D104 is connected in parallel with the neutral line and the ground end, the resistor R3 is connected in parallel to the two ends of the diode D104, the capacitor C103 is connected in series between the negative electrode of the diode D104 and the first pin VCC of the chip U101, the fifth pin S, the sixth pin S, the seventh pin S, and the eighth pin S of the chip U101 are connected in parallel with the negative electrode of the diode D104 as the output 24V, and the resistor R107 is connected in series with the diode The cathode of the diode D105 is connected to the second pin FB of the chip U101, the anode of the diode D105 is connected in parallel to the cathode of the diode D104, the resistor R106 is connected in parallel to the second pin FB of the chip U101 and the capacitor C103, the third pin IN of the chip U102 and the third pin IN of the chip U103 receive 24V input, the second pin OUT of the chip U102 outputs VHDC, and the output of VHDC is the VHDC output terminal, the resistor R117 is connected in parallel between the first pin ADJ and the second pin OUT of the chip U102, and the resistor R118 is connected in parallel between the first pin of the chip U102 and the ground terminal; the second pin OUT of the chip U103 outputs VDD, and the output of VDD is the VDD output terminal, the resistor R119 is connected in parallel between the first pin ADJ and the second pin OUT of the chip U103, and the resistor R120 is connected in parallel between the first pin of the chip U103 and the ground terminal. In this embodiment, the chip U101 can be BPA8506D; the chip U102 and the chip U103 can be LM317; the varistor MOV101 can be 10D511K. VHDC is input to the third pin of the socket J104, VDD is input to the first pin of the socket J104, the second pin of the socket J104 is grounded, and the socket J107 is electrically connected to the socket J1 through the pin to realize the power and signal transmission between different circuit boards.

[0052] Reference Figure 5The infrared detection module 2 includes a chip U2, an infrared PIR, a capacitor C2, a capacitor C1, a capacitor C7, a capacitor C9, a capacitor C10, a resistor R1, a resistor R2, a resistor R4, a resistor R6, a resistor R9, and a resistor R10. The chip U2 includes an operational amplifier U2A and an operational amplifier U2B. The Vdd terminal of the chip U2 receives the VDD power supply, the Vss terminal of the chip U2 is grounded, the capacitor C10 is connected in parallel to the Vdd terminal and the Vss terminal of the chip U2, the resistor R10 is connected in parallel between the Vdd terminal of the chip U2 and the non-inverting input terminal of the operational amplifier U2B, the capacitor C2 is connected in series between the first pin D of the infrared PIR and the non-inverting input terminal of the operational amplifier U2A, the resistor R4 is connected in parallel between the output terminal of the operational amplifier U2B and the non-inverting input terminal of the operational amplifier U2A, and the inverting input terminal of the operational amplifier U2B is connected in parallel between the resistor R4 and the operational amplifier U2 B, resistor R1 is connected in series between one end of resistor R2 and VDD, the other end of resistor R2 is connected in parallel between the first pin D of infrared PIR and capacitor C2, the negative electrode of capacitor C9 is connected in parallel between resistor R4 and resistor R8, one end of capacitor C7 is connected in parallel between capacitor C2 and the in-phase input end of operational amplifier U2A, the inverting input end of operational amplifier U2A is connected in parallel between capacitor C7 and capacitor C9, resistor R6 is connected in parallel between the inverting input end and the output end of operational amplifier U2A, and the output end of operational amplifier U2A outputs PIR1 signal. In this embodiment, chip U2 can adopt SGM8042 model.

[0053] Reference Figure 6, the ultrasonic detection module 3 includes a chip U3, a chip U4, a transmitting end TX1, a receiving end RX1, a capacitor C202, a capacitor C214, a capacitor C205, a capacitor C207, a resistor R202, a resistor R205, a resistor R207, a resistor R208, a resistor R209, and a resistor R211. The chip U3 includes an operational amplifier U3A, and the chip U4 includes an operational amplifier U4A and an operational amplifier U4B. VHDC is output to the Vdd end of the chip U3, the Vss end of the chip U3 is grounded, the capacitor C214 is connected in parallel to the Vdd end and the Vss end of the chip U3, the transmitting end TX1 outputs to send ultrasonic waves, the receiving end RX1 outputs the received signal to the inverting input end of the operational amplifier U3A, the capacitor C202 is connected in series between the first pin + of the receiving end RX1 and the inverting input end of the operational amplifier U3A, the resistor R202 is connected in parallel between the inverting input end of the operational amplifier U3A and the output end of the operational amplifier U3A, V DD is electrically connected to the non-inverting input terminal of the operational amplifier U3A, capacitor C205 is connected in series between the output terminal of the operational amplifier U3A and the inverting input terminal of the operational amplifier U4B, one end of the resistor R205 is connected in parallel between the output terminal of the operational amplifier U3A and the capacitor C205, and the other end of the resistor R205 is grounded; VDD is electrically connected to the Vdd terminal of the chip U4, the Vss terminal of the chip U4 is grounded, resistor R207 is connected in parallel to the Vdd terminal of the chip U4 and the non-inverting input terminal of the operational amplifier U4B, and resistor R208 is connected in parallel Between the in-phase input terminal and the ground terminal of the operational amplifier U4B, the resistor R209 is connected in parallel between the inverting input terminal and the output terminal of the operational amplifier U4B, the capacitor C207 is connected in series between the output terminal of the operational amplifier U4B and the inverting input terminal of the operational amplifier U4A, the resistor R211 is connected in parallel between the inverting input terminal and the output terminal of the operational amplifier U4A, and the output terminal of the operational amplifier U4A outputs the ULT1 signal. The socket J3 and the socket J1 are on the same circuit board, so that the VDD, GND, VHDC of the socket J3 By electrically connecting with the socket J1, the socket J3 is electrically connected with the socket J201 through the pin, the VHDC of the third pin of the socket J201 supplies power to the chip U3, the VDD of the first pin of the socket J201 supplies power to the chip U4, the second pin of the socket J202 receives ULT1, the socket J202 is electrically connected with the socket J4 through the pin, the ULT1 of the first pin of the socket J4 is output to the processing module 5, and the socket J4 is also electrically connected with the socket J203 through the pin, and the socket J203 supplies power and controls the transmitting end TX1. In this embodiment, the chip U3 can adopt the TL082CDR model; the chip U4 can adopt the MCP6002T-I / SN model.

[0054] Reference Figure 7, the setting module 4 includes a switch S3, a potentiometer VR1, a potentiometer VR2, a dial switch DIP1, a resistor R18, a resistor R19, a resistor R20, a resistor R21, a resistor R22, a resistor R23, a resistor R24, a resistor R25, a resistor R26, a resistor R27, a resistor R28, a resistor R29, a resistor R7, and a resistor R17. The switch S3 has one output terminal and three input terminals, and the three input terminals are all connected in parallel to VDD to receive power supply. The resistors R19, R20, and R21 are respectively connected in series between three different input terminals of the switch S3 and VDD, and the resistor R18 is connected in parallel between the output terminal of the switch S3 and the ground terminal. The output terminal of the switch S3 outputs a MODE signal, and the user toggles the switch S3 to connect the output terminal of the switch S3 to an input terminal. The resistor R7 is connected in series between one end of the input terminal of the potentiometer VR1 and VDD, and the other end of the input terminal of the potentiometer VR1 is grounded, and the output terminal of the potentiometer VR1 outputs a LL_SET signal. The resistor R17 is connected in series between one end of the input end of the potentiometer VR2 and VDD, the other end of the input end of the potentiometer VR2 is grounded, and the output end of the potentiometer VR2 outputs the US_SET signal. The dip switch DIP1 includes seven switches, each of which includes an input end and an output end, the input ends are pins 1-7, and the output ends are pins 8-14. The input end is used to receive the power input of the processing module 5. The first pin corresponds to the fourteenth pin, the second pin corresponds to the thirteenth pin, and the third pin corresponds to the twelfth pin. The twelfth, thirteenth, and fourteenth pins of the dip switch DIP1 output the DIP1-4 signal in parallel; the eighth pin corresponds to the seventh pin, the ninth pin corresponds to the sixth pin, the tenth pin corresponds to the fifth pin, and the eleventh pin corresponds to the fourth pin. The eighth pin, the ninth pin, the tenth pin, and the eleventh pin of the dip switch DIP1 output the DIP5-7 signal in parallel. The first pin, the second pin, and the twelfth pin of the dip switch DIP1 are connected to the VDD pin, and the eighth pin, the ninth pin, the tenth pin, and the eleventh pin of the dip switch DIP1 output the DIP5-7 signal in parallel. The first pin, the third pin, the fourth pin, the fifth pin, the sixth pin, and the seventh pin are connected in parallel to the resistor R22 in series and then grounded. The resistor R24 ​​is electrically connected between the resistor R22 and the first pin of the DIP switch DIP1, the resistor R25 is electrically connected between the resistor R22 and the second pin of the DIP switch DIP1, the resistor R26 is electrically connected between the resistor R22 and the third pin of the DIP switch DIP1, the resistor R27 is electrically connected between the resistor R22 and the fourth pin of the DIP switch DIP1, the resistor R28 is electrically connected between the resistor R22 and the fifth pin of the DIP switch DIP1, the resistor R29 is electrically connected between the resistor R22 and the sixth pin of the DIP switch DIP1, and the resistor R23 is electrically connected between the resistor R22 and the seventh pin of the DIP switch DIP1. In this embodiment, the potentiometer VR1 and the potentiometer VR2 can adopt the model with a parameter of 1M; the DIP switch DIP1 can adopt the SW DIP-7 model.Since the resistance values ​​of resistors connected to different pins of the DIP switch DIP1 are different, the DIP1-4 signal and the DIP5-7 signal generated by the user turning different switches are different. The DIP1-4 signal, DIP5-7 signal, US_SET signal, and LL_SET signal are setting signals.

[0055] Reference Figure 8The processing module 5 includes a chip U1, a first pin VDD of the chip U1 receives VDD input power supply, a second pin Vss of the chip U1 is grounded, a seventh pin CLK and an eighth pin DIO of the chip U1 are used to be electrically connected to the second pin CLK and the third pin DIO of the socket J2 for burning the computer program; a fifteenth pin P2.5 / AIN5 of the chip U1 receives a PIR1 signal input, a seventeenth pin P2.3 / AIN3 of the chip U1 receives a ULT1 signal input, a third pin P5.1 / OSCI of the chip U1 outputs a TRIG_OFF signal, a fourth pin P5.0 / OSCO of the chip U1 outputs a TRIG_ON signal, the TRIG_OFF signal and the TRIG_ON signal are control signals, the PIR1 signal is an infrared signal, and the ULT1 signal is an ultrasonic detection signal. After receiving the signal, the chip U1 calculates and processes the PIR1 signal, the ULT1 signal and the threshold value preset in the chip U1 to determine whether the trigger condition is met, thereby determining whether the trigger condition is met through the first pin P2.5 / AIN5 of the chip U1. The fourth pin and the third pin output the corresponding TRIG_OFF signal and TRIG_ON signal; the eighteenth pin P2.2 / AIN2 of chip U1 receives the MODE signal, the nineteenth pin P2.1 / AIN1 / INT25 of chip U1 receives the LL_SET signal, the twentieth pin P2.0 / AIN0 / INT24 of chip U1 receives the US_SET signal, and chip U1 adjusts the mode of chip U1 according to the different levels of the MODE signal received by the eighteenth pin, such as automatic mode, manual mode, and off, and chip U1 adjusts the threshold value when calculating the PIR1 signal and the ULT1 signal according to the different levels of the LL_SET signal received by the nineteenth pin and the different levels of the US_SET signal received by the twentieth pin; the eleventh pin P1.6 / AIN9 / INT12 of chip U1 receives the DIP1-4 signal, the twelfth pin P1.7 / AIN8 / INT13 of chip U1 receives the DIP5-7 signal, and the thirteenth pin P2.7 / AIN7 / PWM2A outputs DIP signal, and the DIP signal output by chip U1 is connected in parallel to resistors R23, R24, R25, R26, R27, R28, R29 and R22 for power startup. Chip U1 controls the infrared detection module 2 and the ultrasonic detection module 3 differently according to the different levels of the DIP5-7 signal received by the twelfth pin and the different levels of the DIP1-4 signal received by the eleventh pin. For example, if the first pin of the dip switch DIP1 is turned on or off, the sensitivity of the infrared PIR is adjusted by 100% or 50%. If the first pin of the dip switch DIP1 is turned on or off, the sensitivity of the infrared PIR is adjusted by 100% or 50%. If the second pin and the third pin are not conducting, the infrared PIR is turned on and the transmitter TX1 is disconnected. If the second pin of the DIP switch DIP1 is conducting and the third pin is not conducting, the infrared PIR is disconnected and the transmitter TX1 is turned on. If the second pin of the DIP switch DIP1 is conducting and the third pin is conducting, the infrared PIR and the transmitter TX1 are turned on. The different conduction states of the fourth pin, the fifth pin, and the sixth pin of the DIP switch DIP1 correspond to the delay time of the load opening. For example, if the fourth pin is not conducting, the fifth pin is not conducting, and the sixth pin is not conducting, the load is turned on for 15 seconds. The conduction and non-conduction of the seventh pin of the DIP switch DIP1 are to turn on the walk-through mode and turn off the walk-through mode. In this embodiment, the chip U1 adopts the SC92F7323 model. .

[0056] Reference Fig. 9The ultrasonic control module 31 includes a chip U5, a transistor Q1, a crystal oscillator Y2, a capacitor C14, a capacitor C16, a resistor R30, a resistor R31, a resistor R32, a resistor R33, a resistor R34, and a resistor R35. The chip U5 includes an operational amplifier U5A, an operational amplifier U5B, an operational amplifier U5C, an operational amplifier U5D, an operational amplifier U5E, and an operational amplifier U5F. VHDC supplies power to the VCC end of chip U5 and grounds the GND end of chip U5. Capacitor C16 is connected in parallel to the VDD and GND ends of chip U5. The emitter of transistor Q1 is connected in parallel to the GND end of chip U5. Resistors R31 and R32 are connected in series between the collector of transistor Q1 and one end of capacitor C14. The other end of capacitor C14 is connected in parallel to the GND end of chip U5. The fourteenth pin P2.6 / AIN6 / PWM1A of chip U1 outputs US_ENABLE signal, which is also a control signal. Chip U1 outputs corresponding US_ENABLE signal according to DIP1-4 signal and DIP5-7 signal. US_ENABLE signal is input to the base of transistor Q1 through resistor R35. Crystal oscillator Y2 is connected in series between capacitor C14 and resistor R31. The input end of operational amplifier U5B is connected in parallel between crystal oscillator Y2 and capacitor C14. Operational amplifier U5B The output end is connected in parallel between resistors R31 and R32, resistor R30 is connected in parallel to the input and output ends of operational amplifier U5B, the input end of operational amplifier U5A is connected in parallel to the collector of transistor Q1, resistor R34 is connected in series between the output end of operational amplifier U5A and the second pin of socket J5, the input end of operational amplifier U5C is connected in parallel to the collector of transistor Q1, the output end of amplifier U5C is electrically connected to the input end of amplifier U5E, resistor R33 is connected in series between the output end of amplifier U5E and the first pin of socket J5, socket J5 is electrically connected to socket J203 through a pin to control the on-off of transmitting end TX1, the input end of amplifier U5F is connected in parallel to the input end of amplifier U5A, the output end of amplifier U5F is connected in parallel to the output end of amplifier U5A, the input end of amplifier U5D is connected in parallel to the input end of amplifier U5E, and the output end of amplifier U5D is connected in parallel to the output end of amplifier U5E. In this embodiment, the chip U5 may be of the MC14584 model; the transistor Q1 may be of the BC846B model; and the crystal oscillator Y2 may be of the 40KHz model.

[0057] Reference Figure 2 and Figure 3The control module 6 includes a relay K101, a transistor group, a LINE terminal, a LOAD terminal, a transistor Q101, a transistor Q102, a resistor R105, and a resistor R127. The transistor group includes transistors Q104, Q105, Q106, Q107, Q108, and Q109. The relay K101 includes a third pin and a fourth pin of the control terminal and a first pin and a second pin of the switch terminal. The on-off state of the first pin and the second pin is controlled by the conduction direction of the third pin and the fourth pin.The TRIG_OFF signal is input to the base of transistor Q105, the emitter of transistor Q105 is grounded, the collector of transistor Q105 is electrically connected to the base of transistor Q104, the emitter of transistor Q104 receives 24V power supply, the collector of transistor Q104 is electrically connected to the collector of transistor Q106, the emitter of transistor Q106 is grounded, the TRIG_ON signal is input to the base of transistor Q106, the third pin of relay K101 is connected in parallel between the collector of transistor Q104 and the collector of transistor Q106; the TRIG_ON signal is input to transistor Q1 08, the emitter of transistor Q108 is grounded, the collector of transistor Q108 is electrically connected to the base of transistor Q107, the emitter of transistor Q107 receives 24V power supply, the collector of transistor Q107 is electrically connected to the collector of transistor Q109, the emitter of transistor Q109 is grounded, the TRIG_OFF signal is input to the base of transistor Q109, the fourth pin of relay K101 is connected in parallel between the collector of transistor Q107 and the collector of transistor Q109; the LINE end is connected to the first pin of relay K101, and the LOAD end is electrically connected to the relay K On the second pin of 101, one end of the resistor R105 is connected in parallel to the LOAD end, the other end of the resistor R105 is electrically connected to the base of the transistor Q101, the collector of the transistor Q101 outputs the LOAD_Signal signal, the emitter of the transistor Q101 is connected in parallel to the emitter of the transistor Q102, the resistor R127 is connected in parallel between the base and the emitter of the transistor Q101, the base of the transistor Q102 is connected in parallel between the resistor R102 and the diode D104, the emitter and the base of the transistor Q102 are connected in parallel, and the collector of the transistor Q102 outputs the AC_Signal signal, The LOAD_Signal signal is input to the fifth pin of the socket J1 through the fifth pin of the socket J104, and then input to the tenth pin P1.5 / INT11 of the chip U1. The AC_Signal signal is input to the fourth pin of the socket J1 through the fourth pin of the socket J104, and then input to the ninth pin P1.4 / INT10 of the chip U1. The chip U1 determines whether the input power supply is normal through the different levels of the AC_Signal signal received by the ninth pin, and the chip U1 determines whether the load output is normal through the different levels of the LOAD_Signal signal received by the tenth pin. In this embodiment, the relay K101 can adopt the HF3F-L / 24-1HL1T model; the transistor Q101, the transistor Q102, the transistor Q104, the transistor Q105, the transistor Q106, the transistor Q107, the transistor Q108, and the transistor Q109 can adopt the BC846B model.For example, when the chip U1 determines that the trigger condition is not met through the ULT1 signal and the PIR1 signal, the output TRIG_OFF is high level and the output TRIG_ON is low level. At this time, the transistor Q105, the transistor Q104, and the transistor S109 are turned on, and the input passes through Q104 to the third pin of the relay K101, and then conducts from the fourth pin of the relay K101 to the transistor Q104 and then to the ground. At this time, the first pin and the second pin of the relay K101 are disconnected; if the chip U1 is connected through ULT1 When the signal and the PIR1 signal are judged to meet the trigger condition, the output TRIG_OFF is low level and the output TRIG_ON is high level. At this time, transistors Q106, Q107 and S108 are turned on, and the input passes through Q107 to the fourth pin of relay K101, and then conducts from the third pin of relay K101 to transistor Q106 and then to ground. At this time, the first pin and the second pin of relay K101 are connected, the LINE end and the LOAD end are turned on, and the LOAD end outputs power to the load.

[0058] The present application embodiment discloses an ultrasonic and infrared induction switch. Fig.10 and Fig.11 The ultrasonic and infrared sensing switch includes a shell 7, on which an infrared detector 71 for infrared detection and an ultrasonic detector 72 for ultrasonic detection are installed. The probe of the infrared detector 71 is an infrared PIR, and the probe of the ultrasonic detector 72 is a transmitting end TX1 and a receiving end RX1. A first circuit board 73, a second circuit board 74 and a third circuit board 75 are fixedly connected in the shell 7 by means of screws or the like. A plurality of socket strips 76 are electrically connected to the first circuit board 73, the second circuit board 74 and the third circuit board 75. A rectifier and filter module 1 and a control module are integrated on the first circuit board 73, an infrared detection module 2, an ultrasonic control module 31, a setting module 4 and a processing module 5 are integrated on the second circuit board 74, and an ultrasonic detection module 3 is integrated on the third circuit board 75. Power supply and signal transmission are realized between the first circuit board 73, the second circuit board 74 and the third circuit board 75 through the socket strip 76.

[0059] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. A circuit for ultrasonic and infrared induction switches, characterized in that: include: A rectifier and filter module (1) is used to rectify and filter the power input and then output it; An infrared detection module (2) is used to perform infrared detection and obtain infrared signals; An ultrasonic detection module (3) is used to perform ultrasonic detection and obtain an ultrasonic detection signal; A setting module (4), used for allowing a user to perform human-computer interaction and generate corresponding setting signals; A processing module (5) is used to receive the infrared signal, the ultrasonic detection signal, and the setting signal, perform calculations and processing, and then output a corresponding control signal; An ultrasonic control module (31) receives the control signal and controls the opening and closing of the ultrasonic detection module (3); A control module (6) receives the control signal to control the on and off of the load; The rectifying and filtering module (1) and the control module (6) are electrically connected on the same circuit board; the infrared detection module (2), the ultrasonic control module (31), the setting module (4) and the processing module (5) are electrically connected on the same circuit board; the ultrasonic detection module (3) is electrically connected on a circuit board; and power supply and signal transmission are achieved between different circuit boards via socket strips.

2. The circuit of an ultrasonic and infrared induction switch according to claim 1, characterized in that: The rectification and filtering module (1) comprises a chip U101, a chip U102, a chip U103, a LINE terminal, a COMMON terminal, and a varistor MOV101. The varistor MOV101 is connected in parallel between the LINE terminal and the COMMON terminal for protection. The LINE terminal and the COMMON terminal are used to receive power input. The chip U101 receives the power input. The chip U101 rectifies and filters the power input. The third pin of the chip U102 and the third pin of the chip U103 are connected in parallel to the output of the chip U101. The second pin of the chip U102 outputs VHDC, and the second pin of the chip U103 outputs VDD.

3. The circuit of an ultrasonic and infrared induction switch according to claim 2, characterized in that: The control module (6) comprises a relay K101 and a transistor group, wherein the transistor group receives the output of the chip U101 to supply power, the transistor group is electrically connected to the third pin and the fourth pin of the relay K101, the transistor group receives the control signal to control the conduction direction, and realizes the on-off control between the first pin and the second pin of the relay K101, the second pin of the relay K101 is electrically connected to the load as the LOAD terminal, and the first pin of the relay K101 receives power from the LINE terminal.

4. The circuit of an ultrasonic and infrared induction switch according to claim 3, characterized in that: The infrared detection module (2) comprises a chip U2, an infrared PIR, and a capacitor C2. The Vdd and Vss terminals of the chip U2 are powered by the VDD. The first pin of the infrared PIR is powered by the VDD. The VDD is electrically connected to the non-inverting input terminal of an operational amplifier U2B of the chip U2. The inverting input terminal of the operational amplifier U2B of the chip U2 is connected in parallel with the output terminal of the operational amplifier U2B of the chip U2 and then electrically connected to the non-inverting input terminal of the operational amplifier U2A of the chip U2. The capacitor C2 is connected in series to the first pin of the infrared PIR and the non-inverting input terminal of the operational amplifier U2A of the chip U2. The output terminal of the operational amplifier U2A of the chip U2 outputs a PIR1 signal.

5. The circuit of an ultrasonic and infrared induction switch according to claim 4, characterized in that: The ultrasonic detection module (3) comprises a chip U3, a chip U4, a transmitting end TX1, and a receiving end RX1. The Vdd end and the Vss end of the chip U3 are powered by the VHDC. The transmitting end TX1 is used to transmit ultrasonic waves. The first pin of the receiving end RX1 outputs the received signal to the inverting input end of the operational amplifier U3A of the chip U3. The non-inverting input end of the operational amplifier U3A of the chip U3 is powered by the VDD. The inverting input end of the operational amplifier U3A of the chip U3 is connected in parallel to the output end of the operational amplifier U3A of the chip U3 and outputs the signal to the receiving end. The inverting input terminal of the operational amplifier U4B of the chip U4, the non-inverting input terminal of the operational amplifier U4B of the chip U4 receives the VDD power supply, the inverting input terminal of the operational amplifier U4B of the chip U4 is connected in parallel to the output terminal of the operational amplifier U4B of the chip U4 and outputs the signal to the inverting input terminal of the operational amplifier U4A of the chip U4, the non-inverting input terminal of the operational amplifier U4A of the chip U4 receives the VDD power supply, the inverting input terminal of the operational amplifier U4A of the chip U4 is connected in parallel to the output terminal of the operational amplifier U4A of the chip U4 and outputs the ULT1 signal.

6. The circuit of an ultrasonic and infrared induction switch according to claim 5, characterized in that: The setting module (4) comprises a switch S3, a potentiometer VR1, a potentiometer VR2, and a dip switch DIP1. The switch S3 has a plurality of input terminals, and the plurality of input terminals of the switches S3 are connected in parallel to the VDD. Different input terminals of the switches S3 are connected in series with resistors of different resistance values. The output terminal of the switch S3 outputs a MODE signal. The input terminals of the potentiometer VR1 and the potentiometer VR2 receive power from the VDD. The output terminal of the potentiometer VR1 outputs a LL_SET signal. The output terminal of the potentiometer VR2 outputs a US_SET signal. When a user dials the dip switch DIP1, a DIP1-4 signal and a DIP5-7 signal are output.

7. The circuit of an ultrasonic and infrared induction switch according to claim 6, characterized in that: The processing module (5) comprises a chip U1, wherein a first pin of the chip U1 receives the VDD power supply, the chip U1 receives the ULT1 signal and the PIR1 signal, calculates and processes the ULT1 signal and the PIR1 signal with a preset threshold value, and then outputs a corresponding TRIG_OFF signal and TRIG_ON signal to the transistor group, the chip U1 receives the LL_SET signal and the US_SET signal, determines the threshold value when calculating the ULT1 signal and the PIR1 signal, and the chip U1 receives the DIP1-4 signal and the DIP5-7 signal, and determines the working mode of the chip U1.

8. The circuit of an ultrasonic and infrared induction switch according to claim 7, characterized in that: The ultrasonic control module (31) comprises a chip U5, a transistor Q1, and a socket J5. The VCC terminal and the GND terminal of the chip U5 receive the VHDC power supply. The chip U1 determines and outputs a corresponding US_ENABLE signal according to the DIP1-4 signal and the DIP5-7 signal. The base of the transistor Q1 receives the US_ENABLE signal. The US_ENABLE signal controls the on-off of the transistor Q1. The socket J5 is electrically connected to the chip U5. The on-off of the transistor Q1 controls the on-off of the socket J5 and the chip U5. The on-off of the socket J5 controls the on-off of the transmitting end TX1.

9. The circuit of an ultrasonic and infrared induction switch according to claim 7, characterized in that: The control module (6) comprises a transistor Q101 and a transistor Q102, wherein the base of the transistor Q101 is electrically connected to the LOAD terminal, and when the base of the transistor Q101 is triggered, the collector of the transistor Q101 outputs a LOAD_Signal signal, and the chip U1 receives the LOAD_Signal signal to determine whether the LOAD terminal outputs normally; the base of the transistor Q102 is electrically connected to the LINE terminal, and when the LINE terminal inputs, the collector of the transistor Q102 outputs an AC_Signal signal, and the chip U1 receives the AC_Signal signal to determine whether the power supply input is normal.

10. An ultrasonic and infrared induction switch, the circuit of an ultrasonic and infrared induction switch according to claim 1, characterized in that: The invention comprises a shell (7), wherein an infrared detector (71) for performing infrared detection and an ultrasonic detector (72) for performing ultrasonic detection are arranged on the shell (7), wherein a first circuit board (73), a second circuit board (74) and a third circuit board (75) are arranged in the shell (7), wherein a plurality of socket strips (76) are arranged on the first circuit board (73), the second circuit board (74) and the third circuit board (75), wherein the rectifying and filtering module (1) and the control module (6) are arranged on the first circuit board (73), the infrared detection module (2), the ultrasonic control module (31), the setting module (4) and the processing module (5) are arranged on the second circuit board (74), and the ultrasonic detection module (3) is arranged on the third circuit board (75), and power supply and signal transmission are realized among the first circuit board (73), the second circuit board (74) and the third circuit board (75) via the socket strips (76).