CN211406001U - Interface circuit compatible with PNP and NPN sensing signals - Google Patents

Interface circuit compatible with PNP and NPN sensing signals Download PDF

Info

Publication number
CN211406001U
CN211406001U CN201922488359.9U CN201922488359U CN211406001U CN 211406001 U CN211406001 U CN 211406001U CN 201922488359 U CN201922488359 U CN 201922488359U CN 211406001 U CN211406001 U CN 211406001U
Authority
CN
China
Prior art keywords
sqp2
resistor
pin
voltage comparator
pnp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201922488359.9U
Other languages
Chinese (zh)
Inventor
苏家强
周保红
薛显云
孔庆刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing meiteya Electronic Technology Co.,Ltd.
Original Assignee
Chongqing Metasia Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Metasia Intelligent Technology Co ltd filed Critical Chongqing Metasia Intelligent Technology Co ltd
Priority to CN201922488359.9U priority Critical patent/CN211406001U/en
Application granted granted Critical
Publication of CN211406001U publication Critical patent/CN211406001U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electronic Switches (AREA)

Abstract

The utility model discloses an interface circuit compatible with PNP and NPN sensing signals, which comprises a sensing signal input end and two signal output ends used for connecting a singlechip, wherein a voltage comparator is connected between the signal input end and the signal output ends, and the 1 st pin of the voltage comparator is connected with one of the signal output ends through a resistor; the signal input end and the other signal output end are also connected with a voltage comparator, and the 7 th pin of the voltage comparator is connected with the other signal output end through a resistor. The utility model discloses it can automatic identification PNP and NPN sensing signal, does not restrict the customer and uses and is which wherein, has reduced the degree of difficulty of design and installation.

Description

