CN105958433B - A relay zero-crossing detection and calibration method and device - Google Patents

A relay zero-crossing detection and calibration method and device Download PDF

Info

Publication number
CN105958433B
CN105958433B CN201610509497.9A CN201610509497A CN105958433B CN 105958433 B CN105958433 B CN 105958433B CN 201610509497 A CN201610509497 A CN 201610509497A CN 105958433 B CN105958433 B CN 105958433B
Authority
CN
China
Prior art keywords
zero
relay
crossing
time interval
time
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
CN201610509497.9A
Other languages
Chinese (zh)
Other versions
CN105958433A (en
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.)
Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Original Assignee
Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Beijing Haier Guangke Digital 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 Qingdao Haier Intelligent Home Appliance Technology Co Ltd, Beijing Haier Guangke Digital Technology Co Ltd filed Critical Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Priority to CN201610509497.9A priority Critical patent/CN105958433B/en
Publication of CN105958433A publication Critical patent/CN105958433A/en
Application granted granted Critical
Publication of CN105958433B publication Critical patent/CN105958433B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H3/00Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection
    • H02H3/08Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection responsive to excess current

Landscapes

  • Radio Relay Systems (AREA)

Abstract

The invention discloses a kind of detection of relay zero-crossing, calibration method and devices.Wherein, relay zero-crossing detection method, comprising: in relay conducting, the voltage-phase of control relay controlled terminal;Obtain the time interval of the adjacent zero passage twice of voltage-phase;The zero passage that time interval is sent to relay is calibrated into side.The present invention detects relay by the way that individual zero crossing detection device is arranged, and product circuit itself is not required, while without screening again to relay, can effectively save the research and development time of product, reduce the production cost of product.

Description

一种继电器过零检测、校准方法及装置A relay zero-crossing detection and calibration method and device

技术领域technical field

本发明涉及继电器控制技术领域,尤其涉及一种继电器过零检测、校准方法及装置。The invention relates to the technical field of relay control, in particular to a relay zero-crossing detection and calibration method and device.

背景技术Background technique

随着智能家居行业的发展,家庭智能化产品越来越多样化。通过手机控制灯光、窗帘已经出现在普通人家里。普通的控制灯光的机械开关已经无法满足要求,因此出现了智能开关。智能开关控制负载一般是通过继电器作为开关来控制其通断,普通的阻性或感性负载如灯泡、节能灯、窗帘电机都没有问题。但是现在LED节能灯出现后,由于其为容性负载,在负载打开时,浪涌电流对继电器触点冲击非常大,开关几次,就会损坏继电器触点,造成继电器粘连,无法正常开关灯或窗帘。With the development of the smart home industry, home smart products are becoming more and more diverse. Controlling lights and curtains through mobile phones has appeared in ordinary people's homes. Ordinary mechanical switches for controlling lights can no longer meet the requirements, so smart switches have emerged. Intelligent switch control loads generally use relays as switches to control their on-off. Ordinary resistive or inductive loads such as light bulbs, energy-saving lamps, and curtain motors are no problem. But now that LED energy-saving lamps appear, because they are capacitive loads, when the load is turned on, the surge current has a very large impact on the relay contacts. After switching several times, the relay contacts will be damaged, causing the relay to stick and fail to switch normally. lights or curtains.

目前大多数的继电器都是通过增加过零检测电路。通过检测过零点,在过零点时导通继电器,避免继电器触点收到大的电流冲击损坏。但是现有的过零检测方法有一定的局限性:一是产品电路本身会有误差,导致检测不精确;二是继电器导通的动作时间不一样,无法准确确定过零导通的时间。因此,过零检测电路要减少过零检测的误差的话,一是需要提高产品电路精度,二是对继电器进行精确筛选。但是这两种方式实际操作起来都是比较困难,非常耗时且导致产品的生产成本大大增加。因此,采用过零检测电路并不能有效解决导通对于继电器的电流冲击问题。At present, most of the relays are added by adding a zero-crossing detection circuit. By detecting the zero-crossing point, the relay is turned on at the zero-crossing point, so as to prevent the relay contact from being damaged by a large current impact. However, the existing zero-crossing detection methods have certain limitations: first, the product circuit itself has errors, resulting in inaccurate detection; second, the action time of the relay conduction is different, and the zero-crossing conduction time cannot be accurately determined. Therefore, if the zero-crossing detection circuit wants to reduce the error of zero-crossing detection, one needs to improve the accuracy of the product circuit, and the other is to accurately screen the relay. However, these two methods are difficult to operate in practice, are very time-consuming and lead to a significant increase in the production cost of the product. Therefore, the use of the zero-crossing detection circuit cannot effectively solve the problem of the current impact of the conduction on the relay.

发明内容Contents of the invention

本发明所要解决的技术问题在于提供一种继电器过零检测、校准方法及装置,用以解决现有技术中继电器导通时,易受浪涌电流冲击而损坏的问题。The technical problem to be solved by the present invention is to provide a relay zero-crossing detection and calibration method and device to solve the problem in the prior art that the relay is easily damaged by surge current when it is turned on.

为实现上述发明目的,本发明采用下述的技术方案。In order to realize the above-mentioned purpose of the invention, the present invention adopts the following technical solutions.

依据本发明的一个方面,提供一种继电器过零检测方法,用于过零检测侧中,包括:According to one aspect of the present invention, a relay zero-crossing detection method is provided, which is used in the zero-crossing detection side, including:

在所述继电器导通时,检测所述继电器被控端的电压相位;When the relay is turned on, detecting the voltage phase of the controlled terminal of the relay;

获取电压相位相邻两次过零的时间间隔;Obtain the time interval between two adjacent zero-crossings of the voltage phase;

将所述时间间隔发送至所述继电器的过零校准侧。The time interval is sent to the zero-crossing calibration side of the relay.

进一步地,采用zigbee无线通信协议,将所述时间间隔发送至继电器过零校准侧。Further, the zigbee wireless communication protocol is used to send the time interval to the zero-crossing calibration side of the relay.

依据本发明的一个方面,提供一种继电器过零校准方法,用于过零校准侧,包括:According to one aspect of the present invention, a relay zero-crossing calibration method is provided, which is used on the zero-crossing calibration side, including:

接收过零检测侧发送的继电器导通时被控端电压相位相邻两次过零的时间间隔;The time interval between two adjacent zero-crossing phases of the voltage phase of the controlled terminal when the relay sent by the zero-crossing detection side is turned on;

将所述时间间隔与预设阈值进行对比,根据对比结果对所述继电器的过零时间进行校准。The time interval is compared with a preset threshold, and the zero-crossing time of the relay is calibrated according to the comparison result.

进一步地,采用zigbee无线通信协议,接收所述被控端电压相位相邻两次过零的时间间隔。Further, the zigbee wireless communication protocol is used to receive the time interval between two adjacent zero-crossing phases of the controlled terminal voltage.

进一步地,所述根据对比结果对所述继电器的过零时间进行校准,包括:Further, the calibration of the zero-crossing time of the relay according to the comparison result includes:

计算所述时间间隔与所述预设阈值的差值;calculating the difference between the time interval and the preset threshold;

当所述时间间隔大于所述预设阈值时,在检测到所述继电器第一次电压相位为零的时间点后,将所述继电器第二次电压相位为零的时间点提前所述差值;When the time interval is greater than the preset threshold, after detecting the time point when the first voltage phase of the relay is zero, advance the time point when the second voltage phase of the relay is zero by the difference value ;

当所述时间间隔小于所述预设阈值时,在检测到所述继电器第一次电压相位为零的时间点后,将所述继电器第二次电压相位为零的时间点延迟所述差值。When the time interval is less than the preset threshold, after detecting the time point when the first voltage phase of the relay is zero, delaying the time point when the second voltage phase of the relay is zero by the difference value .

进一步地,所述根据对比结果对所述继电器的过零时间进行校准时,还包括:当所述时间间隔等于所述预设阈值时,将所述时间间隔进行存储。Further, when calibrating the zero-crossing time of the relay according to the comparison result, the method further includes: storing the time interval when the time interval is equal to the preset threshold.

依据本发明的一个方面,提供一种继电器过零检测装置,包括:According to one aspect of the present invention, a relay zero-crossing detection device is provided, including:

检测单元,用于在所述继电器导通时,检测所述继电器被控端的电压相位;a detection unit, configured to detect the voltage phase of the controlled terminal of the relay when the relay is turned on;

获取单元,用于获取电压相位相邻两次过零的时间间隔;An acquisition unit, configured to acquire the time interval between two adjacent zero-crossings of the voltage phase;

发送单元,用于将所述时间间隔发送至所述继电器的过零校准侧。A sending unit, configured to send the time interval to the zero-crossing calibration side of the relay.

进一步地,所述发送单元采用zigbee无线通信协议将所述时间间隔发送至继电器过零校准侧。Further, the sending unit uses the zigbee wireless communication protocol to send the time interval to the zero-crossing calibration side of the relay.

依据本发明的一个方面,提供一种继电器过零校准装置,包括:According to one aspect of the present invention, a relay zero-crossing calibration device is provided, including:

接收单元,用于接收过零检测侧发送的继电器导通时,被控端电压相位相邻两次过零的时间间隔;The receiving unit is used to receive the time interval between two adjacent zero-crossing voltage phases of the controlled terminal when the relay sent by the zero-crossing detection side is turned on;

对比单元,用于将所述时间间隔与预设阈值进行对比;a comparison unit, configured to compare the time interval with a preset threshold;

校准单元,用于根据对比结果对所述继电器的过零时间进行校准。The calibration unit is used to calibrate the zero-crossing time of the relay according to the comparison result.

进一步地,所述接收单元采用zigbee无线通信协议接收所述被控端电压相位相邻两次过零的时间间隔。Further, the receiving unit adopts the zigbee wireless communication protocol to receive the time interval between two adjacent zero crossings of the voltage phase of the controlled terminal.

进一步地,所述校准单元具体用于:Further, the calibration unit is specifically used for:

计算所述时间间隔与所述预设阈值的差值;calculating the difference between the time interval and the preset threshold;

当所述时间间隔大于所述预设阈值时,在检测到所述继电器第一次电压相位为零的时间点后,将所述继电器第二次电压相位为零的时间点提前所述差值;When the time interval is greater than the preset threshold, after detecting the time point when the first voltage phase of the relay is zero, advance the time point when the second voltage phase of the relay is zero by the difference value ;

当所述时间间隔小于所述预设阈值时,在检测到所述继电器第一次电压相位为零的时间点后,将所述继电器第二次电压相位为零的时间点延迟所述差值。When the time interval is less than the preset threshold, after detecting the time point when the first voltage phase of the relay is zero, delaying the time point when the second voltage phase of the relay is zero by the difference value .

进一步地,所述装置还包括存储单元,用于当所述时间间隔等于所述预设阈值时,将所述时间间隔进行存储。Further, the device further includes a storage unit, configured to store the time interval when the time interval is equal to the preset threshold.

本发明具有以下有益效果:The present invention has the following beneficial effects:

本发明实施例所提供的继电器过零检测、校准方法及装置,只需增加一个过零检测装置,通过过零检测装置来检测每一路负载在继电器动作时的过零时间;并将检测的两个相邻两次电压相位为零的时间间隔通过zigbee无线通信协议发送给智能电子产品中;由智能电子产品根据过零时间间隔判断过零时间是否准确,并调整至准确的过零点为止。通过本发明既不用提高电路精度和对继电器进行筛选,就可以有效避免继电器触点的浪涌电流,从而使继电器受到保护,增加其使用寿命;通过配置独立的检测电路,可以有效降低产品的生产成本。The relay zero-crossing detection and calibration method and device provided by the embodiments of the present invention only need to add a zero-crossing detection device to detect the zero-crossing time of each load when the relay operates through the zero-crossing detection device; The time interval between two adjacent voltage phases being zero is sent to the smart electronic product through the zigbee wireless communication protocol; the smart electronic product judges whether the zero-crossing time is accurate according to the zero-crossing time interval, and adjusts to the accurate zero-crossing point. The invention can effectively avoid the surge current of the relay contact without improving the circuit precision and screening the relay, so that the relay is protected and its service life is increased; by configuring an independent detection circuit, the production of the product can be effectively reduced cost.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are only some embodiments of the present invention, and those skilled in the art can also obtain other drawings based on these drawings without any creative effort.

图1为本发明实施例中继电器过零检测方法的流程图;Fig. 1 is the flow chart of relay zero-crossing detection method in the embodiment of the present invention;

图2为本发明实施例中继电器过零校准方法的流程图;Fig. 2 is the flow chart of the relay zero-crossing calibration method in the embodiment of the present invention;

图3为本发明实施例中继电器过零检测装置的结构框图;Fig. 3 is the structural block diagram of relay zero-crossing detection device in the embodiment of the present invention;

图4为本发明实施例中继电器过零检测装置的电路结构示意图;4 is a schematic diagram of a circuit structure of a relay zero-crossing detection device in an embodiment of the present invention;

图5为本发明实施例中产品中继电器的电路结构示意图;Fig. 5 is the schematic diagram of the circuit structure of the relay in the product in the embodiment of the present invention;

图6为本发明实施例中继电器过零校准装置的结构框图。Fig. 6 is a structural block diagram of a relay zero-crossing calibration device in an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

实施例1Example 1

本发明实施例提供了一种继电器过零检测方法,用于过零检测侧,参见图1,具体包括如下步骤:An embodiment of the present invention provides a relay zero-crossing detection method for the zero-crossing detection side, see Figure 1, which specifically includes the following steps:

步骤101,在继电器导通时,检测继电器被控端的电压相位;Step 101, when the relay is turned on, detect the voltage phase of the controlled terminal of the relay;

在该步骤中,过零检测侧检测继电器被控端(即输出端)两端的电压,可以有效避免因继电器自身的延迟导致的误差。因此,通过检测继电器被控端的电压相位,无需考虑继电器本身的延迟情况,只需获取继电器输出端的电压即可。In this step, the zero-crossing detection side detects the voltage at both ends of the controlled terminal (that is, the output terminal) of the relay, which can effectively avoid errors caused by the delay of the relay itself. Therefore, by detecting the voltage phase of the controlled terminal of the relay, it is not necessary to consider the delay of the relay itself, and only need to obtain the voltage of the output terminal of the relay.

步骤102,获取电压相位相邻两次过零的时间间隔。Step 102, acquiring the time interval between two adjacent zero crossings of the voltage phase.

在该步骤中,在获取过零时间间隔时,首先在接收到继电器通断控制指令时(即打开开关时),检测继电器的电压相位为零时的零点时间t0;接着检测继电器导通时,电压相位为零的过零时间t1。计算过零点时间间隔T=t1-t0。In this step, when obtaining the zero-crossing time interval, first when receiving the relay on-off control command (that is, when the switch is turned on), detect the zero time t0 when the voltage phase of the relay is zero; then detect when the relay is turned on, The zero-crossing time t1 at which the voltage phase is zero. Calculate the zero-crossing time interval T=t1-t0.

步骤103,将时间间隔发送至继电器的过零校准侧。Step 103, sending the time interval to the zero-crossing calibration side of the relay.

在该步骤中,过零检测侧为独立的装置。过零检测侧获取电压相位相邻两次过零的时间间隔后,将该时间间隔发送至继电器的过零校准侧,对于后续继电器导通时的过零时间点则停止进行检测。In this step, the zero-cross detection side is an independent device. After the zero-crossing detection side obtains the time interval between two adjacent zero-crossings of the voltage phase, the time interval is sent to the zero-crossing calibration side of the relay, and the detection of the zero-crossing time point when the subsequent relay is turned on is stopped.

通常过零校准侧位于智能电子产品中。目前智能电子产品通常可以实现无线控制,因此过零检测侧同样采用无线方式,将时间间隔发送至过零校准侧。具体地,可以采用蓝牙、wifi、zigbee等。本发明实施例中优选采用zigbee无线通信协议。Zigbee协议传播距离近、低功耗、低成本、协议简单,可以有效降低过零检测侧的成本,同时保证数据的可靠传输。Usually the zero-crossing calibration side is located in the smart electronics. At present, smart electronic products can usually realize wireless control, so the zero-crossing detection side also adopts a wireless method to send the time interval to the zero-crossing calibration side. Specifically, bluetooth, wifi, zigbee, etc. can be used. In the embodiment of the present invention, the zigbee wireless communication protocol is preferably adopted. The Zigbee protocol has short propagation distance, low power consumption, low cost, and simple protocol, which can effectively reduce the cost of the zero-crossing detection side and ensure reliable data transmission.

本发明实施例所提供的继电器过零检测方法,通过检测继电器被控端的电压相位,无需再考虑继电器本身导通的动作时间,根据两次过零的时间间隔,过零校准侧即可实现过零校准。因此,本发明实施例通过设置单独的过零检测装置对继电器进行检测,对于产品电路本身没有要求,同时无需对继电器再进行筛选,可以有效节省产品的研发时间,降低产品的生产成本。The relay zero-crossing detection method provided by the embodiment of the present invention detects the voltage phase of the controlled terminal of the relay without considering the action time of the relay itself being turned on. According to the time interval between two zero-crossings, the zero-crossing calibration side can realize the Zero calibration. Therefore, the embodiment of the present invention detects the relay by setting a separate zero-crossing detection device, which does not require the product circuit itself, and does not need to screen the relay, which can effectively save product development time and reduce product production costs.

实施例2Example 2

本发明实施例还提供了一种继电器过零校准方法,用于过零校准侧,参见图2,具体包括如下步骤:The embodiment of the present invention also provides a relay zero-crossing calibration method for the zero-crossing calibration side, see Figure 2, which specifically includes the following steps:

步骤201,接收过零检测侧发送的继电器导通时被控端电压相位相邻两次过零的时间间隔。Step 201 , receiving the time interval between two adjacent zero-crossing phases of the voltage phase of the controlled terminal when the relay is turned on from the zero-crossing detection side.

在该步骤中,过零校准侧可以采用蓝牙、wifi、zigbee等无线通信协议。优选采用zigbee无线通信协议,便于降低产品成本,同时保证数据可靠传输。通过zigbee通信协议的智能电子产品,使得产品不受火线、零线、路数限制,通过智能设备即可实现产品的远程控制,便于实现家庭智能化。In this step, wireless communication protocols such as bluetooth, wifi, and zigbee can be used on the zero-crossing calibration side. The zigbee wireless communication protocol is preferably used to reduce product costs and ensure reliable data transmission. Smart electronic products through the zigbee communication protocol make the product not limited by the number of live wires, neutral wires, and channels, and the remote control of the product can be realized through smart devices, which is convenient for realizing home intelligence.

步骤202,将时间间隔与预设阈值进行对比,根据对比结果对所述继电器的过零时间进行校准。Step 202, comparing the time interval with a preset threshold, and calibrating the zero-crossing time of the relay according to the comparison result.

本发明实施例中,通常采用标准的50HZ交流波形,全波周期为20ms,半波周期为10ms。也就是两个过零点之间的时间间隔为10ms。因此,本发明实施例中预设阈值采用10ms,将过零时间间隔与10ms进行比较。根据比较的差值,对继电器的过零时间进行校准。In the embodiment of the present invention, a standard 50HZ AC waveform is usually used, the full-wave period is 20ms, and the half-wave period is 10ms. That is, the time interval between two zero-crossing points is 10ms. Therefore, in the embodiment of the present invention, the preset threshold is 10 ms, and the zero-crossing time interval is compared with 10 ms. Based on the compared difference, the zero-crossing time of the relay is calibrated.

在根据对比结果对继电器的过零时间进行校准时,具体包括如下步骤:When calibrating the zero-crossing time of the relay according to the comparison result, the specific steps are as follows:

计算过零时间间隔与预设时间阈值的差值;Calculate the difference between the zero-crossing time interval and the preset time threshold;

当时间间隔大于预设阈值时,在检测到继电器第一次电压相位为零的时间点后,将继电器第二次电压相位为零的时间点提前相应的差值;When the time interval is greater than the preset threshold, after detecting the time point when the first voltage phase of the relay is zero, advance the time point when the second voltage phase of the relay is zero by the corresponding difference;

当时间间隔小于预设阈值时,在检测到继电器第一次电压相位为零的时间点后,将继电器第二次电压相位为零的时间点延迟相应的差值;When the time interval is less than the preset threshold, after detecting the time point when the relay voltage phase is zero for the first time, delay the time point when the relay voltage phase is zero for the second time by a corresponding difference;

