A conversion device and system for infrared photoelectric switch signals

By designing a conversion device for infrared photoelectric switch signals, detecting and converting infrared photoelectric switch signals, the problem of mismatch in the signal type in the gate system is solved, and the gate controller is able to accurately judge the pedestrian traffic status.

CN110890883BActive Publication Date: 2024-11-26SHENZHEN JIAYU MECHATRONIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911291269.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-13
Publication Date
2024-11-26
Estimated Expiration
2039-12-13

AI Technical Summary

Technical Problem

In the existing gate system, if the processor cannot detect the infrared photoelectric switch signal or the signal type does not match, the gate controller cannot accurately judge the traffic status of pedestrians.

Method used

A conversion device for infrared photoelectric switch signals is designed, including input port, detection circuit, processor, conversion circuit and output port. The infrared photoelectric switch signals are detected through the detection circuit, and the signal is converted into a gate controller through the conversion circuit. The matching type is output to the output port, and the processor is connected to the gate controller through the communication port to realize signal transmission and conversion.

Benefits of technology

Regardless of whether the signal input by the infrared photoelectric switch matches the gate controller and whether the processor can obtain the detection signal of the detection circuit, it can achieve accurate control of the gate to ensure that the gate controller can accurately judge the traffic status of pedestrians.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110890883B_ABST
    Figure CN110890883B_ABST
Patent Text Reader

Abstract

The present invention provides a conversion device and system for infrared photoelectric switch signals, and relates to the technical field of gate machines. The device includes: an input port, a detection circuit, a processor, a conversion circuit, an output port, and a communication port, wherein: the input port is connected to the infrared photoelectric switch; the processor is respectively connected to the input port and the output end of the conversion circuit through the detection circuit, and the detection circuit is used to detect the signals of the input port and the output end of the conversion circuit; the input end of the conversion circuit is connected to the input port, and the output end of the conversion circuit is also connected to the output port, and the conversion circuit is used to convert the received infrared photoelectric switch signal into a signal of a signal type matching the gate controller, and output the converted signal through the output port; the processor is connected to the gate controller through the communication port, and the gate controller is also connected to the output port. By applying the embodiments of the present invention, the passage status of pedestrians can be accurately determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of gate machines, and in particular to a conversion device and system for infrared photoelectric switch signals. Background Art

[0002] The gate is a channel blocking device used to manage the flow of people and regulate the entry and exit of pedestrians. It is mainly used in subway gate systems and toll collection systems. The sensors on the gate are generally infrared photoelectric switches. For high-end gates, more than 10 pairs of infrared photoelectric switches are usually used. The controller on the gate determines the pedestrian's passage status by processing the infrared photoelectric switch signal.

[0003] At present, the infrared switch in the gate can be connected to the processor, which detects the signal output by the infrared switch and informs the gate controller of the detected signal. The gate controller determines the pedestrian passage status based on the detected signal.

[0004] However, when the processor cannot detect a signal, or the signal detected by the processor does not match the signal type of the gate controller, the gate controller will not be able to accurately determine the pedestrian's passage status. Summary of the invention

[0005] The purpose of the present invention is to provide a device and system for converting infrared photoelectric switching signals to accurately determine the pedestrian's passing status in view of the above-mentioned deficiencies in the prior art.

[0006] To achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:

[0007] In a first aspect, an embodiment of the present invention provides a device for converting an infrared photoelectric switching signal, comprising: an input port, a detection circuit, a processor, a conversion circuit, an output port, and a communication port, wherein:

[0008] The input port is connected to the infrared photoelectric switch and is used to receive the signal output by the infrared photoelectric switch;

[0009] The processor is connected to the input port and the output end of the conversion circuit respectively through the detection circuit, and the detection circuit is used to detect the signals of the input port and the output end of the conversion circuit;

[0010] The input end of the conversion circuit is connected to the input port, and the output end of the conversion circuit is also connected to the output port. The conversion circuit is used to convert the received infrared photoelectric switch signal into a signal type matching the gate controller, and output the converted signal through the output port;

[0011] The processor is connected to the gate controller via the communication port, and the gate controller is also connected to the output port.

[0012] Further, the input port includes: an NPN input port and a PNP input port; the output port includes: an NPN output port and a PNP output port;

[0013] The conversion circuit comprises: a first conversion circuit, the NPN input port is connected to the PNP output port through the first conversion circuit;

[0014] The conversion circuit further includes: a second conversion circuit, and the PNP input port is connected to the NPN output port through the second conversion circuit.

[0015] Furthermore, the first conversion circuit includes: a PNP transistor, a first resistor, a second resistor and a third resistor, wherein:

[0016] The base of the PNP transistor is connected to one end of the second resistor, the other end of the second resistor is connected to the NPN input port and one end of the first resistor, the emitter of the PNP transistor is connected to the power supply end, the power supply end is connected to the other end of the first resistor, the collector of the PNP transistor is respectively connected to the PNP output port and one end of the third resistor, and the other end of the third resistor is grounded.

[0017] Further, the second conversion circuit includes: an NPN transistor, a first resistor, a fourth resistor, and a fifth resistor, wherein:

[0018] The base of the NPN transistor is respectively connected to one end of the fourth resistor and one end of the fifth resistor, the other end of the fourth resistor is connected to the PNP input port, the other end of the fifth resistor is respectively grounded to the emitter of the NPN transistor, the collector of the NPN transistor is respectively connected to one end of the first resistor and the NPN output port, and the other end of the first resistor is connected to the power supply terminal.

[0019] Furthermore, the detection circuit comprises:

[0020] A plurality of diodes are connected in parallel, wherein anodes of the plurality of diodes are connected to the processor, and cathodes of the plurality of diodes are respectively connected to an NPN input port, an NPN output port, and one end of a first resistor.

[0021] Furthermore, the power supply end and the infrared photoelectric switch share the same DC power supply.

[0022] Furthermore, the communication port uses a 485 communication method to transmit the status data detected by the processor to the gate controller.

[0023] Furthermore, the conversion device also includes: a dip switch, the processor is connected to the dip switch, and the dip switch is used to set the communication address of the processor.

[0024] In the second aspect, the present invention also provides a gate controller system, comprising: a gate controller, a gate, an infrared photoelectric switch and the conversion device of the first aspect; the gate controller is connected to the gate, the infrared photoelectric switch is connected to the input port in the conversion device, and the gate controller is also respectively connected to the communication port and the output port in the conversion device.

[0025] The beneficial effects of the present invention are:

[0026] An infrared photoelectric switch signal conversion device and system provided in an embodiment of the present invention can detect the signal input by the infrared photoelectric switch through a detection circuit connected to a processor, and transmit the detected signal to a gate controller through a communication port, so that the gate controller controls the gate to open and close the gate; it can also perform type conversion on the signal input by the infrared photoelectric switch through a conversion circuit to convert it into a signal of a matching signal type of the gate controller, so that the gate controller controls the gate to open and close the gate, thereby enabling the gate controller to control the gate to open and close the gate based on signals output by multiple channels. Regardless of whether the signal input by the infrared photoelectric switch matches the gate controller, and regardless of whether the processor can obtain the detection signal of the detection circuit, the gate can be controlled, so that the gate controller can accurately determine the passage status of pedestrians. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0028] Figure 1 A schematic diagram of the structure of a conversion device for infrared photoelectric switch signals provided by an embodiment of the present invention;

[0029] Figure 2 A schematic diagram of the structure of another infrared photoelectric switch signal conversion device provided by an embodiment of the present invention;

[0030] Figure 3A schematic diagram of the structure of a first conversion circuit and a detection circuit provided by an embodiment of the present invention;

[0031] Figure 4 A schematic diagram of the structure of a second conversion circuit and a detection circuit provided by an embodiment of the present invention;

[0032] Figure 5 A schematic diagram of the structure of a conversion circuit and a detection circuit provided by an embodiment of the present invention;

[0033] Figure 6 A schematic diagram of the structure of another infrared photoelectric switch signal conversion device provided by an embodiment of the present invention;

