Self-adaptive single-live-wire electricity taking system and method for mains supply alternating current power supply

By using resistor voltage divider and transistor to collect voltage cycle and effective value, the control time of MOS tube is automatically adjusted, which solves the compatibility problem of single live wire power supply system under different power supply conditions, and realizes stable lighting of lamps and system reliability.

CN120749690APending Publication Date: 2025-10-03RINGSLINK XIAMEN NETWORK COMM TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510757747.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-09
Publication Date
2025-10-03

AI Technical Summary

Technical Problem

The existing single-live-wire power supply system cannot adapt to the differences in AC power frequency and effective value in different countries and regions, resulting in flickering of lamps when turned on.

Method used

The period and effective value of the AC input voltage are collected through resistor voltage division and transistor on-off, and the G-pole control duration of MOS tubes Q2 and Q3 are automatically identified and adaptively adjusted to ensure that the total period of Gate OFF + Gate ON matches the power cycle.

Benefits of technology

The stable lighting of lamps and the stable operation of the single-live-wire power supply system under different power supply conditions are achieved, which improves the safety and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120749690A_ABST
    Figure CN120749690A_ABST
Patent Text Reader

Abstract

The invention discloses a mains supply AC power supply adaptive single-live-wire power taking system and method, and the system comprises a mains supply AC power supply, a single-live-wire power taking master control module, a single-live-wire power taking shunting module, and a lamp. The single-live-wire power-taking master control module comprises a first voltage detection circuit, a single-chip microcomputer, an OP driver, a phase-cut power-taking circuit, a first overcurrent protection circuit and a first power supply circuit, and the first voltage detection circuit, the phase-cut power-taking circuit, the first power supply circuit and a live wire of the alternating-current mains supply are connected to a live wire input end a. The single-chip microcomputer is connected with the first voltage detection circuit, the OP driver and the first overcurrent protection circuit. The phase-cut electricity-taking circuit is connected with the OP driver and the first overcurrent protection circuit. And the first voltage detection circuit, the phase-cut electricity-taking circuit, the first power supply circuit, the single-live-wire electricity-taking shunt module and the lamp are connected to a live wire output end b. According to the invention, normal lighting when the lamp is turned on and stable power taking of the single-live-wire power taking system are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home technology, and in particular to a single-live-wire power supply system and method for adaptive AC power supply. Background Art

[0002] like Figure 1 As shown, in the existing single-live-wire power supply system, it includes a mains AC power supply 30, a single-live-wire power supply main control module 10, a single-live-wire power supply shunt module 20 and a lamp 40. The live wire of the mains AC power supply 30 is connected to the live wire input end of the single-live-wire power supply main control module 10, and the neutral wire is connected to the single-live-wire power supply shunt module 20 and the lamp 10 respectively. The live wire output end of the single-live-wire power supply main control module 10 is connected to the single-live-wire power supply shunt module 20 and the lamp 40 respectively; in the light-off state, the single-live-wire power supply shunt module 20 is in a short-circuit state, and the live wire of the mains AC power supply 30 passes through the single-live-wire power supply main control module 10 and the single-live-wire power supply shunt module 20 and then returns to the neutral wire, forming a complete AC power supply path; in the light-on state Under the current state, the single live wire power taking main control module 10 controls the live wire output end to be in the leading-edge phase-cutting mode. When the phase is cut, the single live wire power taking shunt module 20 is in a short-circuit state. At this time, the live wire input passes through the single live wire power taking main control module 10 and the single live wire power taking shunt module 20 and then returns to the neutral line, forming a complete AC power taking path; when the phase is not cut, the single live wire power taking shunt module 20 is in an open-circuit state, and the live wire output end adds AC power to the lamp 40, and then forms a current loop through the neutral line, and the lamp 40 lights up normally. At this time, the single live wire power taking main control module 10 relies on its own energy storage capacitor to maintain the working state; this cycle is repeated to achieve the purpose of the single live wire power taking main control module 10, the single live wire power taking shunt module 20, and the lamp 40 can all work normally when turning on and off the lights.

[0003] At present, the most commonly used single-live-line power main control module 10 + single-live-line power shunt module 20 mode all adopt a fixed-width leading-edge phase-cutting power supply method. Figure 2 The figure shows the leading-edge phase-cut power supply, in which the first part of the voltage of the AC power supply 30 after it passes through zero is cut off by the single-live-wire power supply main control module 10 .

[0004] Due to differences in AC voltage frequency and effective value between countries, and even within regions within the same country, using a fixed-ratio leading-edge phase-cutting method can cause abnormal single-live-wire powering and flickering lights. Therefore, it is crucial to intelligently identify the voltage frequency and effective value of the AC power input and call the corresponding parameters to control the G-pole of MOS transistors Q2 and MOS transistors Q3 in the single-live-wire power main control module 10 to adapt to the AC mains power supply in different countries and regions.

[0005] The existing single-live-wire power supply system includes a single-live-wire power supply main control module 10 and a single-live-wire power supply shunt module 20. It only performs zero-crossing detection on the AC power supply 30, and does not perform period detection and effective value detection. Correspondingly, the width of the phase-cut power supply when the lamp is turned on is fixed, and it can only be applied to a single AC power supply 30 frequency and effective value, such as 220V / 50Hz. If the frequency or effective value of the AC power supply 30 changes, for example, to 220V / 60Hz or 110V / 60Hz, then because it uses a fixed Gate switch control duration of MOS tube Q2 and MOS tube Q3, this fixed switching duration will cause the total Gate OFF+Gate ON cycle of the phase-cut power circuit 105 to be different from the changed power cycle, resulting in the Gate ON phase-cut waveform obtained by the lamp being not fixed, which will cause the lamp to flicker. Therefore, the original single-live wire power supply system cannot be used directly. This is the compatibility issue of the existing single-live wire power supply system with a fixed Gate control duration with the AC input power supply. Summary of the Invention

[0006] In view of this, the purpose of the present invention is to propose a single-live-wire power supply system that is adaptive to the AC power supply of the mains, which automatically identifies and determines the frequency and effective value of the AC power supply of the mains, and adaptively changes the G-pole control time of the MOS tube Q2 and the MOS tube Q3 in the single-live-wire power supply main control module to ensure that the total cycle of Gate OFF + Gate ON matches the power supply cycle, ensuring normal lighting when the lamp is turned on and stable power supply of the single-live-wire power supply system.

[0007] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:

[0008] The present invention provides a single-live-wire power supply system adaptive to a mains AC power supply, the single-live-wire power supply system comprising: a mains AC power supply, a single-live-wire power supply main control module, a single-live-wire power supply shunt module and a lamp, the live wire of the mains AC power supply is connected to the live wire input end of the single-live-wire power supply main control module; the input end of the single-live-wire power supply shunt module is connected to the live wire output end of the single-live-wire power supply main control module, and the output end of the single-live-wire power supply shunt module is connected to the neutral wire of the mains AC power supply; the input end of the lamp is connected to the live wire output end of the single-live-wire power supply main control module, and the output end of the lamp is connected to the neutral wire of the mains AC power supply; the single-live-wire power supply main control module comprises: a first voltage detection circuit , a single-chip microcomputer, an OP driver, a phase-cutting power supply circuit, a first overcurrent protection circuit and a first power supply circuit, the first voltage detection circuit, the phase-cutting power supply circuit, the first power supply circuit and the live wire of the AC power supply are all connected to the live wire input terminal a, the single-chip microcomputer is respectively connected to the first voltage detection circuit, the OP driver and the first overcurrent protection circuit, and the phase-cutting power supply circuit is respectively connected to the OP driver and the first overcurrent protection circuit; the first voltage detection circuit, the phase-cutting power supply circuit, the first power supply circuit, the single live wire power shunt module and the lamp are all connected to the live wire output terminal b; the first power supply circuit is respectively connected to the first voltage detection circuit, the single-chip microcomputer, the OP driver and the first overcurrent protection circuit.

[0009] Furthermore, the single live wire power supply system also includes a control panel, which is connected to the power supply end of the first power supply circuit.

