Sensor output automatic detection device

By designing a sensor detection device for signal acquisition and logic processing circuits, the problem that existing technology cannot detect sensor overload and short protection performance is solved, and a comprehensive evaluation and detection of sensor performance is achieved.

CN221840469UActive Publication Date: 2024-10-15SU ZHOU HAN SHI KE JI YOU XIAN GONG SI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420496550.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-03-14
Publication Date
2024-10-15
Estimated Expiration
2034-03-14

AI Technical Summary

Technical Problem

Existing sensor detection methods can only detect the presence or absence of output signals and cannot effectively detect the overload and short protection performance of the sensor, resulting in the inability to fully evaluate the function and performance of the sensor.

Method used

An automatic sensor output detection device is designed, including a signal acquisition circuit, a switching circuit, a short-circuit overload circuit, an MCU logic processing circuit and an LCD display. Through signal acquisition and logic processing, the detection of NPN and PNP sensor signals is realized, and during detection Overload and short-term protection performance are evaluated simultaneously during the process.

Benefits of technology

It achieves comprehensive detection of sensor performance, including traditional performance detection and synchronous detection of overload and short-term protection performance, improving detection accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221840469U_ABST
    Figure CN221840469U_ABST
Patent Text Reader

Abstract

The utility model discloses an automatic detection device for sensor output. The automatic detection device comprises a signal acquisition circuit, a switching circuit, a short-circuit overload circuit and an MCU logic processing circuit. The signal acquisition circuit can input NPN type and PNP type sensor signals, when the signal acquisition circuit detects sensor output signals, the input pin of the MCU logic processing circuit is in a low level state, the MCU logic processing circuit controls the switching circuit to be in a low level state, at the moment, the output signals of the signal acquisition circuit are overturned, and the output signals of the switching circuit are switched to be in a low level state. The input of the MCU logic processing circuit is led to be high level, and if a detection signal in the period is consistent with the logic, the sensor meets the detection standard and is judged to be qualified; and then the MCU logic processing circuit controls the short circuit overload circuit to be conducted for 1 second, so that the sensor signal corresponds to the PNP type or NPN type sensor signal, then the detection steps are repeated, and if the sensor detection result is consistent with the first method, the sensor detection is qualified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of sensors, in particular to an automatic detection device for sensor output. Background Art

[0002] During the manufacturing process of sensors, the detection of functions and performance is an important part of the manufacturing process, which directly affects the quality and performance of the product. Reliable and stable detection devices can improve production efficiency while ensuring quality.

[0003] The following are two common measurement methods:

[0004] Sensor-based detection box

[0005] The sensor detection box is a device for detecting the output of sensor signals, which includes a DC power output, an NPN signal input interface, and a PNP signal input interface. During the detection, connect the sensor power supply (brown, blue) to the detection box power output port, and connect the NPN signal to the NPN signal input port (connect to the PNP signal input port when PNP). Start the main power of the detection box, the sensor enters the working state, and manually triggers the sensor to put it in the signal output state. At this time, the detection box LED indicator lights up and the buzzer sounds, indicating that the sensor is qualified, otherwise the sensor is considered unqualified;

[0006] Based on switch quantity data acquisition module

[0007] The switch quantity data acquisition module is a device that supports NPN or PNP signal output and accumulates counts. During the test, the sensor is manually connected to the acquisition module according to the line sequence, and the module power is turned on. After the sensor enters the working state, the sensor is manually triggered to put it in the signal output state. At this time, the acquisition module accumulates the number of triggers by 1. Repeat the previous step for a certain number of times, and compare the accumulated number of the acquisition module with the number of manual triggers. If the data is consistent, it means that the sensor is qualified, otherwise it is considered unqualified;

[0008] The above two methods of detecting the output function of the sensor only detect the presence or absence of the output signal, and do not detect the overload and short protection performance. Therefore, we propose an automatic sensor output detection device. Utility Model Content

[0009] The utility model aims to provide a sensor output automatic detection device to solve the problems raised in the background technology.