[0034] Figure 7 A schematic diagram of a structure of a processor detecting an infrared photoelectric switch signal provided by an embodiment of the present invention;

[0035] Figure 8 A schematic structural diagram of a gate control system provided in an embodiment of the present invention.

[0036] Icons: 100-infrared photoelectric switch; 200-conversion device; 101-input port; 102-detection circuit; 103-processor; 104-communication port; 202-conversion circuit; 203-output port; 300-gate controller; 400-gate; 110-NPN input port; 111-PNP input port; 220-first conversion circuit; 221-second conversion circuit; 230-NPN output port; 231-PNP output port; Q1-PNP transistor; R1-first resistor; R2-second resistor; R3-third resistor; R6-sixth resistor; D1-multiple diodes in parallel; C1-capacitor; HWN-detection port; VCC1-power supply terminal 1; VCC2-power supply terminal 2; GND-ground terminal; Q2-NPN transistor; R4-fourth resistor; R5-fifth resistor; 150-dip switch; 1-first pin; 2-second pin; 4-fourth pin; 5-fifth pin; 14-fourteenth pin; 8 to 13-eighth pin to thirteenth pin; 15 to 19-fifteenth pin to nineteenth pin; 20-twentieth pin; 21-twenty-first pin; 28-twenty-eighth pin; HW1-detection port 1; HW2 to HW7-detection port 2 to detection port 7; HW8 to HW12-detection port 8 to detection port 17. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0038] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0040] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0041] Figure 1 A schematic diagram of a conversion device for infrared photoelectric switch signals provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the conversion device 200 includes: an input port 101, a detection circuit 102, a processor 103, a conversion circuit 202, an output port 203 and a communication port 104, wherein:

[0042] The input port 101 is connected to the infrared photoelectric switch 100 and is used to receive the signal output by the infrared photoelectric switch 100;

[0043] The processor 103 is connected to the input port 101 and the output end of the conversion circuit 202 through the detection circuit 102, and the detection circuit 102 is used to detect the signals of the input port 101 and the output end of the conversion circuit 202;

[0044] The input end of the conversion circuit 202 is connected to the input port 101, and the output end of the conversion circuit 202 is also connected to the output port 203. The conversion circuit 202 is used to convert the received infrared photoelectric switch signal into a signal type matching the gate controller 300, and output the converted signal through the output port 203;

[0045] The processor 103 is connected to the gate controller 300 via the communication port 104 , and the gate controller 300 is also connected to the output port 203 .

[0046] Specifically, the infrared photoelectric switch 100 can input the infrared photoelectric switch signal output by it into the detection circuit 102 through the input port 101 of the conversion device 200, or input the infrared switch signal output by it into the conversion circuit 202, and the output end of the conversion circuit 202 can input the converted signal into the detection circuit 102. The processor 103 can detect the state of the infrared photoelectric switch signal through the output end of the detection circuit 102, and the processor 103 can transmit the state of the detected infrared photoelectric switch signal to the gate controller 300 through the communication port 104, and the gate controller 300 analyzes the state of the received infrared photoelectric switch signal and sends a control signal for closing or opening the gate.

[0047] The input end of the conversion circuit 202 is connected to the input port 101 of the conversion device 200, and the output end of the conversion circuit 202 is respectively connected to the output port 203 of the conversion device 200 and the detection circuit 102. The conversion circuit 202 can convert the infrared photoelectric switch signal connected to the input port 101 into a signal type that matches the input port of the gate controller 300, and transmit the converted signal to the gate controller 300 through the output port 203. The gate controller 300 analyzes the status of the received infrared photoelectric switch signal and sends a control signal for closing or opening the gate.

[0048] Using the above Figure 1 The infrared photoelectric opening signal conversion device shown can detect the signal input by the infrared photoelectric switch through the detection circuit connected to the processor, and transmit the detected signal to the gate controller through the communication port, so that the gate controller can control the opening and closing of the gate; it can also perform type conversion on the signal input by the infrared photoelectric switch through the conversion circuit to convert it into a signal of a matching signal type of the gate controller, so that the gate controller can control the opening and closing of the gate, thereby enabling the gate controller to control the opening and closing of the gate based on the signals output by multiple channels.

