PIR sensor testing device and testing method

By designing a PIR sensor testing device that integrates the host computer, main control module, PIR connection board and data transmission board, the problem of single test environment and model adaptability is solved, multi-environment testing and cost reduction are achieved, and intuitive performance observation is provided.

CN120293330AInactive Publication Date: 2025-07-11HUIZHOU XINYONGCHENG SENSING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510509601.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-22
Publication Date
2025-07-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing PIR sensor testing device has a single test environment, requiring different equipment and different models of PIR sensors require different test boards, resulting in an increase in testing costs.

Method used

A PIR sensor testing device is designed, including a computer, a main control module, a PIR connection board, a data transmission board, a wind source module, a radio frequency transmitting module, etc. The main control module controls the wind source and the radio frequency transmitting module to provide different testing environments, and switches the data reading mode through the data transmission board to adapt to different models of PIR sensors.

Benefits of technology

The anti-interference ability of PIR sensors is realized in different environments, reducing the testing cost of different models of PIR sensors, and intuitively observing its performance changes through visual waveform diagrams.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120293330A_ABST
    Figure CN120293330A_ABST
Patent Text Reader

Abstract

The invention discloses a PIR sensor testing device and method, and the device comprises an upper computer which is used for receiving and transmitting a detection instruction; the main control module is electrically connected with the upper computer and is used for generating a control signal according to the detection instruction; the at least one PIR connecting plate is used for being connected with a to-be-tested PIR sensor, the PIR connecting plate is provided with a plurality of connecting contacts, electrical levels are preset for part of the connecting contacts, and the PIR connecting plate generates electrical level signals according to the preset electrical levels of the connecting contacts; the data transmission board is electrically connected with the main control module and switches a data reading mode according to the level signal, the data transmission board reads a PIR signal generated by the PIR sensor and converts the PIR signal into a first interaction signal, and the main control module receives the first interaction signal and sends the first interaction signal to an upper computer; the upper computer receives the first interaction signal and converts the first interaction signal into an oscillogram; the wind source module and the radio frequency transmitting module are electrically connected with the main control module, the wind source module is started or closed according to the control signal, and the radio frequency transmitting module is started or closed according to the control signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of PIR sensor testing, and specifically, to a sensor testing device and a testing method. Background Art

[0002] A PIR (Passive infrared detectors) sensor is a passive infrared detector. The passive infrared detector relies on passively absorbing the infrared heat energy emitted by the body during animal activities to alarm, so it is widely used in alarms for various scenarios. However, in addition to sensing infrared heat energy, the ambient light, cold and hot air currents, and radio frequency interference of the environment will all affect the PIR sensor. Therefore, during the production process of the PIR sensor, it is necessary to test the PIR sensor in various interference environments to test the anti-interference ability of the PIR sensor.

[0003] However, the testing environment of the existing PIR sensor testing device is single. Different testing devices are required for different testing environments, and different testing boards are required for different models of PIR sensors, resulting in an increase in testing costs. Summary of the Invention

[0004] Aiming at the deficiencies of the prior art, a PIR sensor testing device and a testing method are provided.

[0005] To achieve the above object, the present invention provides a PIR sensor testing device, including a host computer for receiving and sending detection instructions; a main control module electrically connected to the host computer, the main control module is used for receiving detection instructions and generating control signals according to the detection instructions; at least one PIR connection board for connecting to the PIR sensor to be tested, each PIR connection board has a plurality of connection contacts, some connection contacts are selected from the plurality of connection contacts, and some connection contacts preset levels according to the data format output by the PIR sensor connected to the PIR connection board. The PIR connection board generates a level signal according to some connection contacts; a data transmission board electrically connected to the main control module; the data transmission board receives the level signal and switches the data reading mode according to the level signal; the data transmission board reads the PIR signal generated by the PIR sensor and converts the PIR signal into a first interaction signal. The main control module receives the first interaction signal and then sends the first interaction signal to the host computer; the host computer receives the first interaction signal and converts the first interaction signal into a visual waveform diagram; a wind source module electrically connected to the main control module, the wind source module is used for providing a wind source, and the wind source module starts or stops according to the control signal; a radio frequency transmission module electrically connected to the main control module, the radio frequency transmission module is used for providing a radio frequency source, and the radio frequency transmission module starts or stops according to the control signal.

[0006] According to an embodiment of the present invention, the main control module includes a main control chip U1 and an air source control unit. The main control chip U1 has a P1 port, a TX1 port, an RX1 port, a TX3 port, an RX3 port, a D+ port, and a D- port. One end of the air source control unit is connected to the P2 port of the main control chip U1, and the other end is connected to the air source module. The TX1 port and the RX1 port of the main control chip U1 are respectively connected to the radio frequency transmission module. The D+ port and the D- port of the main control chip U1 are respectively connected to the host computer. The host computer 1 sends a detection instruction to the main control chip U1 through the D+ port and the D- port. The main control chip U1 receives the detection instruction and sends a control signal to the air source control unit or the radio frequency transmission module according to the detection instruction. When the air source control unit receives the control signal, the air source control unit is turned on and the air source module is turned on. When the radio frequency transmission module receives the control signal, the radio frequency transmission module is turned on.

[0007] According to an embodiment of the present invention, the data transmission board includes a plurality of spring contacts and a data transmission chip U3. The data transmission chip U3 has an RX port, a TX port, a VDD port, a VSS port, a PIR_DOCI port, a PIR_SERIN port, a TP3 port, a TP2 port, and a TP1 port. The RX port and the TX port are respectively connected to the main control module. The VDD port is connected to the supply voltage, and the VSS port is connected to the ground terminal. Moreover, the VDD port, the VSS port, the PIR_DOCI port, the PIR_SERIN port, the TP3 port, the TP2 port, and the TP1 port are respectively conductively connected to a spring contact. The plurality of spring contacts are electrically connected to a plurality of connection contacts. The TP3 port, the TP2 port, and the TP1 port of the data transmission chip U3 receive level signals through the spring contacts respectively. The data transmission chip U3 switches the data reading mode according to the level signals. The PIR_DOCI port of the data transmission chip U3 receives the PIR signal output by the PIR sensor through the spring contact. The data transmission chip U3 receives the PIR signal and converts the PIR signal into a first interaction signal. The main control module receives and sends the first interaction signal. The host computer receives the first interaction signal and converts the first interaction signal into a waveform diagram.

