LED controller capable of controlling light to be switched off slowly during power failure

By introducing a power-on and power-off detection circuit and slow adjustment of PWM signal into the LED controller, the slow light-up and turn-off of the LED is achieved, solving the problem of sudden light-up or turn-off of the LED in the existing technology, and improving lighting Experience and energy saving effects.

CN222235092UActive Publication Date: 2024-12-24ZHONGSHAN YUANGU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420036586.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-01-05
Publication Date
2024-12-24
Estimated Expiration
2034-01-05

AI Technical Summary

Technical Problem

The existing LED controller lights up instantly when the light is turned on, and turns off instantly when the light is turned off, causing discomfort in eyes. The smart LED controller is still in standby state and consumes power after power is off.

Method used

An LED controller including power-on and power-off detection circuit, ∏ filtering, power conversion, power storage and discharge control device, 12V power supply, 3.3V voltage regulation and LED control circuit are designed to control the brightness of the LED by slowly adjusting the PWM signal. , from the darkest to the brightest and reverse, from the brightest to the darkest, the process of achieving the slow light up and slow demise of LEDs.

Benefits of technology

It effectively avoids the sudden irritation of the LED on or off the eyes, ensures that the LED is slowly on when the light is turned on and off when the light is turned off, reduces the power consumption by standby and provides a more comfortable and energy-saving lighting experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222235092U_ABST
    Figure CN222235092U_ABST
Patent Text Reader

Abstract

The utility model discloses an LED controller capable of controlling light to be switched off slowly during power failure, and relates to the technical field of LED control. Comprising an AC / 220V input, a power-on and power-off detection circuit, an n-shaped filter, a power converter, a power storage and discharge control device, a 12V power supply, a rectification filter, a 3.3 V voltage stabilizer, a single-chip microcomputer chip, an LED control circuit and an LED light source. According to the utility model, after the LED controller is powered off, the LED controller controls the brightness of the LED to be slowly turned off from the brightest, so that the situation that the eyes are suddenly turned off by the LED, the eyes cannot see clearly due to transient darkness, the brightness of the LED is slowly turned on from the darkest when the lamp is turned on, the brightness of the LED is slowly turned off from the brightest when the lamp is turned off is avoided, and the eyes of people have time to adapt to the brightness of the LED.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of LED control, in particular to an LED controller capable of controlling a light to slowly turn off when the light is powered off. Background Art

[0002] The existing LED controller technical solutions are as follows:

[0003] The current status of daily use of LED controllers is: when the LED controller is powered on, the LED lights up instantly, and when the LED controller is powered off, the LED goes out instantly; the current status of improved LED controllers on the market is: when the LED controller is powered on, the LED lights up slowly, and when the LED controller is powered off, the LED lamp goes out instantly; the current status of intelligent LED controllers is: when the LED controller is powered on, the LED lights up slowly, and when the LED controller is powered off, the LED lamp goes out instantly, and a wireless signal is sent to the intelligent LED controller to turn off the LED light, and the LED goes out slowly.

[0004] According to the above technical solutions, the defects brought by the current situation 1, current situation 2 and current situation 3 include:

[0005] Current situation 1: When the light is turned on, the LED lights up instantly, which makes people feel uncomfortable because their eyes are stimulated by the bright light of the LED. Current situation 2: When the light is turned off, the LED goes out instantly, and the bright environment becomes dark and people can't see clearly. Current situation 3: When the LED controller is powered off, the LED lamp goes out instantly, and a wireless signal is sent to the smart LED controller to turn off the LED light, and the LED goes out slowly. The smart LED controller of this solution is not actually powered off. Turning off the light only turns off the LED light. The smart LED controller is always powered on, similar to the standby state, and the smart LED controller is in a power-consuming state. Therefore, there is an urgent need for an LED controller that can slowly light up when powered on and slowly go out when powered off. Utility Model Content

[0006] The utility model aims to provide an LED controller which can control the light to slowly turn off when the light is powered off. When the LED controller is powered on, the LED lights up slowly; when the LED controller is powered off, the LED turns off slowly.

[0007] The purpose of the utility model can be achieved through the following technical solutions:

[0008] The present application provides an LED controller capable of controlling the slow extinguishing of lights when the lights are powered off, including AC / 220V input, power-on and power-off detection circuit, ∏-type filter, power conversion, power storage and discharge control device, 12V power supply, rectification and filtering, 3.3V voltage stabilization, single-chip microcomputer chip, LED control circuit and LED light source.

[0009] The power-on and power-off detection circuit, the AC / 220V input is connected to the fifth resistor R5 through the fourth resistor R4, and the fifth resistor R5 is connected to the electro-optical coupler U2 through the fifth capacitor C5;

[0010] The ∏-type filter, the tenth pin of the transformer T1 is respectively connected to the second capacitor C2 and the third diode D3, the second capacitor C2 is connected to the twelfth resistor R12, the third diode D3 is respectively connected to one end of the capacitor DC4 and the capacitor DC5, one end of the capacitor DC5 is also connected to the twenty-second resistor R22 through the twenty-first resistor R21, the twenty-second resistor R22 is connected to the positive electrode of the LED power supply through the twenty-third resistor, the other ends of the capacitor DC4 and the capacitor DC5 are both connected to the sixth pin of the transformer T1, and the sixth pin of the transformer T1 is also connected to the capacitor DC5 through the eleventh resistor R11;

[0011] The 3.3V voltage is stabilized, the eighth pin of the transformer T1 is connected to the capacitor DC6 and the chip U5 respectively through the fourth diode D4, the first pin of the chip U5 is connected to the 12V power supply, the third pin of the chip U5 is connected to the capacitor DC7 and the 3.3V voltage respectively, the capacitor DC7 is connected to the ground through the second pin of the chip U5, the 3.3V voltage is connected to the first pin of the chip U3, the first pin of the chip U3 is connected to the thirteenth resistor R13 through the electro-optical coupler U2, and the thirteenth resistor R13 is respectively connected to the third pin of the chip U3 and the fourteenth resistor R14;

[0012] The LED control circuit, the sixth pin of the chip U3 is connected to the sixteenth resistor R16 through the seventeenth resistor R17, the sixteenth resistor R16 is also connected to the chip U4, the eighth pin of the chip U3 is connected to the third pin of the chip U4 through the eighteenth resistor R18, the eighteenth resistor R18 is also connected to the second pin of the chip U4, the eighth pin of the chip U3 is also connected to the fifth pin of the chip U4 through the fourth capacitor, the fifth pin of the chip U4 is also connected to the nineteenth resistor R19, and the fourth pin of the chip U4 is connected to the negative electrode of the LED power supply;

[0013] When the 220V / 50Hz AC power is cut off, the entire LED controller does not work; no current passes through the fourth resistor R4 and the fifth resistor R5 through the optocoupler U2, and the optocoupler U2 stops working; the third pin of the chip U3 does not receive current, and the PWM signal of the chip U3 immediately drops slowly from 100% to 0.1% until it is turned off; at this time, the electrolytic capacitance of the capacitor DC4, the capacitor DC5, the capacitor DC6 and the capacitor DC7 is relatively large, which is equivalent to a small battery to maintain the brightness of the LED light source. The current decreases from large to small, and the brightness of the LED also decreases slowly from bright to dark; and the current decreases from large to small is controlled by the chip U4; the on-current of the chip U4 is controlled by the PWM signal of the chip U3 to decrease and become smaller; therefore, the PWM signal slowly decreases by 0.1% from 100% until the PWM is 0, so the LED slowly changes from bright to dark until it goes out.

[0014] Preferably, the ∏-type filtering is connected through AC / 220V input through fuse FU1 to one end of the varistor VR1 and the third pin of the rectifier bridge UD1, the other end of the varistor VR1 is connected to the first pin of the rectifier bridge UD1, the second pin of the rectifier bridge UD1 is connected to the first RL circuit, the fourth pin of the rectifier bridge UD1 is connected to the second RL circuit, the first RL circuit includes an inductor L1, a capacitor DC1 and a resistor RL1, and the first RL circuit includes an inductor L2, a capacitor DC2 and a resistor RL2.

[0015] Preferably, the AC / 220V input is 220V / 50Hz alternating current, which is energized after passing through the fuse FU1 and the varistor VR1 to filter the peak value, and then rectified by the rectifier bridge UD1 and output to the capacitor DC1, and the inductor L1, inductor L2 and capacitor DC2 perform ∏-type filtering.

[0016] Preferably, the power-on and power-off detection circuit works, and the 220V / 50Hz AC power passes through the fourth resistor R4 and the fifth resistor R5 to limit the voltage and current, and passes through the fifth capacitor C5 to filter the current through the light-emitting diode end of the optocoupler U2; the Π-type filter is connected to the first resistor R1, and the first resistor R1 is connected to the capacitor DC3 through the second resistor R2, so that the current passes through the first resistor R1 and the second resistor R2 to charge the capacitor DC3 at the same time.

[0017] Preferably, the charge storage and discharge control device includes a chip U1, the first resistor R1 is connected to the first capacitor C1 through the third resistor R3, one end of the first capacitor is also connected to the first pin of the transformer T1, the third pin of the transformer is connected to the first diode D1 and the chip U1, the fourth pin of the transformer is respectively connected to the sixth resistor R6 and the seventh resistor R7, the sixth resistor R6 is also connected to the second diode D2, the seventh resistor R7 is respectively connected to the eighth resistor R8, the third capacitor C3 and the third pin of the chip U1, the fifth pin and the sixth pin of the chip U1 are connected to each other, the eighth pin is connected to the Π-type filter, the second pin and the third pin of the chip U1 are connected to each other, the first pin of the chip U1 is also connected to the capacitor DC3, the capacitor DC3 is also respectively connected to the second diode D2 and the second resistor R2, and the fourth pin of the chip U1 is connected to the ground through the ninth resistor R9.

[0018] Preferably, the chip U1 of the power storage and discharge control device is working, and the current passes through the first pin to the third pin of the transformer T1, and then to the fifth pin and the sixth pin DREA of the chip U1. At the same time, the current flows from the fifth pin of the transformer T1 that is transformed and grounded through the fourth pin, and then flows through the sixth resistor R6 and the second diode D2 to charge through the capacitor DC3. At the same time, after the seventh resistor R7, the eighth resistor R8 and the third capacitor C3 divide the voltage, the current reaches the second pin and the third pin of the chip U1 to control the size of the transformed output voltage. At the same time, the current passes through the first pin to the third pin of the transformer T1, and then to the fifth pin and the sixth pin DREA of the chip U1, and then from the fourth pin the current passes through the ninth resistor R9 to the ground.

[0019] As a preferred embodiment, in the rectification and filtering, the secondary winding of the transformer T1 is rectified by the third diode D3 and then to the capacitor DC4, and the capacitor DC5 is filtered. After the electrolytic capacitors of the capacitors DC4 and DC5 increase their capacities to reach a certain power storage function, the current passes through the twenty-first resistor R21, the twenty-second resistor R22, and the twenty-third resistor R23 and then to the positive pole of the LED.

[0020] As a preferred embodiment, the 3.3V voltage regulator, the auxiliary winding of the power supply is rectified by the fourth diode D4 and then flows to the capacitor DC6 to filter the electrolytic capacitor to increase the capacity to reach a certain storage capacity function, and then the current passes through the input pin VIN of the voltage regulator tube H7133 at the chip U5 end, and then outputs a regulated 3.3V voltage value, which is filtered by the capacitor DC7 to power the first pin VCC of the chip U3, and the current passes through the electric coupler U2 and the thirteenth resistor R13 and the fourteenth resistor R14 to divide the current and flow to the third pin of the chip U3 to detect 220V / 50H z The AC power is on.