[0010] Furthermore, the first voltage detection circuit includes a resistor R1, a resistor R2, a resistor R3, a resistor R11, a resistor R12 and a transistor Q1, one end of the resistor R1 is connected to the live wire input terminal a, the other end of the resistor R1 is respectively connected to one end of the resistor R2 and the B pole of the transistor Q1, the other end of the resistor R2 is connected to the live wire output terminal b, one end of the resistor R3 is connected to the B pole of the transistor Q1, and the other end of the resistor R3 is connected to the second reference ground; one end of the resistor R11 is connected to the B pole of the transistor Q1, the other end of the resistor R11 is connected to the single-chip microcomputer, the C pole of the transistor Q1 is respectively connected to the single-chip microcomputer and one end of the resistor R12, and the other end of the resistor R12 is connected to the first power supply circuit;

[0011] The phase-cut power supply circuit includes a MOS transistor Q2, a MOS transistor Q3, a resistor R4, and a resistor R5. The G poles of the MOS transistors Q2 and Q3 are both connected to the output terminal Gate of the OP driver, the D pole of the MOS transistor Q2 is connected to the live wire input terminal a, the S pole of the MOS transistor Q2 is respectively connected to one end of the resistor R4 and the first overcurrent protection circuit, the D pole of the MOS transistor Q3 is connected to the live wire output terminal b, the S pole of the MOS transistor Q3 is respectively connected to one end of the resistor R5 and the first overcurrent protection circuit, and the other end of the resistor R4 and the other end of the resistor R5 are both connected to the second reference ground;

[0012] The first power supply circuit includes a first isolated power supply and a second non-isolated power supply, the input end of the first isolated power supply is connected to the live wire input end a, the output end of the first isolated power supply is connected to the live wire output end b, the ground end of the first isolated power supply is connected to the first reference ground, and the power supply end of the first isolated power supply is connected to the control panel; the input end of the second non-isolated power supply is connected to the live wire input end a, the output end of the second isolated power supply is connected to the live wire output end b, the ground end of the second non-isolated power supply is connected to the second reference ground, and the power supply end of the second non-isolated power supply is respectively connected to the first voltage detection circuit, the single-chip microcomputer, the OP driver and the first overcurrent protection circuit;

[0013] The single live wire power main control module further includes a first fuse, one end of which is connected to the live wire of the AC power supply, and the other end of which is connected to the live wire input terminal a.

[0014] Furthermore, the single live wire power shunt module includes: a second power supply circuit, a second voltage detection circuit, a shunt circuit and a second overcurrent protection circuit. The second power supply circuit, the second voltage detection circuit and the shunt circuit are all connected to the live wire output end b, and the second power supply circuit is respectively connected to the second voltage detection circuit, the shunt circuit and the second overcurrent protection circuit; the shunt circuit is respectively connected to the second voltage detection circuit and the second overcurrent protection circuit; the second power supply circuit, the second voltage detection circuit and the shunt circuit are all connected to the neutral line of the AC power supply.

[0015] Furthermore, the second voltage detection circuit includes a resistor R6, a resistor R7, a resistor R8, a resistor R13 and a transistor Q4, one end of the resistor R6 is connected to the live wire output terminal b, the B pole of the transistor Q4 is respectively connected to the other end of the resistor R6, one end of the resistor R7 and one end of the resistor R8, the other end of the resistor R7 is connected to the neutral line of the AC power supply, the E pole of the transistor Q4 and the other end of the resistor R8 are connected to the third reference ground, the C pole of the transistor Q4 is respectively connected to one end of the resistor R13 and the shunt circuit, and the other end of the resistor R13 is connected to the second power supply circuit;

[0016] The shunt circuit includes a MOS transistor Q5, a MOS transistor Q6, a resistor R9, a resistor R10, and a resistor R14. The G poles of the MOS transistors Q5 and Q6 are both connected to the C pole of the transistor Q4 in the second voltage detection circuit, one end of the resistor R14, and the second overcurrent protection circuit. The other end of the resistor R14 is connected to the second power supply circuit. The D pole of the MOS transistor Q5 is connected to the live wire output terminal b. The S pole of the MOS transistor Q5 is respectively connected to one end of the resistor R9 and the second overcurrent protection circuit. The D pole of the MOS transistor Q6 is connected to the neutral line of the AC mains power supply. The S pole of the MOS transistor Q6 is respectively connected to one end of the resistor R10 and the second overcurrent protection circuit. The other ends of the resistors R9 and R10 are both connected to the third reference ground.

[0017] The second power supply circuit includes a third non-isolated power supply, the input end of the third non-isolated power supply is connected to the live wire output end b, the output end of the third non-isolated power supply is connected to the neutral wire of the AC mains power supply, the ground end of the third non-isolated power supply is connected to the third reference ground, and the power supply end of the third non-isolated power supply is respectively connected to the second voltage detection circuit, the shunt circuit and the second overcurrent protection circuit;

[0018] The single-live-wire power shunt module also includes a second fuse, one end of which is connected to the neutral line of the AC power supply, and the other end of the second fuse is respectively connected to the second power supply circuit, the second voltage detection circuit and the shunt circuit.

[0019] The present invention also provides a method for obtaining power from a single live wire of a mains AC power source, which is adaptive. The method requires providing the above-mentioned single live wire system for obtaining power from a mains AC power source, and includes the following steps:

[0020] Step 1: When power is turned on for the first time, the mains AC power supply is divided by the first voltage detection circuit of the single-live-wire power main control module to obtain a divided voltage signal Vadc and a zero-crossing signal Vz;

[0021] Step 2: The single-chip microcomputer of the single-live-wire power main control module collects the voltage division signal Vadc and the zero-crossing signal Vz of the AC power supply in real time;

[0022] Step 3, the single chip microcomputer calculates the period T of the AC mains power supply according to the falling edge of the zero-crossing signal Vz; at the same time, the single chip microcomputer calculates the effective value Vin of the AC mains power supply according to the voltage division signal Vadc;

[0023] Step 4: According to the period T and the effective value Vin of the AC mains power supply, the corresponding parameters are called to control the G poles of the MOS tubes Q2 and Q3 in the single-live-wire power supply main control module to achieve normal power supply of the single-live-wire power supply system and normal lighting of the lamp.

[0024] Furthermore, before step 1, it also includes: before power-on, that is, in the light-off stage, the control signal of the single-chip microcomputer in the single-live-wire power main control module to the OP driver is at a low level by default, and the Gate control signal of the corresponding OP driver is also at a low level. At this time, the MOS tube Q2 and the MOS tube Q3 in the single-live-wire power main control module are cut off, and the single-live-wire power shunt module is turned on through the MOS tube Q5 and the MOS tube Q6 to connect the live wire output end b with the neutral wire. The single-live-wire power shunt module is in a short-circuit state, and the corresponding live wire output and the neutral wire are in a conducting state. At this time, the live wire of the AC power supply passes through the single-live-wire power main control module and the single-live-wire power shunt module back to the neutral wire, forming a complete AC power supply path.

[0025] Furthermore, the step 1 specifically includes:

[0026] Step 11: The first voltage detection circuit of the single-live-wire power main control module performs voltage division processing on the voltage signal of the AC main power supply by using a resistor voltage divider to obtain a voltage division signal Vadc and a zero-crossing signal Vz;

[0027] The step 2 specifically includes:

[0028] Step 21: The single-chip microcomputer of the single-live-wire power main control module collects the divided voltage signal Vadc and the zero-crossing signal Vz in real time;

[0029] Step 22: The single-live-wire power main control module transmits the voltage-divided signal Vadc after the resistor voltage division to the ADC pin of the single-chip microcomputer.

[0030] Furthermore, the step 3 specifically includes:

[0031] Step 31: During the light-off phase, the G terminals of the MOS tubes Q2 and Q3 in the single-live-wire power main control module are in a low-level off state.

[0032] Step 32: After a preset delay time, the single-chip microcomputer of the single-live-wire power main control module collects the falling edge of the zero-crossing signal Vz multiple times, calculates the time difference between the falling edges of two adjacent zero-crossing signals Vz, and calculates the average value. The result is then multiplied by 2 to obtain the period T of the AC power supply.

[0033] Step 33: The single-chip microcomputer of the single-live-wire power main control module calculates the effective value of the AC power voltage Vin according to the voltage division ratio and the divided voltage signal Vadc, and the calculation formula is: Vin=Vadc×(R1+R3) / R3.

[0034] Furthermore, the step 4 specifically includes:

[0035] Step 41: During the light-off phase, both ends of the single-live-wire power shunt module are in a conducting state, and it is determined that both ends are short-circuited. The live-wire output end is connected to the neutral line, and both ends of the single-live-wire power main control module are the live-wire input end and the neutral line. Its first isolated power supply and second non-isolated power supply are operating normally.