Interface circuit compatible with PNP and NPN sensing signals
Technical Field
The utility model relates to a sensor interface circuit specifically is a compatible PNP and NPN sensing signal's interface circuit.
Background
PNP and NPN type sensors output two states of high level and low level by utilizing saturation and cut-off of a triode, and belong to switch type sensors. When the PNP type sensor is used, when a signal is triggered, the output line of the PNP type sensor is connected with the power line, which is equivalent to output high level; when the NPN sensor is used, when a signal is triggered, the output line of the NPN sensor is connected with the 0v line, which is equivalent to output low level. The sensor is widely applied to a singlechip control system, so that a customer is required to be confirmed to be an NPN sensor or a PNP sensor before a PCB design circuit, and the customer is not clear in many times in real life, thereby causing troubles to circuit design; or the types of the sensors provided by customers during installation and use are not matched, so that the installation is not possible.
SUMMERY OF THE UTILITY MODEL
The utility model provides a compatible PNP and NPN sensing signal's interface circuit, it can automatic identification PNP and NPN sensing signal, does not restrict the sensor type, has reduced the installation operation requirement.
In order to solve the technical problem, the utility model discloses a technical scheme does:
an interface circuit compatible with PNP and NPN sensing signals comprises a sensing signal input end SQP2_ SIG and two signal output ends SQP2_ PNP and SQP2_ NPN which are used for being connected with a single chip microcomputer;
a first voltage comparator U5A with the model number LM393DT is connected between the signal input end SQP2_ SIG and the signal output end SQP2_ PNP, the 2 nd pin of the first voltage comparator U5A is grounded through a first capacitor C30 and a first resistor R52 respectively, the other end of the first capacitor C30 is connected with the signal input end SQP2_ SIG through a second resistor R47, the 3 rd pin of the first voltage comparator U5A is grounded through a third resistor R55, connected with the power supply end DVCC _5V through a fourth resistor R59 and connected with the 1 st pin through a fifth resistor R64, the 8 th pin of the first voltage comparator U5A is connected with the power supply end DVCC _5V and the 4 th pin DGND; the 1 st pin of the first voltage comparator U5A is connected to the power supply terminal DVCC _3V3 through a sixth resistor R68 and to the signal output terminal SQP2_ PNP through a seventh resistor R71, and the signal output terminal SQP2_ PNP is further connected to the ground terminal DGND through a fifth capacitor C35;
the signal input terminal SQP2_ SIG and the signal output terminal SQP2_ NPN are also connected to a second voltage comparator U5B having a model LM393DT, a pin 6 of the second voltage comparator U5B is connected to an anode of a diode D13 through an eighth resistor R53 in sequence, a cathode of the diode D13 is connected to the signal input terminal SQP2_ SIG, an anode of the diode D13 is further connected to a power supply terminal DVCC _5V through a second capacitor C32 ground terminal DGND and through a ninth resistor R49, a pin 5 of the second voltage comparator U5B is connected to a pin 7 thereof through a tenth resistor R61 ground terminal DGND and through an eleventh resistor R60V, a pin 5 of the second voltage comparator U5B is connected to a pin 7 thereof through a twelfth resistor R65, a pin 7 of the second voltage comparator U5B is connected to the power supply terminal dgcc _3V through a thirteenth resistor R69 and the fourteenth resistor 5857323 is connected to the signal output terminal SQP 573 24, the signal output terminal SQP2_ NPN is further connected to the ground terminal DGND through a third capacitor C36.
Furthermore, after the second resistor R47 is connected to the negative electrode of the diode D13, and an inductor L2 is connected between the sensing signal input terminal SQP2_ SIG, the sensing signal input terminal SQP2_ SIG is further grounded to the DGND via a fourth capacitor C28.
Compared with the prior art, the beneficial effects of the utility model are that: no matter whether the signal input end is connected with the PNP type sensor or the NPN type sensor, the single chip microcomputer can automatically recognize and correctly receive the sensing signal, the use of a customer is not limited, and the difficulty of design and installation is reduced.
Drawings
Fig. 1 is a circuit structure diagram of the present invention.
Detailed Description
The following describes the present invention with reference to the accompanying drawings. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto. In addition, the technical features related to the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The scheme provides an interface circuit compatible with PNP and NPN sensing signals, which comprises a sensing signal input end SQP2_ SIG and two signal output ends SQP2_ PNP and SQP2_ NPN which are used for connecting a single chip microcomputer.
As shown in fig. 1, a voltage comparator U5A of LM393DT is connected between the signal input terminal SQP2 SIG and the signal output terminal SQP2 PNP, the 2 nd pin of the voltage comparator U5A is grounded to DGND through a capacitor C30 and a resistor R52, the other end of the capacitor C30 is connected to the signal input terminal SQP2 SIG through a resistor R47, the 3 rd pin of the voltage comparator U5A is connected to DGND through a resistor R55, to DVCC _5V through a resistor R59 and to the 1 st pin thereof through a resistor R64, DVCC _5V is a terminal for 5V dc voltage, the 8 th pin of the voltage comparator U5A is connected to DVCC 5V, the 4 th pin of the voltage comparator U5 DGND, the 1 st pin of the voltage comparator U5A is connected to DVCC _5V through a resistor R68 and the signal output terminal SQP2 PNP 3V is connected to the signal output terminal SQP 463V 24V through a resistor R463V and dvp 585733V is connected to the terminal of dvp 3V, the signal output terminal SQP2_ PNP is also connected to the ground terminal DGND through the fifth capacitor C35.
The signal input terminal SQP2_ SIG and the signal output terminal SQP2_ NPN are also connected to a voltage comparator U5B with a model LM393DT, the 6 th pin of the voltage comparator U5B is connected to the positive terminal of a diode D13 through a resistor R53, the cathode of the diode D13 is connected to the signal input terminal SQP2_ SIG, the anode of the diode D13 is further connected to the power supply terminal DVCC _5V through a capacitor C32 ground terminal DGND and a resistor R49, the 5 th pin of the voltage comparator U5B is connected to the power supply terminal DVCC _5V through a resistor R61 ground terminal DGND and a resistor R60, the 5 th pin of the voltage comparator U5B is connected to the 7 th pin thereof through a resistor R65, the 7 th pin of the voltage comparator U5B is connected to the power supply terminal DVCC _3V3 through a resistor R69 and to the signal output terminal SQP2_ NPN through a resistor R73, and the signal output terminal SQP2_ NPN is further connected to the power supply terminal DGND through a capacitor R36.
The voltage comparators U5A and U5B can be respectively made of one piece, and for cost saving, one piece of U5 can be used in a manner of grouping into U5A and U5B. The No. 2 pin of the reverse input end of the voltage comparator U5 is grounded through a resistor R52 and is pulled low by default, and the R47, the R52 and the C30 form a voltage division filter circuit, so that an input signal can meet the input range of the voltage comparator and the stability of the signal; the 3 rd pin of the voltage comparator U5 is divided by resistors R59 and R55 to obtain a proper voltage comparison value; the 1 st pin is connected with a feedback resistor R64 to form a hysteresis comparator, so that the jitter of the output level when the comparison voltage of the positive and negative input ends approaches is eliminated; the 8 th pin of the voltage comparator U5 is connected with the power supply terminal DVCC _5V, and the 4 th pin of the voltage comparator U5 is connected with the ground terminal DGND; the 1 st pin of the voltage comparator U5 is connected with a power supply terminal DVCC _3V3 through a resistor R68 and is filtered through a resistor R71 and a fifth capacitor C35; and finally, the signal output end SQP2_ PNP is sent to the single chip microcomputer to collect IO.
When a PNP sensor is connected from the signal input end SQP2_ SIG, the output signal is in a high impedance state when the sensor does not act, the same-direction input end and the reverse-direction input end of the voltage comparator U5 keep the default level unchanged, the 1 st pin outputs a high level, and the 7 th pin outputs a low level. When the sensor acts, the signal input end SQP2_ SIG is in a high level state, a high level signal is cut off by the diode D13, the output of the 7 th pin of the voltage comparator U5B is still at a low level, the voltage of the reverse input end of the voltage comparator U5A is higher than that of the same-direction input end, the 1 st pin of the voltage comparator U5A outputs a low level signal, the high and low levels of the SQP2_ PNP point are changed, the pin of the single chip corresponding to the signal output end SQP2_ PNP is effective, and the single chip is identified as PNP type sensor access.
When an NPN-type sensor is connected from the signal input terminal SQP2_ SIG, the output signal is in a high impedance state when the sensor is inactive, the inverting and non-inverting input terminals of the voltage comparator U5 are both kept at a default level, the 1 st pin outputs a high level, and the 7 th pin outputs a low level. When the sensor acts, the signal input end SQP2_ SIG is in a low level state, the 2 nd pin of the voltage comparator U5A inputs a low level, and the 1 st pin still outputs a high level; after the voltage comparator U5B inputs a low level, the diode D13 is turned on, the voltage of the 6 th pin of the reverse input end of the voltage comparator U5B is pulled low, and the voltage of the reverse input end is lower than that of the same-direction input end, so that the 7 th pin of the voltage comparator U5B outputs a high level signal, the high and low levels of the SQP2_ NPN point change, the pin of the corresponding signal output end SQP2_ NPN of the single chip microcomputer is effective, and the single chip microcomputer recognizes that the PNP type sensor is connected.
Therefore, no matter the signal input end SQP2_ SIG is connected with the PNP type sensor or the NPN type sensor, the single chip microcomputer can automatically recognize and correctly receive the sensing signal, the use of a customer is not limited, and the difficulty of design and installation is reduced.
In order to ensure the stability of the sensing signal and reduce the impact on the interface circuit, an inductor L2 is connected between the resistor R47 and the cathode of the diode D13 after the resistor R47 is connected with the cathode of the sensing signal input end SQP2_ SIG, and then the filtering function is achieved; the sensing signal input terminal SQP2_ SIG also has a voltage stabilizing function through a capacitor C28 to ground terminal DGND.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. It will be apparent to those skilled in the art that various changes, modifications, substitutions and alterations can be made in the embodiments without departing from the principles and spirit of the invention, and the scope of the invention is to be accorded the full scope of the claims.

