CN206523760U - The general detection circuit of digital quantity input signal - Google Patents
The general detection circuit of digital quantity input signal Download PDFInfo
- Publication number
- CN206523760U CN206523760U CN201720168114.6U CN201720168114U CN206523760U CN 206523760 U CN206523760 U CN 206523760U CN 201720168114 U CN201720168114 U CN 201720168114U CN 206523760 U CN206523760 U CN 206523760U
- Authority
- CN
- China
- Prior art keywords
- optocoupler
- resistance
- digital quantity
- signal
- input
- 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
Links
Landscapes
- Electronic Switches (AREA)
Abstract
The utility model provides a kind of general detection circuit of digital quantity input signal, including:Including resistance R1, R2, R3, R4, optocoupler U1, light emitting diode D1;Optocoupler U1 first input end connecting resistance R1 one end and resistance R2 one end, resistance R1 another termination digital quantity signal input IN_A;Optocoupler U1 the second input terminating resistor R2 other end and resistance R3 one end, resistance R3 another termination digital quantity signal input IN_B;Optocoupler U1 GPIO mouthfuls of output end colelctor electrode order piece machine testing, and sending and receiving optical diode D1 negative electrode;The output end signal of the general detection circuit of optocoupler U1 output end current collection extremely digital quantity input signal;Light emitting diode D1 anode connecting resistance R4 one end, the resistance R4 other end meets microcontroller power supply VCC;Optocoupler U1 output end grounded emitter;The problem of NPN and positive-negative-positive digital quantity signal detect incompatible in practical application can be solved.
Description
Technical field
The utility model is related to a kind of detection circuit, especially a kind of detection circuit of digital quantity input signal.
Background technology
In traditional digital quantity signal input detection, it will usually according to different sensors come using different matching detections
Circuit, mainly there is NPN type and positive-negative-positive detection circuit.
NPN type and positive-negative-positive are a kind of forms of the active inputs of PLC or output circuit.Doing this differentiation purpose is and different
Sensor circuit is matched.In transistor circuit, NPN circuits are traditionally as a reference point with low potential, are output as high level.
Using power supply 0 as common point between multiple signals, signal is expressed with positive level.PNP circuits are traditionally to be used as ginseng using high potential
Examination point, is output as low level.Using power supply 0 as common point between multiple signals, signal is expressed with negative level.
The PLC input of NPN type and positive-negative-positive and such case matching.If setting signal common port is 0 level,:
NPN inputs receive positive level signal;PNP inputs receive negative level signal.
In actual applications, market typically only has single NPN type input detection or individually positive-negative-positive input detection mould
Block, so when in use, it is necessary to different detection modules are selected for different sensors.Therefore, this method is in reality
Seem inconvenient, dumb in, also have significant limitation when in use, increase input cost.
The content of the invention
The purpose of this utility model is to overcome the deficiencies in the prior art logical there is provided a kind of digital quantity input signal
With detection circuit, can compatible NPN type and positive-negative-positive digital quantity signal detection, solve NPN and positive-negative-positive numeral in practical application
The problem of signal detection is incompatible is measured, it is very convenient, flexible in actual use.The technical solution adopted in the utility model is:
A kind of general detection circuit of digital quantity input signal, including:Including resistance R1, R2, R3, R4, optocoupler U1, luminous two
Pole pipe D1;The optocoupler U1 inputs optocoupler using bipolarity;
Optocoupler U1 first input end connecting resistance R1 one end and resistance R2 one end, resistance R1 another termination digital quantity
Signal input part IN_A;Optocoupler U1 the second input terminating resistor R2 other end and resistance R3 one end, resistance R3's is another
Terminate digital quantity signal input IN_B;Optocoupler U1 GPIO mouthfuls of output end colelctor electrode order piece machine testing, and sending and receiving light two
Pole pipe D1 negative electrode;The output end signal of the general detection circuit of optocoupler U1 output end current collection extremely digital quantity input signal;
Light emitting diode D1 anode connecting resistance R4 one end, the resistance R4 other end meets microcontroller power supply VCC;Optocoupler U1 output end
Grounded emitter.
Light emitting diode D1 in above-mentioned detection circuit can also remove, the general detection electricity of the digital quantity input signal formed
Road, including:Including resistance R1, R2, R3, R4, optocoupler U1;The optocoupler U1 inputs optocoupler using bipolarity;
Optocoupler U1 first input end connecting resistance R1 one end and resistance R2 one end, resistance R1 another termination digital quantity
Signal input part IN_A;Optocoupler U1 the second input terminating resistor R2 other end and resistance R3 one end, resistance R3's is another
Terminate digital quantity signal input IN_B;Optocoupler U1 GPIO mouthfuls of output end colelctor electrode order piece machine testing, and connect resistance
R4 one end;The output end signal of the general detection circuit of optocoupler U1 output end current collection extremely digital quantity input signal;Resistance
The R4 other end meets microcontroller power supply VCC;Optocoupler U1 output end grounded emitter.
Further, optocoupler U1 uses PC844.
The utility model has the advantage of:The utility model makes full use of the two-way admittance of bipolarity input optocoupler
Performance, making input signal, no matter which terminal voltage Gao Junneng turns on photoelectrical coupler in IN_A and IN_B, so as to realize digital quantity
The detection of input signal.The utility model can compatible NPN type and positive-negative-positive digital quantity signal detection, solve in practical application
NPN and the problem of incompatible positive-negative-positive signal detection is very convenient, flexible in actual use.
Brief description of the drawings
Fig. 1 is application schematic diagram of the present utility model.
Fig. 2 is electrical schematic diagram of the present utility model.
Fig. 3 is detection wiring diagram of the general detection circuit of the present utility model to NPN type sensor signal.
Fig. 4 is detection wiring diagram of the general detection circuit of the present utility model to positive-negative-positive sensor signal.
Embodiment
With reference to specific drawings and examples, the utility model is described in further detail.
As shown in figure 1, for the utility model proposes digital quantity input signal it is general detection circuit application structure schematic diagram,
Its input IN_A and IN_B meet two output ends OUT_A and OUT_B of sensor respectively;Its output end signal connects single-chip microcomputer
GPIO detection pins, and with one-chip machine common power supply;
As shown in Fig. 2 for the utility model proposes the general detection circuit electrical schematic diagram of digital quantity input signal, including electricity
Hinder R1, R2, R3, R4, optocoupler U1(Optocoupler is the abbreviation of photoelectrical coupler in the utility model), light emitting diode D1;The light
Coupling U1 inputs optocoupler, such as PC844 using bipolarity;
Optocoupler U1 first input end connecting resistance R1 one end and resistance R2 one end, resistance R1 another termination digital quantity
Signal input part IN_A;Optocoupler U1 the second input terminating resistor R2 other end and resistance R3 one end, resistance R3's is another
Terminate digital quantity signal input IN_B;Optocoupler U1 GPIO mouthfuls of output end colelctor electrode order piece machine testing, and sending and receiving light two
Pole pipe D1 negative electrode;The output end signal of the general detection circuit of optocoupler U1 output end current collection extremely digital quantity input signal;
Light emitting diode D1 anode connecting resistance R4 one end, the resistance R4 other end meets microcontroller power supply VCC;Optocoupler U1 output end
Grounded emitter.
Digital quantity input signal is inputted through IN_A and IN_B two ends, and when there is effective digital quantity signal, the first of U1 is defeated
Enter and form pressure difference between end and the second input, turn on U1, now, GPIO mouthfuls of the 4th pins in U1 of monolithic machine testing(It is defeated
Go out to hold colelctor electrode)Place can detect the presence of digital quantity signal, so as to judge there is digital quantity signal input.
As shown in figure 3, being detection wiring diagram of the general detection circuit of digital quantity input signal to NPN type sensor signal.
Shown sensor S1 output end OUT_A terminates the IN_A ends that the utility model detects circuit, sensor S1 output end OUT_B
Terminate IN_B ends and the ground connection of the utility model detection circuit.When sensor S1 exports digital quantity signal, its output end OUT_A
End shows as exporting 24V voltages, behind the IN_A ends of the general detection circuit of digital quantity input signal, makes the photoelectricity coupling in circuit
Clutch U1 ON operations, in the general output end Signal ends output 0V voltages for detecting circuit of digital quantity input signal by monolithic
GPIO mouthfuls of readings of machine testing.
As shown in figure 4, being detection wiring diagram of the general detection circuit of digital quantity input signal to positive-negative-positive sensor signal.
Shown sensor S2 output end OUT_A terminates the IN_A ends that the utility model detects circuit, sensor S2 output end OUT_B
Termination the utility model detects the IN_B ends of circuit and meets 24V.When sensor S2 exports digital quantity signal, its output end OUT_
A ends show as exporting 0V voltages, behind the IN_A ends of the general detection circuit of digital quantity input signal, make the photoelectricity coupling in circuit
Clutch U1 ON operations, in the general output end Signal ends output 0V voltages for detecting circuit of digital quantity input signal by monolithic
GPIO mouthfuls of readings of machine testing.
The above-mentioned general detection circuit of digital quantity input signal, is applicable not only to the detection of 24V digital quantity input signal,
It is equally applicable to the detection of the digital quantity input signal of other magnitudes of voltage.
The above-mentioned general detection circuit of digital quantity input signal, light emitting diode D1 removes can also normal work, luminous two
There is digital quantity input signal for instruction in pole pipe D1.
GPIO mouthfuls:General Purpose Input Output (Universal input/output).
Claims (4)
1. a kind of general detection circuit of digital quantity input signal, it is characterised in that including:Including resistance R1, R2, R3, R4, optocoupler
U1, light emitting diode D1;The optocoupler U1 inputs optocoupler using bipolarity;
Optocoupler U1 first input end connecting resistance R1 one end and resistance R2 one end, resistance R1 another termination digital quantity signal
Input IN_A;Optocoupler U1 the second input terminating resistor R2 other end and resistance R3 one end, resistance R3 another termination
Digital quantity signal input IN_B;Optocoupler U1 GPIO mouthfuls of output end colelctor electrode order piece machine testing, and sending and receiving optical diode
D1 negative electrode;The output end signal of the general detection circuit of optocoupler U1 output end current collection extremely digital quantity input signal;It is luminous
Diode D1 anode connecting resistance R4 one end, the resistance R4 other end meets microcontroller power supply VCC;Optocoupler U1 output end transmitting
Pole is grounded.
2. the general detection circuit of digital quantity input signal as claimed in claim 1, it is characterised in that
Optocoupler U1 uses PC844.
3. a kind of general detection circuit of digital quantity input signal, it is characterised in that including:Including resistance R1, R2, R3, R4, optocoupler
U1;The optocoupler U1 inputs optocoupler using bipolarity;
Optocoupler U1 first input end connecting resistance R1 one end and resistance R2 one end, resistance R1 another termination digital quantity signal
Input IN_A;Optocoupler U1 the second input terminating resistor R2 other end and resistance R3 one end, resistance R3 another termination
Digital quantity signal input IN_B;Optocoupler U1 GPIO mouthfuls of output end colelctor electrode order piece machine testing, and connect resistance R4's
One end;The output end signal of the general detection circuit of optocoupler U1 output end current collection extremely digital quantity input signal;Resistance R4's
The other end meets microcontroller power supply VCC;Optocoupler U1 output end grounded emitter.
4. the general detection circuit of digital quantity input signal as claimed in claim 3, it is characterised in that
Optocoupler U1 uses PC844.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201720168114.6U CN206523760U (en) | 2017-02-24 | 2017-02-24 | The general detection circuit of digital quantity input signal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201720168114.6U CN206523760U (en) | 2017-02-24 | 2017-02-24 | The general detection circuit of digital quantity input signal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN206523760U true CN206523760U (en) | 2017-09-26 |
Family
ID=59892808
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201720168114.6U Active CN206523760U (en) | 2017-02-24 | 2017-02-24 | The general detection circuit of digital quantity input signal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN206523760U (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108982897A (en) * | 2018-08-01 | 2018-12-11 | 华自科技股份有限公司 | Signal deteching circuit and measuring device and gear velocity-measuring system |
CN109445424A (en) * | 2018-12-25 | 2019-03-08 | 珠海格力电器股份有限公司 | Detection circuit and detection device |
CN110120809A (en) * | 2019-04-15 | 2019-08-13 | 上海辛格林纳新时达电机有限公司 | Compatible type interface module |
CN110568296A (en) * | 2019-10-08 | 2019-12-13 | 安徽新境界自动化技术有限公司 | Digital quantity sensor signal detection device |
WO2020082370A1 (en) * | 2018-10-26 | 2020-04-30 | 深圳配天智能技术研究院有限公司 | Conversion circuit, adapter board and control system |
CN111398794A (en) * | 2020-03-31 | 2020-07-10 | 苏州汇川技术有限公司 | Digital quantity input signal detection circuit and elevator controller |
CN111711441A (en) * | 2019-03-18 | 2020-09-25 | 青海凯之成智能装备有限公司 | Apply to adjustable interface circuit of high-low pressure signal of controller |
CN113131923A (en) * | 2021-04-29 | 2021-07-16 | 烟台环球机床装备股份有限公司 | Source type drain type automatic compatible interface circuit |
-
2017
- 2017-02-24 CN CN201720168114.6U patent/CN206523760U/en active Active
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108982897A (en) * | 2018-08-01 | 2018-12-11 | 华自科技股份有限公司 | Signal deteching circuit and measuring device and gear velocity-measuring system |
WO2020082370A1 (en) * | 2018-10-26 | 2020-04-30 | 深圳配天智能技术研究院有限公司 | Conversion circuit, adapter board and control system |
CN109445424A (en) * | 2018-12-25 | 2019-03-08 | 珠海格力电器股份有限公司 | Detection circuit and detection device |
CN109445424B (en) * | 2018-12-25 | 2024-06-11 | 珠海格力电器股份有限公司 | Detection circuit and detection device |
CN111711441A (en) * | 2019-03-18 | 2020-09-25 | 青海凯之成智能装备有限公司 | Apply to adjustable interface circuit of high-low pressure signal of controller |
CN111711441B (en) * | 2019-03-18 | 2023-04-25 | 青海凯之成智能装备有限公司 | High-low voltage signal adjustable interface circuit applied to controller |
CN110120809A (en) * | 2019-04-15 | 2019-08-13 | 上海辛格林纳新时达电机有限公司 | Compatible type interface module |
CN110568296A (en) * | 2019-10-08 | 2019-12-13 | 安徽新境界自动化技术有限公司 | Digital quantity sensor signal detection device |
CN111398794A (en) * | 2020-03-31 | 2020-07-10 | 苏州汇川技术有限公司 | Digital quantity input signal detection circuit and elevator controller |
CN113131923A (en) * | 2021-04-29 | 2021-07-16 | 烟台环球机床装备股份有限公司 | Source type drain type automatic compatible interface circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN206523760U (en) | The general detection circuit of digital quantity input signal | |
CN205229291U (en) | Voltage signal collection system | |
CN108982897B (en) | Signal detection circuit, measuring device and gear speed measurement system | |
WO2017113550A1 (en) | Operational amplifier, driver interface, measuring and control device, driver circuit and driver | |
CN209096523U (en) | A kind of batteries of electric automobile monitoring system | |
CN102855211B (en) | Universal serial bus-balanced voltage digital interface converter | |
CN102404679B (en) | Headset detection circuit and electronic equipment | |
CN208092205U (en) | A kind of closed-loop detection circuit for detecting relay output state | |
CN208848054U (en) | A kind of tester of multichannel QC3.0 fast charge agreement | |
CN204241137U (en) | Two-wire system intelligent pressure transmitter | |
CN207650383U (en) | A kind of transformer disconnection detection circuit of breaker | |
CN203785804U (en) | Three-wire remote temperature measuring circuit based on digital temperature sensor | |
CN210225388U (en) | Photoelectric isolation module compatible with NPN and PNP type sensors | |
CN206524826U (en) | A kind of numeral input detects circuit | |
CN207732747U (en) | A kind of loom encoder interface circuit | |
CN209117822U (en) | A kind of safety return circuit remote auto detection device | |
CN220231953U (en) | Socket tester | |
CN104519623B (en) | Transmission system based on DALI (digital addressable lighting interface) protocol control commands | |
CN206181000U (en) | Level switching circuit | |
CN207475278U (en) | A kind of two-supply circuit | |
CN202634403U (en) | Insulation control circuit | |
CN202501859U (en) | Resistor type direct-reading meter reading device based on M-bus | |
CN207399584U (en) | Lamp-controlling circuit | |
CN220874521U (en) | Three-wire system proximity sensor | |
CN203708240U (en) | RF-485 signal converter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |