CN105092948A - High-precision alternating-current signal zero crossing detection device and method - Google Patents
High-precision alternating-current signal zero crossing detection device and method Download PDFInfo
- Publication number
- CN105092948A CN105092948A CN201510525509.2A CN201510525509A CN105092948A CN 105092948 A CN105092948 A CN 105092948A CN 201510525509 A CN201510525509 A CN 201510525509A CN 105092948 A CN105092948 A CN 105092948A
- Authority
- CN
- China
- Prior art keywords
- optocoupler
- signal
- programmable logic
- logic device
- pld
- 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.)
- Pending
Links
Landscapes
- Electronic Switches (AREA)
Abstract
本发明公开了一种高精度交流信号过零检测装置,包括光耦器件U1、光耦器件U2和可编程逻辑器件,待检测的交流信号的L端分别与光耦器件U1的阳极、光耦器件U2的阴极电连接,N端分别与光耦器件U1的阴极、光耦器件U2的阳极电连接;光耦器件U1的集电极、光耦器件U2的集电极分别与可编程逻辑器件的I/O输入口连接,同时分别与电源VCC电连接;光耦器件U1的发射极、光耦器件U2的发射极分别接地;本发明还公开了一种高精度交流信号过零检测方法,可编程逻辑器件对光耦器件U1、光耦器件U2输出的电平信号进行处理,最终输出与交流信号过零点对应的窄脉冲信号。本发明结构简单、稳定可靠,使用方便,具有较强的抗干扰能力。
The invention discloses a high-precision AC signal zero-crossing detection device, which includes an optocoupler U1, an optocoupler U2 and a programmable logic device. The cathode of the device U2 is electrically connected, and the N terminal is electrically connected to the cathode of the optocoupler U1 and the anode of the optocoupler U2 respectively; the collector of the optocoupler U1 and the collector of the optocoupler U2 are respectively connected to the I of the programmable logic device The /O input port is connected, and is electrically connected to the power supply VCC respectively at the same time; the emitter of the optocoupler device U1 and the emitter of the optocoupler device U2 are respectively grounded; the invention also discloses a high-precision AC signal zero-crossing detection method, which can be programmed The logic device processes the level signals output by the optocoupler U1 and the optocoupler U2, and finally outputs a narrow pulse signal corresponding to the zero-crossing point of the AC signal. The invention has the advantages of simple structure, stable and reliable, convenient use and strong anti-interference ability.
Description
技术领域 technical field
本发明涉及一种高精度交流信号过零检测装置,还涉及一种高精度交流信号过零检测方法,属于信号检测技术领域。 The invention relates to a high-precision AC signal zero-crossing detection device and a high-precision AC signal zero-crossing detection method, belonging to the technical field of signal detection.
背景技术 Background technique
现有的交流信号过零检测电路种类繁多,其中利用光耦器件进行过零检测的电路得到广泛的应用。 There are various kinds of zero-crossing detection circuits of existing AC signals, among which the circuits using optocoupler devices for zero-crossing detection are widely used.
现有光耦器件检测装置是用两个光耦构成,其检测方法是利用交流信号在接近过零点时光耦截止的特性实现过零点的检测。由于光耦的截止并不是严格对应交流信号的过零点,因此存在死区、过零不精确、误差大等问题。 The existing optocoupler device detection device is composed of two optocouplers, and its detection method is to realize the zero-crossing detection by utilizing the characteristic that the photocoupler cuts off when the AC signal is close to the zero-crossing point. Since the cut-off of the optocoupler does not strictly correspond to the zero-crossing point of the AC signal, there are problems such as dead zone, inaccurate zero-crossing, and large error.
发明内容 Contents of the invention
本发明的目的在于克服现有技术中的不足,提供一种高精度交流信号过零检测装置,解决现有技术中光耦器件过零检测存在死区、过零不精确、误差大的技术问题。 The purpose of the present invention is to overcome the deficiencies in the prior art, provide a high-precision AC signal zero-crossing detection device, and solve the technical problems in the prior art that the zero-crossing detection of optocoupler devices has dead zones, inaccurate zero-crossing, and large errors .
为解决上述技术问题,本发明所采用的技术方案是:高精度交流信号过零检测装置,包括光耦器件U1、光耦器件U2和可编程逻辑器件,所述光耦器件U1、光耦器件U2分别包括:各自的发光二极管和与发光二极管对应设置的光敏三极管; In order to solve the above technical problems, the technical solution adopted in the present invention is: a high-precision AC signal zero-crossing detection device, including an optocoupler U1, an optocoupler U2 and a programmable logic device, and the optocoupler U1, optocoupler U2 respectively includes: respective light-emitting diodes and phototransistors corresponding to the light-emitting diodes;
待检测的交流信号的L端分别与光耦器件U1的阳极、光耦器件U2的阴极电连接,N端分别与光耦器件U1的阴极、光耦器件U2的阳极电连接; The L terminal of the AC signal to be detected is electrically connected to the anode of the optocoupler U1 and the cathode of the optocoupler U2 respectively, and the N terminal is electrically connected to the cathode of the optocoupler U1 and the anode of the optocoupler U2 respectively;
所述光耦器件U1的集电极、光耦器件U2的集电极分别与可编程逻辑器件的I/O输入口连接,同时分别与电源VCC的输出端电连接;光耦器件U1的发射极、光耦器件U2的发射极分别接地; The collector of the optocoupler U1 and the collector of the optocoupler U2 are respectively connected to the I/O input ports of the programmable logic device, and are electrically connected to the output terminals of the power supply VCC respectively; the emitters of the optocoupler U1, The emitters of the optocoupler U2 are grounded respectively;
所述可编程逻辑器件的I/O输出口与主电路数字量输入口连接; The I/O output port of the programmable logic device is connected with the digital quantity input port of the main circuit;
当交流信号的L-N端波形输出正半周时,光耦器件U1的发光二极管导通并发光,光耦器件U1的光敏三极管导通,输出低电平;同时光耦器件U2的发光二极管截止,光耦器件U2的光敏三极管截止,输出高电平; When the waveform of the L-N terminal of the AC signal outputs a positive half cycle, the light-emitting diode of the optocoupler U1 is turned on and emits light, and the phototransistor of the optocoupler U1 is turned on and outputs a low level; at the same time, the light-emitting diode of the optocoupler U2 is cut off, and the light The phototransistor of the coupling device U2 is cut off and outputs a high level;
当交流信号的L-N端波形输出正半周时,光耦器件U2的发光二极管导通并发光,光耦器件U2的光敏三极管导通,输出低电平;同时光耦器件U1的发光二极管截止,光耦器件U1的光敏三极管截止,输出高电平; When the waveform of the L-N terminal of the AC signal outputs a positive half cycle, the light-emitting diode of the optocoupler U2 turns on and emits light, and the phototransistor of the optocoupler U2 turns on and outputs a low level; at the same time, the light-emitting diode of the optocoupler U1 is cut off, and the light The phototransistor of the coupling device U1 is cut off and outputs a high level;
所述可编程逻辑器件根据光耦器件U1、光耦器件U2输出的电平信号检测过零点。 The programmable logic device detects the zero-crossing point according to the level signals output by the optocoupler U1 and the optocoupler U2.
作为本发明的进一步改进,所述交流信号的L端依次串联限流电阻R1、限流电阻R2后,再分别与光耦器件U1的阳极、光耦器件U2的阴极电连接。 As a further improvement of the present invention, the L terminal of the AC signal is connected in series with the current-limiting resistor R1 and the current-limiting resistor R2 in sequence, and then electrically connected to the anode of the optocoupler U1 and the cathode of the optocoupler U2 respectively.
作为本发明的进一步改进,所述光耦器件U1的集电极、光耦器件U2的集电极分别通过各自的上拉电阻与电源VCC的输出端电连接。 As a further improvement of the present invention, the collector of the optocoupler U1 and the collector of the optocoupler U2 are electrically connected to the output end of the power supply VCC through respective pull-up resistors.
本发明的另一目的在于,提供一种高精度交流信号过零检测方法,包括如下步骤: Another object of the present invention is to provide a high-precision AC signal zero-crossing detection method, comprising the following steps:
步骤一:可编程逻辑器件采集光耦器件U1、光耦器件U2输出的电平信号,并对采集的电平信号取反,分别记为:S1、S2; Step 1: The programmable logic device collects the level signals output by the optocoupler U1 and the optocoupler U2, and inverts the collected level signals, which are recorded as: S1 and S2 respectively;
步骤二:可编程逻辑器件对信号S1和S2进行或非逻辑运算,得到方波信号S3; Step 2: The programmable logic device performs an NOR logic operation on the signals S1 and S2 to obtain a square wave signal S3;
步骤三:可编程逻辑器件测量方波信号S3的脉冲宽度; Step 3: the programmable logic device measures the pulse width of the square wave signal S3;
步骤四:可编程逻辑器件在方波信号S3宽度的一半时,通过I/O输出口输出窄脉冲S4,S4即对应交流信号L、N的过零点。 Step 4: The programmable logic device outputs a narrow pulse S4 through the I/O output port when the width of the square wave signal S3 is half, and S4 corresponds to the zero-crossing point of the AC signals L and N.
与现有技术相比,本发明所达到的有益效果是:结构简单、稳定可靠,使用方便,具有较强的抗干扰能力。 Compared with the prior art, the beneficial effects achieved by the present invention are: simple structure, stable and reliable, easy to use, and strong anti-interference ability.
附图说明 Description of drawings
图1是本发明提供的高精度交流信号过零检测装置的电路图。 Fig. 1 is a circuit diagram of a high-precision AC signal zero-crossing detection device provided by the present invention.
图2是本发明提供的高精度交流信号过零检测方法的流程图。 Fig. 2 is a flow chart of the high-precision AC signal zero-crossing detection method provided by the present invention.
具体实施方式 Detailed ways
下面结合附图对本发明作进一步描述。以下实施例仅用于更加清楚地说明本发明的技术方案,而不能以此来限制本发明的保护范围。 The present invention will be further described below in conjunction with the accompanying drawings. The following examples are only used to illustrate the technical solution of the present invention more clearly, but not to limit the protection scope of the present invention.
如图1所示,高精度交流信号过零检测装置,包括光耦器件U1、光耦器件U2和可编程逻辑器件CPLD,光耦器件U1、光耦器件U2分别包括:各自的发光二极管和与发光二极管对应设置的光敏三极管。可编程逻辑器件CPLD的I/O输出口与主电路数字量输入口连接。 As shown in Figure 1, the high-precision AC signal zero-crossing detection device includes an optocoupler device U1, an optocoupler device U2, and a programmable logic device CPLD. The optocoupler device U1 and the optocoupler device U2 include: respective light-emitting diodes and The light-emitting diode corresponds to the phototransistor provided. The I/O output port of the programmable logic device CPLD is connected with the digital quantity input port of the main circuit.
待检测的交流信号的L端依次串联限流电阻R1、限流电阻R2后,再分别与光耦器件U1的阳极、光耦器件U2的阴极电连接,N端分别与光耦器件U1的阴极、光耦器件U2的阳极电连接。光耦器件U1的集电极、光耦器件U2的集电极分别与可编程逻辑器件CPLD的I/O输入口连接,同时分别通过各自的上拉电阻与电源VCC的输出端电连接。光耦器件U1的发射极、光耦器件U2的发射极分别接地。 The L terminal of the AC signal to be detected is connected in series with the current limiting resistor R1 and the current limiting resistor R2 in sequence, and then electrically connected to the anode of the optocoupler device U1 and the cathode of the optocoupler device U2 respectively, and the N terminal is respectively connected to the cathode of the optocoupler device U1 , The anode of the optocoupler device U2 is electrically connected. The collector of the optocoupler U1 and the collector of the optocoupler U2 are respectively connected to the I/O input port of the programmable logic device CPLD, and are electrically connected to the output terminal of the power supply VCC through respective pull-up resistors. The emitter of the optocoupler device U1 and the emitter of the optocoupler device U2 are grounded respectively.
当交流信号的L-N端波形输出正半周时,光耦器件U1的发光二极管导通并发光,光耦器件U1的光敏三极管导通,输出低电平;同时光耦器件U2的发光二极管截止,光耦器件U2的光敏三极管截止,输出高电平。 When the waveform of the L-N terminal of the AC signal outputs a positive half cycle, the light-emitting diode of the optocoupler U1 is turned on and emits light, and the phototransistor of the optocoupler U1 is turned on and outputs a low level; at the same time, the light-emitting diode of the optocoupler U2 is cut off, and the light The phototransistor of the coupling device U2 is cut off and outputs a high level.
当交流信号的L-N端波形输出正半周时,光耦器件U2的发光二极管导通并发光,光耦器件U2的光敏三极管导通,输出低电平;同时光耦器件U1的发光二极管截止,光耦器件U1的光敏三极管截止,输出高电平。 When the waveform of the L-N terminal of the AC signal outputs a positive half cycle, the light-emitting diode of the optocoupler U2 turns on and emits light, and the phototransistor of the optocoupler U2 turns on and outputs a low level; at the same time, the light-emitting diode of the optocoupler U1 is cut off, and the light The phototransistor of the coupling device U1 is cut off and outputs a high level.
可编程逻辑器件CPLD根据光耦器件U1、光耦器件U2输出的电平信号检测过零点。 The programmable logic device CPLD detects the zero-crossing point according to the level signals output by the optocoupler device U1 and the optocoupler device U2.
本发明提供的一种高精度交流信号过零检测方法是基于上述过零检测装置实现的,包括如下步骤: A high-precision AC signal zero-crossing detection method provided by the present invention is realized based on the above-mentioned zero-crossing detection device, and includes the following steps:
步骤一:可编程逻辑器件CPLD采集光耦器件U1、光耦器件U2输出的电平信号,并对采集的电平信号取反,分别记为:S1、S2; Step 1: The programmable logic device CPLD collects the level signals output by the optocoupler device U1 and the optocoupler device U2, and inverts the collected level signals, which are respectively recorded as: S1 and S2;
步骤二:可编程逻辑器件CPLD对信号S1和S2进行或非逻辑运算,得到方波信号S3; Step 2: The programmable logic device CPLD performs an NOR logic operation on the signals S1 and S2 to obtain a square wave signal S3;
步骤三:可编程逻辑器件CPLD测量方波信号S3的脉冲宽度; Step 3: the programmable logic device CPLD measures the pulse width of the square wave signal S3;
步骤四:可编程逻辑器件CPLD在方波信号S3宽度的一半时,通过I/O输出口输出窄脉冲S4,S4即对应交流信号L、N的过零点。 Step 4: The programmable logic device CPLD outputs a narrow pulse S4 through the I/O output port when the width of the square wave signal S3 is half, and S4 corresponds to the zero-crossing point of the AC signals L and N.
本发明提供的高精度交流信号过零检测方法具有较强的抗干扰能力。 The high-precision AC signal zero-crossing detection method provided by the invention has strong anti-interference ability.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明技术原理的前提下,还可以做出若干改进和变形,这些改进和变形也应视为本发明的保护范围。 The above is only a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the technical principle of the present invention, some improvements and modifications can also be made. It should also be regarded as the protection scope of the present invention.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510525509.2A CN105092948A (en) | 2015-08-25 | 2015-08-25 | High-precision alternating-current signal zero crossing detection device and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510525509.2A CN105092948A (en) | 2015-08-25 | 2015-08-25 | High-precision alternating-current signal zero crossing detection device and method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105092948A true CN105092948A (en) | 2015-11-25 |
Family
ID=54573842
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510525509.2A Pending CN105092948A (en) | 2015-08-25 | 2015-08-25 | High-precision alternating-current signal zero crossing detection device and method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105092948A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105675968A (en) * | 2016-04-08 | 2016-06-15 | 南京工程学院 | High-precision three-phase AC signal positive-negative zero-crossing detecting device and method |
| CN106383264A (en) * | 2016-06-08 | 2017-02-08 | 江苏现代电力科技股份有限公司 | Anti-interference high-precision zero-crossing detection method |
| CN108540112A (en) * | 2018-04-04 | 2018-09-14 | 沈机(上海)智能系统研发设计有限公司 | Control circuit, circuit control method and circuit system |
| CN111853840A (en) * | 2020-07-17 | 2020-10-30 | 国电泉州热电有限公司 | Slag dragging control device and method, slag dragging machine and boiler |
| CN115442210A (en) * | 2022-08-18 | 2022-12-06 | 海南电网有限责任公司 | Low-voltage power failure and restoration alarm method |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS59121511A (en) * | 1982-12-28 | 1984-07-13 | Toppan Printing Co Ltd | Zero-crossing control circuit |
| JPH02223218A (en) * | 1989-02-23 | 1990-09-05 | Nec Corp | Zero cross detection circuit for ac power source |
| JP2004328869A (en) * | 2003-04-23 | 2004-11-18 | Sharp Corp | Zero-cross signal output device, image forming device |
| CN2757310Y (en) * | 2004-08-03 | 2006-02-08 | 东南大学 | Mixed power electronic breaker observe and control device |
| CN101598749A (en) * | 2009-06-26 | 2009-12-09 | 中兴通讯股份有限公司 | Three-phase does not have the center line alternating current zero crossing detection device |
| CN201368896Y (en) * | 2009-03-06 | 2009-12-23 | 青岛海信日立空调系统有限公司 | Zero-crossing detection circuit |
| CN101685111A (en) * | 2008-09-27 | 2010-03-31 | 苏州三星电子有限公司 | Novel zero crossing detection circuit |
| CN102062810A (en) * | 2010-12-14 | 2011-05-18 | 江苏大学 | An AC power supply zero-crossing detection circuit and detection method |
| CN204903637U (en) * | 2015-08-25 | 2015-12-23 | 南京工程学院 | High accuracy alternating current signal zero -crossing detection device |
-
2015
- 2015-08-25 CN CN201510525509.2A patent/CN105092948A/en active Pending
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS59121511A (en) * | 1982-12-28 | 1984-07-13 | Toppan Printing Co Ltd | Zero-crossing control circuit |
| JPH02223218A (en) * | 1989-02-23 | 1990-09-05 | Nec Corp | Zero cross detection circuit for ac power source |
| JP2004328869A (en) * | 2003-04-23 | 2004-11-18 | Sharp Corp | Zero-cross signal output device, image forming device |
| CN2757310Y (en) * | 2004-08-03 | 2006-02-08 | 东南大学 | Mixed power electronic breaker observe and control device |
| CN101685111A (en) * | 2008-09-27 | 2010-03-31 | 苏州三星电子有限公司 | Novel zero crossing detection circuit |
| CN201368896Y (en) * | 2009-03-06 | 2009-12-23 | 青岛海信日立空调系统有限公司 | Zero-crossing detection circuit |
| CN101598749A (en) * | 2009-06-26 | 2009-12-09 | 中兴通讯股份有限公司 | Three-phase does not have the center line alternating current zero crossing detection device |
| CN102062810A (en) * | 2010-12-14 | 2011-05-18 | 江苏大学 | An AC power supply zero-crossing detection circuit and detection method |
| CN204903637U (en) * | 2015-08-25 | 2015-12-23 | 南京工程学院 | High accuracy alternating current signal zero -crossing detection device |
Non-Patent Citations (2)
| Title |
|---|
| 于新潮: "双向可控硅过零触发电路的设计", 《包头职业技术学院学报》 * |
| 盛占石等: "三相电源过零检测及相序自适应新方法", 《现代科学仪器》 * |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105675968A (en) * | 2016-04-08 | 2016-06-15 | 南京工程学院 | High-precision three-phase AC signal positive-negative zero-crossing detecting device and method |
| CN106383264A (en) * | 2016-06-08 | 2017-02-08 | 江苏现代电力科技股份有限公司 | Anti-interference high-precision zero-crossing detection method |
| CN106383264B (en) * | 2016-06-08 | 2019-06-14 | 江苏现代电力科技股份有限公司 | Anti-interference high-precision zero passage detection method |
| CN108540112A (en) * | 2018-04-04 | 2018-09-14 | 沈机(上海)智能系统研发设计有限公司 | Control circuit, circuit control method and circuit system |
| CN108540112B (en) * | 2018-04-04 | 2021-10-22 | 沈机(上海)智能系统研发设计有限公司 | Control circuit, circuit control method and circuit system |
| CN111853840A (en) * | 2020-07-17 | 2020-10-30 | 国电泉州热电有限公司 | Slag dragging control device and method, slag dragging machine and boiler |
| CN115442210A (en) * | 2022-08-18 | 2022-12-06 | 海南电网有限责任公司 | Low-voltage power failure and restoration alarm method |
| CN115442210B (en) * | 2022-08-18 | 2025-02-28 | 海南电网有限责任公司 | A low voltage power failure alarm method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN203101494U (en) | AC (alternating current) electric supply power failure detection circuit, equipment and system | |
| CN105092948A (en) | High-precision alternating-current signal zero crossing detection device and method | |
| CN103424606B (en) | A kind of low voltage electric power carrier communication zero cross detection circuit of frequency self-adaption | |
| CN106569015B (en) | AC load detection circuit | |
| CN102890184A (en) | Zero-crossing detection circuit based on optocoupler | |
| CN204903637U (en) | High accuracy alternating current signal zero -crossing detection device | |
| CN201892702U (en) | Zero cross detection circuit | |
| CN204330873U (en) | A kind ofly gather on single live wire and be detected the circuit at zero point | |
| CN204439824U (en) | A kind of electric energy meter electric source abnormal detection circuit | |
| CN103091634B (en) | A kind of battery electric quantity indicating circuit, instruction device and light fixture | |
| CN202189120U (en) | Alternating current switch detection circuit controlled by silicon controlled rectifier | |
| CN203365654U (en) | Power supply self-detect circuit | |
| CN110609253A (en) | Photoelectric device of electric energy meter and infrared emission control method | |
| CN210201734U (en) | Device compatible with converting various alternating voltages into same output voltage | |
| CN105048830A (en) | Three-phase AC voltage regulation digital control device and control method | |
| CN201590934U (en) | Ultraviolet lamp failure detection circuit and device | |
| CN210803576U (en) | A three-phase AC zero-crossing detection circuit based on optocoupler isolation | |
| CN101943718A (en) | Phase sequence detection method and device of three-phase alternating current | |
| CN105675968A (en) | High-precision three-phase AC signal positive-negative zero-crossing detecting device and method | |
| CN204906204U (en) | Three -phase AC pressure regulating digitally controlled device | |
| CN201828604U (en) | Direct-current insulation monitoring device | |
| CN205562673U (en) | Positive and negative zero -crossing detection device of high accuracy three -phase AC signal | |
| CN206114759U (en) | Zero -crossing detection circuit | |
| CN209728148U (en) | A kind of current switch circuit in signal control device | |
| CN208636374U (en) | A kind of a-c cycle detection circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151125 |
|
| RJ01 | Rejection of invention patent application after publication |