Zero-crossing detection device and method, single live wire switch

By designing the zero-crossing detection device of the sampling, comparison and calculation module in the single live wire switch, the problem of the traditional single live wire dimmer being unable to detect the zero-crossing point of the power supply is solved, and accurate power regulation and wireless communication control of different loads are achieved, improving Increases the flexibility and convenience of lighting fixtures.

CN112748279BActive Publication Date: 2024-09-27SAVANT TECHNOLOGIES LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911052078.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-31
Publication Date
2024-09-27
Estimated Expiration
2039-10-31

AI Technical Summary

Technical Problem

Traditional single live wire dimmers cannot detect the zero crossing of the power supply without obtaining a complete AC signal, making it difficult to achieve accurate lighting intensity adjustment.

Method used

A zero-crossing detection device including a sampling module, a comparison module and a calculation module is designed. By sampling the signal of the switching element, comparing the signal with a predetermined threshold, the zero-crossing point of the power supply is calculated, and the trigger signal and time are used when the complete signal cannot be obtained. Latency calculates accurate zero crossing points for different types of loads.

Benefits of technology

It achieves accurate zero-crossing detection under different loads and alternating current frequency changes, provides an accurate basis for load power adjustment, is suitable for wireless communication control, and ensures flexible adjustment of lighting devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112748279B
    Figure CN112748279B
Patent Text Reader

Abstract

The present invention relates to a zero-crossing detection device and method for a single live wire switch, a single live wire switch, a storage medium and a processor, wherein the single live wire switch comprises a switch element, the switch element has a first end connected to a power supply and a second end connected to a load, and the zero-crossing detection device comprises: a sampling module, configured to sample a first signal at the first end of the switch element and a second signal at the second end of the switch element; a comparison module, configured to compare a deviation between the first signal and the second signal with a predetermined threshold; and a calculation module, configured to calculate a zero-crossing point of the power supply according to a comparison result of the comparison module and the predetermined threshold.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a zero-crossing detection device for a single live wire switch, a method for detecting a zero-crossing point of a power supply for the single live wire switch, the single live wire switch, a storage medium and a processor. Background Art

[0002] With the development of science and technology and the improvement of living standards, consumers have put forward new requirements for home use. For example, for electrical appliances with lighting functions, consumers not only require convenient control of the lighting time and brightness of the lighting device, but also require that the lighting device can cooperate with other systems in the home to meet consumers' requirements for lighting scenes in different life situations. Consumers need intelligent switch control systems to improve the quality of life and hope to ensure convenience and comfort in life.

[0003] In this regard, the traditional switch has obvious defects. It does not have a remote control function and cannot meet consumers' lighting needs for different scenes. In comparison, the electronic switch has a broad application prospect. On the one hand, since the installation and replacement of the electronic switch are very convenient and simple, the electronic switch can be used to directly replace the traditional wall switch that is very popular in traditional homes; on the other hand, the electronic switch can also be used to conveniently realize remote control or intelligent control. For example, the ZigBee smart switch in the smart home has functions such as wireless remote control and touch sensing. For example, the electronic switch can be used to dynamically adjust the lighting intensity of the lighting device. When adjusting the power output to the lighting device, it is necessary to detect the zero crossing point of the power supply to provide an accurate conduction angle for realizing phase-cut dimming. However, in the prior art, since the single-live dimmer used to adjust the lighting intensity of the lighting device is connected in series with the power supply and the load, the complete AC signal cannot be detected on the dimmer, so it is difficult to find the zero crossing point. Summary of the invention

[0004] The present invention provides a zero-crossing detection device for a single live wire switch, wherein the single live wire switch includes a switch element, the switch element has a first end connected to a power supply and a second end connected to a load, wherein the zero-crossing detection device includes: a sampling module, configured to sample a first signal at the first end of the switch element and a second signal at the second end of the switch element; a comparison module, configured to compare the deviation of the first signal and the second signal with a predetermined threshold; and a calculation module, configured to calculate the zero-crossing point of the power supply according to the comparison result of the comparison module and the predetermined threshold. The zero-crossing detection device according to the present invention uses a small number of components, can be applied to different types of loads (e.g., LEDs, etc.), provides an accurate zero-crossing point, but will not be affected by the frequency of the alternating current. Moreover, in the case where a complete alternating voltage signal cannot be obtained, the zero-crossing detection device can find the zero-crossing point of the power supply signal, thereby providing an accurate adjustment basis for the power adjustment device of the load.

[0005] According to a preferred embodiment of the zero-crossing detection device of the present invention, the comparison module is further configured to send a trigger signal to the calculation module when the deviation exceeds a predetermined threshold value, and the calculation module is further configured to calculate the zero-crossing point according to the time of the trigger signal and the time delay of the trigger signal relative to the zero-crossing point. In the case where the first signal and the second signal at both ends of the switch unit have been obtained, one of the signals is used as a reference signal, and then the zero-crossing point of the power supply signal is deduced according to the predetermined threshold value.

[0006] According to a preferred embodiment of the zero-crossing detection device of the present invention, the calculation module is further configured to calculate the time delay according to the frequency of the power supply and the predetermined threshold value. The calculation module can calculate the time when the power supply signal changes and exceeds the predetermined threshold value in each half AC cycle, and the time can be considered as the time delay relative to the zero-crossing point.

[0007] According to a preferred embodiment of the zero-crossing detection device of the present invention, the calculation module is further configured to calculate the frequency of the power supply according to the interval between at least two adjacent trigger signals. When the frequency of the power supply signal is unknown, the frequency of the power supply can be calculated by detecting the interval between the trigger signals in multiple signal cycles.

[0008] According to a preferred embodiment of the zero-crossing detection device of the present invention, the calculation module is further configured to set the frequency of the power supply to a default value. During the calculation process, the frequency of the power supply signal can be set to a default of 50 Hz or 60 Hz according to the electricity regulations of the geographical area where the zero-crossing detection device is located.

[0009] According to a preferred embodiment of the zero crossing detection device of the present invention, the comparison module includes an operational amplifier for comparing the deviation of the first signal and the second signal with a predetermined threshold value. When the budget amplifier detects that the deviation exceeds the predetermined threshold value, it will send an indication signal at the output end to indicate when the deviation exceeds the predetermined threshold value.

[0010] According to a preferred embodiment of the zero-crossing detection device of the present invention, the first signal and the second signal are voltage signals. By detecting the voltage signal, the zero-crossing point of the AC voltage signal of the AC power supply can be conveniently detected.

[0011] According to a preferred embodiment of the zero-crossing detection device of the present invention, the calculation module is further configured to have a wireless communication function, thereby enabling the calculation module to be controlled wirelessly, or the calculation module to provide information on zero-crossing detection or phase-cut dimming wirelessly.

[0012] The present invention also provides a single live wire switch, which is arranged between a power supply and a load, wherein the single live wire switch comprises: a zero-crossing detection device as described above; and a switch element connected to the zero-crossing detection device, wherein the switch element is configured to adjust the power provided by the power supply to the load according to the zero-crossing point provided by the zero-crossing detection device. The single live wire switch according to the present invention can provide accurate power regulation to the load according to the accurate zero-crossing point when a complete AC voltage signal cannot be obtained.

[0013] According to a preferred embodiment of the single live wire switch of the present invention, the single live wire switch further comprises: a power converter configured to convert a voltage from a power supply into a supply voltage provided to a computing module of the zero-crossing detection device. The power converter can provide the zero-crossing detection device with the converted required electrical energy.

[0014] According to a preferred embodiment of the single live wire switch of the present invention, the switch element is a bidirectional thyristor, which is also called a TRIAC dimmer and is used as an AC switching device to achieve functions such as AC voltage regulation and light dimming.

[0015] The present invention also provides a method for detecting the zero-crossing point of a power supply for a single-live switch, wherein the single-live switch includes a switch element, the switch element having a first end connected to the power supply and a second end connected to the load, wherein the method includes: sampling a first signal at the first end of the switch element and a second signal at the second end of the switch element; comparing the deviation of the first signal and the second signal with a predetermined threshold; and calculating the zero-crossing point of the power supply based on the comparison result and the predetermined threshold. In the case where a complete AC voltage signal cannot be obtained, the method of the present invention can find the zero-crossing point of the power supply signal, thereby providing an accurate adjustment basis for the power adjustment device of the load.

[0016] According to a preferred embodiment of the method of the present invention, comparing the deviation of the first signal and the second signal with a predetermined threshold value includes: sending a trigger signal when the deviation exceeds the predetermined threshold value; and calculating the zero-crossing point of the power supply includes: calculating the zero-crossing point according to the time of the trigger signal and the time delay of the trigger signal relative to the zero-crossing point. In the case where the first signal and the second signal at both ends of the switching element have been obtained, one of the signals is used as a reference signal, and then the zero-crossing point of the power supply is deduced according to the predetermined threshold value.

[0017] According to a preferred embodiment of the method of the present invention, calculating the zero crossing point of the power supply further comprises: calculating the time delay according to the frequency of the power supply and the predetermined threshold value. Thus, the method can calculate the time when the power supply signal changes and exceeds the predetermined threshold value in each half AC cycle, and the time can be considered as the time delay relative to the zero crossing point.

[0018] According to a preferred embodiment of the method of the present invention, calculating the zero crossing point of the power supply further comprises: calculating the frequency of the power supply according to the interval between at least two adjacent trigger signals. When the frequency of the power supply signal is unknown, the method of the present invention calculates the frequency of the power supply by detecting the interval between the trigger signals in a plurality of signal cycles.

[0019] According to a preferred embodiment of the method of the present invention, calculating the zero crossing point of the power supply further comprises: setting the frequency of the power supply to a default value. During the calculation process, the method of the present invention may set the frequency of the power supply to a default value of 50 Hz or 60 Hz according to the electricity usage regulations of the geographical area where the method is implemented.

[0020] According to another aspect of the present invention, the present invention further provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the method described above.

[0021] According to another aspect of the present invention, the present invention further provides a processor, wherein the processor is used to run a program, wherein the program executes the method described above when running. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings constitute a part of this specification and are used to help further understand the present invention. These drawings illustrate embodiments of the present invention and are used together with the specification to explain the principles of the present invention. In the accompanying drawings, the same components are represented by the same reference numerals. The drawings show:

[0023] Figure 1 A structural block diagram of a zero-crossing detection device according to an embodiment of the present invention is shown.

[0024] Figure 2 A schematic structural diagram of a single live wire switch including a zero-crossing detection device according to an embodiment of the present invention is shown.

[0025] Figure 3 A circuit diagram of a zero-crossing detection device according to an embodiment of the present invention is shown, wherein a sampling module and a comparison module are shown.

[0026] Figure 4 A schematic flow chart of a method for detecting a zero-crossing point of a power supply for a single-live-wire switch according to an embodiment of the present invention is shown.

[0027] Figure 5 A flow chart showing a method for detecting a zero-crossing point of a power supply for a single live wire switch according to an exemplary embodiment of the present invention is shown. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only embodiments of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other solutions obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not listed or inherent to these processes, methods, products or devices.

[0030] Figure 1 FIG. 1 is a block diagram showing a zero-crossing detection device 10 according to an embodiment of the present invention. Figure 1 In the illustrated embodiment, the zero-crossing detection device 10 includes: a sampling module 11, configured to sample a first signal at a first end of a switching element included in a single live wire switch and a second signal at a second end of the switching element; a comparison module 13, configured to compare a deviation between the first signal and the second signal with a predetermined threshold; and a calculation module 15, configured to calculate the zero-crossing point of the power supply based on the comparison result of the comparison module 13 and the predetermined threshold.

[0031] Figure 2 A schematic diagram of the structure of a single live wire switch 100 including a zero-crossing detection device according to an embodiment of the present invention. Figure 2 In the embodiment shown, the single live wire switch 100 is connected in series to the input end L of the live wire of the power supply. in and load 40, and load 40 is connected to the live wire output terminal L out With the neutral line N in In this embodiment, the load 40 is implemented as a lighting device. In other embodiments not shown, the load 40 may be implemented as other electrical devices. The single live wire switch 100 includes Figure 1The zero-crossing detection device 10 shown includes a sampling module 11, a comparison module 13 and a calculation module 15. For example, the calculation module 15 has a storage medium, which stores a predetermined threshold value and other default values ​​required for calculating the zero-crossing point. In addition, the single-live switch 100 also includes a switching element 20, which is implemented as a bidirectional thyristor TRIAC, for example, and is connected to the output end of the calculation module 15; and a power converter 30, which is configured to convert the voltage from the power supply into a supply voltage provided to the calculation module 15 of the zero-crossing detection device. Figure 2 As shown, the sampling module 11 and the comparison module 13 of the zero-crossing detection device are connected in parallel at both ends of the switch element 20. In this embodiment, the calculation module 15 of the zero-crossing detection device can be implemented as a wireless controller with a wireless communication function, wherein the wireless controller can be implemented as a microcontroller MCU or a similar control unit. The switch element 20 performs phase-cutting processing on the power supply AC voltage according to the zero-crossing point provided by the calculation module 15 to adjust the power output to the load 40. In the case where the load 40 is implemented as a lighting device, the switch element 20 can accurately perform phase-cutting dimming on the lighting load according to the zero-crossing point.

[0032] Figure 3 A circuit diagram of a zero-crossing detection device according to an embodiment of the present invention is shown, wherein a sampling module and a comparison module are shown. The comparison module of the zero-crossing detection device includes an operational amplifier represented by a triangular device, which is used to compare the deviation of the first signal and the second signal at both ends of the switch element of the single live wire switch with a predetermined threshold value, and outputs a time delay relative to the zero-crossing point according to the comparison result. in and live output terminal L out The arrangement of the electronic devices between constitutes the sampling module of the zero-crossing detection device. in The voltage is input to pin 1 of the operational amplifier via the voltage division of the first resistor R1 and the second resistor R2. out Connect to the node between pin 2 of the op amp and ground. in Connected to the live output section L via the first diode D1 and the second diode D2 out The node between the hot wire input terminal L in The third diode D3 and the second capacitor C2 are connected in parallel to a node between the No. 2 pin and the ground. inThe first capacitor C1 is connected to the No. 4 pin of the operational amplifier via the parallel connection of the second resistor R2. The power supply terminal VDD is connected to the No. 3 pin of the operational amplifier via the fourth resistor R4, and the power supply terminal is connected to the node between the No. 2 pin and the ground via the third resistor R3 and the fifth capacitor C5 connected in parallel. Another power supply terminal VDD is connected to the No. 5 pin of the operational amplifier, and the other power supply terminal VDD is connected to the fifth capacitor C5 via the third and fourth capacitors C3 and C4 connected in parallel. The No. 4 pin of the operational amplifier outputs the comparison result via the fifth resistor R5, that is, the trigger signal when the deviation of the signal at the first terminal and the signal at the second terminal of the switch element exceeds a predetermined threshold. The other power supply terminal VDD is connected to the fifth resistor R5 via the resistor R6.

[0033] Figure 4 A flow chart of a method for detecting a zero crossing point of a power supply for a single live wire switch according to an embodiment of the present invention is shown. In this embodiment, the single live wire switch includes a switch element, and the detection method according to the embodiment of the present invention includes:

[0034] Step S101, sampling a first signal at a first terminal of a switch element and a second signal at a second terminal of the switch element, wherein the sampled signals are both voltage signals;

[0035] Step S103, comparing the deviation between the first signal and the second signal with a predetermined threshold, wherein one of the first and second signals is used as a reference signal, and the comparison result represents the time when the power signal changes beyond the predetermined threshold in each half AC cycle;

[0036] Step S105, calculating the zero-crossing point of the power supply according to the comparison result and the predetermined threshold value.

[0037] Figure 5 A flow chart of a method for detecting a zero crossing of a power supply for a single live wire switch according to an exemplary embodiment of the present invention is shown. In this exemplary embodiment, the single live wire switch includes a switch element, and the detection method includes:

[0038] Step S201, sampling a first signal at a first end of a switch element and a second signal at a second end of the switch element;

[0039] Step S203, when the deviation between the sampled first signal and the sampled second signal exceeds a predetermined threshold, sending a trigger signal;

[0040] Step S205, calculating the frequency of the power supply according to the interval between at least two adjacent trigger signals, or setting the frequency of the power supply to a default value, such as 50 Hz or 60 Hz, according to the geographical area where the method is implemented;

[0041] Step S207, calculating the time delay of the trigger signal relative to the zero-crossing point according to the frequency of the power supply and the predetermined threshold, wherein the time delay Δt is calculated according to the following formula: Wherein, a represents a predetermined voltage threshold, A represents a peak value of the AC voltage (set to a fixed default value, for example, 120V), and f represents the frequency of the power supply voltage signal;

[0042] Step S209, calculating the zero-crossing point of the power supply according to the time of the trigger signal and the time delay of the trigger signal relative to the zero-crossing point, wherein the zero-crossing point t is calculated as: t=t 触发 -Δt, where t 触发 represents the time of the trigger signal, and Δt represents the time delay calculated in step S207.

[0043] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A zero-crossing detection device for a single live wire switch, wherein: The single live wire switch comprises a switch element, wherein the switch element has a first end connected to a power supply and a second end connected to a load, and is characterized in that the zero-crossing detection device (10) comprises: A sampling module (11) configured to sample a first signal at the first end of the switch element and a second signal at the second end of the switch element; A comparison module (13) configured to compare a deviation between the first signal and the second signal with a predetermined threshold; and A calculation module (15) is configured to calculate the zero-crossing point of the power supply according to the comparison result of the comparison module (13) and the predetermined threshold value, The comparison module (13) is further configured to send a trigger signal to the calculation module (15) when the deviation exceeds the predetermined threshold, and The calculation module (15) is further configured to calculate the zero crossing point based on the time of the trigger signal and the time delay of the trigger signal relative to the zero crossing point, wherein the calculation module (15) is further configured to calculate the time delay based on the frequency of the power supply and the predetermined threshold.

2. The zero-crossing detection device according to claim 1, characterized in that: The calculation module (15) is also configured to calculate the frequency of the power supply according to the interval between at least two adjacent trigger signals.

3. The zero-crossing detection device according to claim 1, characterized in that: The calculation module (15) is also configured to set the frequency of the power supply to a default value.

4. The zero-crossing detection device according to claim 1, characterized in that: The comparison module (13) comprises an operational amplifier, which is used to compare the deviation between the first signal and the second signal with the predetermined threshold.

5. The zero-crossing detection device according to claim 1, characterized in that: The first signal and the second signal are voltage signals.

6. The zero-crossing detection device according to claim 1, characterized in that: The computing module (15) is also configured to have a wireless communication function.

7. A single live wire switch, arranged between a power source and a load, characterized in that: The single live wire switch (100) comprises: The zero-crossing detection device (10) according to any one of claims 1 to 6; and A switch element (20) is connected to the zero-crossing detection device (10), wherein the switch element (20) is configured to adjust the power provided by the power supply to the load according to the zero-crossing point provided by the zero-crossing detection device (10).

8. The single live wire switch according to claim 7, characterized in that: The single live wire switch (100) further comprises: A power converter (30) is configured to convert a voltage from the power supply into a supply voltage provided to the calculation module (15) of the zero-crossing detection device.

9. The single live wire switch according to claim 7, characterized in that: The switching element (20) is a bidirectional thyristor.

10. A method for detecting the zero crossing of a power supply for a single live wire switch, wherein: The single live wire switch comprises a switch element, wherein the switch element has a first end connected to a power source and a second end connected to a load, wherein the method comprises: sampling a first signal at the first end of the switch element and a second signal at the second end of the switch element; comparing a deviation between the first signal and the second signal to a predetermined threshold; and The zero-crossing point of the power supply is calculated according to the comparison result and the predetermined threshold value.

11. The method according to claim 10, characterized in that Comparing the deviation between the first signal and the second signal with the predetermined threshold comprises: sending a trigger signal when the deviation exceeds the predetermined threshold; and Calculating the zero-crossing point of the power supply includes: calculating the zero-crossing point according to the time of the trigger signal and the time delay of the trigger signal relative to the zero-crossing point.

12. The method according to claim 11, characterized in that Calculating the zero-crossing point of the power supply further includes: calculating the time delay according to the frequency of the power supply and the predetermined threshold.

13. The method according to claim 12, characterized in that Calculating the zero-crossing point of the power supply further includes: calculating the frequency of the power supply according to an interval between at least two adjacent trigger signals.

14. The method according to claim 12, characterized in that Calculating the zero-crossing point of the power supply further includes: setting the frequency of the power supply to a default value.

15. A storage medium, characterized in that The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the method according to any one of claims 10 to 14.

16. A processor, characterized in that The processor is configured to run a program, wherein the program executes the method according to any one of claims 10 to 14 when running.