Claims (2)

1. An interface circuit compatible with PNP and NPN sensing signals, characterized by: the system comprises a sensing signal input end SQP2_ SIG, and two signal output ends SQP2_ PNP and SQP2_ NPN which are used for being connected with a single chip microcomputer;
a first voltage comparator U5A with the model number LM393DT is connected between the signal input end SQP2_ SIG and the signal output end SQP2_ PNP, the 2 nd pin of the first voltage comparator U5A is grounded to a DGND through a first capacitor C30 and a first resistor R52, the other end of the first capacitor C30 is grounded to the signal input end SQP2_ SIG through a second resistor R47, the 3 rd pin of the first voltage comparator U5A is grounded to a DGND through a third resistor R55, is grounded to a power supply end DVCC of 5V through a fourth resistor R59 and is connected to the 1 st pin through a fifth resistor R64, the 8 th pin of the first voltage comparator U5A is grounded to the power supply end DVCC of 5V and the DGND of the 4 th pin; the 1 st pin of the first voltage comparator U5A is connected to the 3V power supply terminal DVCC _3 through a sixth resistor R68 and to the signal output terminal SQP2_ PNP through a seventh resistor R71, and the signal output terminal SQP2_ PNP is further connected to the ground terminal DGND through a fifth capacitor C35;
the signal input terminal SQP2_ SIG and the signal output terminal SQP2_ NPN are also connected to a second voltage comparator U5B of model LM393DT, the 6 th pin of the second voltage comparator U5B is connected to the positive electrode of a diode D13 through an eighth resistor R53, the cathode of the diode D13 is connected to the signal input terminal SQP2_ SIG, the anode of the diode D13 is further connected to the ground terminal DGND through a second capacitor C32 and to the power supply terminal DVCC of 5V through a ninth resistor R49, the 5 th pin of the second voltage comparator U5B is connected to the ground terminal DGND through a tenth resistor R61 and to the power supply terminal DVCC of 5V through an eleventh resistor R60, the 5 th pin of the second voltage comparator U5B is connected to the 7 th pin thereof through a twelfth resistor R65, the 7 th pin of the second voltage comparator U5B is connected to the power supply terminal DVCC _3 of 3V through a thirteenth resistor R69 and to the signal output terminal SQP2_ NPN through a fourteenth resistor R73, and the signal output terminal SQP2_ NPN is further connected to the ground terminal DGND through a third capacitor C36.
2. The interface circuit compatible with PNP and NPN sense signals according to claim 1, wherein: after the second resistor R47 is connected to the negative electrode of the diode D13, and an inductor L2 is connected between the sensing signal input terminal SQP2_ SIG, the sensing signal input terminal SQP2_ SIG is further grounded to the DGND through a fourth capacitor C28.
CN201922488359.9U 2019-12-31 2019-12-31 Interface circuit compatible with PNP and NPN sensing signals Active CN211406001U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201922488359.9U CN211406001U (en) 2019-12-31 2019-12-31 Interface circuit compatible with PNP and NPN sensing signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201922488359.9U CN211406001U (en) 2019-12-31 2019-12-31 Interface circuit compatible with PNP and NPN sensing signals