[0008] According to an embodiment of the present invention, an environment detection module is further included. The environment detection module is electrically connected to the data transmission board. The environment detection module is used for detecting environment data and sending the environment data to the data transmission board in real time. The data transmission board converts the environment data into a second interaction signal. The main control module receives the second interaction signal and sends the second interaction signal to the host computer. The host computer receives the second interaction signal and converts the environment data into a visual waveform diagram.

[0009] According to an embodiment of the present invention, the environment detection module includes a temperature sensor and a light sensor. The temperature sensor and the light sensor are respectively electrically connected to the data transmission board.

[0010] According to an embodiment of the present invention, it further includes a light source module, which is electrically connected to the main control module, and the light source module is started or turned off according to a control signal.

[0011] According to an embodiment of the present invention, it further includes a heat source module, which is electrically connected to the main control module, and the heat source module is started or turned off according to a control signal.

[0012] According to an embodiment of the present invention, it further includes a containing box; the main control module is arranged in the containing box, and the containing box is spaced to form a first test space and a second test space; the air source module is arranged in the first test space, and the radio frequency transmitting module is arranged in the second test space; two data transmission boards are respectively electrically connected to the main control module; a data transmission board is arranged in each of the first test space and the second test space; the PIR connecting board is detachably connected to any one of the data transmission boards in a magnetic attraction manner; when the PIR connecting board is connected to the data transmission board, a plurality of connection contacts are electrically connected to a plurality of spring contacts.

[0013] According to an embodiment of the present invention, the PIR connecting board is provided with at least two first magnetic members, and the data transmission board is provided with at least two second magnetic members, and each first magnetic member is magnetically connected to a second magnetic member.

[0014] The present invention also provides a PIR sensor testing method, which is applied to the above-mentioned PIR sensor testing device, and includes the following steps: S1. Connect the PIR sensor to be detected to the PIR connecting board; S2. The host computer receives and sends a detection instruction; S3. The main control module receives the detection instruction and generates a control signal according to the detection instruction; S4. Control the air source module or the radio frequency transmitting module to be turned on or off according to the control signal; S5. The PIR connecting board generates a level signal according to the preset level of some of its connection contacts; S6. The data transmission board receives the level signal generated by the PIR connecting board and switches the data reading mode according to the level signal; S7. The data transmission board reads the PIR data generated by the PIR sensor and converts the PIR data into a first interaction signal; S8. The main control module receives the first interaction signal and sends the first interaction signal to the host computer, and the host computer receives the first interaction signal and converts the first interaction signal into a visual waveform diagram.

[0015] The beneficial effects of the present invention are as follows. The data transmission board detects the level signal generated by the PIR connection board and switches the data reading mode according to the level signal, enabling the data board to read the PIR data of various different models of PIR sensors. Thus, there is no need to set different test boards for different models of PIR sensors, effectively reducing the test cost. Moreover, the data transmission board receives the PIR data output by the PIR sensor through the PIR connection board, and then converts the PIR data into a first interaction signal. The main control module receives the first interaction signal and sends the first interaction signal to the host computer, and the host computer converts the first interaction signal into a visual waveform diagram, enabling the user to detect the changes of the PIR sensor by observing the changes of the waveform diagram. In addition, by setting the air source module and the radio frequency transmission module, different test environments are provided for the test of the PIR sensor to meet different test requirements. Description of the Drawings

[0016] The drawings described herein are used to provide a further understanding of the present application and form a part of the present application. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation to the present application. In the drawings: Figure 1 It is a schematic block diagram of the PIR sensor test device in the embodiment; Figure 2 It is a circuit diagram of the main control module in the embodiment; Figure 3 It is a circuit diagram of the voltage stabilization module in the embodiment; Figure 4 It is a circuit schematic diagram of the PIR connection board in the embodiment; Figure 5 It is another circuit schematic diagram of the PIR connection board in the embodiment; Figure 6 It is a circuit diagram of the data transmission board in the embodiment; Figure 7 It is a schematic diagram of the PIR sensor test device in the embodiment; Figure 8 It is an enlarged view of part A in the embodiment; Figure 9 It is an exploded view of the PIR sensor test device in the embodiment; Figure 10 It is a schematic diagram for showing the radio frequency transmission module in the embodiment.

[0017] Description of the Reference Numerals 1. Host computer; 2. Main control module; 21. Air source control unit; 22. Light source control unit; 23. Heat source control unit; 24. Voltage stabilization module; 241. First filtering component; 242. Second filtering component; 3. PIR connection board; 31. First magnetic part; 4. Data transmission board; 41. Spring contact; 42. Second magnetic part; 5. Air source module; 6. RF transmission module; 7. Environment detection module; 8. Light source module; 9. Heat source module; 10. Accommodation box; 110. First test space; 111. Accommodation groove; 120. Second test space. Detailed implementation manners

[0018] The following will disclose multiple implementation manners of the present invention in diagrams. For the sake of clear description, many practical details will be described together in the following narration. However, it should be understood that these practical details are not used to limit the present invention. That is to say, in some implementation manners of the present invention, these practical details are unnecessary. In addition, for the purpose of simplifying the diagrams, some conventional structures and components will be shown in a simple schematic manner in the diagrams.

[0019] In addition, in the present invention, descriptions such as "first" and "second" are only for descriptive purposes, and do not particularly refer to the order or sequence, nor are they used to limit the present invention. They are only used to distinguish components or operations described with the same technical terms, and cannot be understood as indicating or implying their relative importance or implicitly indicating the quantity of the indicated technical features. Thus, features defined with "first" and "second" may include at least one of such features explicitly or implicitly. In addition, the technical solutions between various embodiments can be combined with each other, but it must be based on the fact that those skilled in the art can implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the protection scope required by the present invention.