当时间间隔等于预设阈值时,将该时间间隔存储至电子产品中,作为继电器的导通时过零点的时间间隔,同时提示校准成功。When the time interval is equal to the preset threshold value, the time interval is stored in the electronic product as the time interval of the zero crossing when the relay is turned on, and at the same time, it prompts that the calibration is successful.

本发明实施例所提供的过零检测校准方法,通过过零检测装置来检测每一路负载在继电器动作时的过零时间;并将检测的两个相邻两次电压相位为零的时间间隔通过zigbee无线通信协议将发送给智能电子产品中;由智能电子产品根据过零时间间隔判断过零时间是否准确,并调整至准确的过零点为止。通过本发明既不用提高电路精度和对继电器进行筛选,就可以有效避免继电器触点的浪涌电流,从而使继电器受到保护。另外,本发明无需对硬件电路进行变更设计,降低了硬件成本。The zero-crossing detection and calibration method provided by the embodiment of the present invention uses a zero-crossing detection device to detect the zero-crossing time of each load when the relay operates; The zigbee wireless communication protocol will be sent to the smart electronic product; the smart electronic product judges whether the zero-crossing time is accurate according to the zero-crossing time interval, and adjusts to the accurate zero-crossing point. The invention can effectively avoid the surge current of the relay contacts without improving the circuit precision and screening the relays, so that the relays are protected. In addition, the present invention does not need to change the design of the hardware circuit, thereby reducing the hardware cost.

实施例3Example 3

参见图3,本发明实施例还提供了一种继电器过零检测装置,包括:Referring to Fig. 3, the embodiment of the present invention also provides a relay zero-crossing detection device, including:

检测单元,用于在继电器导通时,检测继电器被控端的电压相位;The detection unit is used to detect the voltage phase of the controlled terminal of the relay when the relay is turned on;

获取单元,用于获取电压相位相邻两次过零的时间间隔;An acquisition unit, configured to acquire the time interval between two adjacent zero-crossings of the voltage phase;

发送单元,用于将时间间隔发送至继电器的过零校准侧。Sending unit for sending the time interval to the zero-crossing calibration side of the relay.

进一步地,发送单元采用zigbee无线通信协议将时间间隔发送至继电器过零校准侧。本发明实施例中优选采用zigbee无线通信协议。Zigbee协议传播距离近、低功耗、低成本、协议简单,可以有效降低过零检测侧的成本,同时保证数据的可靠传输。Further, the sending unit uses the zigbee wireless communication protocol to send the time interval to the zero-crossing calibration side of the relay. In the embodiment of the present invention, the zigbee wireless communication protocol is preferably adopted. The Zigbee protocol has short propagation distance, low power consumption, low cost, and simple protocol, which can effectively reduce the cost of the zero-crossing detection side and ensure reliable data transmission.

进一步地,继电器过零检测装置的电路图,如图4所示,可实现图5中产品中的继电器K1和K2进行过零检测。图4中可实现两个继电器的过零点检测,以继电器K1的过零检测为例进行说明。其中,光电耦合器IC6与电阻R110、电阻R117、电阻R118串联,用于将220V强电和弱电信号隔离;电阻R110、电阻R117、电阻R118为220V回路限流电阻;电阻R119为光耦导通的限流电阻,通过光电耦合器IC6接地;电阻R119与光电耦合器IC6的连接点通过电阻R141连接三极管N115的基极;N115的基极通过电阻R143连接地;电阻R143为光耦导通的分压电阻,两端并联电容C126;电容C126为滤波电容,滤除电源干扰毛刺;三极管N115为波形整形,射极接地,集电极通过电阻R142连接+5V电源,提高抗干扰性;电阻R142和电容C21为MCU采集信号滤波功率。Further, the circuit diagram of the relay zero-crossing detection device is shown in FIG. 4 , which can realize the zero-crossing detection of the relays K1 and K2 in the product in FIG. 5 . In Fig. 4, the zero-crossing detection of two relays can be realized, and the zero-crossing detection of relay K1 is taken as an example for illustration. Among them, photocoupler IC6 is connected in series with resistor R110, resistor R117, and resistor R118 to isolate 220V strong and weak current signals; resistor R110, resistor R117, and resistor R118 are 220V circuit current limiting resistors; resistor R119 is the optocoupler conduction The current limiting resistor is grounded through the photocoupler IC6; the connection point of the resistor R119 and the photocoupler IC6 is connected to the base of the transistor N115 through the resistor R141; the base of N115 is connected to the ground through the resistor R143; the resistor R143 is the conduction of the photocoupler Voltage divider resistor, capacitor C126 connected in parallel at both ends; capacitor C126 is a filter capacitor to filter out power supply interference glitches; triode N115 is for waveform shaping, emitter is grounded, and collector is connected to +5V power supply through resistor R142 to improve anti-interference; resistor R142 and Capacitor C21 is the filtering power of the signal collected by the MCU.

本发明实施例所提供的继电器过零检测装置,通过检测继电器被控端的相邻两次电压相位为零的时间间隔,并通过无线通信协议发送至过零校准侧,由过零校准侧实现过零校准。通过设置单独的过零检测装置对继电器进行检测,无需在电子产品中配置过零检测电路,可以有效降低产品的生产成本。The relay zero-crossing detection device provided by the embodiment of the present invention detects the time interval between two adjacent voltage phases of the controlled terminal of the relay being zero, and sends it to the zero-crossing calibration side through a wireless communication protocol, and the zero-crossing calibration side realizes the zero-crossing calibration. Zero calibration. By setting a separate zero-crossing detection device to detect the relay, there is no need to configure a zero-crossing detection circuit in the electronic product, which can effectively reduce the production cost of the product.