[0021] Preferably, in the LED control circuit, the sixth pin of the chip U3 outputs a PWM signal that slowly increases from 0.1% to 100%; at the same time, the current of the power supply auxiliary winding charges the fourth capacitor C4 through the nineteenth resistor R19; the fifth pin VCC of the chip U4 is powered and starts working, and the PWM signal is connected to the first pin signal foot of the chip U4 through the seventeenth resistor R17 and the pull-down resistor sixteenth resistor R16; at the same time, the positive current of the LED flows into the fourth pin of the chip U5 through the negative electrode; the size of the inflow current increases as the PWM signal slowly increases, so the LED light source slowly lights up.

[0022] The beneficial effects of the utility model are:

[0023] (1) Power on the LED controller, and the LED controller controls the LED brightness to light up slowly from the darkest to the brightest, so that the eyes will not be dazzled by the sudden lighting of the LED; control the LED brightness to light up slowly from the darkest to give the eyes time to adapt;

[0024] (2) After the LED controller is powered off, the LED controller controls the LED brightness to slowly turn off from the brightest, so that the eyes are not suddenly turned off by the LED and there is a brief moment of darkness in the eyes;

[0025] (3) When the light is turned on, the LED brightness slowly increases from the dimmest level, and when the light is turned off, the LED brightness slowly decreases from the brightest level, giving the human eye time to adapt. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] For better understanding and implementation, the technical solution of the present application is described in detail below with reference to the accompanying drawings.

[0027] Figure 1 A schematic diagram of the structure of an LED controller capable of controlling the slow extinguishing of lights when power is turned off, provided in Example 1 of the present application;

[0028] Figure 2 A working process diagram of an LED controller capable of controlling the slow extinguishing of lights when power is turned off provided in Example 1 of the present application;

[0029] Figure 3 This is a schematic diagram of a LED controller capable of controlling the slow extinguishing of lights when the lights are powered off, provided in Example 1 of the present application. DETAILED DESCRIPTION

[0030] In order to further explain the technical means and effects adopted by the utility model to achieve the predetermined utility model purpose, exemplary embodiments will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of methods and systems consistent with some aspects of the present application as detailed in the attached claims.

[0031] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0032] The specific implementation methods, features and effects of the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments.

[0033] Example 1

[0034] See also Figure 1-Figure 3 This embodiment provides an LED controller that can control the light to turn off slowly when the power is turned off. By powering on the LED controller, the LED lights up slowly, and when the LED controller is powered off, the LED turns off slowly.

[0035] The utility model provides an LED controller capable of controlling the slow extinguishing of lights when the lights are powered off, comprising an AC / 220V input, a power-on and power-off detection circuit, a ∏-type filter, a power conversion, a power storage and discharge control device, a 12V power supply, a 3.3V voltage regulator, a single-chip microcomputer chip, an LED control circuit and an LED light source.

[0036] AC / 220V input, as the power supply source for the entire circuit, is connected to the power-on and power-off detection circuit and the rectifier filter;

[0037] The power-on and power-off detection circuit receives the current of AC / 220V input, is used to detect the on and off status of the AC power, and is connected to the single-chip microcomputer chip to trigger the corresponding operation;

[0038] Rectification and filtering, by connecting to AC / 220V input for rectification and filtering, converting AC power into DC power, the rectification and filtering is connected to the power conversion, storage and discharge control device and 12V power supply;

[0039] Power conversion, responsible for converting and adjusting the input DC power to meet the needs of other circuits;

[0040] The storage and discharge control device controls the charging and discharging process of the storage capacitor by connecting to the rectifier filter to achieve the endurance time after power failure;

[0041] 12V power supply, as the power supply source for other parts of the circuit, connected to the rectifier filter and other parts that require 12V power supply;

[0042] Rectification and filtering: rectify and filter the input AC power and output a stable DC power supply. The rectifier and filter are connected to the 3.3V voltage regulator, single-chip microcomputer chip and LED control circuit;

