Silicon controlled rectifier dimmer, alternating current power supply phase detection method and device and storage medium

文档序号:1707734 发布日期:2019-12-13 浏览:22次 中文

阅读说明:本技术 可控硅调光器及交流电源相位检测方法、装置和存储介质 (Silicon controlled rectifier dimmer, alternating current power supply phase detection method and device and storage medium ) 是由 冯伟 卢云逸 于 2019-09-02 设计创作,主要内容包括:本发明公开了一种交流电源相位检测方法,该方法包括:获取交流电源经半桥电路整流后的输出信号;检测所述输出信号中相邻两个高电平信号的上升沿时刻和下降沿时刻;根据所述相邻两个高电平信号的上升沿时刻和下降沿时刻,确定所述交流电源的零点电压的相位。本发明还公开了一种交流电源相位检测装置、可控硅调光器和可读存储介质。本发明旨在有效缩小可控硅调光器的体积,提高可控硅调光器应用的适用性。(The invention discloses a method for detecting the phase of an alternating current power supply, which comprises the following steps: acquiring an output signal of an alternating current power supply after rectification by a half-bridge circuit; detecting rising edge time and falling edge time of two adjacent high-level signals in the output signals; and determining the phase of the zero voltage of the alternating current power supply according to the rising edge time and the falling edge time of the two adjacent high-level signals. The invention also discloses an alternating current power supply phase detection device, a silicon controlled rectifier dimmer and a readable storage medium. The invention aims to effectively reduce the volume of the silicon controlled dimmer and improve the applicability of the silicon controlled dimmer.)

1. The alternating current power supply phase detection method is applied to a silicon controlled rectifier dimmer and comprises the following steps:

acquiring an output signal of an alternating current power supply after rectification by a half-bridge circuit;

detecting rising edge time and falling edge time of two adjacent high-level signals in the output signals;

And determining the phase of the zero voltage of the alternating current power supply according to the rising edge time and the falling edge time of the two adjacent high-level signals.

2. The method for detecting the phase of an ac power supply of claim 1, wherein the step of detecting the rising edge time and the falling edge time of two adjacent high-level signals in the output signal is preceded by the step of:

Shaping the output signal into a square wave signal.

3. The method for detecting the phase of an ac power supply according to claim 2, wherein the step of determining the phase of the zero voltage of the ac power supply according to the rising edge time and the falling edge time of the two adjacent high-level signals comprises:

determining a first duration of a high-level signal in the square wave signal according to the rising edge time and the falling edge time of any high-level signal;

Determining a second duration of a low level signal in the square wave signals according to a falling edge time of a previous high level signal and a rising edge time of a next high level signal in two adjacent high level signals;

Determining a phase deviation value according to the first duration and the second duration;

And determining the phase of the zero voltage of the alternating current power supply according to the phase deviation value and the rising edge time and the falling edge time of any high-level signal.

4. the method of claim 3, wherein the step of determining the phase offset value based on the first duration and the second duration comprises:

And substituting the first duration and the second duration into a preset quantity relation to obtain the phase deviation value.

5. the method of claim 4, wherein before the step of substituting the first duration and the second duration into a predetermined number relationship to obtain the phase offset value, the method further comprises:

constructing a virtual signal according to a preset rule within a second duration of a low level signal between two adjacent high level signals; the preset rule comprises that the duration of the virtual signal is the same as the first duration, and the time interval between the rising edge moment of the virtual signal and the falling edge moment of the previous high-level signal is the same as the time interval between the falling edge moment of the virtual signal and the rising edge moment of the next high-level signal;

determining a first quantity relation among the phase of the zero point voltage of the alternating current power supply, the rising edge time of the virtual signal and the falling edge time of the previous high-level signal, and determining a second quantity relation among the first duration time, the second duration time, the falling edge time of the previous high-level signal, the rising edge time of the next high-level signal, the rising edge time of the virtual signal and the falling edge time of the virtual signal;

Taking the difference between the phase of the zero voltage of the alternating current power supply and the falling edge moment of the previous high-level signal as the phase deviation value;

And determining the quantity relation among the first duration, the second duration and the phase deviation value according to the first quantity relation and the second quantity relation, and taking the quantity relation as the preset quantity relation.

6. The method for detecting the phase of an ac power supply according to claim 1, wherein the step of determining the phase of the zero voltage of the ac power supply according to the rising edge time and the falling edge time of the two adjacent high-level signals is followed by further comprising:

And returning to the step of acquiring the output signal of the alternating current power supply after rectification by the half-bridge circuit at intervals of preset duration.

7. the ac power supply phase detection method according to any one of claims 1 to 6, wherein after the step of determining the phase of the zero point voltage of the ac power supply based on the rising edge time and the falling edge time of the two adjacent high-level signals, the method further comprises:

and controlling the conduction time of the controllable silicon in the controllable silicon dimmer according to the phase of the zero voltage of the alternating-current power supply.

8. an alternating current power supply phase detection apparatus, characterized by comprising: memory, a processor and an alternating current power supply phase detection program stored on the memory and executable on the processor, the alternating current power supply phase detection program when executed by the processor implementing the steps of the alternating current power supply phase detection method according to any one of claims 1 to 7.

9. A triac dimmer comprising a half-bridge circuit and ac power phase detection means as claimed in claim 8, said half-bridge circuit being adapted to connect said ac power phase detection means to an external ac power source.

10. a readable storage medium having stored thereon an ac power supply phase detection program which, when executed by a processor, implements the steps of the ac power supply phase detection method according to any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of electric appliances, in particular to an alternating current power supply phase detection method, an alternating current power supply phase detection device, a silicon controlled rectifier dimmer and a readable storage medium.

background

because most of electrical appliances are connected to an ac power grid for use, in a silicon controlled dimmer, in order to ensure accurate and effective adjustment and control of light, it is necessary to ensure that the phase of conduction of the silicon controlled dimmer is synchronous with the phase of the ac power supply, and therefore, the phase of the zero voltage of the ac power supply needs to be accurately measured.

currently, a full-bridge circuit is generally arranged in a silicon controlled dimmer, output signals of an alternating current power supply passing through the full-bridge circuit are collected, the output signals are processed by a processor, and a simple constant is added, so that the phase of alternating current is obtained. However, the whole rectifier bridge element is generally needed in the mode of acquiring the signal of the alternating current power supply by the full-bridge circuit, and the rectifier bridge element is generally large, so that the size of the silicon controlled rectifier dimmer is large, and the silicon controlled rectifier dimmer is inconvenient to apply in some fine occasions.

the above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.

disclosure of Invention

The invention mainly aims to provide an alternating current power supply phase detection method, aiming at effectively reducing the volume of a silicon controlled rectifier dimmer and improving the application applicability of the silicon controlled rectifier dimmer.

in order to achieve the above object, the present invention provides an ac power phase detection method applied to a silicon controlled dimmer, the ac power phase detection method comprising the steps of:

Acquiring an output signal of an alternating current power supply after rectification by a half-bridge circuit;

Detecting rising edge time and falling edge time of two adjacent high-level signals in the output signals;

And determining the phase of the zero voltage of the alternating current power supply according to the rising edge time and the falling edge time of the two adjacent high-level signals.

Optionally, before the step of detecting rising edge time and falling edge time of two adjacent high-level signals in the output signal, the method further includes:

Shaping the output signal into a square wave signal.

Optionally, the step of determining the phase of the zero-point voltage of the ac power supply according to the rising edge time and the falling edge time of the two adjacent high-level signals includes:

Determining a first duration of a high-level signal in the square wave signal according to the rising edge time and the falling edge time of any high-level signal;

Determining a second duration of a low level signal in the square wave signals according to a falling edge time of a previous high level signal and a rising edge time of a next high level signal in two adjacent high level signals;

Determining a phase deviation value according to the first duration and the second duration;

and determining the phase of the zero voltage of the alternating current power supply according to the phase deviation value and the rising edge time and the falling edge time of any high-level signal.

optionally, the step of determining the phase deviation value according to the first duration and the second duration comprises:

and substituting the first duration and the second duration into a preset quantity relation to obtain the phase deviation value.

Optionally, before the step of obtaining the phase deviation value by substituting the first duration and the second duration into a preset number relationship, the method further includes:

Constructing a virtual signal according to a preset rule within a second duration of a low level signal between two adjacent high level signals; the preset rule comprises that the duration of the virtual signal is the same as the first duration, and the time interval between the rising edge moment of the virtual signal and the falling edge moment of the previous high-level signal is the same as the time interval between the falling edge moment of the virtual signal and the rising edge moment of the next high-level signal;

Determining a first quantity relation among the phase of the zero point voltage of the alternating current power supply, the rising edge time of the virtual signal and the falling edge time of the previous high-level signal, and determining a second quantity relation among the first duration time, the second duration time, the falling edge time of the previous high-level signal, the rising edge time of the next high-level signal, the rising edge time of the virtual signal and the falling edge time of the virtual signal;

Taking the difference between the phase of the zero voltage of the alternating current power supply and the falling edge moment of the previous high-level signal as the phase deviation value;

And determining the quantity relation among the first duration, the second duration and the phase deviation value according to the first quantity relation and the second quantity relation, and taking the quantity relation as the preset quantity relation.

Optionally, after the step of determining the phase of the zero-point voltage of the ac power supply according to the rising edge time and the falling edge time of the two adjacent high-level signals, the method further includes:

And returning to the step of acquiring the output signal of the alternating current power supply after rectification by the half-bridge circuit at intervals of preset duration.

optionally, after the step of determining the phase of the zero-point voltage of the ac power supply according to the rising edge time and the falling edge time of the two adjacent high-level signals, the method further includes:

And controlling the conduction time of the controllable silicon in the controllable silicon dimmer according to the phase of the zero voltage of the alternating-current power supply.

In order to achieve the above object, the present application also proposes an ac power supply phase detection apparatus including: the detection device comprises a memory, a processor and an alternating current power supply phase detection program which is stored on the memory and can run on the processor, wherein when the alternating current power supply phase detection program is executed by the processor, the steps of the alternating current power supply phase detection method are realized.

in addition, in order to achieve the above object, the present application also provides a thyristor dimmer comprising a half-bridge circuit and the ac power phase detection device as described above, wherein the half-bridge circuit is used for connecting the ac power phase detection device and an external ac power source.

Further, in order to achieve the above object, the present application also proposes a readable storage medium having stored thereon an alternating-current power supply phase detection program that, when executed by a processor, implements the steps of the alternating-current power supply phase detection method as recited in any one of the above.

The invention provides an alternating current power supply phase detection method, which is applied to a silicon controlled rectifier dimmer and comprises the steps of obtaining an output signal of an alternating current power supply after rectification by a half-bridge circuit, detecting rising edge time and falling edge time of two adjacent high level signals in the output signal, and determining the phase of zero voltage of the alternating current power supply according to the rising edge time and the falling edge time of the two adjacent high level signals.

Drawings

FIG. 1 is a schematic diagram of a hardware configuration of an embodiment of an AC power phase detection apparatus according to the invention;

FIG. 2 is a schematic flow chart illustrating a phase detection method of an AC power supply according to a first embodiment of the present invention;

FIG. 3 is a diagram illustrating the waveform variation of an electrical signal according to the method for detecting the phase of an AC power supply of the present invention;

FIG. 4 is a schematic flow chart illustrating a phase detection method of an AC power supply according to a second embodiment of the present invention;

fig. 5 is a flowchart illustrating an ac power phase detection method according to a third embodiment of the present invention.

the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

The main solution of the embodiment of the invention is as follows: acquiring an output signal of an alternating current power supply after rectification by a half-bridge circuit; detecting rising edge time and falling edge time of two adjacent high-level signals in the output signals; and determining the phase of the zero voltage of the alternating current power supply according to the rising edge time and the falling edge time of the two adjacent high-level signals.

because in the prior art, the mode that full-bridge circuit gathered alternating current power supply's signal generally needs whole rectifier bridge component, and rectifier bridge component is great usually, leads to silicon controlled rectifier dimmer's volume great, and the silicon controlled rectifier dimmer of not being convenient for is applied in some occasions that become more meticulous.

the invention provides the solution, and aims to effectively reduce the volume of the silicon controlled dimmer and improve the applicability of the silicon controlled dimmer.

the invention provides an alternating current power supply phase detection device which is applied to phase detection of an alternating current power supply connected to a silicon controlled rectifier dimmer.

In an embodiment of the present invention, referring to fig. 1, an ac power phase detection apparatus includes: the processor 1001 includes, for example, a CPU, a memory 1002, a timer 1003, and the like. The memory 1002 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1002 may alternatively be a storage device separate from the processor 1001. The timer 1004 is specifically configured to detect a time parameter related to the phase of the ac power source.

Those skilled in the art will appreciate that the configuration of the device shown in fig. 1 is not intended to be limiting of the device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.

As shown in fig. 1, the memory 1002, which is a readable storage medium, may include therein an ac power supply phase detection program. In the apparatus shown in fig. 1, the processor 1001 may be configured to call an ac power phase detection program stored in the memory 1002 and perform operations of the relevant steps of the ac power phase detection method in the following embodiments.

The invention also provides an alternating current power supply phase detection method.

Referring to fig. 2 and 3, a first embodiment of an ac power phase detection method of the present invention is proposed, which includes:

Step S10, acquiring an output signal of the alternating current power supply after rectification by the half-bridge circuit;

Specifically, the electrical signal output by the ac power supply described with reference to fig. 3a varies sinusoidally. The output terminal of the ac power supply is connected to the half-bridge circuit, and the output signal is obtained by detecting an electric signal at the output terminal of the half-bridge circuit (see fig. 3 b).

step S20, detecting the rising edge time and the falling edge time of two adjacent high-level signals in the output signals;

specifically, a signal with a voltage greater than or equal to a preset threshold value in the output signal may be defined as a high-level signal, and signals of other portions may be defined as low-level signals. Because the output voltage of the ac power supply varies sinusoidally, a plurality of high-level signals with uniform periods are generated in the output signal rectified by the half-bridge circuit in response to the variation of the ac power supply.

In order to improve the accuracy of the phase of the zero point voltage determined, the processor further includes, before step S20, because the square wave signal has a higher calculation accuracy than other waveform signals when performing signal processing: the output signal is shaped into a square wave signal (fig. 3 c).

In the continuous output signals, the time when the voltage becomes equal to or less than the preset threshold from being less than the preset threshold is defined as the rising edge time of the high level signal (e.g., T0, T2 of fig. 3c), and the time when the voltage becomes equal to or more than the preset threshold is defined as the falling edge time of the high level signal (e.g., T1, T3 of fig. 3 c).

and step S30, determining a phase of the zero voltage of the ac power source according to the rising edge time and the falling edge time of the two adjacent high-level signals.

Specifically, a preset corresponding relationship between the rising edge time and the falling edge time of two adjacent high-level signals and the phase of the zero-point voltage can be established in advance according to the change rule of the sine wave switching power supply. The preset corresponding relationship may be a mapping table, a formula, and the like, and the phases of the zero point voltages corresponding to the rising edge time and the falling edge time of two adjacent high level signals in the current output signal are determined according to the preset corresponding relationship and are used as the phases of the zero point voltages of the current ac power supply.

the method is used for detecting the rising edge time and the falling edge time of two adjacent high-level signals in the output signals by acquiring the output signals of an alternating current power supply rectified by a half-bridge circuit, and determining the phase of the zero voltage of the alternating current power supply according to the rising edge time and the falling edge time of the two adjacent high-level signals.

Specifically, in the first embodiment, before the step S40, a preset time interval may be further set, and the step S10 is executed again, so that the zero voltage of the ac power supply is continuously detected during the use of the ac power supply, and the phase synchronization between the silicon controlled rectifier dimming and the ac power supply is ensured. The preset duration can be set according to actual requirements.

Further, based on the first embodiment, a second embodiment of the ac power phase detection method of the present application is provided. In the second embodiment, referring to fig. 3 and 4, the step S20 includes:

Step S21, determining a first duration of the high-level signal in the square wave signal according to the rising edge time and the falling edge time of any high-level signal;

the first duration is the duration of any high level signal being maintained high. In the square wave shown in fig. 3c, the first duration TH is T1-T0, or T3-T2, or ((T1-T0) + (T3-T2))/2.

step S22, in two adjacent high-level signals, determining a second duration of a low-level signal in the square wave signals according to the falling edge time of the previous high-level signal and the rising edge time of the next high-level signal;

The second duration is the duration of maintaining the low level between two adjacent high level signals. In the square wave shown in fig. 3c, the second duration TL is T2-T1.

step S23, determining a phase deviation value according to the first duration and the second duration;

The phase deviation value here specifically refers to a phase difference between the output signal and the ac power supply. The different first duration and second duration correspond to different phase offset values. Specifically, the phase offset value may be determined according to a difference between the first duration and the second duration, where the larger the difference is, the larger the phase offset value is, and the smaller the difference is, the smaller the phase offset value is.

And establishing a corresponding relation among the first duration, the second duration and the phase deviation value in advance according to a sine wave change rule, wherein the corresponding relation can be a mapping table or a calculation formula. For example, the corresponding relationship may specifically be: and the phase deviation value t is (TL-TH)/4.

and step S24, determining a phase of the zero voltage of the ac power source according to the phase deviation value and a rising edge time and a falling edge time of any one of the high level signals.

based on the characteristics of sinusoidal alternating current and half-bridge circuit rectification, the zero voltage of the alternating current power supply is located between two adjacent high level signals, so that after the phase deviation value is obtained, the phase of the zero voltage when the current in the alternating current power supply is in the increasing variation trend can be calculated according to the rising edge moment and the phase deviation value of any high level signal, and the phase of the zero voltage when the current in the alternating current power supply is in the decreasing variation trend can be calculated according to the falling edge moment and the phase deviation value of any high level signal.

In this embodiment, the phase deviation value is determined by combining the first duration of the high level signal in the output signal of the half-bridge circuit and the second duration of the low level signal, so as to accurately reflect the phase difference between the rectified output signal of the half-bridge circuit and the ac power supply, and then the phase of the output signal itself is combined to accurately determine the phase of the zero voltage of the ac power supply.

Further, based on the second embodiment, a third embodiment of the ac power phase detection method of the present application is provided. In the third embodiment, the step S23 includes:

Step S231, substituting the first duration and the second duration into a preset quantity relationship to obtain the phase deviation value.

In this embodiment, the phase deviation value is determined in a calculation manner by establishing a preset quantity relationship among the first duration, the second duration and the phase deviation value, which is beneficial to further improving the accuracy of the determined phase of the zero voltage of the ac power supply.

Specifically, in the third embodiment, referring to fig. 3 and 5, before step S231, the method further includes:

step S01, constructing a virtual signal according to a preset rule in a second duration of a low level signal between two adjacent high level signals; the preset rule comprises that the duration of the virtual signal is the same as the first duration, and the time interval between the rising edge moment of the virtual signal and the falling edge moment of the previous high-level signal is the same as the time interval between the falling edge moment of the virtual signal and the rising edge moment of the next high-level signal;

in particular, the constructed virtual signal can refer to the dotted line portion in fig. 3 c. Where T4 is the rising edge of the dummy signal, and T5 is the falling edge of the dummy signal. The preset rule is specifically T5-T4 ═ TH, T4-T1 ═ T2-T5.

Step S02, determining a first quantity relationship among the phase of the zero-point voltage of the ac power source, the rising edge time of the dummy signal, and the falling edge time of the previous high-level signal, and determining a second quantity relationship among the first duration, the second duration, the falling edge time of the previous high-level signal, the rising edge time of the next high-level signal, the rising edge time of the dummy signal, and the falling edge time of the dummy signal;

defining a zero voltage phase as M, and based on the symmetry of the sine wave change of the alternating-current power supply, specifically defining a first quantity relation as M-T1 ═ T4-T1)/2; due to the presence of T5-T4 ═ TH, T4-T1 ═ T2-T5, the second quantitative relationship is in particular T4-T1 ═ T2-T5 ═ (TL-TH)/2.

Step S03, taking a difference between the phase of the zero voltage of the ac power supply and the falling edge time of the previous high level signal as the phase deviation value; i.e., T-M-T1.

Step S04, determining a quantity relationship among the first duration, the second duration, and the phase deviation value as the preset quantity relationship according to the first quantity relationship and the second quantity relationship.

substituting the second quantity relationship into the first quantity relationship to obtain t ═ TL-TH)/4 as a preset quantity relationship.

in this embodiment, based on the characteristics of the sinusoidal alternating current, the quantity relationship among the first duration, the second duration and the phase deviation value is established according to the virtual signal by constructing the virtual signal, so that the accuracy of the phase deviation value is ensured, and the accuracy of the obtained zero-point voltage phase of the alternating current power supply is ensured.

Further, based on any of the above embodiments, a fourth embodiment of the ac power phase detection method of the present application is provided. In the fourth embodiment, after the step S30, the method further includes:

And controlling the conduction time of the controllable silicon in the controllable silicon dimmer according to the phase of the zero voltage of the alternating-current power supply.

Specifically, the silicon controlled rectifier dimmer is controlled to start triggering the silicon controlled rectifier to be conducted when the phase of the zero voltage is determined, so that the silicon controlled rectifier dimming and the alternating current power supply can realize phase synchronization.

in addition, this application embodiment still provides a silicon controlled rectifier dimmer, silicon controlled rectifier dimmer includes half-bridge circuit and as above alternating current power supply phase detection device, half-bridge circuit is used for connecting alternating current power supply phase detection device and outside alternating current power supply, alternating current power supply phase detection device are used for carrying out the alternating current power supply phase detection method in above-mentioned embodiment to detect the alternating current power supply's that silicon controlled rectifier dimmer inserts zero phase place, thereby make switching on of silicon controlled rectifier dimmer can realize phase synchronization with alternating current power supply, guarantee silicon controlled rectifier validity and accuracy of adjusting luminance.

in addition, an embodiment of the present invention further provides a readable storage medium, where an ac power phase detection program is stored on the readable storage medium, and when the ac power phase detection program is executed by a processor, the method implements relevant steps of any embodiment of the above ac power phase detection method.

it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.

The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a triac dimmer, or a network device) to execute the method according to the embodiments of the present invention.

The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种稳态检测保温隔热涂料的设备及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!