[0020] Embodiment 1 Please refer to Figure 1 , Figure 1 which is a schematic block diagram of a PIR sensor testing device. This embodiment provides a PIR sensor testing system, which includes a host computer 1, a main control module 2, at least one PIR connection board 3, a data transmission board 4, an air source module 5 and an RF transmission module 6. The host computer 1 is signal-connected to the main control module 2, the main control module 2 is respectively signal-connected to the data transmission board 4, the air source module 5 and the RF transmission module 6, and the data transmission board 4 is electrically connected to the PIR connection board 3. Each PIR connection board 3 has a plurality of connection contacts. Among them, some connection contacts are selected from the plurality of connection contacts, and preset levels are set for the selected connection contacts according to the output data format of the PIR sensor.

[0021] Since the data types output by PIR sensors of different models may be different, the data types output by PIR sensors are usually 8-bit ADC data, 12-bit ADC data, and 14-bit ADC data. Thus, in actual use scenarios, some of the connection contacts of the PIR connection board 3 are selected, and the preset levels are set for some of the connection contacts according to the PIR sensors with different output data formats, so that different PIR connection boards 3 output different level signals.

[0022] When the PIR sensor test system is working, the PIR sensor to be detected is electrically connected to the PIR connection board 3, so that the PIR connection board 3 is powered on. After the host computer 1 receives an external detection instruction, it sends the detection instruction to the main control module 2. The detection instruction can be to perform a natural environment anti-interference test, or to perform a wind source anti-interference test in the natural environment, or to perform a radio frequency anti-interference test in the natural environment. The main control module 2 is used to receive the detection instruction and generate a control signal according to the detection instruction to turn on or off the wind source module 5 or the radio frequency transmission module 6. That is, when the detection instruction is to perform a wind source anti-interference test in the natural environment, the main control module 2 sends a control signal to the wind source module 5 to control the opening of the wind source module 5, and the wind source module 5 provides a wind source; when the detection instruction is to perform a radio frequency anti-interference test in the natural environment, the main control module 2 sends a control signal to the radio frequency transmission module 6 to control the opening of the radio frequency transmission module 6, and the radio frequency transmission module 6 provides a radio frequency source. The PIR connection board 3 generates a level signal according to the preset levels of the multiple connection contacts. The data transmission board 4 receives the level signal and switches to a data reading mode matching the connected PIR sensor according to the level signal. At this time, the PIR sensor is in a detection environment matching the detection instruction, and the PIR sensor generates a PIR signal in the current detection environment and sends the PIR signal to the data transmission board 4 through the PIR connection board 3. The data transmission board 4 receives the PIR signal and converts the PIR signal into a first interaction signal. The main control module 2 receives the first interaction signal and sends the first interaction signal to the host computer 1. The host computer 1 receives the first interaction signal and converts the first interaction signal into a visual waveform diagram.

[0023] Thus, when the user changes different detection environments, the anti-interference performance of the PIR sensor in different detection environments can be observed through the display of different visual waveform diagrams, so as to more conveniently detect the anti-interference ability of the PIR sensor.

[0024] As Figure 2 shown, Figure 2It is the circuit diagram of the main control module. In this embodiment, the main control module 2 of the PIR sensor detection system includes a main control chip U1 and an air source control unit 21. The main control chip U1 has a P1 port, a P2 port, a P3 port, a TX1 port, an RX1 port, a TX3 port, an RX3 port, a D+ port, and a D- port. One end of the air source control unit 21 is connected to the P2 port of the main control chip U1, and the TX1 port and the RX1 port are respectively connected to the radio frequency transmitting module 6. The TX3 port and the RX3 port are respectively connected to the data transmission board 4. The D+ port and the D- port are respectively connected to the host computer 1.

[0025] Among them, the air source control unit 21 includes a resistor R7, a resistor R6, a MOS transistor Q2, a MOU transistor Q5, and a resistor R5. One end of the resistor R7 is connected to the P1 port of the main control chip U1, and the other end is connected to the gate of the MOS transistor Q2. The source of the MOS transistor Q2 is grounded, and the drain of the MOS transistor Q2 is connected to one end of the resistor R5. The other end of the resistor R5 is connected to the air source module 5. One end of the resistor R8 is respectively connected to the resistor R7 and the gate of the MOS transistor Q2, and the other end is connected to the source of the MOS transistor Q2 and the ground terminal. The gate of the MOS transistor Q5 is respectively connected to the resistor R5 and the drain of the MOS transistor Q2. The source of the MOS transistor Q5 is grounded, and the drain of the MOS transistor Q5 is connected to the air source module 5. The resistor R8 is used to provide a bias voltage for the MOS transistor Q2 and at the same time acts as a discharge resistor to protect the gate and source of the MOS transistor Q2.

[0026] During actual use, when it is necessary to detect the performance of the PIR sensor under the influence of a wind source condition, the user sends a detection instruction to the host computer 1. The host computer 1 receives the external detection instruction, and then the host computer 1 sends the detection instruction to the control chip U1 through the D+ port and the D- port. The control chip U1 receives the detection instruction and generates a control signal according to the detection instruction to control the wind source module 5 to open. Specifically, after the main control module 2 receives the detection instruction, a high-level control signal is generated at the P2 port of the main control chip U1. The high-level control signal is input to the gate of the MOS transistor Q2 after being limited in current by the resistor R7. At this time, the MOS transistor Q2 is turned on, and the drain of the MOS transistor Q2 outputs a high level, making the gate of the MOS transistor Q5 a high level, and the MOS transistor Q5 is turned on. At this time, the wind source module 5 is turned on and works. In this way, the PIR sensor performs a wind source anti-interference test in the natural environment. The PIR sensor is detected under the condition of being affected by a wind source, generates a PIR signal under the influence of a wind source, and sends the PIR signal to the data transmission board 4 through the PIR connection board 3. The data transmission board 4 receives the PIR signal and converts the PIR signal into a first interaction signal. The main control module 2 receives the first interaction signal and sends the first interaction signal to the host computer 1. After the host computer 1 receives the first interaction signal, it converts the first signal into a visual waveform diagram. In this way, by observing the waveform diagram generated by the host computer 1, the change of the PIR signal output by the PIR sensor in the wind source environment can be observed, so that the PIR sensor performs a wind source anti-interference test in the natural environment.