[0010] To achieve the above object, the utility model provides the following technical solutions: a sensor output automatic detection device, including a signal acquisition circuit, a switching circuit, a short circuit overload circuit, an MCU logic processing circuit and an LCD display screen;

[0011] The signal acquisition circuit is used to collect output signals of NPN and PNP sensors;

[0012] The switching circuit is used to switch the signal output of the sensor between light-on and dark-on;

[0013] The short-circuit and overload circuit is used to simulate the short-circuit and overload conditions of the sensor output signal;

[0014] The MCU logic processing circuit is used to determine the working state of the sensor;

[0015] The LCD display screen is used to display the sensor detection process and detection results.

[0016] Furthermore, it also includes a power supply circuit, which supplies power to the entire device. The power supply circuit includes a chip U1, a unidirectional diode D1, a Schottky high-speed switching diode D2 and a self-recovery fuse resistor F1. The chip U1 is connected to an external power supply device through the unidirectional diode D1, the OUT pin of the chip U1 is connected to the Schottky high-speed switching diode D2, the Schottky high-speed switching diode D2 is connected to an output filter capacitor C2, and the FB pin of the chip U1 is connected to the MCU logic processing circuit through the self-recovery fuse resistor F1.

[0017] Furthermore, the switching circuit includes an interface CN1, a transistor Q1 and a transistor Q2, pin 1 of the interface CN1 is connected to the positive power supply output terminal of the sensor, pin 2 of the interface CN1 is connected to the transistor Q1, the transistor Q1 is connected to the current limiting resistor R1 and the pull-down resistor R3, and pin 5 of the interface CN1 is connected to the transistor Q2, and the transistor Q2 is connected to the current limiting resistor R2.

[0018] Furthermore, the short-circuit overload circuit includes a relay RLY1, a relay RLY2, a transistor Q3 and a transistor Q4, pin 3 of the relay RLY1 is connected to a PNP type sensor, pin 1 of the relay RLY1 is connected to a transistor Q3, and the transistor Q3 is connected to a current-limiting resistor R6, pin 2 of the relay RLY2 is connected to an NPN type sensor, pin 1 of the relay RLY2 is connected to a transistor Q4, and the transistor Q4 is connected to a current-limiting resistor R7.

[0019] Furthermore, the signal acquisition circuit includes a photocoupler U2 and a photocoupler U4, wherein pin 4 of the photocoupler U2 is connected to a low-voltage side current limiting resistor R4, pin 4 of the photocoupler U4 is connected to a low-voltage side current limiting resistor R8, pin 1 of the photocoupler U2 is connected to a high-voltage side current limiting resistor R5, pin 2 of the photocoupler U2 is connected to an NPN sensor, pin 2 of the photocoupler U4 is connected to a high-voltage side current limiting resistor R9, and pin 1 of the photocoupler U4 is connected to an NPN sensor.

[0020] Furthermore, it also includes an interface CN2, which is a communication and power supply interface of the LCD display screen. The MCU logic processing circuit includes an MCU chip U3. The interface CN2 is connected to the PA2 and PA3 pins of the MCU chip U3. The PC15 pin of the MCU chip U3 is connected to an NPN sensor. The PC14 pin of the MCU chip U3 is connected to a PNP sensor. The PA4 pin of the MCU chip U3 is a short-circuit overload control signal output for the PNP sensor. The PA5 pin of the MCU chip U3 is a short-circuit overload control signal output for the NPN sensor. The PA6 pin of the MCU chip U3 controls the light-on and dark-on control signal outputs of the sensor. The PB3 pin of the MCU chip U3 controls the power supply control signal output of the sensor.

[0021] Compared with the prior art, the utility model has the following beneficial effects: first, the utility model can input NPN and PNP sensor signals through the signal acquisition circuit. When the signal acquisition circuit detects the sensor output signal, the MCU logic processing circuit input pin is low level, and the MCU logic processing circuit controls the switching circuit to be low level. At this time, the signal acquisition circuit output signal is flipped, and the MCU logic processing circuit input pin is high level. This periodic detection signal is consistent with the above logic, indicating that the sensor meets the detection standard and the sensor is determined to be qualified; then the MCU logic processing circuit controls the short-circuit overload circuit to be turned on for 1 second, so that the sensor signal corresponds to the PNP or NPN sensor signal, and then repeats the above detection steps. If the sensor detection result is consistent with method one, it means that the sensor detection is qualified. Such a detection method can not only realize the performance detection of traditional sensors, but also can synchronously detect the overload and short protection performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 This is a schematic diagram of the system principle of the utility model;

[0023] Figure 2 This is a schematic diagram of the system principle of the utility model;

[0024] Figure 3 This is a schematic diagram of the circuit structure of the power supply circuit of the utility model;

[0025] Figure 4 This is a schematic diagram of the switching circuit structure of the utility model;

[0026] Figure 5 This is a schematic diagram of the circuit structure of the short-circuit overload circuit of the utility model;

[0027] Figure 6 This is a schematic diagram of the circuit structure of the signal acquisition circuit of the utility model;

[0028] Figure 7 The figure is a schematic diagram of the circuit structure of the MCU logic processing circuit of the utility model. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments in the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.

[0030] See also Figure 1-Figure 7 ,The utility model provides a technical solution: a sensor output automatic detection device, including a signal acquisition circuit, a switching circuit, a short circuit overload circuit, an MCU logic processing circuit and an LCD display screen;

[0031] The signal acquisition circuit is used to collect output signals of NPN and PNP sensors;

[0032] The switching circuit is used to switch the signal output of the sensor between light-on and dark-on;

[0033] The short-circuit and overload circuit is used to simulate the short-circuit and overload conditions of the sensor output signal;

[0034] The MCU logic processing circuit is used to determine the working state of the sensor;

[0035] The LCD display screen is used to display the sensor detection process and detection results.

[0036] Among them, first, the NPN type and PNP type sensor signals can be input through the signal acquisition circuit. When the signal acquisition circuit detects the sensor output signal, the MCU logic processing circuit input pin is low level, and the MCU logic processing circuit controls the switching circuit to be low level. At this time, the signal acquisition circuit output signal is flipped, and the MCU logic processing circuit input pin is high level. This periodic detection signal is consistent with the above logic, indicating that the sensor meets the detection standard and the sensor is qualified; then the MCU logic processing circuit controls the short-circuit overload circuit to be turned on for 1 second, so that the sensor signal corresponds to the PNP or NPN type sensor signal, and then repeats the above detection steps. If the sensor detection result is consistent with method one, it means that the sensor detection is qualified. This detection method can not only realize the performance detection of traditional sensors, but also can simultaneously detect the overload and short protection performance.

[0037] See also Figure 1 , Figure 2 and Figure 3 , also includes a power supply circuit, which supplies power to the entire device. The power supply circuit includes a chip U1, a unidirectional diode D1, a Schottky high-speed switching diode D2 and a self-recovery fuse resistor F1. The chip U1 is connected to an external power supply device through the unidirectional diode D1, the OUT pin of the chip U1 is connected to the Schottky high-speed switching diode D2, the Schottky high-speed switching diode D2 is connected to an output filter capacitor C2, and the FB pin of the chip U1 is connected to the MCU logic processing circuit through the self-recovery fuse resistor F1.

[0038] Among them, DCIN connected to the unidirectional diode D1 is the external power supply of the equipment (DC24V). After passing through the unidirectional diode D1, the chip U1 realizes DC-DC voltage reduction to power the entire device.

[0039] See also Figure 1 , Figure 2 , Figure 3 and Figure 4 The switching circuit includes an interface CN1, a transistor Q1 and a transistor Q2. Pin 1 of the interface CN1 is connected to the positive power supply output end of the sensor. Pin 2 of the interface CN1 is connected to the transistor Q1. The transistor Q1 is connected to a current-limiting resistor R1 and a pull-down resistor R3. Pin 5 of the interface CN1 is connected to a transistor Q2. The transistor Q2 is connected to a current-limiting resistor R2.