[0036] Step 42: In the light-on stage, after the voltage zero-crossing point reaches the falling edge of the zero-crossing signal Vz after a delay of t0, the single-chip microcomputer controls the Gate control signals of the MOS transistors Q2 and Q3 to change from a low level to a high level after a delay of t1 from the falling edge of the zero-crossing signal Vz. The duration of the high level of the MOS transistors Q2 and Q3 is t2, and it is necessary to ensure that t0+t1+t2=T / 2. At this time, the lamp in the light-on state obtains an AC power waveform with a fixed width of t2; wherein, t0 = arcsin[0.6 × (R1 + R3) ÷ R3 ÷ (Vin × 1.414)] ÷ (π / 2) × (T / 4), t2 = 1 / 2 × Ce × (U1 × U1 - U2 × U2) / P, where Ce is the capacitance of the energy storage electrolytic capacitor inside the first isolated power supply, U1 is the maximum input voltage obtained by the first isolated power supply during the time t0 + t1, U2 is the minimum voltage of the first isolated power supply during normal operation, and P is the total power consumed by the single-live-wire main control module and the control panel; t1 = T / 2 - t0 - t2;

[0037] If the effective voltage value Vin is not greater than the threshold, the AC mains power supply is determined to be a low-voltage power supply. Then, within the half cycle T / 2 when the light is turned on, the corresponding MOS transistors Q2 and Q3 are turned on at a high level after a delay of t1 from the falling edge of the zero-crossing signal. t1 = T / 2 - t0 - t2. The time t2 for MOS transistors Q2 and Q3 to be turned on at a high level = 1 / 2 × Ce × (U1 × U1 - U2 × U2) / P. The time difference between the falling edge of the zero-crossing signal Vz and the voltage zero-crossing point is t0 = arcsin [0.6 × (R1 + R3) ÷ R3 ÷ (Vin × 1.414)] ÷ (π / 2) × (T / 4).

[0038] If the effective voltage value Vin is greater than the threshold, the AC mains power supply is determined to be a high voltage power supply. Then, within the half cycle T / 2 when the light is turned on, the corresponding MOS transistors Q2 and Q3 are turned on at a high level after a delay of t1 from the falling edge of the zero-crossing signal. t1 = T / 2 - t0 - t2. The time t2 for MOS transistors Q2 and Q3 to turn on at a high level = 1 / 2 × Ce × (U1 × U1 - U2 × U2) / P. The time difference t0 between the falling edge of the zero-crossing signal Vz and the voltage zero-crossing point is arcsin [0.6 × (R1 + R3) ÷ R3 ÷ (Vin × 1.414)] ÷ (π / 2) × (T / 4).

[0039] By adopting the above technical solution, the present invention has the following beneficial effects compared with the prior art:

[0040] 1. The cycle and effective value of the AC input voltage are collected by resistor voltage division and transistor on-off, which is low cost and simple to apply;

[0041] 2. Automatically identify the voltage cycle and effective value of the AC input power supply by comparing the effective value of the AC input voltage with the threshold and the interval of the falling edge of the zero-crossing signal;

[0042] 3. According to the cycle and effective value of the identified AC input power supply voltage, the MOS tube Q2 and MOS tube Q3 in the single-live-wire power supply main control module are variably turned off and on to ensure that the voltage waveform obtained by the single-live-wire power supply system in each power supply cycle when the light is turned on is completely consistent, and the voltage waveform obtained by the lamp in each power supply cycle is completely consistent, thereby improving the safety and reliability of the single-live-wire power supply system and the lamp. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0044] Figure 1 It is a structural diagram of a single live wire power supply system in the prior art.

[0045] Figure 2 It is the AC voltage waveform diagram when the leading edge phase is cut off.

[0046] Figure 3 This is a control signal waveform diagram of a single-live-wire power supply system with adaptive AC power supply provided by an embodiment of the present invention.

[0047] Figure 4 This is a zero-crossing signal amplified waveform diagram of a single-live-wire power supply system with adaptive AC power supply provided by an embodiment of the present invention.

[0048] Figure 5 The present invention provides a schematic structural diagram of a single-live-wire power supply system with adaptive AC power supply.

[0049] Figure 6 This is an execution flow chart of a single-live-wire power supply system with adaptive AC power supply provided by an embodiment of the present invention.

[0050] Description of the numbers in the figure:

[0051] 10-single live wire power main control module, 101-first fuse, 102-first voltage detection circuit, 103-single chip microcomputer, 104-OP driver, 105-phase-cut power circuit, 106-first overcurrent protection circuit, 107-first power supply circuit, 1071-first isolated power supply, 1072-second non-isolated power supply, 20-single live wire power shunt module, 201-second power supply circuit, 2011-third non-isolated power supply, 202-second voltage detection circuit, 203-shunt circuit, 204-second overcurrent protection circuit, 205-second fuse, 30-AC power supply, 40-lighting, 50-control panel. DETAILED DESCRIPTION

[0052] The present invention will be described in further detail below with reference to the accompanying drawings and examples. It is particularly noted that the following examples are intended only to illustrate the present invention and are not intended to limit the scope of the present invention. Similarly, the following examples are only some embodiments of the present invention and are not intended to be exhaustive. All other embodiments obtained by those of ordinary skill in the art without creative effort are intended to fall within the scope of protection of the present invention.

[0053] See Figure 3-Figure 6The present invention provides a single-live-wire power supply system that is adaptive to a mains AC power supply. The single-live-wire power supply system includes: a single-live-wire power supply main control module 10, a single-live-wire power supply shunt module 20, a mains AC power supply 30 and a lamp 40. The live wire of the mains AC power supply 30 is connected to the live wire input end of the single-live-wire power supply main control module; the input end of the single-live-wire power supply shunt module 20 is connected to the live wire output end of the single-live-wire power supply main control module 10, and the output end of the single-live-wire power supply shunt module 20 is connected to the neutral wire of the mains AC power supply 30; the input end of the lamp 40 is connected to the live wire output end of the single-live-wire power supply main control module 10, and the output end of the lamp 40 is connected to the neutral wire of the mains AC power supply 30. The single live wire power taking main control module 10 includes: a first fuse 101, a first voltage detection circuit 102, a single chip microcomputer 103, an OP driver 104, a phase-cut power taking circuit 105, a first overcurrent protection circuit 106 and a first power supply circuit 107, wherein the first voltage detection circuit 102, the phase-cut power taking circuit 105, the first power supply circuit 107 and the live wire of the AC power supply 30 are all connected to the live wire input terminal a, the single chip microcomputer 103 is respectively connected to the first voltage detection circuit 102, the OP driver 104 and the first overcurrent protection circuit 106, and the phase-cut power taking circuit 107 is connected to the first power supply circuit 107. 05 are respectively connected to the OP driver 104 and the first overcurrent protection circuit 106; the first voltage detection circuit 102, the phase-cut power supply circuit 105, the first power supply circuit 107, the single-live wire power shunt module 20 and the lamp 40 are all connected to the live wire output terminal b; the first power supply circuit 107 is respectively connected to the first voltage detection circuit 102, the single-chip microcomputer 103, the OP driver 104 and the first overcurrent protection circuit 106; one end of the first fuse 101 is connected to the live wire of the AC power supply 30, and the other end of the first fuse 101 is connected to the live wire input terminal a.

[0054] The single live wire power supply system further includes a control panel 50 , which is connected to the power supply end of the first power supply circuit 107 .

[0055] It should be noted that the AC power supply 30 provides power for the single-live-wire power supply main control module 10, the single-live-wire power supply shunt module 20, the lamp 40 and the control panel 50; the single-live-wire power supply main control module 10 is used to collect the voltage zero-crossing point of the AC power supply 30, calculate the period T and the effective voltage value Vin of the AC power supply, and control the Gate switch of the MOS tube Q2 / Q3 according to the period T and the effective voltage value Vin, thereby controlling the on-time and off-time of the lamp 40; the single-live-wire power supply shunt module 20 is used to form a short-circuit path when the light is off, or cooperate with the single-live-wire power supply main control module 10 to realize normal lighting of the lamp 40 when the light is on; the lamp 40 realizes the change of ambient brightness; the control panel 50 is used to receive user instructions and control the on / off state of the lamp 40.

[0056] The first voltage detection circuit 102 is used to divide the voltage information of the AC power supply 30 and generate a divided voltage signal Vadc and a zero-crossing signal Vz; the single-chip microcomputer 103 is used to receive the zero-crossing signal Vz and the divided voltage signal Vadc, calculate the AC power cycle T and the voltage effective value Vin, and output a Gate control signal; the OP driver 104 is used to drive the G poles of the MOS tube Q2 and the MOS tube Q3 according to the control signal of the single-chip microcomputer; the phase-cut power circuit 105 is used to control the conduction and shutdown of the live wire output end; the first overcurrent protection circuit 106 is used to prevent the current in the circuit from exceeding a predetermined maximum value and protect the circuit; the first power supply circuit 107 is used to provide working power for the single-live wire power main control module 10.

[0057] In this embodiment, the input end of the first fuse 101 is connected to the live wire of the AC power supply 30, and the output end of the first fuse 101 is respectively connected to the first voltage detection circuit 102, the phase-cut power supply circuit 105 and the first power supply circuit 107, for protecting the AC power supply 30 and the single-live-wire power supply main control module 10.

[0058] In this embodiment, the first voltage detection circuit 102 includes a resistor R1, a resistor R2, a resistor R3, a resistor R11, a resistor R12 and a transistor Q1, one end of the resistor R1 is connected to the first fuse 101, the other end of the resistor R1 is respectively connected to one end of the resistor R2 and the B pole of the transistor Q1, the other end of the resistor R2 is connected to the live wire output terminal b, one end of the resistor R3 is connected to the B pole of the transistor Q1, and the other end of the resistor R3 is connected to the second reference ground; one end of the resistor R11 is connected to the B pole of the transistor Q1, the other end of the resistor R11 is connected to the single-chip microcomputer 103, and the C pole of the transistor Q1 is respectively connected to the single-chip microcomputer 103 and the resistor R12 One end of the resistor R12 is connected, and the other end of the resistor R12 is connected to the first power supply circuit 107; after the first voltage detection circuit 102 divides the mains AC power supply 30, one channel is used to drive the transistor Q1 of the single-live wire power main control module 10 to generate a zero-crossing signal Vz connected to the single-chip microcomputer 103 for calculating the voltage zero-crossing point of the mains AC power supply 30; the other channel of the first voltage detection circuit 102 after resistor voltage division is connected to the ADC pin of the single-chip microcomputer 103 in the single-live wire power main control module 10 for calculating the effective value Vin of the voltage of the mains AC power supply 30, Vin=Vadc×(R1+R3) / R3, where Vadc is the effective value of the ADC pin voltage of the single-chip microcomputer. The resistor voltage divider network of the first voltage detection circuit 102 satisfies R1=R2, and R1=R3×50 to optimize the zero-crossing detection accuracy. Since the voltage between the neutral wire and the live wire of the AC power supply 30 is the AC phase voltage and cannot be directly connected to the microcontroller 103, a resistor voltage division method is adopted (voltage division is performed by resistors R1, R2 and R3) to provide a voltage signal that meets its electrical performance requirements for detection, and the actual AC phase voltage is calculated through the voltage division ratio. Therefore, the microcontroller 103 can accurately obtain the AC voltage. The microcontroller 103 can obtain the voltage zero crossing point of the AC power supply by subtracting t0 from the falling edge of the zero-crossing signal Vz.

[0059] In this embodiment, the single-chip microcomputer 103 includes a single-chip microcomputer U10, the model of which is CS32F035K6U6 and is powered by 5VA. The input signals of the single-chip microcomputer 103 include the zero-crossing signal Vz and the voltage-dividing signal Vadc from the first voltage detection circuit 102. The output signal of the single-chip microcomputer 103 includes the input control signal of the OP driver 104. The single-chip microcomputer 103 is also connected to the output terminal of the first overcurrent protection circuit 106, which is used to shut down the output of the OP driver 104 when overcurrent occurs.

[0060] In this embodiment, the OP driver 104 includes a chip U20, the model of which is LM321A; the input pin of the chip U20 is connected to the microcontroller 103, and the output pin of the chip U20 is connected to the phase-cut power circuit 105, which is used to control the opening or closing of the G poles of the MOS tube Q2 and the MOS tube Q3 in the phase-cut power circuit 105. The OP driver 104 is also powered by 5VA.

[0061] In this embodiment, the phase-cut power supply circuit 105 includes a MOS transistor Q2, a MOS transistor Q3, a resistor R4, and a resistor R5. The G poles of the MOS transistors Q2 and Q3 are both connected to the output terminal Gate of the OP driver (104). The D pole of the MOS transistor Q2 is connected to the live wire input terminal a (if there is a first fuse 101, the D pole of the MOS transistor Q2 is connected to the first fuse 101). The S pole of the MOS transistor Q2 is respectively connected to one end of the resistor R4 and the first overcurrent protection circuit 106. The D pole of the MOS transistor Q3 is connected to the live wire output terminal b. The S pole of the MOS transistor Q3 is respectively connected to one end of the resistor R5 and the first overcurrent protection circuit 106. The other end of the resistor R4 and the other end of the resistor R5 are both connected to the second reference ground.

[0062] In this embodiment, the power supply terminal of the first overcurrent protection circuit 106 is connected to the power supply terminal of the first power supply circuit 107 (the second non-isolated power supply 1072), the input terminal of the first overcurrent protection circuit 106 is connected to one end of the resistor R4 and one end of the resistor R5, respectively, and the ground terminal of the first overcurrent protection circuit 106 is connected to the second reference ground; the output terminal of the first overcurrent protection circuit 106 is connected to the input terminal of the single-chip microcomputer 103. Because the phase-cut power supply circuit 105 generates an overshoot current signal during the startup process, which can easily cause damage to the MOS transistors Q2 and Q3, the first overcurrent protection circuit 106 and the single-chip microcomputer 103 work closely together to quickly respond to the overshoot signal and promptly shut down the MOS transistors Q2 and Q3, thereby protecting the phase-cut power supply circuit 105 from damage. Because the first overcurrent protection circuit 106 needs to implement bidirectional current protection, the center of the resistor R4 and the resistor R5 between the two MOS transistors Q2 and MOS transistor Q3 is used as the reference ground. The second non-isolated power supply 1072 supplies power to the first overcurrent protection circuit 106 and the microcontroller 103, providing a reference ground.

[0063] In this embodiment, the first power supply circuit 107 includes a first isolated power supply 1071 and a second non-isolated power supply 1072. The input end of the first isolated power supply 1071 is connected to the live wire input end a, the output end of the first isolated power supply 1071 is connected to the live wire output end b, the ground end of the first isolated power supply 1071 is connected to the first reference ground, the power end of the first isolated power supply 1071 is connected to the control panel 50, and the first isolated power supply 1071 is used to reduce the voltage of the AC power supply 30 and isolate it to power the control panel 50; the second non-isolated power supply 1072 is connected to the ground end of the first isolated power supply 1071. The input end is connected to the live wire input end a, the output end of the second isolated power supply 1072 is connected to the live wire output end b, the ground end of the second non-isolated power supply 1072 is connected to the second reference ground, and the power supply end of the second non-isolated power supply 1072 is respectively connected to the power supply end of the first voltage detection circuit 102, the single-chip microcomputer 103, the OP driver 104 and the first overcurrent protection circuit 106; the second non-isolated power supply 1072 is used to reduce the voltage of the AC power supply 30 to power the first voltage detection circuit 102, the single-chip microcomputer 103, the OP driver 104 and the first overcurrent protection circuit 106. In this embodiment, the first non-isolated power supply 1071 uses an isolated AC-DC conversion circuit with a transformer to step down the voltage to obtain a 12V voltage, which supplies power to the control panel 50 and provides a first reference ground; the second non-isolated power supply 1072 uses a non-isolated AC-DC conversion circuit without a transformer to step down the voltage to obtain a 5V voltage, which supplies power to the first voltage detection circuit 102, the single-chip microcomputer 103, the OP driver 104 and the first overcurrent protection circuit 106, and provides a second reference ground.