[0027] When it is necessary to turn off the wind source module 5, the user sends a detection instruction to the host computer 1. The host computer 1 receives the external detection instruction, and then the host computer 1 sends the detection instruction to the main control module 2. The main control chip U1 receives the detection instruction and generates a control signal according to the detection instruction to control the wind source module 5 to close. Specifically, after the main control chip U1 receives the detection instruction, a low-level control signal is generated at the P2 port of the main control chip U1. The gate of the MOS transistor Q1 is at a low level, and the MOS transistor Q2 cannot be turned on, resulting in the MOS transistor Q5 not being able to be turned on. At this time, the wind source module 5 cannot be turned on.

[0028] When it is necessary to detect the performance of the PIR sensor under the influence of radio frequency conditions, the user sends a detection instruction to the host computer 1. The host computer 1 receives the external detection instruction, and then the host computer 1 sends the detection instruction to the control chip U1 through the D+ port and the D- port. After receiving the detection instruction, the control chip U1 generates a control signal through the TX3 port and the RX3 port, and sends it to the radio frequency transmission module 6 to control the radio frequency transmission module 6 to turn on. The radio frequency transmission module 6 transmits radio frequency signals, so that the PIR sensor conducts radio frequency interference tests in the natural environment. The data transmission board 4 reads the PIR data generated by the PIR sensor through the PIR connection board 3, then converts the PIR data into first interaction data, and then sends the first interaction data to the control chip U1. The control chip U1 receives the first interaction data and sends the first interaction data to the host computer 1, and the host computer 1 converts the first interaction data into a waveform diagram.

[0029] Please refer to Figure 3 , Figure 3 For the circuit diagram of the voltage stabilization module. The main control module 2 also includes a voltage stabilization module 24. The voltage stabilization module 24 includes a first voltage stabilization chip U2, a diode D1, a capacitor C1, a diode D2, an inductor L1, a first filtering component 241, a second voltage stabilization chip LDO1, and a second filtering component 242. The positive electrode of the diode D1 is connected to the 24V DC power supply, and the negative electrode of the diode D1 is connected to the VIN pin of the first voltage stabilization chip U2. One end of the capacitor C1 is respectively connected to the negative electrode of the diode D1 and the VIN pin of the first voltage stabilization chip U2, and the other end is grounded. The positive electrode of the diode D2 is respectively connected to one end of the capacitor C1 and the ground terminal, and the negative electrode is respectively connected to the OUTPUT pin of the first voltage stabilization chip U2 and one end of the inductor L1. The other end of the inductor L1 is respectively connected to the FB pin of the first voltage stabilization chip U2 and the VIN pin of the second voltage stabilization chip LDO1. The GND pin and the ON / OFF pin of the first voltage stabilization chip U2 are grounded. One end of the first filtering component 241 is connected to the first end of the inductor L1, and the other end is connected to the VSS pin of the second voltage stabilization chip LDO1. The VSS terminal of the second voltage stabilization chip LDO1 is grounded, and its CE terminal is connected to the first filtering component 241. The second filtering component 242 is connected to the VOUT terminal of the second voltage stabilization chip LDO1.

[0030] During actual use, the 24V DC power input voltage stabilization module 24 is input to the first voltage stabilization chip U2 after being stabilized by the diode D1. The capacitor C1 is used for energy storage. When the input voltage is unstable, it discharges to stably supply power to the first voltage stabilization chip U2. The diode D2 is used for freewheeling, and the inductor L1 is used for filtering. The 24V DC power is output as 5V DC power after being stabilized by the first voltage stabilization chip U2. The capacitor C3 is used for energy storage to provide a stable input voltage for the second voltage stabilization chip LDO1. The first filtering component 241 is used for filtering. The output voltage of the first voltage stabilization chip U2 is filtered by the first filtering component 241 and then input to the second voltage stabilization chip LDO1. The second voltage stabilization chip LDO1 stabilizes the voltage output by the first voltage stabilization chip U2 and outputs 3.3V DC power. The 3.3V DC power is output after being filtered by the second filtering component 242, so that the voltage stabilization module 24 outputs stable 3.3V DC power to supply power to the main control chip U1.

[0031] Please refer to Figure 4 , Figure 4 is the circuit schematic diagram of the PIR connection board. In this embodiment, the connection contacts of the PIR connection board 3 include H1 contact, H2 contact, H3 contact, H4 contact, H5 contact, H6 contact and H7 contact. Among them, the H3 contact, H4 contact and H5 contact are selected for preset levels. The H3 contact and H4 contact are respectively connected to the 3.3V supply voltage, and the H5 contact is connected to the ground terminal, so that the preset levels of the H3 contact and H4 contact are high levels, and the preset level of the H5 contact is a low level. The H1 contact and H2 contact are PIR connection contacts, the H6 contact is a power supply contact, and the H7 contact is a grounding contact. The PIR connection board 3 also has a first connection jack, a second connection jack, a third connection jack and a fourth connection jack for connecting to the PIR sensor.

[0032] Among them, the H1 contact is connected to the second connection jack, and the H2 contact is connected to the fourth connection jack., The H6 contact is connected to the 3.3V supply voltage, and the H7 contact is connected to the ground terminal. The first connection jack is connected to the ground terminal, and the third connection jack is connected to the 3.3V supply voltage.