实施例4Example 4

参见图6,本发明实施例还提供了一种继电器过零校准装置,包括:Referring to Figure 6, the embodiment of the present invention also provides a relay zero-crossing calibration device, including:

接收单元,用于接收过零检测侧发送的继电器导通时,被控端电压相位相邻两次过零的时间间隔;The receiving unit is used to receive the time interval between two adjacent zero-crossing voltage phases of the controlled terminal when the relay sent by the zero-crossing detection side is turned on;

对比单元,用于将时间间隔与预设阈值进行对比;a comparison unit, configured to compare the time interval with a preset threshold;

校准单元,用于根据对比结果对继电器的过零时间进行校准。The calibration unit is used for calibrating the zero-crossing time of the relay according to the comparison result.

进一步地,接收单元采用zigbee无线通信协议接收被控端电压相位相邻两次过零的时间间隔。Further, the receiving unit adopts the zigbee wireless communication protocol to receive the time interval between two adjacent zero-crossing voltage phases of the controlled terminal.

进一步地,校准单元具体用于:Further, the calibration unit is specifically used for:

计算时间间隔与预设阈值的差值;Calculate the difference between the time interval and the preset threshold;

当时间间隔大于预设阈值时,在检测到继电器第一次电压相位为零的时间点后,将继电器第二次电压相位为零的时间点提前差值;When the time interval is greater than the preset threshold, after detecting the time point when the first voltage phase of the relay is zero, advance the time point when the second voltage phase of the relay is zero;

当时间间隔小于预设阈值时,在检测到继电器第一次电压相位为零的时间点后,将继电器第二次电压相位为零的时间点延迟差值。When the time interval is less than the preset threshold, after detecting the time point when the relay voltage phase is zero for the first time, delay the time point when the relay voltage phase is zero for the second time by a difference value.

进一步地,装置还包括存储单元,用于当时间间隔等于预设阈值时,将时间间隔进行存储。Further, the device further includes a storage unit, configured to store the time interval when the time interval is equal to a preset threshold.

本发明实施例所提供的过零检测校准装置,由智能电子产品本身的CPU根据过零时间间隔判断继电器的过零时间是否准确,并调整至准确的过零点为止。通过本发明既不用提高电路精度和对继电器进行筛选,就可以有效避免继电器触点的浪涌电流,从而使继电器受到保护。In the zero-crossing detection and calibration device provided by the embodiment of the present invention, the CPU of the intelligent electronic product itself judges whether the zero-crossing time of the relay is accurate according to the zero-crossing time interval, and adjusts to the accurate zero-crossing point. The invention can effectively avoid the surge current of the relay contacts without improving the circuit precision and screening the relays, so that the relays are protected.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于系统实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。并且,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。另外,本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the related parts, please refer to the part of the description of the method embodiment. And, as used herein, the terms "comprises," "comprising," or any other variation thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that includes a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, article, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element. In addition, those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium , the storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like.

虽然通过实施例描述了本申请,本领域的技术人员知道,本申请有许多变形和变化而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Although the present application has been described by way of example, those skilled in the art will appreciate that there are many variations and changes in the present application without departing from the spirit and scope of the invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (12)