[0043] 3.3V voltage stabilization, stabilizes the input DC power supply at 3.3V voltage and connects to the microcontroller chip to provide stable power supply;

[0044] The single-chip microcomputer chip, as the control center, realizes the control of the LED control circuit and the LED light source, including chip U1, as the core chip of the storage and discharge control device, responsible for controlling the output voltage of the transformer, and controlling the charge and discharge of the capacitor DC3; chip U3, as the control chip of the LED control circuit, is responsible for generating PWM signals and controlling the brightness of the LED. It is connected to the rectification and filtering part, receives the detection signal of the power-on status of the 220V / 50Hz AC power, and adjusts the brightness of the LED according to the change of the PWM signal; chip U4, which is also a part of the LED control circuit, is responsible for receiving the PWM signal from chip U3, and realizes the on and off control of the LED by controlling the on and off state of the LED power supply.

[0045] The LED control circuit is controlled by the single-chip microcomputer chip, responsible for adjusting the brightness of the LED and connected to the LED light source;

[0046] LED light source, which controls brightness through LED control circuit and provides lighting effect.

[0047] The ∏-type filtering is connected through AC / 220V input through fuse FU1 to one end of the varistor VR1 and the third pin of the rectifier bridge UD1, the other end of the varistor VR1 is connected to the first pin of the rectifier bridge UD1, the second pin of the rectifier bridge UD1 is connected to the first RL circuit, the fourth pin of the rectifier bridge UD1 is connected to the second RL circuit, the first RL circuit includes an inductor L1, a capacitor DC1 and a resistor RL1, and the first RL circuit includes an inductor L2, a capacitor DC2 and a resistor RL2.

[0048] The AC / 220V input is 220V / 50Hz AC. It passes through the fuse FU1, filters the peak value through the varistor VR1, and then passes through the rectifier bridge UD1 for rectification and output to the capacitor DC1. The inductor L1, inductor L2, and capacitor DC2 perform ∏-type filtering.

[0049] The power-on and power-off detection circuit, the AC / 220V input is connected to the fifth resistor R5 through the fourth resistor R4, and the fifth resistor R5 is connected to the electro-optical coupler U2 through the fifth capacitor C5;

[0050] At the same time, the power-on and power-off detection circuit works: 220V / 50Hz AC power passes through the fourth resistor R4 and the fifth resistor R5 to limit the voltage and current, and passes through the fifth capacitor C5 to filter the current through the light-emitting diode end of the optocoupler U2; the Π-type filter is connected to the first resistor R1, and the first resistor R1 is connected to the capacitor DC3 through the second resistor R2, so that the current passes through the first resistor R1 and the second resistor R2 to charge the capacitor DC3.

[0051] The charge storage and discharge control device includes a chip U1, the first resistor R1 is connected to the first capacitor C1 through the third resistor R3, one end of the first capacitor is also connected to the first pin of the transformer T1, the third pin of the transformer is connected to the first diode D1 and the chip U1, the fourth pin of the transformer is respectively connected to the sixth resistor R6 and the seventh resistor R7, the sixth resistor R6 is also connected to the second diode D2, the seventh resistor R7 is respectively connected to the eighth resistor R8, the third capacitor C3 and the third pin of the chip U1, the fifth pin and the sixth pin of the chip U1 are connected to each other, the eighth pin is connected to the Π-type filter, the second pin and the third pin of the chip U1 are connected to each other, the first pin of the chip U1 is also connected to the capacitor DC3, the capacitor DC3 is also respectively connected to the second diode D2 and the second resistor R2, and the fourth pin of the chip U1 is connected to the ground through the ninth resistor R9.

[0052] Chip U1 works; current passes through the first pin to the third pin of transformer T1, and then to the fifth pin and the sixth pin DREA of chip U1. At the same time, current flows from the fifth pin of transformer T1 that is grounded through the fourth pin, then flows through the sixth resistor R6 and the second diode D2 to charge through the capacitor DC3. At the same time, after voltage division by the seventh resistor R7, the eighth resistor R8 and the third capacitor C3, the current reaches the second pin and the third pin of chip U1 to control the size of the transformed output voltage. At the same time, current passes through the first pin to the third pin of transformer T1, and then to the fifth pin and the sixth pin DREA of chip U1, and then from the fourth pin the current passes through the ninth resistor R9 to the ground.