[0033] When the PIR sensor is connected to the PIR connection board 3, the VDD pin of the PIR sensor is inserted into the third connection jack of the PIR connection board 3, so that the VDD pin of the PIR sensor is connected to the 3.3V supply voltage; the VSS pin of the PIR sensor is inserted into the first connection jack of the PIR connection board 3, so that the VSS pin of the PIR sensor is grounded. The DOCI / IN pin of the PIR sensor is inserted into the second connection jack of the PIR connection board 3, so that the DOCI / IN pin of the PIR sensor is conductively connected to the H1 contact, and the SERIN pin of the PIR sensor is inserted into the fourth connection jack of the PIR connection board 3, so that the SERIN pin of the PIR sensor is conductively connected to the H2 contact.

[0034] When connecting the PIR connection board 3 to the data transmission board 4, the level signals respectively output by the H3 contact, the H4 contact and the H5 contact are high level, high level and low level. The data transmission board 4 receives the level signals output by the PIR connection board 3 and switches to the 14-bit ADC data reading mode. After the data transmission board 4 switches to the corresponding data reading mode, the data transmission board 4 receives the PIR data output by the PIR sensor through the H1 contact of the PIR connection board 3. After receiving the PIR data, the data transmission board 4 converts the PIR data into first interaction data, and then sends the first interaction data to the main control module 2. The main control module 2 sends the received first interaction data to the host computer 1, and then the host computer 1 converts the first interaction data into a visualized waveform diagram for output.

[0035] Please refer to Figure 5 , Figure 5 For the circuit diagram of another PIR connection board. In an embodiment, the PIR connection board 3 has H8 contacts, H9 contacts, H10 contacts, H11 contacts, H12 contacts, H13 contacts and H14 contacts. The PIR connection board 3 also has a first connection pin, a second connection pin and a third connection pin for connecting to the PIR sensor. Preset the levels of the H10 contact, the H11 contact and the H12 contact. The H10 contact is connected to the 3.3V power supply voltage, and the H11 contact and the H12 contact are connected to the ground terminal, so that the H10 contact is at high level and the H11 contact and the H12 contact are at low level. The H8 contact is connected to the second connection pin of the PIR connection board 3, the H9 contact is left unconnected, the H14 contact is connected to the 3.3V power supply voltage, and the H12 is connected to the ground terminal.

[0036] When the PIR sensor is connected to the PIR connection board 3, the VDD pin of the PIR sensor is inserted into the first connection pin of the PIR connection board 3, so that the VDD pin of the PIR sensor is connected to the 3.3V power supply voltage. The REL pin of the PIR sensor is inserted into the second connection pin of the PIR connection board 3, so that the REL pin of the PIR sensor is conductively connected to the H8 contact. The VSS pin of the PIR sensor is inserted into the third connection pin of the PIR connection board 3, so that the VSS pin of the PIR sensor is grounded.

[0037] When connecting the PIR connection board 3 to the data transmission board 4, the H10 contact, H11 contact, and H12 contact of the PIR connection board 3 output level signals of high level, low level, and low level respectively. The data transmission board 4 receives the level signals output by the PIR connection board 3 and switches to the 12-bit ADC data reading mode. After the data transmission board 4 switches to the corresponding data reading mode, the data transmission board 4 receives the PIR data output by the PIR sensor through the H11 contact of the PIR connection board 3. After the data transmission board 4 receives the PIR data, it converts the PIR data into first interaction data, and then sends the first interaction data to the main control module 2. The main control module 2 sends the received first interaction data to the host computer 1, and then the host computer 1 converts the first interaction data into a visualized waveform diagram for output.

[0038] Please refer to Figure 6 , Figure 6 for the circuit diagram of the data transmission board. The data transmission board 4 includes a plurality of spring contacts 41 and a data transmission chip U3. The data transmission chip U3 has an RX port, a TX port, a VDD port, a VSS port, a PIR_DOCI port, a PIR_SERIN port, a TP3 port, a TP2 port, and a TP1 port. Among them, the RX port and the TX port are respectively connected to the RX3 port and the TX3 port of the main control chip U1 to realize data transmission between the main control chip U1 and the data transmission board 4. The VDD port of the data transmission chip U3 is connected to the 3.3V power supply voltage. The VSS port of the data transmission chip U3 is grounded. The VDD port, VSS port, PIR_DOCI port, PIR_SERIN port, TP3 port, TP2 port, and TP1 port of the data transmission chip U3 are respectively conductively connected to a spring contact 41.

[0039] When the data transmission board 4 is connected to the PIR connection board 3, the H1 contact, H2 contact, H3 contact, H4 contact, H5 contact, H6 contact, and H7 contact of the PIR connection board 3 are respectively connected to a spring contact 41 of the data transmission board 4, and the H1 contact is connected to the PIR_DOCI port, the H2 contact is connected to the PIR_SERIN port, the H3 contact is connected to the TP3 port, the H4 contact is connected to the TP2 port, the H5 contact is connected to the TP1 port, the H6 contact is connected to the VDD port, and the H7 port is connected to the VSS port.

[0040] The PIR connection board 3 is connected to the data transmission board 4. The data transmission board 4 determines the data transmission type of the PIR sensor by detecting the level states of the TP3 port, TP2 port, and TP1 port. When the level states of the TP3 port, TP2 port, and TP1 port are high level, high level, and low level respectively, the data transmission board 4 switches to the 14-bit ADC data reading mode; when the level states of the TP3 port, TP2 port, and TP1 port are high level, low level, and low level respectively, the data transmission board 4 switches to the 12-bit ADC data reading mode. After the data transmission board 4 switches to the mode matching the output data type of the PIR sensor, the PIR_DOCI port of the data transmission board 4 reads the PIR signal of the PIR sensor through the PIR connection board 3 and converts the PIR signal into the first interaction signal. The main control module 2 receives and sends the first interaction signal to the host computer 1, and the host computer 1 receives the first interaction signal and converts the first interaction signal into a visual waveform diagram.