1.一种继电器过零检测方法,用于过零检测侧中,其特征在于,包括:1. A relay zero-crossing detection method, used in the zero-crossing detection side, is characterized in that, comprising: 在所述继电器导通时,检测所述继电器被控端的电压相位;When the relay is turned on, detecting the voltage phase of the controlled terminal of the relay; 获取电压相位相邻两次过零的时间间隔,具体包括:Obtain the time interval between two adjacent zero-crossings of the voltage phase, including: 在接收到继电器通断控制指令时,检测继电器的电压相位为零时的零点时间t0,检测继电器导通时电压相位为零的过零时间tl,计算过零点时间间隔T,T=t1-t0;When receiving the relay on-off control command, detect the zero time t0 when the voltage phase of the relay is zero, detect the zero-crossing time tl when the voltage phase is zero when the relay is turned on, and calculate the zero-crossing time interval T, T=t1-t0 ; 将所述时间间隔发送至所述继电器的过零校准侧。The time interval is sent to the zero-crossing calibration side of the relay. 2.如权利要求1所述的方法,其特征在于,采用zigbee无线通信协议,将所述时间间隔发送至继电器过零校准侧。2. The method according to claim 1, characterized in that, adopting the zigbee wireless communication protocol, the time interval is sent to the zero-crossing calibration side of the relay. 3.一种继电器过零校准方法,用于过零校准侧,其特征在于,包括:3. A relay zero-crossing calibration method for the zero-crossing calibration side, characterized in that, comprising: 接收过零检测侧发送的如权利要求1所述的时间间隔;receiving the time interval according to claim 1 sent by the zero-crossing detection side; 将所述时间间隔与预设阈值进行对比,根据对比结果对所述继电器的过零时间进行校准。The time interval is compared with a preset threshold, and the zero-crossing time of the relay is calibrated according to the comparison result. 4.如权利要求3所述的方法,其特征在于,采用zigbee无线通信协议,接收所述被控端电压相位相邻两次过零的时间间隔。4. The method according to claim 3, wherein the zigbee wireless communication protocol is used to receive the time interval between two adjacent zero-crossing phases of the controlled terminal voltage. 5.如权利要求3所述的方法,其特征在于,所述根据对比结果对所述继电器的过零时间进行校准,包括:5. The method according to claim 3, wherein the calibration of the zero-crossing time of the relay according to the comparison result comprises: 计算所述时间间隔与所述预设阈值的差值;calculating the difference between the time interval and the preset threshold; 当所述时间间隔大于所述预设阈值时,在检测到所述继电器第一次电压相位为零的时间点后,将所述继电器第二次电压相位为零的时间点提前所述差值;When the time interval is greater than the preset threshold, after detecting the time point when the first voltage phase of the relay is zero, advance the time point when the second voltage phase of the relay is zero by the difference value ; 当所述时间间隔小于所述预设阈值时,在检测到所述继电器第一次电压相位为零的时间点后,将所述继电器第二次电压相位为零的时间点延迟所述差值。When the time interval is less than the preset threshold, after detecting the time point when the first voltage phase of the relay is zero, delaying the time point when the second voltage phase of the relay is zero by the difference value . 6.如权利要求3所述的方法,其特征在于,所述根据对比结果对所述继电器的过零时间进行校准时,还包括:当所述时间间隔等于所述预设阈值时,将所述时间间隔进行存储。6. The method according to claim 3, wherein, when calibrating the zero-crossing time of the relay according to the comparison result, further comprising: when the time interval is equal to the preset threshold, setting the The above time intervals are stored. 7.一种继电器过零检测装置,其特征在于,包括:7. A relay zero-crossing detection device, characterized in that it comprises: 检测单元,用于在所述继电器导通时,检测所述继电器被控端的电压相位;a detection unit, configured to detect the voltage phase of the controlled terminal of the relay when the relay is turned on; 获取单元,用于获取电压相位相邻两次过零的时间间隔,具体用于:The acquisition unit is used to acquire the time interval between two adjacent zero crossings of the voltage phase, specifically for: 在接收到继电器通断控制指令时,检测继电器的电压相位为零时的零点时间t0,检测继电器导通时电压相位为零的过零时间tl,计算过零点时间间隔T,T=t1-t0;When receiving the relay on-off control command, detect the zero-point time t0 when the voltage phase of the relay is zero, detect the zero-crossing time tl when the voltage phase is zero when the relay is turned on, and calculate the zero-crossing time interval T, T=t1-t0 ; 发送单元,用于将所述时间间隔发送至所述继电器的过零校准侧。A sending unit, configured to send the time interval to the zero-crossing calibration side of the relay. 8.如权利要求7所述的装置,其特征在于,所述发送单元采用zigbee无线通信协议将所述时间间隔发送至继电器过零校准侧。8. The device according to claim 7, wherein the sending unit uses the zigbee wireless communication protocol to send the time interval to the zero-crossing calibration side of the relay. 9.一种继电器过零校准装置,其特征在于,包括:9. A relay zero-crossing calibration device, characterized in that it comprises: 接收单元,用于接收过零检测侧发送的如权利要求7所述的时间间隔;A receiving unit, configured to receive the time interval according to claim 7 sent by the zero-crossing detection side; 对比单元,用于将所述时间间隔与预设阈值进行对比;a comparison unit, configured to compare the time interval with a preset threshold; 校准单元,用于根据对比结果对所述继电器的过零时间进行校准。The calibration unit is used to calibrate the zero-crossing time of the relay according to the comparison result. 10.如权利要求9所述的装置,其特征在于,所述接收单元采用zigbee无线通信协议接收所述被控端电压相位相邻两次过零的时间间隔。10 . The device according to claim 9 , wherein the receiving unit uses the zigbee wireless communication protocol to receive the time interval between two adjacent zero-crossing phases of the controlled terminal voltage. 11 . 11.如权利要求9所述的装置,其特征在于,所述校准单元具体用于:11. The device according to claim 9, wherein the calibration unit is specifically used for: 计算所述时间间隔与所述预设阈值的差值;calculating the difference between the time interval and the preset threshold; 当所述时间间隔大于所述预设阈值时,在检测到所述继电器第一次电压相位为零的时间点后,将所述继电器第二次电压相位为零的时间点提前所述差值;When the time interval is greater than the preset threshold, after detecting the time point when the first voltage phase of the relay is zero, advance the time point when the second voltage phase of the relay is zero by the difference value ; 当所述时间间隔小于所述预设阈值时,在检测到所述继电器第一次电压相位为零的时间点后,将所述继电器第二次电压相位为零的时间点延迟所述差值。When the time interval is less than the preset threshold, after detecting the time point when the first voltage phase of the relay is zero, delaying the time point when the second voltage phase of the relay is zero by the difference value . 12.如权利要求9所述的装置,其特征在于,所述装置还包括存储单元,用于当所述时间间隔等于所述预设阈值时,将所述时间间隔进行存储。12. The device according to claim 9, further comprising a storage unit, configured to store the time interval when the time interval is equal to the preset threshold.
CN201610509497.9A 2016-06-30 2016-06-30 A relay zero-crossing detection and calibration method and device Active CN105958433B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610509497.9A CN105958433B (en) 2016-06-30 2016-06-30 A relay zero-crossing detection and calibration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610509497.9A CN105958433B (en) 2016-06-30 2016-06-30 A relay zero-crossing detection and calibration method and device