[0053] The rectification and filtering, the tenth pin of the transformer T1 is respectively connected to the second capacitor C2 and the third diode D3, the second capacitor C2 is connected to the twelfth resistor R12, the third diode D3 is respectively connected to one end of the capacitor DC4 and the capacitor DC5, one end of the capacitor DC5 is also connected to the twenty-second resistor R22 through the twenty-first resistor R21, the twenty-second resistor R22 is connected to the positive electrode of the LED power supply through the twenty-third resistor, the other ends of the capacitor DC4 and the capacitor DC5 are both connected to the sixth pin of the transformer T1, and the sixth pin of the transformer T1 is also connected to the capacitor DC5 through the eleventh resistor R11;

[0054] The secondary winding of transformer T1 is rectified by the third diode D3 and then to capacitor DC4, and then filtered by capacitor DC5. After the electrolytic capacitors of capacitor DC4 and capacitor DC5 increase their capacity to reach a certain power storage function, the current passes through the twenty-first resistor R21, the twenty-second resistor R22, and the twenty-third resistor R23 and then to the positive pole of the LED.

[0055] At the same time, the 3.3V voltage is stabilized, the eighth pin of the transformer T1 is respectively connected to the capacitor DC6 and the chip U5 through the fourth diode D4, the first pin of the chip U5 is connected to the 12V power supply, the third pin of the chip U5 is respectively connected to the capacitor DC7 and the 3.3V voltage, the capacitor DC7 is connected to the ground through the second pin of the chip U5, the 3.3V voltage is connected to the first pin of the chip U3, the first pin of the chip U3 is connected to the thirteenth resistor R13 through the rectifier bridge U2, and the thirteenth resistor R13 is respectively connected to the third pin of the chip U3 and the fourteenth resistor R14.

[0056] The power supply auxiliary winding is rectified by the fourth diode D4 and then flows to the capacitor DC6 to filter the electrolytic capacitor. After the capacity is increased to reach a certain power storage function, the current passes through the input pin VIN of the voltage regulator H7133 at the chip U5 end, and then outputs a regulated 3.3V voltage value, which is filtered by the capacitor DC7 to power the first pin VCC of the chip U3. The current passes through the electrical coupler U2 and the thirteenth resistor R13 and the fourteenth resistor R14 to divide the current and flow to the third pin of the chip U3 to detect that the 220V / 50Hz AC power has been turned on.

[0057] The LED control circuit, the sixth pin of the chip U3 is connected to the sixteenth resistor R16 through the seventeenth resistor R17, the sixteenth resistor R16 is also connected to the chip U4, the eighth pin of the chip U3 is connected to the third pin of the chip U4 through the eighteenth resistor R18, the eighteenth resistor R18 is also connected to the second pin of the chip U4, the eighth pin of the chip U3 is also connected to the fifth pin of the chip U4 through the fourth capacitor, the fifth pin of the chip U4 is also connected to the nineteenth resistor R19, and the fourth pin of the chip U4 is connected to the negative pole of the LED power supply.

[0058] The sixth pin of the chip U3 outputs a PWM signal that slowly increases from 0.1% to 100%; at the same time, the current of the power supply auxiliary winding charges the fourth capacitor C4 through the nineteenth resistor R19; the fifth pin VCC of the chip U4 is powered and starts working, and the PWM signal is connected to the first pin signal foot of the chip U4 through the seventeenth resistor R17 and the pull-down resistor sixteenth resistor R16; at the same time, the positive current of the LED flows into the fourth pin of the chip U5 through the negative electrode; the magnitude of the inflow current increases as the PWM signal slowly increases, so the LED light source slowly lights up;

[0059] When the 220V / 50Hz AC power is cut off, the entire LED controller does not work; no current passes through the fourth resistor R4 and the fifth resistor R5 through the optocoupler U2, and the optocoupler U2 stops working; the third pin of the chip U3 does not receive current, and the PWM signal of the chip U3 immediately drops slowly from 100% to 0.1% until it is turned off; at this time, the electrolytic capacitance of the capacitor DC4, the capacitor DC5, the capacitor DC6 and the capacitor DC7 is relatively large, which is equivalent to a small battery to maintain the brightness of the LED light source. The current decreases from large to small, and the brightness of the LED also decreases slowly from bright to dark; and the current decreases from large to small is controlled by the chip U4; the on-current of the chip U4 is controlled by the PWM signal of the chip U3 to decrease and become smaller; therefore, the PWM signal slowly decreases by 0.1% from 100% until the PWM is 0, so the LED slowly changes from bright to dark until it goes out.

[0060] Working process:

[0061] The working process diagram of the LED controller is as follows: the LED lights up slowly when the power is on and goes out slowly when the power is off. Figure 3 As shown, it includes a mechanical switch S1, a 220V / 50Hz power input, an LED controller and an LED light source.

[0062] When S1 is closed, the ED controller starts working, and the AC / 220V power supply is connected to the LED controller through the mechanical switch S1. After power is turned on, the power-on and power-off detection circuit in the LED controller will detect the power-on status of the AC power. The AC power is rectified and filtered by the rectifier and filter module to convert it into a DC power supply. The DC power after rectification and filtering enters the power conversion and performs appropriate voltage regulation and conversion to meet the needs of subsequent circuits. The power storage and discharge control device monitors the state of the storage capacitor in the circuit and performs charging or discharging operations as needed to ensure that the lighting effect can be maintained for a certain period of time when the power is off. The 12V power supply provides the required 12V power for other parts. The 12V power supply is rectified and filtered twice through the rectifier and filter module to obtain a more stable DC power supply. The DC power after rectification and filtering enters the 3.3V voltage regulator and stably outputs 3.3V voltage to supply the microcontroller chip and other parts that need this voltage. The microcontroller chip receives and processes signals from various sensors and input devices, and performs corresponding operations and controls according to the program logic. The microcontroller chip adjusts the brightness, color and other parameters of the LED through the control signal, and sends the control signal to the LED control circuit. The LED control circuit controls the current passing through the LED light source according to the received signal, adjusts the brightness and color of the LED, and achieves the lighting effect.

[0063] When S1 is disconnected, the LED controller will gradually stop working: after power failure, the power-on and power-off detection circuit will detect the power-off state of the AC power, and the storage and discharge control device will control the discharge process of the storage capacitor according to the power-off signal to maintain the lighting effect for a certain period of time. The single-chip microcomputer chip cannot receive the 220V AC signal. After the single-chip microcomputer determines it as a power-off signal, it will stop controlling the brightness and color of the LED and start executing the corresponding shutdown procedure. After the LED control circuit receives the gradually decreasing PWM signal of the single-chip microcomputer, the LED control circuit will gradually reduce the current passing through the LED light source, thereby controlling the brightness of the LED and making it slowly go out. In this way, the LED controller slowly lights up when power is on and slowly goes out when power is off.

[0064] The above description is only a preferred embodiment of the present invention and does not constitute any form of limitation to the present invention. Although the present invention has been disclosed as a preferred embodiment as above, it is not intended to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.

Claims