[0049] Figure 2 A schematic diagram of another infrared photoelectric switch signal conversion device provided by an embodiment of the present invention is shown in FIG. Figure 2As shown, the input port 101 includes: an NPN input port 110 and a PNP input port 111 ; the output port 203 includes: an NPN output port 230 and a PNP output port 231 .

[0050] The conversion circuit 202 includes: a first conversion circuit 220 ; the NPN input port 110 is connected to the PNP output port 231 through the first conversion circuit 220 .

[0051] Furthermore, the conversion circuit 202 further includes: a second conversion circuit 221 ; the PNP input port 111 is connected to the NPN output port 230 via the second conversion circuit 221 .

[0052] Specifically, the infrared photoelectric switch generally outputs two types of signals, namely NPN and PNP. When the gate controller needs a PNP infrared photoelectric switch signal, the NPN infrared photoelectric switch signal can be first connected to the NPN input port 110, and then converted into a PNP infrared photoelectric switch signal through the first conversion circuit 220, and then the PNP infrared photoelectric switch signal is output from the PNP output port 231; when the gate controller needs an NPN infrared photoelectric switch signal, the PNP infrared photoelectric switch signal can be first connected to the PNP input port 111, and then converted into an NPN infrared photoelectric switch signal through the second conversion circuit 221, and then the NPN infrared photoelectric switch signal is output from the NPN output port 230. Through the conversion circuit 202, the NPN type infrared photoelectric switch signal can be converted into a PNP type infrared photoelectric switch signal, and the PNP type infrared photoelectric switch signal can also be converted into an NPN type infrared photoelectric switch signal. Therefore, no matter which type of infrared photoelectric switch signal the gate controller 300 matches, it can be connected through the output port 203 so that the gate can work normally.

[0053] Figure 3 A schematic diagram of the structure of a first conversion circuit and a detection circuit provided in an embodiment of the present invention includes a PNP transistor Q1, a first resistor R1, a second resistor R2, a third resistor R3, and a plurality of diodes D1 connected in parallel, a sixth resistor R6, a capacitor C1, a detection port HWN, and a ground terminal GND, wherein:

[0054] The base of the PNP transistor Q1 is connected to one end of the second resistor R2, the other end of the second resistor R2 is connected to the NPN input port 110 and one end of the first resistor R1, the emitter of the PNP transistor Q1 is connected to the power supply terminal VCC1, the power supply terminal 1VCC1 is connected to the other end of the first resistor R1, the collector of the PNP transistor is respectively connected to the PNP output port 231 and one end of the third resistor R3, the other end of the third resistor R3 is grounded, the positive electrodes of the multiple diodes D1 are respectively connected to the detection port HWN of the processor, one end of the capacitor C1, and one end of the sixth resistor R6, the other end of the sixth resistor R6 is connected to the power supply terminal 2VCC2, the other end of the capacitor C1 is grounded, and the negative electrodes of the multiple diodes D1 are respectively connected to the NPN input port 110 and one end of the first resistor R1.