Publications (2)

Publication Number Publication Date
CN105958433A CN105958433A (en) 2016-09-21
CN105958433B true CN105958433B (en) 2019-08-09

Family

ID=56903037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610509497.9A Active CN105958433B (en) 2016-06-30 2016-06-30 A relay zero-crossing detection and calibration method and device

Country Status (1)

Country Link
CN (1) CN105958433B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445336B (en) * 2018-10-30 2022-05-17 温州市麦特力克电器有限公司 Switch control circuit and switch control system
CN109994341B (en) * 2019-03-29 2020-08-14 公牛集团股份有限公司 Relay zero switch self-calibration method and system
CN110535162B (en) * 2019-09-23 2021-09-03 阳光电源(上海)有限公司 Local load starting control method of energy storage inverter and energy storage inverter
CN111474404A (en) * 2020-04-26 2020-07-31 杭州梅蒂斯智能科技有限公司 Intelligent switch adjusting method with self-adaptive zero-crossing detection function
CN113433451B (en) * 2021-06-21 2022-05-20 西蒙电气(中国)有限公司 Relay zero-crossing switch

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645655A (en) * 2013-12-24 2014-03-19 上海贝岭股份有限公司 Control method of relay for one-phase smart electric meter
CN105261523A (en) * 2015-10-29 2016-01-20 厦门市智联信通物联网科技有限公司 Relay zero-crossing on and off control method and relay zero-crossing on and off control system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE516437C2 (en) * 2000-06-07 2002-01-15 Abb Ab Method, apparatus, apparatus and use, computer program with computer product for predicting a zero passage of an AC
JP4825648B2 (en) * 2006-11-28 2011-11-30 三菱電機株式会社 Switch control device
CN101403778A (en) * 2008-10-23 2009-04-08 泰豪科技股份有限公司 Self-adapting assembly line type AC parameter measuring method
CN104934264B (en) * 2015-07-09 2017-08-29 深圳市兰丁科技有限公司 A kind of method and system of protective relay

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645655A (en) * 2013-12-24 2014-03-19 上海贝岭股份有限公司 Control method of relay for one-phase smart electric meter
CN105261523A (en) * 2015-10-29 2016-01-20 厦门市智联信通物联网科技有限公司 Relay zero-crossing on and off control method and relay zero-crossing on and off control system

Also Published As

Publication number Publication date
CN105958433A (en) 2016-09-21

Similar Documents

Publication Publication Date Title
CN105958433B (en) A relay zero-crossing detection and calibration method and device
US10034353B2 (en) Intelligent lighting control bulb detection apparatuses, systems, and methods
US11445592B2 (en) Intelligent lighting control power measurement apparatuses, systems, and methods
US20170295631A1 (en) Intelligent lighting control multi-switch apparatuses, systems, and methods
US9602022B2 (en) Electrical device for use with a multiway switch system
US10845397B2 (en) Systems and methods for detecting load coupling and for detecting a load type
BRPI0613238A2 (en) lighting dimmer switch, method for controlling a load in a circuit and power supply system for a load from a power source
CN103424606B (en) A kind of low voltage electric power carrier communication zero cross detection circuit of frequency self-adaption
CN103982985A (en) Air conditioner running parameter adjustment method and system
US20160012989A1 (en) Device to allow a two-way switch to operate in a multiple-switch electrical circuit
RU2691111C2 (en) Control of power supply in devices
CN103884383A (en) Temperature measurement and identification circuit of built-in battery, battery, detecting device and detecting method
CN203415497U (en) Adjustable static time relay
CN101794682A (en) Intelligent controller of frame circuit breaker
CN108183819B (en) Configuration method and device of networking mode and LED lighting device
CN110244172A (en) A system and method for detecting zero and live wires of household meter incoming wires
CN103559895A (en) Audio playing terminal
CN105680256A (en) Intelligent socket
US11855712B2 (en) Power extender for smart-home controllers using 2-wire communication
CN205644173U (en) Controlling means through single live wire communication
CN203786541U (en) Intelligent Voice Home Appliance Control System Based on Wireless Communication
CN217178688U (en) Heating system and temperature control device thereof
CN201663117U (en) Intelligent controller of frame circuit breaker
CN107295333B (en) A kind of display equipment and its control method
CN209841985U (en) Zero fire line detecting system of house meter inlet wire

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230425

Address after: 266101 Haier Industrial Park, 1 Haier Road, Laoshan District, Shandong, Qingdao

Patentee after: QINGDAO HAIER INTELLIGENT HOME APPLIANCE TECHNOLOGY Co.,Ltd.

Address before: 100086 Beijing Haidian District Zhichun Road 106 Zhongguancun Crown Plaza office 15 Floor

Patentee before: BEIJING HAIER GUANGKE DIGITAL TECHNOLOGY Co.,Ltd.

Patentee before: QINGDAO HAIER INTELLIGENT HOME APPLIANCE TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right