[0064] Among them, the single live wire power shunt module 20 includes: a second power supply circuit 201, a second voltage detection circuit 202, a shunt circuit 203, a second overcurrent protection circuit 204 and a second fuse 205. The second power supply circuit 201, the second voltage detection circuit 202 and the shunt circuit 203 are all connected to the live wire output end b, and the second power supply circuit 201 is respectively connected to the second voltage detection circuit 202, the shunt circuit 203 and the second overcurrent protection circuit 204; the shunt circuit 203 is respectively connected to the second voltage detection circuit 202 and the second overcurrent protection circuit 204; one end of the second fuse 205 is connected to the neutral line of the AC power supply 30, and the other end is respectively connected to the second power supply circuit 201, the second voltage detection circuit 202 and the shunt circuit 203. The second power supply circuit 201 is used to provide operating voltage for the second voltage detection circuit 202, the shunt circuit 203 and the second overcurrent protection circuit 204; the second voltage detection circuit 202 is used to detect the voltage between the live wire output terminal b and the neutral wire; the shunt circuit 203 is used to connect the live wire output terminal b and the neutral wire when the light is off to form a power supply circuit; the second overcurrent protection circuit 204 is used to protect the MOS tube Q5 and the MOS tube Q6 from overcurrent damage; the fuse 205 protects the AC power supply 30 and the single live wire power supply shunt module 20.

[0065] In this embodiment, the second power supply circuit 201 includes a third non-isolated power supply 2011, the input end of the third non-isolated power supply 2011 is connected to the live wire output end b, the output end of the third non-isolated power supply 2011 is connected to the second fuse 205 (if there is no second fuse 205, its output end is connected to the neutral wire of the mains AC power supply), the ground end of the third non-isolated power supply 2011 is connected to the third reference ground, and the power supply of the third non-isolated power supply 2011 is respectively connected to the second voltage detection circuit 202, the shunt circuit 203 and the second overcurrent protection circuit 204; the third non-isolated power supply 2011 converts the AC voltage between the live wire output end and the neutral wire into a DC low voltage not exceeding 10V, and supplies power to the second voltage detection circuit 202, the shunt circuit 203 and the second overcurrent protection circuit 204.

[0066] In this embodiment, the second voltage detection circuit 202 includes a resistor R6, a resistor R7, a resistor R8, a resistor R13 and a transistor Q4, one end of the resistor R6 is connected to the live wire output terminal b, the B pole of the transistor Q4 is respectively connected to the other end of the resistor R6, one end of the resistor R7 and one end of the resistor R8, the other end of the resistor R7 is connected to the second fuse 205, the E pole of the transistor Q4 and the other end of the resistor R8 are connected to the third reference ground, the C pole of the transistor Q4 is respectively connected to one end of the resistor R13 and the shunt circuit 203 The other end of resistor R13 is connected to the second power supply circuit 201. When the light is off, the voltage between the neutral line of the AC mains power source 30 and the live line output terminal b of the single live line power main control module 10 is the mains phase voltage and cannot be directly used to drive the G terminals of MOS transistors Q5 and Q6 in the shunt circuit 203. Therefore, a resistor voltage divider is used (voltage divided by resistors R6, R7, and R8) to provide a voltage signal that meets the electrical performance requirements to control the G terminals of MOS transistors Q5 and Q6 in the shunt circuit 203. In this embodiment, the resistor voltage divider network of the second voltage detection circuit 202 satisfies R6 = R7, and the conduction threshold of transistor Q4 is set to (R6 + R8) / R8 × 0.6V to achieve accurate voltage detection. Design R6 = R7, and it is known that the B-pole conduction voltage of transistor Q4 is 0.6V. It can be calculated that the conduction condition of transistor Q4 in the second voltage detection circuit 202 is that the voltage between the live output terminal b of the single live wire power main control module 10 and the neutral line is greater than or equal to (R6+R8) / R8×0.6V; when the voltage between the live output terminal b of the single live wire power shunt module 20 and the neutral line is less than (R6+R8) / R8×0.6V, the conduction condition of transistor Q4 in the second voltage detection circuit 202 is Q4 is turned off, and the G electrodes of the MOS transistors Q5 and Q6 of the shunt circuit 203 are turned on by the 10VC power supply. At this time, the live output terminal b and the neutral line are equivalent to a short circuit; when the voltage between the live output terminal b and the neutral line is greater than or equal to (R6+R8) / R8×0.6V, the transistor Q4 in the second voltage detection circuit 202 is turned on, pulling down the G electrodes of the MOS transistors Q5 and Q6 of the shunt circuit 203. At this time, the live output terminal b and the neutral line are equivalent to an open circuit.

[0067] In this embodiment, the shunt circuit 203 includes a MOS transistor Q5, a MOS transistor Q6, a resistor R9, a resistor R10, and a resistor R14. The G electrodes of the MOS transistors Q5 and Q6 are connected to the C electrode of the transistor Q4 in the second voltage detection circuit 202, one end of the resistor R14, and the second overcurrent protection circuit 204. The other end of the resistor R14 is connected to the second power supply circuit 201. The D electrode of the MOS transistor Q5 is connected to the live wire output terminal b. The S electrode of the MOS transistor Q5 is respectively connected to one end of the resistor R9 and the second overcurrent protection circuit 204. The D electrode of the MOS transistor Q6 is connected to one end of the second fuse 205. The S electrode of the MOS transistor Q6 is respectively connected to one end of the resistor R10 and the second overcurrent protection circuit 204. The other ends of the resistors R9 and R10 are both connected to the third reference ground.

[0068] In this embodiment, the power supply terminal of the second overcurrent protection circuit 204 is connected to the power supply terminal of the third non-isolated power supply 2011. The output terminal of the second overcurrent protection circuit 204 is connected to the G terminal of the MOS transistor Q5 and the G terminal of the MOS transistor Q6, respectively. The input terminal of the second overcurrent protection circuit 204 is connected to one end of the resistor R9 and one end of the resistor R10, respectively. The ground terminal of the second overcurrent protection circuit 204 is connected to the third reference ground. Because the shunt circuit 203 generates an overshoot current signal during the startup process, which can easily damage the MOS transistors Q5 and Q6, the second overcurrent protection circuit 204, through close cooperation with the resistors R9 and R10, can quickly respond to the overshoot signal and promptly shut down the MOS transistors Q5 and Q6, thereby protecting the shunt circuit 203 from damage. Because the second overcurrent protection circuit 204 needs to implement bidirectional current protection, the center of the resistor R9 and the resistor R10 between the two MOS transistors Q5 and Q6 is used as a reference ground. The third non-isolated power supply 2011 supplies power to the second overcurrent protection circuit 204 and provides a reference ground.

[0069] In this embodiment, one end of the second fuse 205 is connected to the neutral line of the AC power supply 30, and the other end of the second fuse 205 is respectively connected to the second power supply circuit 201, the second voltage detection circuit 202 and the shunt circuit 203, for protecting the AC power supply 30 and the single-live-wire power shunt module 20.

[0070] The working principle of the present invention is as follows:

[0071] In the light-off state, the single-live-wire power shunt module 20 is in a short-circuit state, and the live wire of the AC power source 30 passes through the single-live-wire power main control module 10 and the single-live-wire power shunt module 20 and then returns to the neutral wire of the AC power source 30, forming a complete AC power path;

[0072] In the light-on state, the single-live-wire power main control module 10 controls the live wire output end to be in the leading-edge phase-cutting mode. During phase-cutting, the single-live-wire power shunt module 20 is in a short-circuit state. At this time, the live wire passes through the single-live-wire power main control module and the single-live-wire power shunt module and then returns to the neutral wire, forming a complete AC power path; when the phase is not cut, the single-live-wire power shunt module 20 is in an open-circuit state, and the live wire output end adds AC power to the lamp 40, and then forms a current loop through the neutral wire, and the lamp 40 lights up normally. At this time, the single-live-wire power main control module 10 relies on its own energy storage capacitor to maintain the working state; this cycle achieves the purpose of the single-live-wire power system working normally when turning the light on and off.

[0073] See Figure 5 and 6 The present invention provides a method for adaptively obtaining power from a mains AC power supply using a single live wire. The method requires providing the above-mentioned system for adaptively obtaining power from a mains AC power supply using a single live wire, and includes the following steps:

[0074] Step 1: When powered on for the first time, the first voltage detection circuit 102 of the single-live-wire power main control module 10 performs voltage division processing on the AC power supply to obtain a voltage division signal Vadc and a zero-crossing signal Vz;

[0075] Step 2: The single-chip microcomputer 103 of the single-live-wire power main control module 10 collects the voltage division signal Vadc and the zero-crossing signal Vz of the AC power supply 30 in real time;

[0076] Step 3, the single chip microcomputer 103 calculates the period T of the AC mains power supply 30 according to the falling edge of the zero-crossing signal Vz; at the same time, the single chip microcomputer 103 calculates the effective value Vin of the voltage of the AC mains power supply 30 according to the voltage division signal Vadc;