[0055] The power supply terminal 1VCC1 can be 12V or 24V, which is not limited here. The power supply terminal 2VCC2 can be 5V, which is used as the working power supply of the processor. This is not limited here either, as long as the voltage provided by the power supply terminal 2VCC2 is less than the voltage provided by the power supply terminal 1VCC1. Assuming that the power supply terminal 1VCC1 is 12V and the power supply terminal 2VCC2 is 5V, for example, when the infrared photoelectric switch type is normally open and no pedestrians pass through, at this time, the infrared photoelectric switch signal is in a high impedance state, the NPN input port 110 is suspended, the PNP transistor Q1 is not conducting, and the PNP output port 231 outputs a low level. The gate controller can determine that there is no one at the infrared photoelectric switch at this time based on the received signal state. Since the first resistor R1 is a pull-up resistor, the voltage at the right end of the multiple parallel diodes D1 is 12V, and the sixth resistor R6 is also a pull-up resistor, so that the voltage at the left end of the multiple diodes D1 is 5V, then the multiple diodes D 1 is not conducting, the detection port HWN detects a high level, and the gate controller can also judge that there is no one at the infrared photoelectric switch at this time according to the signal state; when the infrared photoelectric switch type is normally open and a pedestrian passes by, at this time, the infrared photoelectric switch signal is low, the NPN input port 110 inputs a low level, and a current flows through the base of the PNP transistor Q1, the PNP transistor Q1 is turned on, and the PNP output port 231 outputs a high level. The gate controller can judge that there is someone at the infrared photoelectric switch at this time according to the received signal state. Since the first resistor R1 is a current limiting resistor at this time, the voltage at the right end of the multiple parallel diodes D1 is close to 0V, and the sixth resistor R6 is a pull-up resistor, so that the voltage at the left end of the multiple diodes D1 is 5V, then the multiple diodes D1 are forward-conducted at this time, and the detection port HWN detects a low level. The gate controller can also judge that there is someone at the infrared photoelectric switch at this time according to the received signal state.

[0056] Figure 4A schematic diagram of the structure of a second conversion circuit and a detection circuit provided in an embodiment of the present invention includes an NPN transistor Q2, a first resistor R1, a fourth resistor R4, a fifth resistor R5, and a plurality of diodes D1 connected in parallel, a sixth resistor R6, a capacitor C1, a detection port HWN, and a ground terminal GND, wherein:

[0057] The base of the NPN transistor Q2 is respectively connected to one end of the fourth resistor R4 and one end of the fifth resistor R5, the other end of the fourth resistor R4 is connected to the PNP input port 111, the other end of the fifth resistor R5 is respectively connected to the emitter of the NPN transistor Q2 and grounded, the collector of the NPN transistor Q2 is respectively connected to the first resistor R1 and the NPN output port 230, the cathodes of the multiple diodes D1 are respectively connected to the NPN output port 230 and one end of the first resistor R1, and the connection relationship of other identical components is the same as Figure 3 The connection relationship is the same as in the previous section, so I will not go into details here.

[0058] The power supply terminal 1VCC1 can be 12V or 24V, which is not limited here. The power supply terminal 2VCC2 can be 5V, which is used as the working power supply of the processor. This is not limited here either, as long as the voltage provided by the power supply terminal 2VCC2 is less than the voltage provided by the power supply terminal 1VCC1. Assuming that the power supply terminal 1VCC1 is 12V and the power supply terminal 2VCC2 is 5V, for example, when the infrared photoelectric switch type is normally open and no pedestrians pass through, at this time, the infrared photoelectric switch signal is in a high impedance state, the PNP input port 111 is suspended, the NPN transistor Q2 is not conducting, and the NPN output port 230 outputs a high level. The gate controller can determine that there is no one at the infrared photoelectric switch at this time based on the received signal state. Since the first resistor R1 is a pull-up resistor, the voltage at the right end of the multiple parallel diodes D1 is 12V, and the sixth resistor R6 is also a pull-up resistor, so that the voltage at the left end of the multiple diodes D1 is 5V, then the multiple diodes D1 are not conducting at this time. When the infrared photoelectric switch is normally open, the detection port HWN detects a high level, and the gate controller can also judge that there is no one at the infrared photoelectric switch at this time according to the received signal state; when the infrared photoelectric switch type is normally open and a pedestrian passes through, at this time, the infrared photoelectric switch signal is high, the PNP input port 111 inputs a high level, and a current flows through the base of the NPN transistor Q2. At this time, the NPN transistor Q2 is turned on, and the NPN output port 230 outputs a low level. The gate controller can judge that there is someone at the infrared photoelectric switch at this time according to the received signal state. Since the first resistor R1 is a current limiting resistor at this time, the voltage at the right end of the multiple parallel diodes D1 is close to 0V, and the sixth resistor R6 is a pull-up resistor, so that the voltage at the left end of the multiple diodes D1 is 5V, then the multiple diodes D1 are forward-conducted at this time, and the detection port HWN detects a low level. The gate controller can also judge that there is someone at the infrared photoelectric switch at this time according to the received signal state.