1. An LED controller capable of controlling the slow extinguishing of lights when power is turned off, characterized in that: It includes AC / 220V input, power-on and power-off detection circuit, ∏-type filter, power conversion, power storage and discharge control device, 12V power supply, rectification and filtering, 3.3V voltage regulator, single-chip microcomputer chip, LED control circuit and LED light source. The power-on and power-off detection circuit, the AC / 220V input is connected to the fifth resistor R5 through the fourth resistor R4, and the fifth resistor R5 is connected to the electro-optical coupler U2 through the fifth capacitor C5; The ∏-type filter, the tenth pin of the transformer T1 is respectively connected to the second capacitor C2 and the third diode D3, the second capacitor C2 is connected to the twelfth resistor R12, the third diode D3 is respectively connected to one end of the capacitor DC4 and the capacitor DC5, one end of the capacitor DC5 is also connected to the twenty-second resistor R22 through the twenty-first resistor R21, the twenty-second resistor R22 is connected to the positive electrode of the LED power supply through the twenty-third resistor, the other ends of the capacitor DC4 and the capacitor DC5 are both connected to the sixth pin of the transformer T1, and the sixth pin of the transformer T1 is also connected to the capacitor DC5 through the eleventh resistor R11; The 3.3V voltage is stabilized, the eighth pin of the transformer T1 is connected to the capacitor DC6 and the chip U5 respectively through the fourth diode D4, the first pin of the chip U5 is connected to the 12V power supply, the third pin of the chip U5 is connected to the capacitor DC7 and the 3.3V voltage respectively, the capacitor DC7 is connected to the ground through the second pin of the chip U5, the 3.3V voltage is connected to the first pin of the chip U3, the first pin of the chip U3 is connected to the thirteenth resistor R13 through the electro-optical coupler U2, and the thirteenth resistor R13 is respectively connected to the third pin of the chip U3 and the fourteenth resistor R14; The LED control circuit, the sixth pin of the chip U3 is connected to the sixteenth resistor R16 through the seventeenth resistor R17, the sixteenth resistor R16 is also connected to the chip U4, the eighth pin of the chip U3 is connected to the third pin of the chip U4 through the eighteenth resistor R18, the eighteenth resistor R18 is also connected to the second pin of the chip U4, the eighth pin of the chip U3 is also connected to the fifth pin of the chip U4 through the fourth capacitor, the fifth pin of the chip U4 is also connected to the nineteenth resistor R19, and the fourth pin of the chip U4 is connected to the negative pole of the LED power supply.

2. According to claim 1, the LED controller capable of controlling the slow extinguishing of lights when power is turned off is characterized in that: The ∏-type filtering is connected through AC / 220V input through fuse FU1 to one end of the varistor VR1 and the third pin of the rectifier bridge UD1, the other end of the varistor VR1 is connected to the first pin of the rectifier bridge UD1, the second pin of the rectifier bridge UD1 is connected to the first RL circuit, the fourth pin of the rectifier bridge UD1 is connected to the second RL circuit, the first RL circuit includes an inductor L1, a capacitor DC1 and a resistor RL1, and the first RL circuit includes an inductor L2, a capacitor DC2 and a resistor RL2.

3. The LED controller capable of controlling the slow extinguishing of lights when power is turned off according to claim 1, characterized in that: The Π-type filter is connected to a first resistor R1, and the first resistor R1 is connected to a capacitor DC3 via a second resistor R2.

4. The LED controller capable of controlling the slow extinguishing of lights when power is turned off according to claim 3, characterized in that: The charge storage and discharge control device includes a chip U1, the first resistor R1 is connected to the first capacitor C1 through the third resistor R3, one end of the first capacitor is also connected to the first pin of the transformer T1, the third pin of the transformer is connected to the first diode D1 and the chip U1, the fourth pin of the transformer is respectively connected to the sixth resistor R6 and the seventh resistor R7, the sixth resistor R6 is also connected to the second diode D2, the seventh resistor R7 is respectively connected to the eighth resistor R8, the third capacitor C3 and the third pin of the chip U1, the fifth pin and the sixth pin of the chip U1 are connected to each other, the eighth pin is connected to the Π-type filter, the second pin and the third pin of the chip U1 are connected to each other, the first pin of the chip U1 is also connected to the capacitor DC3, the capacitor DC3 is also respectively connected to the second diode D2 and the second resistor R2, and the fourth pin of the chip U1 is connected to the ground through the ninth resistor R9.