[0077] Step 4: According to the period T and the effective voltage value Vin of the AC power supply 30, the corresponding parameters are called to control the G poles of the MOS tubes Q2 and Q3 in the single-live-wire power supply main control module 10 to achieve normal power supply of the single-live-wire power supply system and normal lighting of the lamp.

[0078] Preferably, the step 1 also includes: before power-on, that is, in the light-off stage, the control signal from the single-chip microcomputer 103 in the single-live-wire power main control module 10 to the OP driver 104 is at a low level by default, and the Gate control signal of the corresponding OP driver 104 is also at a low level. At this time, the MOS tube Q2 and the MOS tube Q3 in the single-live-wire power main control module 10 are cut off, and the single-live-wire power shunt module 20 is turned on through the MOS tube Q5 and the MOS tube Q6 to connect the live wire output end b with the neutral wire. The single-live-wire power shunt module 20 is equivalent to a short-circuit state, and the corresponding live wire output and the neutral wire are in a conducting state. At this time, the live wire of the AC power supply 30 passes through the single-live-wire power main control module 10 and the single-live-wire power shunt module 20 back to the neutral wire, forming a complete AC power supply path.

[0079] Preferably, the step 1 specifically includes:

[0080] Step 11: The first voltage detection circuit 102 of the single-live-wire power main control module 10 performs voltage division processing on the voltage signal of the AC power supply 30 by using a resistor voltage divider to obtain a voltage division signal Vadc and a zero-crossing signal Vz;

[0081] Preferably, the step 2 specifically includes:

[0082] Step 21: The single-chip microcomputer 103 of the single-live-wire power main control module 10 collects the divided voltage signal Vadc and the zero-crossing signal Vz in real time;

[0083] Step 22: the single live wire power main control module 10 transmits the voltage divided signal Vadc after the resistor voltage division to the ADC pin of the single chip microcomputer.

[0084] Preferably, the step 3 specifically includes:

[0085] Step 31: In the light-off stage, the G electrodes of the MOS transistors Q2 and Q3 in the single-live-wire power main control module 10 are in a low-level off state;

[0086] In step 32, after the single-line power supply main control module 10 delays for a preset time (e.g., 30 seconds), the single-chip microcomputer 103 of the single-line power supply main control module 10 collects the falling edge of the zero-crossing signal Vz multiple times to avoid malfunction caused by the live line input pulse of the mains AC power supply 30 at the power-on moment on the zero-crossing signal Vz, calculates the time difference between the falling edges of two adjacent zero-crossing signals Vz and calculates the average value, and then multiplies the result by 2 to obtain the period T of the mains AC power supply 30; based on the falling edge of the zero-crossing signal Vz, the lag time t0 is subtracted to calculate the actual voltage zero-crossing point of the mains AC power supply 30; because the live line and the neutral line of the mains AC power supply 30 are sinusoidal voltage signals, the time difference between adjacent voltage zero-crossing points is half of the voltage period of the mains AC power supply 30, and therefore, the voltage period T of the mains AC power supply 30 can be obtained by obtaining the falling edge of the zero-crossing signal Vz 10 times, calculating the time difference between the falling edges of two adjacent zero-crossing signals Vz and calculating the average value, and then multiplying the result by 2.

[0087] Step 33: The single-chip microcomputer 103 of the single-live-wire power main control module 10 calculates the effective voltage Vin of the AC power supply 30 according to the voltage division ratio and the divided voltage signal Vadc. The calculation formula is: Vin=Vadc×(R1+R3) / R3.

[0088] Preferably, the step 4 specifically includes:

[0089] Step 41: During the light-off phase, both ends of the single-live-wire power shunt module 20 are in a conducting state, which is equivalent to a short circuit. The live-wire output end is connected to the neutral line, and both ends of the single-live-wire power main control module 10 are the live-wire input end and the neutral line. The first isolated power supply 1071 and the second non-isolated power supply 1072 are working normally.

[0090] Step 42: In the light-on stage, after the voltage zero-crossing point reaches the falling edge of the zero-crossing signal Vz after a delay of t0, the single-chip microcomputer 103 receives the falling edge of the zero-crossing signal Vz and, after a delay of t1 at the falling edge of the zero-crossing signal Vz, controls the Gate control signals of the MOS transistors Q2 and Q3 to change from a low level to a high level. The duration of the high level of the MOS transistors Q2 and Q3 is t2, and it is necessary to ensure that t0+t1+t2=T / 2. At this time, the lamp 40 in the light-on state obtains an AC power waveform with a fixed width of t2; wherein, t0=arcsin[0.6×(R1+R3)÷R3÷(Vin×1.414)]÷(π / 2)×(T / 4). In the phase-cut power supply circuit 105, When the MOS tubes Q2 and Q3 are turned on, the live wire input terminal a and the live wire output terminal b are equivalent to being short-circuited. At this time, the first isolated power supply 1071 cannot obtain power from the live wire input and needs to rely on the energy stored in its own electrolytic capacitor to power the single live wire power main control module 10 and the control panel 50. According to the law of conservation of energy, it can be obtained that t2 = 1 / 2 × Ce × (U1 × U1-U2 × U2) / P, where Ce is the capacitance of the internal energy storage electrolytic capacitor of the first isolated power supply 1071, U1 is the maximum input voltage obtained by the first isolated power supply 1071 within the time t0+t1, U2 is the minimum voltage at which the power conversion module of the first isolated power supply 1072 can work normally, and P is the total power consumed by the single live wire power main control module 10 and the control panel 50;

[0091] t1=T / 2-t0-t2;

[0092] If the voltage RMS Vin is not greater than the threshold (e.g. 176VAC), it is determined that the AC power supply is a low voltage power supply (110V). Then, during the half cycle T / 2 when the light is turned on, the corresponding MOS tubes Q2 and Q3 turn on the high level after the delay t1 at the falling edge of the zero-crossing signal. t1 = T / 2 - t0 - t2 (the result calculated at a voltage of 110V is: t1 = 0.28 × T / 2). MOS tubes Q2 and Q3 turn on the high level. The flat time t2 = 1 / 2 × Ce × (U1 × U1 - U2 × U2) / P (the result calculated at a voltage of 110 V is: t2 = 0.66 × T / 2); the time difference between the falling edge of the zero-crossing signal Vz and the voltage zero-crossing point is t0 = arcsin [0.6 × (R1 + R3) ÷ R3 ÷ (Vin × 1.414)] ÷ (π / 2) × (T / 4) (the result calculated at a voltage of 110 V is: t0 = 0.06 × T / 2);

[0093] If the voltage RMS Vin is greater than the threshold (e.g. 176VAC), it is determined that the AC mains power supply is a high voltage power supply (220V). Then, during the half cycle T / 2 when the light is turned on, the corresponding MOS tubes Q2 and Q3 turn on the high level after the delay t1 time at the falling edge position of the zero-crossing signal. t1 = T / 2 - t0 - t2 (the result calculated at a voltage of 220V is: t1 = 0.31 × T / 2). MOS tubes Q2 and Q3 turn on the high level. The time t2=1 / 2×Ce×(U1×U1-U2×U2) / P (the result calculated at a voltage of 220V is: t2=0.66×T / 2); the time difference between the falling edge of the zero-crossing signal Vz and the voltage zero-crossing point is t0=arcsin[0.6×(R1+R3)÷R3÷(Vin×1.414)]÷(π / 2)×(T / 4) (the result calculated at a voltage of 220V is: t0=0.03×T / 2). Preferably, the step 2 specifically includes:

[0094] This voltage threshold judgment and demarcation is reasonable. A query of residential power grid voltages in countries around the world shows that 110V is the representative of the low-voltage area and 220V is the representative of the high-voltage area. In the low-voltage area, there are also 100V, 120V, and 127V power grid standards, and in the high-voltage area, there are also 230V and 240V power grid standards. In this system, the AC power supply 30 uses 176V as the threshold to distinguish between low-voltage and high-voltage areas. Since 176V-127V=49V and 220V-176V=44V, there are 49V and 44V fault tolerance margins before and after the 176V threshold, respectively. Selecting 176Vac as the threshold for judging high and low voltage areas is reasonable and feasible, and is not prone to misjudgment.

[0095] The voltage zero-crossing point of the AC power supply 30 is collected by the single live wire power main control module 10, specifically including:

[0096] (1) When powered on for the first time, the single-live wire power supply to the microcontroller 103 in the main control module 10 is delayed for 30 seconds;

[0097] (2) The single-chip microcomputer 103 in the single-live-wire power supply main control module 10 collects the falling edge of the zero-crossing signal Vz;

[0098] (3) The single chip microcomputer 103 calculates the actual voltage zero crossing point of the AC power supply 30 based on the falling edge of the zero crossing signal Vz minus the time t0.

[0099] Example 1:

[0100] The present invention provides a method for adaptively obtaining power from a mains AC power supply using a single live wire, specifically comprising the following steps:

[0101] S1, the AC power supply 30 is stepped down by the first power supply circuit 107 to supply power to the first voltage detection circuit 102, the single chip microcomputer 103, the OP driver 104, the first overcurrent protection circuit 106 and the control panel 50;

[0102] S2, after the AC power supply 30 is divided by the first voltage detection circuit 102, a signal is formed through the transistor Q1 to form a zero-crossing signal Vz which is sent to the single-chip microcomputer 103 for calculating the voltage zero-crossing point of the AC power supply 30;

[0103] S3, the single chip computer 103 calculates the voltage period T of the AC power supply by multiplying the time difference between the highest and lowest values ​​of the adjacent falling edges of the zero-crossing signal Vz by 2;

[0104] S4. The voltage signal Vadc obtained by dividing the AC power supply 30 by the first voltage detection circuit 102 is sent to the microcontroller 103. The effective voltage value Vin of the AC power supply 30 is calculated according to the formula Vin=Vadc×(R1+R3) / R3.

[0105] S5. The single chip computer 103 compares the effective value Vin of the AC power supply 30 with the threshold value (176Vac). If Vin is not greater than 176V, it indicates that the voltage of the AC power supply 30 is in the low voltage range of 110V; if Vin is greater than 176V, it indicates that the voltage of the AC power supply 30 is in the high voltage range of 220V.

[0106] S6. If the voltage effective value Vin is not greater than 176VAC, it is determined that the AC mains power supply is 110V. Then, during the half cycle T / 2 when the light is turned on, the corresponding MOS transistors Q2 and Q3 are turned on with a delay of t1 after the falling edge of the zero-crossing signal, where t1 = 0.28 × T / 2, and the turn-on time of MOS transistors Q2 and Q3 is t2 = 0.66 × T / 2. The time difference between the falling edge of the zero-crossing signal Vz and the voltage zero-crossing point is t0 = 0.06 × T / 2, where t0 + t1 + t2 = T / 2. This ensures that the phase-cut AC voltage obtained by the lamp 40 when the light is turned on has a fixed waveform, thereby preventing flickering and damage to the lamp.

[0107] S7. If the voltage effective value Vin is greater than 176VAC, the AC mains power source 30 is determined to be 220V. During the half cycle T / 2 when the light is turned on, the corresponding MOS transistors Q2 and Q3 are turned on with a delay of t1 after the falling edge of the zero-crossing signal, where t1 = 0.31 × T / 2. The turn-on time of MOS transistors Q2 and Q3 is t2 = 0.66 × T / 2. The time difference between the falling edge of the zero-crossing signal Vz and the voltage zero-crossing point is t0 = 0.03 × T / 2, where t0 + t1 + t2 = T / 2. This ensures that the phase-cut AC voltage obtained by the lamp 40 when the light is turned on has a fixed waveform, thereby preventing flickering and damage to the lamp.

[0108] The above descriptions are only some embodiments of the present invention and do not limit the scope of protection of the present invention. Any equivalent device or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A single-live-wire power supply system with adaptive AC power supply, comprising: AC power supply, single live wire power taking main control module, single live wire power taking shunt module and lamp, the live wire of the AC power supply is connected to the live wire input end of the single live wire power taking main control module; the input end of the single live wire power taking shunt module is connected to the live wire output end of the single live wire power taking main control module, and the output end of the single live wire power taking shunt module is connected to the neutral wire of the AC power supply; the input end of the lamp is connected to the live wire output end of the single live wire power taking main control module, and the output end of the lamp is connected to the neutral wire of the AC power supply; it is characterized in that the single live wire power taking main control module includes: a first voltage detection circuit, a single-chip microcomputer, an OP driver, a phase-cut power taking circuit circuit, a first overcurrent protection circuit and a first power supply circuit, the first voltage detection circuit, the phase-cutting power supply circuit, the first power supply circuit and the live wire of the AC power supply are all connected to the live wire input terminal a, the single-chip microcomputer is respectively connected to the first voltage detection circuit, the OP driver and the first overcurrent protection circuit, the phase-cutting power supply circuit is respectively connected to the OP driver and the first overcurrent protection circuit; the first voltage detection circuit, the phase-cutting power supply circuit, the first power supply circuit, the single live wire power shunt module and the lamp are all connected to the live wire output terminal b; the first power supply circuit is respectively connected to the first voltage detection circuit, the single-chip microcomputer, the OP driver and the first overcurrent protection circuit.

2. The single-live-wire power supply system with adaptive AC power supply according to claim 1, characterized in that: The single-live-wire power supply system further includes a control panel connected to the power supply end of the first power supply circuit.

3. The single-live-wire power supply system with adaptive AC power supply according to claim 2, characterized in that: The first voltage detection circuit includes a resistor R1, a resistor R2, a resistor R3, a resistor R11, a resistor R12 and a transistor Q1, one end of the resistor R1 is connected to the live wire input terminal a, the other end of the resistor R1 is respectively connected to one end of the resistor R2 and the B pole of the transistor Q1, the other end of the resistor R2 is connected to the live wire output terminal b, one end of the resistor R3 is connected to the B pole of the transistor Q1, and the other end of the resistor R3 is connected to the second reference ground; one end of the resistor R11 is connected to the B pole of the transistor Q1, the other end of the resistor R11 is connected to the single-chip microcomputer, the C pole of the transistor Q1 is respectively connected to the single-chip microcomputer and one end of the resistor R12, and the other end of the resistor R12 is connected to the first power supply circuit; The phase-cut power supply circuit includes a MOS transistor Q2, a MOS transistor Q3, a resistor R4, and a resistor R5. The G poles of the MOS transistors Q2 and Q3 are both connected to the output terminal Gate of the OP driver, the D pole of the MOS transistor Q2 is connected to the live wire input terminal a, the S pole of the MOS transistor Q2 is respectively connected to one end of the resistor R4 and the first overcurrent protection circuit, the D pole of the MOS transistor Q3 is connected to the live wire output terminal b, the S pole of the MOS transistor Q3 is respectively connected to one end of the resistor R5 and the first overcurrent protection circuit, and the other end of the resistor R4 and the other end of the resistor R5 are both connected to the second reference ground; The first power supply circuit includes a first isolated power supply and a second non-isolated power supply, the input end of the first isolated power supply is connected to the live wire input end a, the output end of the first isolated power supply is connected to the live wire output end b, the ground end of the first isolated power supply is connected to the first reference ground, and the power supply end of the first isolated power supply is connected to the control panel; the input end of the second non-isolated power supply is connected to the live wire input end a, the output end of the second isolated power supply is connected to the live wire output end b, the ground end of the second non-isolated power supply is connected to the second reference ground, and the power supply end of the second non-isolated power supply is respectively connected to the first voltage detection circuit, the single-chip microcomputer, the OP driver and the first overcurrent protection circuit; The single live wire power main control module further includes a first fuse, one end of which is connected to the live wire of the AC power supply, and the other end of which is connected to the live wire input terminal a.

4. The single-live-wire power supply system with adaptive AC power supply according to claim 3, characterized in that: The single live wire power shunt module includes: a second power supply circuit, a second voltage detection circuit, a shunt circuit and a second overcurrent protection circuit. The second power supply circuit, the second voltage detection circuit and the shunt circuit are all connected to the live wire output end b, and the second power supply circuit is respectively connected to the second voltage detection circuit, the shunt circuit and the second overcurrent protection circuit; the shunt circuit is respectively connected to the second voltage detection circuit and the second overcurrent protection circuit; the second power supply circuit, the second voltage detection circuit and the shunt circuit are all connected to the neutral line of the AC power supply.