Publications (1)

Publication Number Publication Date
CN211406001U true CN211406001U (en) 2020-09-01

Family

ID=72209030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201922488359.9U Active CN211406001U (en) 2019-12-31 2019-12-31 Interface circuit compatible with PNP and NPN sensing signals

Country Status (1)

Country Link
CN (1) CN211406001U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115911915A (en) * 2021-08-16 2023-04-04 科瑞工业自动化系统(苏州)有限公司 NPN and PNP crossover sub

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115911915A (en) * 2021-08-16 2023-04-04 科瑞工业自动化系统(苏州)有限公司 NPN and PNP crossover sub

Similar Documents

Publication Publication Date Title
CN211406001U (en) Interface circuit compatible with PNP and NPN sensing signals
CN202975135U (en) Zero-cross detection circuit with low standby power consumption
CN111458654A (en) Input signal diagnosis circuit
CN106804073B (en) A kind of automatic adjustment server indicator lamp brightness device
CN103929171A (en) PNP and NPN load conversion circuit
CN204928079U (en) Current foldback circuit , power factor correction circuit and transducer air conditioning
CN110596450B (en) Analog signal acquisition channel circuit
CN204731991U (en) Intelligent traffic signal failure detector circuit
CN106033242B (en) External power supply power supply unit and applied to its system connect detecting unit
CN207650383U (en) A kind of transformer disconnection detection circuit of breaker
CN205215102U (en) Automatic give soap dispenser
CN211123726U (en) Analog input acquisition circuit
CN208707663U (en) A kind of low-power consumption CAN communication circuit
CN210693432U (en) Compact and practical under-voltage protection circuit capable of automatically recovering
CN208061191U (en) A kind of emergent warning system of computer intelligence
CN207689874U (en) Microcontroller automatic shutdown circuitry
CN207377842U (en) Automobile Fan speed governing interface circuit
CN208299535U (en) A kind of automatic switch-over circuit of dual power supply input
CN217789657U (en) Level conversion circuit for cradle head
CN211087206U (en) Hardware watchdog circuit based on monostable circuit
CN206556194U (en) A kind of air detection instrument with Xingfeng capsule
CN211123017U (en) Power failure detection circuit and power failure alarm circuit
CN215956034U (en) CAN communication interface topology circuit
CN204832915U (en) Power module based on PLC system
CN214674318U (en) Vehicle-mounted power supply overcurrent protection restarting circuit

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210917

Address after: 400000 01 1-501, phase I, standard plant, No. 98, Xiyuan Second Road, Xiyong street, high tech Zone, Shapingba District, Chongqing

Patentee after: Chongqing meiteya Electronic Technology Co.,Ltd.

Address before: 400025 8-2-114, comprehensive building of Cuntan bonded port area management committee, Lianglu, Yubei District, Chongqing

Patentee before: CHONGQING METASIA INTELLIGENT TECHNOLOGY Co.,Ltd.