[0041] Further, the PIR sensor test device further includes an environment detection module 7. The environment detection module 7 is electrically connected to the data transmission board 4. The environment detection module 7 is used to detect the environmental data in the test environment and then send the environmental data to the data transmission board 4 in real time. The data transmission board 4 converts the environmental data into a second interaction signal and sends the second interaction signal to the main control module 2. The main control module 2 receives the second interaction signal and sends the second interaction signal to the host computer 1. The host computer converts the second interaction signal into a visual waveform diagram. In this way, by observing the changes in the PIR data and the environmental detection data simultaneously, the user can intuitively reflect whether the changes in the environment will interfere with the detection of the PIR sensor.

[0042] Specifically, the environment detection module 7 includes a temperature sensor (not shown in the figure) and a light sensor (not shown in the figure). The temperature sensor and the light sensor are respectively electrically connected to the data transmission board 4. The temperature sensor is used to detect the temperature change of the PIR sensor test environment, and the light sensor is used to detect the illuminance change of the PIR sensor test environment. During the test, the temperature sensor constantly detects the temperature value of the PIR sensor test environment and transmits the detected temperature value to the data transmission board 4. The light sensor constantly detects the illuminance value of the PIR sensor test environment and transmits the detected illuminance value to the data transmission board 4. The data transmission board receives the temperature value sent by the temperature sensor and the illuminance value sent by the light sensor, converts the temperature value and the illuminance value into second interaction data, and then sends the second interaction data to the host computer 1. The host computer 1 converts the second interaction data into a visual waveform diagram to facilitate the user to intuitively present the change of the environmental data detected by the PIR sensor.

[0043] Furthermore, the PIR sensor test system further includes a light source module 8, and the main control module 2 further includes a light source control unit 22. One end of the light source control unit 22 is connected to the main control chip U1, and the other end thereof is connected to the light source module 8. The light source module 8 is used to provide illumination for the test environment of the PIR sensor. During actual use, the main control chip U1 receives the detection instruction sent by the host computer 1, and sends a control signal according to the detection instruction. The light source control unit conducts or closes according to the control signal, so that the light source module 8 is powered on and started or powered off and closed to change the illumination intensity of the test environment. In this example, the light source module 85 is a halogen lamp.

[0044] The PIR sensor test module further includes a heat source module 9, and the main control module 2 further includes a heat source control unit 23. One end of the heat source control unit 23 is connected to the main control chip U1, and the other end thereof is connected to the heat source module 9. The heat source module 9 is used to provide a heat source for the test environment of the PIR sensor. During actual use, the main control chip U1 receives the detection instruction sent by the host computer 1, and sends a control signal according to the detection instruction. The heat source control unit 23 conducts or closes according to the control signal, so that the heat source module 9 is powered on and started or powered off and closed to change the temperature of the test environment. In this example, the heat source module 9 is a PTC heating plate.

[0045] In addition, in this example, the radio frequency transmission module 6 is a 2.4G radio frequency module. The 2.4G radio frequency module is electrically connected to the main control module 2 and is controlled by the main control module 2. The main control module 2 controls the opening and closing of the 2.4G radio frequency module according to the received detection instruction to provide a radio frequency signal for the test of the PIR sensor.

[0046] In summary, by selecting some connection contacts of the PIR connection board 3 and presetting the levels according to the data format output by the PIR sensors connected to the PIR connection board 3, the PIR connection board 3 generates a level signal according to some connection contacts. The data transmission board 4 detects the level signal generated by the PIR connection board 3 and switches the data reading mode according to the level signal, so that the data board can read the PIR data of a variety of different models of PIR sensors. In this way, there is no need to set different test boards for different models of PIR sensors, effectively reducing the test cost. Moreover, the data transmission board 4 receives the PIR data output by the PIR sensor through the PIR connection board 3, and then converts the PIR data into a first interaction signal. The main control module 2 receives the first interaction signal and sends the first interaction signal to the host computer 1. The host computer 1 converts the first interaction signal into a visual waveform diagram, so that the user can detect the change of the PIR sensor by observing the change of the waveform diagram. In addition, by setting the air source module 5, the radio frequency transmission module 6, the light source module 8 and the heat source module 9, different test environments are provided for the test of the PIR sensor to meet different test requirements.

[0047] Example 2 This embodiment provides a PIR sensor detection method, which is applied to the above PIR sensor detection system. It includes the following steps: S1. Connect the PIR sensor to be detected to the PIR connection board 3; S2. The host computer 1 receives and sends a detection instruction; S3. The main control module 2 receives the detection instruction and generates a control signal according to the detection instruction; S4. Control the air source module 5 or the radio frequency transmission module 6 to be turned on or off according to the control signal; S5. The PIR connection board 3 generates a level signal according to the preset level of some of its connection contacts; S6. The data transmission board 4 receives the level signal generated by the PIR connection board 3 and switches the data reading mode according to the level signal; S7. The data transmission board 4 reads the PIR data generated by the PIR sensor and converts the PIR data into a first interaction signal; S8. The main control module 2 receives the first interaction signal and sends the first interaction signal to the host computer 1. The host computer 1 receives the first interaction signal and converts the first interaction signal into a visual waveform diagram.

[0048] In the actual use process, after the user connects the PIR sensor to its corresponding PIR connection board 3, connect the PIR connection board 3 to the data transmission board 4. At this time, the user turns on the host computer 1 and sends a detection instruction to the host computer 1. The host computer 1 sends the detection instruction to the main control module 2. The main control module 2 receives the detection instruction sent by the host computer 1 and generates a control signal according to the detection instruction to control the opening or closing of the air source module 5 or the radio frequency transmission module 6. When the air source module 5 is turned on, the air source module 5 provides an air source for the detection of the PIR sensor. When the radio frequency transmission module 6 is turned on, the radio frequency transmission module 6 provides a radio frequency source for the detection of the PIR sensor to detect the anti-interference ability of the PIR sensor under different interference conditions. After the PIR connection board 3 is connected to the data transmission board 4, the PIR connection board 3 is powered on and generates a level signal according to the preset level of some of its connection contacts. The data transmission board 4 receives the level signal of the PIR connection board 3 and switches the data reading mode according to the level signal, so that the data reading mode of the data transmission board 4 matches the PIR sensor. The data transmission board 4 receives the PIR data output by the PIR sensor and converts the PIR data into a first interaction signal. The main control module 2 receives the first interaction signal and sends the first interaction signal to the host computer 1. The host computer 1 converts the first interaction signal into a visual waveform diagram, so that the user can more intuitively observe the changes of the PIR sensor under different interference conditions.