5. The single-live-wire power supply system with adaptive AC power supply according to claim 4, characterized in that: The second voltage detection circuit includes a resistor R6, a resistor R7, a resistor R8, a resistor R13 and a transistor Q4, one end of the resistor R6 is connected to the live wire output terminal b, the B pole of the transistor Q4 is respectively connected to the other end of the resistor R6, one end of the resistor R7 and one end of the resistor R8, the other end of the resistor R7 is connected to the neutral line of the AC power supply, the E pole of the transistor Q4 and the other end of the resistor R8 are connected to the third reference ground, the C pole of the transistor Q4 is respectively connected to one end of the resistor R13 and the shunt circuit, and the other end of the resistor R13 is connected to the second power supply circuit; The shunt circuit includes a MOS transistor Q5, a MOS transistor Q6, a resistor R9, a resistor R10, and a resistor R14. The G poles of the MOS transistors Q5 and Q6 are both connected to the C pole of the transistor Q4 in the second voltage detection circuit, one end of the resistor R14, and the second overcurrent protection circuit. The other end of the resistor R14 is connected to the second power supply circuit. The D pole of the MOS transistor Q5 is connected to the live wire output terminal b. The S pole of the MOS transistor Q5 is respectively connected to one end of the resistor R9 and the second overcurrent protection circuit. The D pole of the MOS transistor Q6 is connected to the neutral line of the AC mains power supply. The S pole of the MOS transistor Q6 is respectively connected to one end of the resistor R10 and the second overcurrent protection circuit. The other ends of the resistors R9 and R10 are both connected to the third reference ground. The second power supply circuit includes a third non-isolated power supply, the input end of the third non-isolated power supply is connected to the live wire output end b, the output end of the third non-isolated power supply is connected to the neutral wire of the AC mains power supply, the ground end of the third non-isolated power supply is connected to the third reference ground, and the power supply end of the third non-isolated power supply is respectively connected to the second voltage detection circuit, the shunt circuit and the second overcurrent protection circuit; The single-live-wire power shunt module also includes a second fuse, one end of which is connected to the neutral line of the AC power supply, and the other end of the second fuse is respectively connected to the second power supply circuit, the second voltage detection circuit and the shunt circuit.

6. A method for obtaining power from a single live wire of a commercial AC power supply, characterized in that: The method needs to provide a single-live-wire power supply system with adaptive AC power supply according to any one of claims 3 to 5, comprising the following steps: Step 1: When power is turned on for the first time, the mains AC power supply is divided by the first voltage detection circuit of the single-live-wire power main control module to obtain a divided voltage signal Vadc and a zero-crossing signal Vz; Step 2: The single-chip microcomputer of the single-live-wire power main control module collects the voltage division signal Vadc and the zero-crossing signal Vz of the AC power supply in real time; Step 3, the single chip microcomputer calculates the period T of the AC mains power supply according to the falling edge of the zero-crossing signal Vz; at the same time, the single chip microcomputer calculates the effective value Vin of the AC mains power supply according to the voltage division signal Vadc; Step 4: According to the period T and the effective value Vin of the AC mains power supply, the corresponding parameters are called to control the G poles of the MOS tubes Q2 and Q3 in the single-live-wire power supply main control module to achieve normal power supply of the single-live-wire power supply system and normal lighting of the lamp.

7. A method for obtaining power from a commercial AC power source with a single live wire adaptively as claimed in claim 6, characterized in that: Before step 1, the method also includes: before power-on, that is, in the light-off stage, the control signal of the single-chip microcomputer in the single-live-wire power main control module to the OP driver is at a low level by default, and the Gate control signal of the corresponding OP driver is also at a low level. At this time, the MOS tube Q2 and the MOS tube Q3 in the single-live-wire power main control module are cut off, and the single-live-wire power shunt module is turned on through the MOS tube Q5 and the MOS tube Q6 to connect the live wire output end b with the neutral wire. The single-live-wire power shunt module is equivalent to a short-circuit state, and the corresponding live wire output and the neutral wire are in a conducting state. At this time, the live wire of the AC power supply passes through the single-live-wire power main control module and the single-live-wire power shunt module back to the neutral wire, forming a complete AC power supply path.

8. A method for obtaining power from a commercial AC power source with a single live wire adaptively as claimed in claim 7, characterized in that: The step 1 specifically includes: Step 11: The first voltage detection circuit of the single-live-wire power main control module performs voltage division processing on the voltage signal of the AC main power supply by using a resistor voltage divider to obtain a voltage division signal Vadc and a zero-crossing signal Vz; The step 2 specifically includes: Step 21: The single-chip microcomputer of the single-live-wire power main control module collects the divided voltage signal Vadc and the zero-crossing signal Vz in real time; Step 22: The single-live-wire power main control module inputs the voltage-divided signal Vadc after resistor voltage division into the ADC pin of the single-chip microcomputer.

9. The method for obtaining power from a commercial AC power source with a single live wire adaptively according to claim 7, characterized in that: The step 3 specifically includes: Step 31: During the light-off phase, the G terminals of the MOS tubes Q2 and Q3 in the single-live-wire power main control module are in a low-level off state. Step 32: After a preset delay time, the single-chip microcomputer of the single-live-wire power main control module collects the falling edge of the zero-crossing signal Vz multiple times, calculates the time difference between the falling edges of two adjacent zero-crossing signals Vz, and calculates the average value. The result is then multiplied by 2 to obtain the period T of the AC power supply. Step 33: The single-chip microcomputer of the single-live-wire power main control module calculates the effective value of the AC power voltage Vin according to the voltage division ratio and the divided voltage signal Vadc, and the calculation formula is: Vin=Vadc×(R1+R3) / R3.

10. A method for obtaining power from a commercial AC power source with a single live wire adaptively according to claim 9, characterized in that: The step 4 specifically includes: Step 41: During the light-off phase, both ends of the single-live-wire power shunt module are in a conducting state, which is equivalent to a short circuit. The live-wire output end is connected to the neutral line, and both ends of the single-live-wire power main control module are the live-wire input end and the neutral line. The first isolated power supply and the second non-isolated power supply are working normally. Step 42: In the light-on stage, after the voltage zero-crossing point is delayed for a time t0 and reaches the falling edge of the zero-crossing signal Vz, the single-chip microcomputer receives the falling edge of the zero-crossing signal Vz and delays the falling edge of the zero-crossing signal Vz for a time t1. The single-chip microcomputer controls the Gate control signals of the MOS transistors Q2 and Q3 to change from a low level to a high level. The duration width of the high level of the MOS transistors Q2 and Q3 is t2, and it is necessary to ensure that t0+t1+t2=T / 2. At this time, the lamp in the light-on state obtains an AC current with a fixed width of t2. Source waveform; where t0 = arcsin[0.6×(R1+R3)÷R3÷(Vin×1.414)]÷(π / 2)×(T / 4), t2 = 1 / 2×Ce×(U1×U1-U2×U2) / P, where Ce is the capacitance of the energy storage electrolytic capacitor inside the first isolated power supply, U1 is the maximum input voltage obtained by the first isolated power supply within t0+t1, U2 is the minimum voltage for normal operation of the first isolated power supply, and P is the total power consumed by the single-live-wire power supply main control module and the control panel; t1=T / 2-t0-t2; If the effective voltage value Vin is not greater than the threshold, the AC mains power supply is determined to be a low-voltage power supply. Then, within the half cycle T / 2 when the light is turned on, the corresponding MOS transistors Q2 and Q3 are turned on at a high level after a delay of t1 from the falling edge of the zero-crossing signal. t1 = T / 2 - t0 - t2. The time t2 for MOS transistors Q2 and Q3 to be turned on at a high level = 1 / 2 × Ce × (U1 × U1 - U2 × U2) / P. The time difference between the falling edge of the zero-crossing signal Vz and the voltage zero-crossing point is t0 = arcsin [0.6 × (R1 + R3) ÷ R3 ÷ (Vin × 1.414)] ÷ (π / 2) × (T / 4). If the effective voltage value Vin is greater than the threshold, the AC mains power supply is determined to be a high voltage power supply. Then, within the half cycle T / 2 when the light is turned on, the corresponding MOS transistors Q2 and Q3 are turned on at a high level after a delay of t1 from the falling edge of the zero-crossing signal. t1 = T / 2 - t0 - t2. The time t2 for MOS transistors Q2 and Q3 to turn on at a high level = 1 / 2 × Ce × (U1 × U1 - U2 × U2) / P. The time difference t0 between the falling edge of the zero-crossing signal Vz and the voltage zero-crossing point is arcsin [0.6 × (R1 + R3) ÷ R3 ÷ (Vin × 1.414)] ÷ (π / 2) × (T / 4).