CN204302420U - A switching value acquisition circuit - Google Patents
A switching value acquisition circuit Download PDFInfo
- Publication number
- CN204302420U CN204302420U CN201420844353.5U CN201420844353U CN204302420U CN 204302420 U CN204302420 U CN 204302420U CN 201420844353 U CN201420844353 U CN 201420844353U CN 204302420 U CN204302420 U CN 204302420U
- Authority
- CN
- China
- Prior art keywords
- module
- power supply
- switching value
- value acquisition
- diode
- 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.)
- Expired - Lifetime
Links
- 238000007493 shaping process Methods 0.000 claims abstract description 40
- 238000002955 isolation Methods 0.000 claims abstract description 30
- 239000003990 capacitor Substances 0.000 claims description 14
- 238000001914 filtration Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Landscapes
- Electronic Switches (AREA)
Abstract
本实用新型公开了一种开关量采集电路,包括控制电源模块、整流阈值模块、隔离模块、滤波整形模块和单片机接口模块。控制电源模块给开关量采集电路提供外接电源;整流阈值模块对控制电源模块进行整流,并提供隔离模块导通的阈值;隔离模块实现开关量输入端与单片机采集端的信号的隔离;滤波整形模块对隔离模块输出的信号进行滤波去耦,并将信号整形为稳定的电平信号;单片机接口模块采集滤波整形模块输出的电平信号。本实用新型的开关量采集电路抗干扰能力强,软件处理简单,可靠性高,电路简单,成本低廉。
The utility model discloses a switching value acquisition circuit, which comprises a control power supply module, a rectification threshold module, an isolation module, a filter shaping module and a single-chip microcomputer interface module. The control power supply module provides an external power supply for the switching value acquisition circuit; the rectification threshold module rectifies the control power supply module and provides the threshold for the isolation module to be turned on; The signal output by the isolation module is filtered and decoupled, and the signal is shaped into a stable level signal; the single-chip microcomputer interface module collects the level signal output by the filter and shaper module. The switching value acquisition circuit of the utility model has strong anti-interference ability, simple software processing, high reliability, simple circuit and low cost.
Description
技术领域technical field
本实用新型涉及电力设备保护以及工业自动化控制领域,特别是涉及一种开关量采集电路。The utility model relates to the field of electric equipment protection and industrial automation control, in particular to a switching quantity acquisition circuit.
背景技术Background technique
目前,随着工业水平不断发展,在电力设备保护装置以及工业自动化控制领域,工业现场电磁干扰越来越严重,会在开关量采集信号端子上产生几十伏干扰电压,导致开关量采集不准确。传统开关量采集电路抗电磁干扰能力差,现场大多采用中间继电器解决电磁干扰,外部控制电源控制中间继电器线圈,中间继电器的触点再串入开关量信号输入电路,中间继电器线圈的动作电压大于现场干扰电压,防止干扰电压导致开关量采集不准确。但增加中间继电器后,现场布线复杂,且中间继电器体积较大,成本较高。此外,进入单片机的信号为脉冲信号时,会导致软件处理复杂,可靠性低。At present, with the continuous development of the industrial level, in the field of power equipment protection devices and industrial automation control, the electromagnetic interference on the industrial site is becoming more and more serious, and tens of volts of interference voltage will be generated on the switching value acquisition signal terminal, resulting in inaccurate switching value acquisition. . The traditional switching value acquisition circuit has poor anti-electromagnetic interference ability. Most of the sites use intermediate relays to solve electromagnetic interference. The external control power supply controls the intermediate relay coil, and the contacts of the intermediate relay are connected in series with the switching value signal input circuit. Interference voltage to prevent inaccurate acquisition of switching values caused by interference voltage. However, after the intermediate relay is added, the field wiring is complicated, and the intermediate relay is large in size and high in cost. In addition, when the signal entering the microcontroller is a pulse signal, it will cause complex software processing and low reliability.
实用新型内容Utility model content
实用新型目的:本实用新型的目的是提供一种抗干扰能力强、软件处理简单、可靠性高的开关量采集电路。Purpose of the utility model: The purpose of the utility model is to provide a switching value acquisition circuit with strong anti-interference ability, simple software processing and high reliability.
实用新型内容:本实用新型所述的开关量采集电路,包括控制电源模块、整流阈值模块、隔离模块、滤波整形模块和单片机接口模块。The content of the utility model: the switching value acquisition circuit described in the utility model includes a control power supply module, a rectification threshold module, an isolation module, a filter shaping module and a single-chip microcomputer interface module.
控制电源模块连接整流阈值模块,整流阈值模块连接隔离模块,隔离模块连接滤波整形模块,滤波整形模块连接单片机接口模块。The control power supply module is connected to the rectification threshold module, the rectification threshold module is connected to the isolation module, the isolation module is connected to the filter shaping module, and the filter shaping module is connected to the single-chip microcomputer interface module.
进一步,所述控制电源模块包括串联连接的控制电源S1和开关SB1。Further, the control power supply module includes a control power supply S1 and a switch SB1 connected in series.
进一步,所述整流阈值模块包括整流二极管U1、二极管D1和电阻R1。整流二极管U1的第一引脚连接所述控制电源模块的一端,整流二极管U1的第二引脚连接所述控制电源模块的另一端,整流二极管U1的第三引脚连接二极管D1的阴极,整流二极管U1的第四引脚连接电阻R1的一端。Further, the rectification threshold module includes a rectification diode U1, a diode D1 and a resistor R1. The first pin of the rectifier diode U1 is connected to one end of the control power module, the second pin of the rectifier diode U1 is connected to the other end of the control power module, and the third pin of the rectifier diode U1 is connected to the cathode of the diode D1, rectifying The fourth pin of the diode U1 is connected to one end of the resistor R1.
进一步,所述整流二极管U1包括全波桥式整流电路。Further, the rectifier diode U1 includes a full-wave bridge rectifier circuit.
进一步,所述二极管D1包括单向TVS二极管。Further, the diode D1 includes a unidirectional TVS diode.
进一步,所述隔离模块包括线性光耦U2。线性光耦U2输入端的第一引脚连接所述整流阈值模块的一端,线性光耦U2输入端的第二引脚连接所述整流阈值模块的另一端,线性光耦U2输出端的第一引脚、第二引脚连接所述滤波整形模块。Further, the isolation module includes a linear optocoupler U2. The first pin of the input end of the linear optocoupler U2 is connected to one end of the rectification threshold module, the second pin of the input end of the linear optocoupler U2 is connected to the other end of the rectification threshold module, and the first pin of the output end of the linear optocoupler U2, The second pin is connected to the filtering and shaping module.
进一步,所述滤波整形模块包括电阻R2、电容C1、电容C2、整形电路U3和电源VCC。电阻R2、电容C1和电容C2三者并联,并联后的电路一端接地,并联后的电路另一端分别连接所述隔离模块的一端和整形电路U3的一端,电源VCC连接所述隔离模块的另一端,整形电路U3的另一端连接所述单片机接口模块。Further, the filtering and shaping module includes a resistor R2, a capacitor C1, a capacitor C2, a shaping circuit U3 and a power supply VCC. Resistor R2, capacitor C1 and capacitor C2 are connected in parallel, one end of the parallel circuit is grounded, the other end of the parallel circuit is respectively connected to one end of the isolation module and one end of the shaping circuit U3, and the power supply VCC is connected to the other end of the isolation module , the other end of the shaping circuit U3 is connected to the single-chip microcomputer interface module.
进一步,所述整形电路U3包括CMOS三态缓冲器。Further, the shaping circuit U3 includes a CMOS tri-state buffer.
进一步,所述单片机接口模块包括单片机I/O口。Further, the single-chip microcomputer interface module includes a single-chip microcomputer I/O port.
控制电源模块给开关量采集电路提供外接电源;整流阈值模块对控制电源模块进行整流,并提供隔离模块导通的阈值;隔离模块实现开关量输入端与单片机采集端的信号的隔离;滤波整形模块对隔离模块输出的信号进行滤波去耦,并将信号整形为稳定的电平信号;单片机接口模块采集滤波整形模块输出的电平信号。The control power supply module provides an external power supply for the switching value acquisition circuit; the rectification threshold module rectifies the control power supply module and provides the threshold for the isolation module to be turned on; The signal output by the isolation module is filtered and decoupled, and the signal is shaped into a stable level signal; the single-chip microcomputer interface module collects the level signal output by the filter and shaper module.
有益效果:本实用新型提供的开关量采集电路,通过合理选择整流阈值模块的阈值,可以提高工业现场的抗干扰能力;并且,无论控制电源的电压是交流电压还是直流电压,经过滤波整形模块后都能输出稳定的电平信号给单片机接口模块,使得软件处理简单,可靠性高;此外,本实用新型的电路简单、成本低廉。Beneficial effects: the switching value acquisition circuit provided by the utility model can improve the anti-interference ability of the industrial site by reasonably selecting the threshold value of the rectification threshold module; and, no matter whether the voltage of the control power supply is AC voltage or DC voltage, after the filtering and shaping module All can output stable level signals to the single-chip microcomputer interface module, so that the software processing is simple and the reliability is high; in addition, the circuit of the utility model is simple and the cost is low.
附图说明Description of drawings
图1是本实用新型的组成框图;Fig. 1 is a block diagram of the utility model;
图2是本实用新型的一种具体电路示意图;Fig. 2 is a kind of specific circuit diagram of the utility model;
图3是本实用新型的控制电源电压为直流电压时整形电路的输入端波形和输出端波形;Fig. 3 is the input terminal waveform and the output terminal waveform of the shaping circuit when the control power supply voltage of the utility model is a DC voltage;
图4是本实用新型的控制电源电压为交流电压时整形电路的输入端波形和输出端波形。Fig. 4 is the input terminal waveform and output terminal waveform of the shaping circuit when the control power supply voltage of the present invention is AC voltage.
具体实施方式Detailed ways
下面结合附图和具体实施方式,对本实用新型的技术方案作进一步的说明。The technical solution of the present utility model will be further described below in combination with the accompanying drawings and specific embodiments.
本实用新型的开关量采集电路的组成框图如图1所示,包括控制电源模块1、整流阈值模块2、隔离模块3、滤波整形模块4和单片机接口模块5。控制电源模块1连接整流阈值模块2,整流阈值模块2连接隔离模块3,隔离模块3连接滤波整形模块4,滤波整形模块4连接单片机接口模块5。The block diagram of the switching value acquisition circuit of the present invention is shown in Figure 1, including a control power supply module 1, a rectification threshold module 2, an isolation module 3, a filter shaping module 4 and a single-chip microcomputer interface module 5. The control power supply module 1 is connected to the rectification threshold module 2 , the rectification threshold module 2 is connected to the isolation module 3 , the isolation module 3 is connected to the filter shaping module 4 , and the filter shaping module 4 is connected to the single chip microcomputer interface module 5 .
本实用新型的一种具体电路形式如图2所示。控制电源模块1包括控制电源S1和开关SB1,控制电源S1的一端连接开关SB1的一端。整流阈值模块2包括整流二极管U1、二极管D1和电阻R1。整流二极管U1的第一引脚连接开关SB1的另一端,整流二极管U1的第二引脚连接控制电源S1的另一端,整流二极管U1的第三引脚连接二极管D1的阴极,整流二极管U1的第四引脚连接电阻R1的一端。整流二极管U1采用全波桥式整流电路,二极管D1采用单向TVS二极管。隔离模块3包括线性光耦U2。线性光耦的输入端包括一只二极管,线性光耦的输出端包括一只三极管,为方便叙述,这里将线性光耦输入端的二极管的阳极称为线性光耦输入端的第一引脚,将线性光耦输入端的二极管的阴极称为线性光耦输入端的第二引脚,将线性光耦输出端的三极管的发射极称为线性光耦输出端的第一引脚,将线性光耦输出端的三极管的集电极称为线性光耦输出端的第二引脚。线性光耦U2输入端的第一引脚连接二极管D1的阳极,线性光耦U2输入端的第二引脚连接电阻R1的另一端,线性光耦U2输出端的第一引脚、第二引脚连接滤波整形模块4。滤波整形模块4包括电阻R2、电容C1、电容C2、整形电路U3和电源VCC。其中,将电阻R2、电容C1和电容C2称为滤波去耦电路。电阻R2、电容C1和电容C2三者并联,并联后的电路一端接地,并联后的电路另一端分别连接线性光耦U2输出端的第一引脚和整形电路U3的一端,电源VCC连接线性光耦U2输出端的第二引脚,整形电路U3的另一端连接单片机接口模块5。整形电路U3采用CMOS三态缓冲器。单片机接口模块5包括单片机I/O口。A specific circuit form of the utility model is shown in Fig. 2 . The control power supply module 1 includes a control power supply S1 and a switch SB1, one end of the control power supply S1 is connected to one end of the switch SB1. The rectification threshold module 2 includes a rectification diode U1, a diode D1 and a resistor R1. The first pin of the rectifying diode U1 is connected to the other end of the switch SB1, the second pin of the rectifying diode U1 is connected to the other end of the control power supply S1, the third pin of the rectifying diode U1 is connected to the cathode of the diode D1, and the second pin of the rectifying diode U1 is connected to the cathode of the diode D1. Four pins are connected to one end of resistor R1. The rectifier diode U1 adopts a full-wave bridge rectifier circuit, and the diode D1 adopts a unidirectional TVS diode. The isolation module 3 includes a linear optocoupler U2. The input end of the linear optocoupler includes a diode, and the output end of the linear optocoupler includes a triode. For the convenience of description, the anode of the diode at the input end of the linear optocoupler is called the first pin of the input end of the linear optocoupler. The cathode of the diode at the input end of the optocoupler is called the second pin of the input end of the linear optocoupler, the emitter of the triode at the output end of the linear optocoupler is called the first pin of the output end of the linear optocoupler, and the set of the triode at the output end of the linear optocoupler is called The electrode is called the second pin at the output of the linear optocoupler. The first pin of the input end of the linear optocoupler U2 is connected to the anode of the diode D1, the second pin of the input end of the linear optocoupler U2 is connected to the other end of the resistor R1, the first pin and the second pin of the output end of the linear optocoupler U2 are connected to the filter Shaping module4. The filtering and shaping module 4 includes a resistor R2, a capacitor C1, a capacitor C2, a shaping circuit U3 and a power supply VCC. Wherein, the resistor R2, the capacitor C1 and the capacitor C2 are referred to as a filter decoupling circuit. Resistor R2, capacitor C1 and capacitor C2 are connected in parallel, one end of the parallel circuit is grounded, the other end of the parallel circuit is respectively connected to the first pin of the output terminal of the linear optocoupler U2 and one end of the shaping circuit U3, and the power supply VCC is connected to the linear optocoupler The second pin of the output end of U2 is connected to the interface module 5 of the single-chip microcomputer with the other end of the shaping circuit U3. The shaping circuit U3 uses a CMOS tri-state buffer. The single-chip microcomputer interface module 5 includes a single-chip microcomputer I/O port.
控制电源模块1给开关量采集电路提供外接电源;整流阈值模块2对控制电源模块1进行整流,并提供隔离模块3导通的阈值;隔离模块3实现开关量输入端与单片机采集端的信号的隔离;滤波整形模块4对隔离模块3输出的信号进行滤波去耦,并将信号整形为稳定的电平信号;单片机接口模块5采集滤波整形模块4输出的电平信号。The control power supply module 1 provides an external power supply for the switching value acquisition circuit; the rectification threshold module 2 rectifies the control power supply module 1, and provides the threshold for the isolation module 3 to conduct; the isolation module 3 realizes the isolation of the signal of the switching value input terminal and the acquisition terminal of the single chip microcomputer The filtering and shaping module 4 filters and decouples the signal output by the isolation module 3, and shapes the signal into a stable level signal; the single-chip microcomputer interface module 5 collects the level signal output by the filtering and shaping module 4.
控制电源模块1接通时,当控制电源S1的电压超过整流阈值模块2的阈值(即二极管D1的击穿电压)时,二极管D1反向击穿导通,隔离模块3的输入端有信号通过,隔离模块3的输出端导通。因此,通过合理选择整流阈值模块2的阈值,可以提高工业现场的抗干扰能力。When the control power supply module 1 is turned on, when the voltage of the control power supply S1 exceeds the threshold of the rectification threshold module 2 (that is, the breakdown voltage of the diode D1), the diode D1 reversely breaks down and conducts, and a signal passes through the input terminal of the isolation module 3 , the output end of the isolation module 3 is turned on. Therefore, by reasonably selecting the threshold of the rectification threshold module 2, the anti-interference ability of the industrial site can be improved.
当控制电源S1的电压为直流电压时,整流二极管U1能够防止控制电源S1正负极反接而导致的隔离模块3的损坏,经过整流阈值模块2和隔离模块3后输出电平信号,然后经过滤波整形模块4中的滤波去耦电路后输出电平信号,并将此电平信号送至整形电路U3的输入端。如图3所示,经过整形电路U3后的输出信号为稳定的电平信号。When the voltage of the control power supply S1 is a DC voltage, the rectifier diode U1 can prevent the damage of the isolation module 3 caused by the reverse connection of the positive and negative poles of the control power supply S1, output a level signal after passing through the rectification threshold module 2 and the isolation module 3, and then The filtering and decoupling circuit in the filtering and shaping module 4 outputs a level signal, and sends the level signal to the input end of the shaping circuit U3. As shown in FIG. 3 , the output signal after passing through the shaping circuit U3 is a stable level signal.
当控制电源S1的电压为交流电压时,整流二极管U1将控制电源S1整流成脉动的直流信号,经过隔离模块3后输出方波信号,然后经过滤波整形模块4中的滤波去耦电路后输出脉动的电平信号,并将此脉动的电平信号送至整形电路U3的输入端。如图4所示,经过整形电路U3后的输出信号为稳定的电平信号。When the voltage of the control power supply S1 is an AC voltage, the rectifier diode U1 rectifies the control power supply S1 into a pulsating DC signal, outputs a square wave signal after passing through the isolation module 3, and then outputs a pulsating signal after passing through the filtering and decoupling circuit in the filtering and shaping module 4 level signal, and send this pulsating level signal to the input end of the shaping circuit U3. As shown in FIG. 4 , the output signal after passing through the shaping circuit U3 is a stable level signal.
因此,控制电源S1为交流或直流电压时,整形电路U3均输出稳定的电平信号。Therefore, when the control power supply S1 is an AC or DC voltage, the shaping circuit U3 outputs a stable level signal.
本实用新型提供的开关量采集电路,通过合理选择整流阈值模块2的阈值,可以提高工业现场的抗干扰能力;并且,无论控制电源的电压是交流电压还是直流电压,经过滤波整形模块4后都能输出稳定的电平信号给单片机接口模块5,使得软件处理简单,可靠性高;此外,本实用新型的电路简单、成本低廉。The switching value acquisition circuit provided by the utility model can improve the anti-interference ability of the industrial site by reasonably selecting the threshold value of the rectification threshold module 2; It can output a stable level signal to the single-chip microcomputer interface module 5, so that the software processing is simple and the reliability is high; in addition, the circuit of the utility model is simple and the cost is low.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201420844353.5U CN204302420U (en) | 2014-12-26 | 2014-12-26 | A switching value acquisition circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201420844353.5U CN204302420U (en) | 2014-12-26 | 2014-12-26 | A switching value acquisition circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN204302420U true CN204302420U (en) | 2015-04-29 |
Family
ID=53107951
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201420844353.5U Expired - Lifetime CN204302420U (en) | 2014-12-26 | 2014-12-26 | A switching value acquisition circuit |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN204302420U (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104483579A (en) * | 2014-12-26 | 2015-04-01 | 江苏斯菲尔电气股份有限公司 | Switching value acquisition circuit |
| CN109120254A (en) * | 2018-10-09 | 2019-01-01 | 华北电力大学(保定) | A kind of switching value input circuit |
| CN115102387A (en) * | 2022-08-24 | 2022-09-23 | 南京国电南自维美德自动化有限公司 | AC/DC input opening loop |
-
2014
- 2014-12-26 CN CN201420844353.5U patent/CN204302420U/en not_active Expired - Lifetime
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104483579A (en) * | 2014-12-26 | 2015-04-01 | 江苏斯菲尔电气股份有限公司 | Switching value acquisition circuit |
| CN109120254A (en) * | 2018-10-09 | 2019-01-01 | 华北电力大学(保定) | A kind of switching value input circuit |
| CN115102387A (en) * | 2022-08-24 | 2022-09-23 | 南京国电南自维美德自动化有限公司 | AC/DC input opening loop |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102628889B (en) | Voltage sampling circuit | |
| CN102169163B (en) | Alternating-current direct-current adaptive switching value collecting circuit and method | |
| CN203101494U (en) | AC (alternating current) electric supply power failure detection circuit, equipment and system | |
| CN202583311U (en) | Alternating current zero-crossing detection circuit | |
| CN104483579A (en) | Switching value acquisition circuit | |
| CN204302420U (en) | A switching value acquisition circuit | |
| CN105430783A (en) | Induction cooker circuit | |
| CN204287287U (en) | Alternating current signal detection circuit | |
| CN201974508U (en) | AC/DC self-adaptive switch quantity acquisition circuit | |
| CN205565702U (en) | A inverter IGBT short-circuit protection circuit | |
| CN204028283U (en) | A kind of novel fault arc detection device | |
| CN203941243U (en) | A kind of three-phase electric power open phase testing circuit | |
| CN105425022A (en) | Simple detection circuit for mains voltage | |
| CN206332432U (en) | Dc bus under-voltage protecting circuit of the low cost with isolation self-locking | |
| CN205232491U (en) | Electromagnetism stove circuit | |
| CN204615633U (en) | Power supply circuit | |
| CN201828604U (en) | Direct-current insulation monitoring device | |
| CN204652348U (en) | A kind of intake Acquisition Circuit device | |
| CN106992698B (en) | Module power supply circuit with dual mode | |
| CN203798896U (en) | Zero crossing detection circuit | |
| CN204349794U (en) | A kind of switching signal input circuit | |
| CN204993293U (en) | Low -power consumption plug -in card switch | |
| CN204652757U (en) | A kind of input protection circuit of LED drive power | |
| CN204374310U (en) | A kind of three-phase alternating-current supply lack detection circuit | |
| CN205193149U (en) | Simple and easy detection circuitry of line voltage |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CX01 | Expiry of patent term |
Granted publication date: 20150429 |
|
| CX01 | Expiry of patent term |