[0040] Among them, pin 1 of interface CN1 is connected to the positive power output terminal of the sensor. When the detection is started, the PB3 pin of the MCU chip U3 of the MCU logic processing circuit is outputted at a high level by the MCU chip U3. At this time, transistor Q1 is turned on, and pin 1 and pin 5 of interface CN1 form a loop. At this time, the sensor starts to power supply, and when the L / D connected between interface CN1 and current limiting resistor R2 is outputted at a high level by the MCU chip U3, transistor Q2 is turned on, and the sensor switches to dark-on mode.

[0041] See also Figure 1 , Figure 2 , Figure 3 , Figure 4 and Figure 5 The short-circuit overload circuit includes a relay RLY1, a relay RLY2, a transistor Q3 and a transistor Q4. Pin 3 of the relay RLY1 is connected to a PNP sensor, pin 1 of the relay RLY1 is connected to a transistor Q3, and the transistor Q3 is connected to a current-limiting resistor R6. Pin 2 of the relay RLY2 is connected to an NPN sensor, pin 1 of the relay RLY2 is connected to a transistor Q4, and the transistor Q4 is connected to a current-limiting resistor R7.

[0042] Among them, transistor Q3 and transistor Q4 are high-power transistors. When the sensor is PNP type, relay RLY1 is controlled by MCU chip U3 to control PA4 pin to turn on transistor Q3 to make it turned on, and the sensor PNP signal is directly short-circuited to the ground. When the sensor is NPN, relay RLY2 is controlled by MCU chip U3 to control PA5 pin to control transistor Q4 to make it turned on, and the sensor NPN signal directly short-circuits the power supply circuit.

[0043] See also Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 and Figure 6 The signal acquisition circuit includes a photocoupler U2 and a photocoupler U4, wherein the 4-pin of the photocoupler U2 is connected to a low-voltage side current limiting resistor R4, the 4-pin of the photocoupler U4 is connected to a low-voltage side current limiting resistor R8, the 1-pin of the photocoupler U2 is connected to a high-voltage side current limiting resistor R5, the 2-pin of the photocoupler U2 is connected to an NPN type sensor, the 2-pin of the photocoupler U4 is connected to a high-voltage side current limiting resistor R9, and the 1-pin of the photocoupler U4 is connected to an NPN type sensor.

[0044] Among them, when the sensor is NPN signal input, the optical coupler U2 is turned on, and the PC15 pin signal of the MCU chip U3 changes from high level to low level. When the sensor is PNP signal input, the photocoupler U4 is turned on, and the PC14 pin signal of the MCU chip U3 changes from high level to low level.

[0045] See also Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 and Figure 7 , and also includes an interface CN2, which is a communication and power interface of the LCD display screen. The MCU logic processing circuit includes an MCU chip U3, and the interface CN2 is connected to the PA2 and PA3 pins of the MCU chip U3. The PC15 pin of the MCU chip U3 is connected to the NPN sensor, and the PC14 pin of the MCU chip U3 is connected to the PNP sensor. The PA4 pin of the MCU chip U3 is the short-circuit overload control signal output of the PNP sensor, the PA5 pin of the MCU chip U3 is the short-circuit overload control signal output of the NPN sensor, the PA6 pin of the MCU chip U3 controls the light-on and dark-on control signal outputs of the sensor, and the PB3 pin of the MCU chip U3 controls the power supply control signal output of the sensor.

[0046] When in use, first, the NPN and PNP sensor signals can be input through the signal acquisition circuit. When the signal acquisition circuit detects the sensor output signal, the MCU logic processing circuit input pin is low level, and the MCU logic processing circuit controls the switching circuit to be low level. At this time, the signal acquisition circuit output signal is flipped, and the MCU logic processing circuit input pin is high level. This periodic detection signal is consistent with the above logic, indicating that the sensor meets the detection standard and the sensor is qualified; then the MCU logic processing circuit controls the short-circuit overload circuit to be turned on for 1 second, so that the sensor signal corresponds to the PNP or NPN sensor signal, and then repeats the above detection steps. If the sensor detection result is consistent with method one, it means that the sensor detection is qualified. This detection method can not only realize the performance detection of traditional sensors, but also can simultaneously detect the overload and short protection performance.

[0047] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A sensor output automatic detection device, characterized in that: It includes signal acquisition circuit, switching circuit, short circuit overload circuit, MCU logic processing circuit and LCD display screen; The signal acquisition circuit is used to collect output signals of NPN and PNP sensors; The switching circuit is used to switch the signal output of the sensor between light-on and dark-on; The short-circuit overload circuit is used to simulate the short-circuit and overload conditions of the sensor output signal; The MCU logic processing circuit is used to determine the working state of the sensor; The LCD display screen is used to display the sensor detection process and detection results.

2. A sensor output automatic detection device according to claim 1, characterized in that: It also includes a power supply circuit, which supplies power to the entire device. The power supply circuit includes a chip U1, a unidirectional diode D1, a Schottky high-speed switching diode D2 and a self-recovery fuse resistor F1. The chip U1 is connected to an external power supply device through the unidirectional diode D1, the OUT pin of the chip U1 is connected to the Schottky high-speed switching diode D2, the Schottky high-speed switching diode D2 is connected to an output filter capacitor C2, and the FB pin of the chip U1 is connected to the MCU logic processing circuit through the self-recovery fuse resistor F1.

3. A sensor output automatic detection device according to claim 2, characterized in that: The switching circuit includes an interface CN1, a transistor Q1 and a transistor Q2, wherein pin 1 of the interface CN1 is connected to the positive power supply output end of the sensor, pin 2 of the interface CN1 is connected to the transistor Q1, and the transistor Q1 is connected to a current-limiting resistor R1 and a pull-down resistor R3, and pin 5 of the interface CN1 is connected to a transistor Q2, and the transistor Q2 is connected to a current-limiting resistor R2.

4. The automatic sensor output detection device according to claim 3, characterized in that: The short-circuit overload circuit includes a relay RLY1, a relay RLY2, a transistor Q3 and a transistor Q4, wherein the 3-pin of the relay RLY1 is connected to a PNP sensor, the 1-pin of the relay RLY1 is connected to a transistor Q3, the transistor Q3 is connected to a current-limiting resistor R6, the 2-pin of the relay RLY2 is connected to an NPN sensor, the 1-pin of the relay RLY2 is connected to a transistor Q4, and the transistor Q4 is connected to a current-limiting resistor R7.

5. The automatic sensor output detection device according to claim 4, characterized in that: The signal acquisition circuit includes a photocoupler U2 and a photocoupler U4, wherein pin 4 of the photocoupler U2 is connected to a low-voltage side current limiting resistor R4, pin 4 of the photocoupler U4 is connected to a low-voltage side current limiting resistor R8, pin 1 of the photocoupler U2 is connected to a high-voltage side current limiting resistor R5, pin 2 of the photocoupler U2 is connected to an NPN sensor, pin 2 of the photocoupler U4 is connected to a high-voltage side current limiting resistor R9, and pin 1 of the photocoupler U4 is connected to an NPN sensor.

6. The automatic sensor output detection device according to claim 5, characterized in that: It also includes an interface CN2, which is a communication and power supply interface of the LCD display screen. The MCU logic processing circuit includes an MCU chip U3. The interface CN2 is connected to the PA2 and PA3 pins of the MCU chip U3. The PC15 pin of the MCU chip U3 is connected to an NPN sensor. The PC14 pin of the MCU chip U3 is connected to a PNP sensor. The PA4 pin of the MCU chip U3 is a short-circuit overload control signal output for the PNP sensor. The PA5 pin of the MCU chip U3 is a short-circuit overload control signal output for the NPN sensor. The PA6 pin of the MCU chip U3 controls the light-on and dark-on control signal outputs of the sensor. The PB3 pin of the MCU chip U3 controls the power supply control signal output of the sensor.