[0059] Furthermore, in one embodiment, the power supply terminal 1VCC1 can also provide power supply to the infrared photoelectric switch.

[0060] Figure 5 A schematic diagram of a conversion circuit and a detection circuit provided by an embodiment of the present invention. The device names and connection relationships in the circuit diagram are similar to those in FIG. Figure 3 as well as Figure 4 The same as in the above, it is just a general circuit diagram that combines the first conversion circuit with the second conversion circuit, which will not be repeated here.

[0061] In the above conversion device, further, a DIP switch 150 is included, such as Figure 6 , which is a structural schematic diagram of another infrared photoelectric switch signal conversion device provided by an embodiment of the present invention;

[0062] Specifically, for example, when the output signal of the infrared photoelectric switch is of NPN type, the infrared photoelectric switch can input the NPN type signal output by it into the detection circuit 102 through the input port 101 of the conversion device; when the output signal of the infrared photoelectric switch is of PNP type, the infrared photoelectric switch can first input the PNP type signal output by it into the second conversion circuit 221 through the input port 101 of the conversion device, and the second conversion circuit 221 then inputs the converted signal into the detection circuit 102; the processor 103 can detect the status of various infrared photoelectric switch signals through the output end of the detection circuit 102; the infrared photoelectric switch signal status detected by the processor 103 is transmitted to the gate controller 300 through the communication port 104; the dip switch 150 is connected to the processor 103, and the communication address of the processor 103 can be set; the gate controller 300 analyzes the status of the received infrared photoelectric switch signal and sends a control signal for closing or opening the gate. The combination of the communication port 104 and the DIP switch 150 transmits the infrared photoelectric switch signal to the gate controller 300 by means of communication, so that the gate controller 300 can more accurately determine the passing status of pedestrians.

[0063] For example, when a type of port of the gate controller 300 that receives infrared photoelectric switch signals is damaged, it can be converted to a communication method to transmit signals to the gate controller 300 to determine the pedestrian's passage status. Moreover, when the number of infrared photoelectric switches installed on the gate exceeds the number of ports on the gate controller 300, for example, when 20 infrared photoelectric switches are installed on the gate and the gate controller 300 has only 12 ports for receiving infrared photoelectric switch signals, the infrared photoelectric switch signal can also be transmitted to the gate controller 300 by 485 communication. When the number of detection ports on a processor is less than 20, another processor can be connected, and the communication address of the corresponding processor can be set by the dip switch 150. Finally, the infrared photoelectric switch signal is transmitted to the gate controller 300 through the communication port 104. The gate controller 300 analyzes the status of the received infrared photoelectric switch signal and sends a control signal for closing or opening the gate, thereby avoiding the inability to accurately judge the pedestrian's passage status due to the above situation.

[0064] Figure 7 A schematic diagram of a processor detecting an infrared photoelectric switch signal provided by an embodiment of the present invention. Figure 7 The processor may be a STC12C5201AD chip.

[0065] Specifically, when the processor is an STC12C5201AD chip, the first pin 1, the eighth pin 8 to the thirteenth pin 13, and the fifteenth pin 15 to the nineteenth pin 19 can be connected to the corresponding detection port 1HW1, detection port 2HW2 to detection port 7HW7, and detection port 8HW8 to detection port 12HW12 respectively, the second pin 2, the fourth pin 4 and the fifth pin 5 are 485 communication function pins, the twentieth pin 20 and the twenty-first pin 21 are connected to the dip switch, the twenty-eighth pin 28 is connected to the power supply of the chip, the fourteenth pin 14 is grounded, and the functions of other pins can refer to the corresponding chip manual, which will not be repeated in this application.