[0049] Example 3 Please refer to Figures 7 - 10 , Figure 7 which is a schematic diagram of a PIR sensor test device, Figure 8 and Fig. Figure 8 is an enlarged view of part A, Figure 9 Fig. Figure 9 is an exploded view of the PIR sensor test device, Figure 10 and Fig. Figure 10 is a schematic diagram for showing the radio frequency transmitting module. The PIR sensor test device in this embodiment includes a receiving box 10, a main control module 2, an air source module 5, a radio frequency transmitting module 6, two data transmission boards 4 and a PIR connection board 3. The main control module 2 is disposed in the receiving box 10. The receiving box 10 is spaced apart to form a first test space 110 and a second test space 120. The air source module 5 is disposed in the first test space 110, and the radio frequency transmitting module 6 is disposed in the second test space 120. The two data transmission boards 4 are electrically connected to the main control module 2 respectively. One of the data transmission boards 4 is disposed in the first test space 110, and the other data transmission board 4 is disposed in the second test space 120. The PIR connection board 3 and any one of the data transmission boards 4 are detachably connected to each other by a magnetic attraction method. When the data transmission board 4 is connected to the PIR connection board 3, each spring contact 41 corresponds to the contact of a connection contact respectively. When the PIR connection board 3 is connected to the data transmission board 4, each spring contact 41 is electrically connected to a connection contact.

[0050] In use, the main control module 2 is signal-connected to an external host computer 1. Then the PIR sensor is connected to the PIR connection board 3. Then the PIR connection board 3 is placed in the first test space 110 or the second test space 120, and a plurality of connection contacts of the PIR connection board 3 are connected to the spring contacts of the data transmission board 4. The data transmission board 4 switches the data reading module according to the level signals generated by some connection contacts, so that the reading mode of the data transmission board 4 matches the data transmission format of the PIR sensor. The host computer 1 sends a detection instruction to the main control module 2. The main control module 2 generates a control signal according to the detection instruction, and sends the control signal to the air source module 5 or the radio frequency transmitting module 6 to control the air source module 5 or the radio frequency transmitting module 6 to start, so that the PIR sensor performs detection under the condition of air source interference or radio frequency interference. The data transmission board 4 receives the PIR data output by the PIR sensor through the PIR connection board 3, then converts the PIR data into first interaction data, and outputs the first interaction data to the main control module 2. The main control module 2 sends the first interaction data to the externally connected host computer 1, and the host computer 1 converts the first interaction data into a waveform diagram and outputs it.

[0051] Further, for the convenience of the precise alignment and connection between the PIR connection board 3 and the data transmission board 4, at least two first magnetic members 31 are provided on the PIR connection board 3, and at least two second magnetic members 42 are provided on the data transmission board 4. Each first magnetic member 31 corresponds to a second magnetic member 42, and the first magnetic member 31 and the second magnetic member 42 are connected by magnetic attraction. In this example, two first magnetic members 31 are provided on the PIR connection board 3, and the first magnetic members 31 are respectively arranged on both sides of the PIR connection board 3. Correspondingly, two second magnetic members 42 are provided on the data transmission board 4. When the PIR connection board is connected to the data transmission board 4, the first magnetic member 31 and the second magnetic member 42 are attracted to each other, and multiple connection contacts on the PIR connection board 3 are accurately aligned with the spring contacts 41 of the data transmission board 4. In this way, the connection between the PIR connection board 3 and the data transmission board 4 by magnetic means avoids manual alignment and realizes the quick and precise connection between the PIR connection board 3 and the data transmission board 4, effectively improving the detection efficiency of the PIR sensor.

[0052] In this example, the PIR sensor detection device further includes a light source module 8 and a heat source module 9, and the light source module 8 and the heat source module 9 are respectively connected to the main control module 2. A receiving groove 111 is formed in the first test space 110, and the light source module 8 and the heat source module 9 are arranged in the receiving groove 111, and the light emitting end of the light source module 8 faces the data transmission board 4 in the first test space 110. The light source module 8 is used to provide a light source for the detection of the PIR inductor, and the heat source module 9 is used to provide a heat source for the detection of the PIR inductor. The control modes of the light source module 8 and the heat source module 9 are similar to that of the air source module 5, and will not be elaborated here one by one. It should be noted that the air source module 5, the light source module 8 and the heat source module 9 can be turned on or off selectively, in pairs or all according to actual detection needs, so as to provide more different test environments for the detection of the PIR sensor.

[0053] To sum up, by dividing the accommodation box 10 into the first test space 110 and the second test space 120, the air source module 5 and the radio frequency transmission module 6 are respectively arranged in the first test space 110 and the second test space 120 to meet the test requirements of the PIR in different environments. By connecting the PIR connection board 3 and the data transmission board 4 by magnetic attraction, the PIR connection board 3 and the data transmission board 4 can be quickly connected without manual alignment.

[0054] The above are only the embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention can have various changes and modifications. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the scope of the claims of the present invention.

Claims

1. A PIR sensor testing device, characterized in that, Including: A host computer (1) for receiving and sending detection instructions; A main control module (2) electrically connected to the host computer (1), the main control module (2) for receiving detection instructions and generating control signals according to the detection instructions; At least one PIR connection board (3) for connecting to a PIR sensor to be tested. Each PIR connection board (3) has a plurality of connection contacts. A part of the connection contacts are selected from the plurality of connection contacts. The levels of a part of the connection contacts are preset according to the data format of the PIR sensor connected to the PIR connection board (3). The PIR connection board (3) generates a level signal according to a part of the connection contacts; A data transmission board (4) electrically connected to the main control module (2). The data transmission board (4) receives the level signal and switches the data reading mode according to the level signal. The data transmission board (4) reads the PIR signal generated by the PIR sensor and converts the PIR signal into a first interaction signal. The main control module (2) receives the first interaction signal and then sends the first interaction signal to the host computer (1). The host computer (1) receives the first interaction signal and converts the first interaction signal into a visual waveform diagram; An air source module (5) electrically connected to the main control module (2), the air source module (5) for providing an air source, and the air source module (5) is started or stopped according to a control signal; A radio frequency transmission module (6) electrically connected to the main control module (2), the radio frequency transmission module (6) for providing a radio frequency source, and the radio frequency transmission module (6) is started or stopped according to a control signal.