[0066] By adopting the above-mentioned conversion device provided in the embodiment of the present invention, the signal input by the infrared photoelectric switch can be detected through the detection circuit connected to the processor, and the detected signal can be transmitted to the gate controller, so that the gate controller can control the opening and closing of the gate; the signal input by the infrared photoelectric switch can also be converted into a signal of a matching signal type of the gate controller through the conversion circuit, so that the gate controller can control the opening and closing of the gate, so that the gate controller can control the opening and closing of the gate based on the signals output by multiple channels. Regardless of whether the signal input by the infrared photoelectric switch matches the gate controller, and regardless of whether the processor can obtain the detection signal of the detection circuit, the gate controller can control the gate, so that the gate controller can accurately judge the passage status of pedestrians.

[0067] Figure 8 The schematic diagram of the structure of a gate control system provided by an embodiment of the present invention includes a gate controller 300, a gate 400, an infrared photoelectric switch 100 and a conversion device 200; the gate controller 300 is connected to the gate 400, the infrared photoelectric switch 100 is connected to the input port in the conversion device 200, and the gate controller 300 is also connected to the communication port and the output port in the conversion device 200 respectively.

[0068] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A device for converting infrared photoelectric switch signals, characterized in that: include: An input port, a detection circuit, a processor, a conversion circuit, an output port, and a communication port, wherein: The input port is connected to the infrared photoelectric switch and is used to receive the signal output by the infrared photoelectric switch; The processor is connected to the input port and the output end of the conversion circuit respectively through the detection circuit, and the detection circuit is used to detect the signals of the input port and the output end of the conversion circuit; The input end of the conversion circuit is connected to the input port, and the output end of the conversion circuit is also connected to the output port. The conversion circuit is used to convert the received infrared photoelectric switch signal into a signal type matching the gate controller, and output the converted signal through the output port; The processor is connected to the gate controller via the communication port, and the gate controller is also connected to the output port.

2. The conversion device according to claim 1, characterized in that The input port includes: an NPN input port and a PNP input port; the output port includes: an NPN output port and a PNP output port; The conversion circuit comprises: a first conversion circuit, the NPN input port is connected to the PNP output port through the first conversion circuit; The conversion circuit further includes: a second conversion circuit, and the PNP input port is connected to the NPN output port through the first conversion circuit.

3. The conversion device according to claim 2, characterized in that The first conversion circuit includes: a PNP transistor, a first resistor, a second resistor and a third resistor, wherein: The base of the PNP transistor is connected to one end of the second resistor, the other end of the second resistor is connected to the NPN input port and one end of the first resistor, the emitter of the PNP transistor is connected to the power supply end, the power supply end is connected to the other end of the first resistor, the collector of the PNP transistor is respectively connected to the PNP output port and one end of the third resistor, and the other end of the third resistor is grounded.

4. The conversion device according to claim 2, characterized in that: The second conversion circuit includes: an NPN transistor, a first resistor, a fourth resistor, and a fifth resistor, wherein: The base of the NPN transistor is respectively connected to one end of the fourth resistor and one end of the fifth resistor, the other end of the fourth resistor is connected to the PNP input port, the other end of the fifth resistor is respectively grounded to the emitter of the NPN transistor, the collector of the NPN transistor is respectively connected to one end of the first resistor and the NPN output port, and the other end of the first resistor is connected to the power supply terminal.

5. The conversion device according to claim 1, characterized in that: The detection circuit comprises: A plurality of diodes are connected in parallel, wherein anodes of the plurality of diodes are connected to the processor, and cathodes of the plurality of diodes are respectively connected to an NPN input port, an NPN output port, and one end of a first resistor.

6. The conversion device according to claim 3 or 4, characterized in that: The power supply end and the infrared photoelectric switch share the same direct current power supply.

7. The conversion device according to claim 1, characterized in that The communication port uses 485 communication mode to transmit the status data detected by the processor to the gate controller.

8. The conversion device according to claim 1, characterized in that The conversion device further comprises: a dip switch, the processor is connected to the dip switch, and the dip switch is used to set the communication address of the processor.

9. A gate control system, characterized in that: include: A gate controller, a gate, an infrared photoelectric switch and a conversion device according to any one of claims 1 to 8; The gate controller is connected to the gate, the infrared photoelectric switch is connected to the input port in the conversion device, and the gate controller is also connected to the communication port and the output port in the conversion device respectively.