2. The PIR sensor testing device according to claim 1, characterized in that The main control module (2) includes a main control chip U1 and an air source control unit (21). The main control chip U1 has a P1 port, a TX1 port, an RX1 port, a TX3 port, an RX3 port, a D+ port, and a D- port. One end of the air source control unit (21) is connected to the P2 port of the main control chip U1, and the other end is connected to the air source module (5). The TX1 port and the RX1 port of the main control chip U1 are respectively connected to the radio frequency transmission module (6). The D+ port and the D- port of the main control chip U1 are respectively connected to the host computer (1). The host computer (1) sends a detection instruction to the main control chip U1 through the D+ port and the D- port. The main control chip U1 receives the detection instruction and sends a control signal to the air source control unit (21) or the radio frequency transmission module (6) according to the detection instruction. When the air source control unit (21) receives the control signal, the air source control unit (21) conducts, and the air source module (5) is turned on. When the radio frequency transmission module (6) receives the control signal, the radio frequency transmission module (6) is turned on.

3. The PIR sensor testing device according to claim 1, characterized in that, The data transmission board (4) includes a plurality of spring contacts (41) and a data transmission chip U3. The data transmission chip U3 has an RX port, a TX port, a VDD port, a VSS port, a PIR_DOCI port, a PIR_SERIN port, a TP3 port, a TP2 port, and a TP1 port. The RX port and the TX port are respectively connected to the main control module (1). The VDD port is connected to the supply voltage, and the VSS port is connected to the ground terminal. Moreover, the VDD port, the VSS port, the PIR_DOCI port, the PIR_SERIN port, the TP3 port, the TP2 port, and the TP1 port are respectively conductively connected to a spring contact (41). A plurality of the spring contacts (41) are electrically connected to a plurality of the connection contacts. The TP3 port, the TP2 port, and the TP1 port of the data transmission chip U3 receive level signals respectively through the spring contacts (41). The data transmission chip U3 switches the data reading mode according to the level signals. The PIR_DOCI port of the data transmission chip U3 receives the PIR signal output by the PIR sensor through the spring contact (41). The data transmission chip U3 receives the PIR signal and converts the PIR signal into a first interaction signal. The main control module (2) receives and sends the first interaction signal. The host computer (1) receives the first interaction signal and converts the first interaction signal into a waveform diagram.

4. The PIR sensor testing device according to claim 1, characterized in that It further includes an environment detection module (7). The environment detection module (7) is electrically connected to the data transmission board (4). The environment detection module (7) is used for detecting environment data and sending the environment data to the data transmission board (4) in real time. The data transmission board (4) converts the environment data into a second interaction signal. The main control module (2) receives the second interaction signal and sends the second interaction signal to the host computer (1). The host computer (1) receives the second interaction signal and converts the environment data into a visualized waveform diagram.

5. The PIR sensor testing device according to claim 4, wherein, The environment detection module (7) includes a temperature sensor and a light sensor. The temperature sensor and the light sensor are respectively electrically connected to the data transmission board (4).

6. The PIR sensor testing device according to claim 1, wherein, It further includes a light source module (8). The light source module (8) is electrically connected to the main control module (2). The light source module (8) is started or turned off according to a control signal.

7. The PIR sensor testing device according to claim 1, characterized in that, It further includes a heat source module (9). The heat source module (9) is electrically connected to the main control module (2). The heat source module (9) is started or turned off according to a control signal.

8. The PIR sensor testing device according to claim 1, characterized in that, It further includes a receiving box (10); the main control module (2) is arranged inside the receiving box (10), and the receiving box (10) is spaced to form a first test space (110) and a second test space (120); the air source module (5) is arranged in the first test space (110), and the radio frequency transmitting module (6) is arranged in the second test space (120); the two data transmission boards (4) are respectively electrically connected to the main control module (2); one of the data transmission boards (4) is arranged in each of the first test space (110) and the second test space (120); the PIR connection board (3) is detachably connected to any one of the data transmission boards (4) in a magnetic attraction manner; when the PIR connection board (3) is connected to the data transmission board (4), each connection contact is electrically connected to a plurality of spring contacts (41).

9. The PIR sensor testing device according to claim 8, wherein, The PIR connection board (3) is provided with at least two first magnetic members (31), and the data transmission board (4) is provided with at least two second magnetic members (42), and each first magnetic member (31) is magnetically connected to a second magnetic member (42).

10. A method for testing a PIR sensor, characterized in that, Applied to the PIR sensor detection device according to any one of claims 1-9, it includes the following steps: S1. Connect the PIR sensor to be detected to the PIR connection board (3); S2. The host computer (1) receives and sends a detection instruction; S3. The main control module (2) receives the detection instruction and generates a control signal according to the detection instruction; S4. The air source module (5) or the radio frequency transmitting module (6) is turned on or off according to the control signal; S5. The PIR connection board (3) generates a level signal according to the preset level terminal of some of its connection contacts; S6. The data transmission board (4) receives the level signal generated by the PIR connection board (3) and switches the data reading mode according to the level signal; S7. The data transmission board (4) reads the PIR data generated by the PIR sensor and converts the PIR data into a first interaction signal; S8. The main control module (2) receives the first interaction signal and sends the first interaction signal to the host computer (1), the host computer (1) receives the first interaction signal and converts the first interaction signal into a visualized waveform diagram.