LED lamp control circuit and intelligent mirror front lamp

By designing an LED light control circuit, the vanity light automatically switches to night light mode when AC power is interrupted, solving the problem of the vanity light's single function, providing emergency lighting and intelligent control, and improving the user experience.

CN225020701UActive Publication Date: 2026-11-24ジャン州立達信光電子科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202522792679.9
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-12-29
Publication Date
2026-11-24
Estimated Expiration
2035-12-29

AI Technical Summary

Technical Problem

Existing vanity lights have limited functionality and cannot meet users' ever-increasing lighting needs, especially in terms of emergency lighting.

Method used

An LED light control circuit was designed, including a rectifier module, a power module, a charging module, a main control module, and a sensing module. It automatically switches between main light and night light modes by detecting AC power supply to achieve emergency lighting, and combines infrared sensors and light sensors to achieve intelligent control.

Benefits of technology

When AC power is interrupted, it automatically switches to night light mode to provide necessary lighting, enriching the functions of the vanity light, meeting various lighting needs, and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN225020701U_ABST
    Figure CN225020701U_ABST
Patent Text Reader

Abstract

This utility model provides an LED light control circuit and an intelligent vanity light, relating to the field of lighting technology. The LED light control circuit includes: a rectifier module, a first power module, a charging module, a battery, a second power module, a main control module, and a sensing module. The input terminal of the rectifier module is connected to an external AC power supply, and the output terminal of the rectifier module is connected to the input terminals of both the first power module and the charging module. The output terminal of the first power module supplies power to the main light. The output terminal of the charging module is connected to the input terminal of the second power module and the battery. The output terminal of the second power module supplies power to the night light. The first input terminal of the main control module is connected to the input terminal of the rectifier module, the second input terminal of the main control module is connected to the sensing module, and the output terminal of the main control module is connected to the control terminal of the second power module. This circuit automatically switches between supplying power to the main light or the night light based on the AC power supply, meeting various user functional needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of lighting technology, and in particular to an LED lamp control circuit and an intelligent front mirror light. Background Technology

[0002] A vanity light is a localized lighting fixture designed specifically for mirrored scenes. It is mainly installed above or on the sides of bathroom mirrors and makeup mirrors. Its core function is to provide uniform, soft, and shadow-free light for close-range visual operations such as grooming and washing.

[0003] In the existing technology, vanity lights are usually only used for lighting such as dressing and washing, with limited functions and lack of emergency lighting capabilities, which cannot meet the increasingly higher lighting needs of users. Utility Model Content

[0004] This utility model provides an LED light control circuit and an intelligent front mirror light to solve the problem that the existing front mirror lights have limited functions and cannot meet user needs.

[0005] In a first aspect, this utility model provides an LED lamp control circuit, including: a rectifier module, a first power module, a charging module, a battery, a second power module, a main control module, and a sensing module; The input terminal of the rectifier module is connected to an external AC power supply, and the output terminal of the rectifier module is connected to the input terminal of the first power module and the input terminal of the charging module, respectively; the output terminal of the first power module is used to power the main lamp. The output of the charging module is connected to the input of the second power module and the battery, respectively; the output of the second power module is used to power the night light. The first input terminal of the main control module is connected to the input terminal of the rectifier module, the second input terminal of the main control module is connected to the induction module, and the output terminal of the main control module is connected to the control terminal of the second power module.

[0006] Optionally, the main control module includes: an AC detection unit and a first main control unit; The input terminal of the AC detection unit is connected to the first input terminal of the main control module, and the output terminal of the AC detection unit is connected to the first input terminal of the first main control unit, for detecting AC power supply; The second input terminal of the first main control unit is connected to the sensing module, and the output terminal of the first main control unit is connected to the control terminal of the second power module.

[0007] Optionally, the AC detection unit includes: an optocoupler, a first diode, a first resistor, a second resistor, a third resistor, a fourth resistor, and a first capacitor; The positive input terminal of the optocoupler is connected to the first terminal of the first resistor, the negative input terminal of the optocoupler is connected to the second ground terminal, the positive output terminal of the optocoupler is connected to the first terminal of the second resistor, and the negative output terminal of the optocoupler is connected to the first ground terminal. The second end of the first resistor is connected to the first end of the first capacitor, the first end of the third resistor, and the first end of the fourth resistor, respectively. The second terminal of the first capacitor and the second terminal of the third resistor are both connected to the second ground terminal. The anode of the first diode is connected to the input terminal of the AC detection unit, and the cathode of the first diode is connected to the second terminal of the fourth resistor. The second end of the second resistor is connected to the output end of the AC detection unit.

[0008] Optionally, the first main control unit includes: a first main control chip, a first power supply unit, and a mode switch; The input terminal of the first power supply unit is connected to the output terminal of the charging module, and the output terminal of the first power supply unit is connected to the power supply terminal of the first main control chip. The first main control chip is connected to the output terminal of the AC detection unit, the sensing module and the mode switch respectively; The first main control chip is also connected to the control terminal of the second power module, and is used to send night light dimming signals to the second power module.

[0009] Optionally, the charging module includes: a constant voltage power supply unit and a charging management unit; The input terminal of the constant voltage power supply unit is connected to the input terminal of the charging module, and the output terminal of the constant voltage power supply unit is connected to the input terminal of the charging management unit. The output terminal of the charging management unit is connected to the output terminal of the charging module.

[0010] Optionally, the main light includes: at least two LED light strings; the first power module includes: a silicon controlled rectifier dimming unit, a color adjustment unit, a flicker removal unit, and a second main control unit; The input terminal of the thyristor dimming unit is connected to the input terminal of the first power module, and the output terminal of the thyristor dimming unit is connected to the input terminal of the flicker removal unit and the input terminal of the color tuning unit, respectively. Each output terminal of the color adjustment unit is connected to the negative terminal of each LED string, and the output terminal of the flicker removal unit is connected to the positive terminal of each LED string. The second main control unit is connected to the control terminal of the color adjustment unit.

[0011] Optionally, the flicker-eliminating unit includes: a first switching transistor, a second switching transistor, a third switching transistor, a fifth resistor, a second capacitor, and a Zener diode; The first terminal of the first switch is connected to the first terminal of the second switch, the first terminal of the third switch, the first terminal of the fifth resistor and the input terminal of the anti-flicker unit, respectively. The second terminal of the first switch is connected to the second terminal of the second switch, the second terminal of the third switch, the first terminal of the second capacitor and the output terminal of the anti-flicker unit, respectively. The control terminal of the first switch is connected to the control terminal of the second switch, the control terminal of the third switch, the second terminal of the second capacitor and the anode of the Zener diode, respectively. The cathode of the Zener diode is connected to the second terminal of the fifth resistor.

[0012] Optionally, the second main control unit includes: a second main control chip, a color-cutting dialer, and a second power supply unit; The input terminal of the second power supply unit is connected to the output terminal of the anti-flicker unit, and the output terminal of the second power supply unit is connected to the power supply terminal of the second main control chip. The color-cutting dialer is connected to the second main control chip; The second main control chip is also connected to the control terminal of the color adjustment unit, and is used to send color adjustment signals to the color adjustment unit.

[0013] Optionally, the sensing module includes: an infrared sensor and a photosensor; Both the infrared sensor and the light sensor are connected to the second main control chip.

[0014] Secondly, this utility model provides an intelligent front mirror light, including a night light, a main light, and the LED light control circuit provided in the first aspect embodiment above; The LED light control circuit supplies power to the night light and the main light.

[0015] This utility model provides an LED light control circuit and an intelligent front mirror light. The LED light control circuit includes: a rectifier module, a first power module, a charging module, a battery, a second power module, a main control module, and a sensing module; the input terminal of the rectifier module is connected to an external AC power supply, and the output terminal of the rectifier module is connected to the input terminal of the first power module and the input terminal of the charging module respectively; the output terminal of the first power module is used to power the main light; the output terminal of the charging module is connected to the input terminal of the second power module and the battery respectively; the output terminal of the second power module is used to power the night light; the first input terminal of the main control module is connected to the input terminal of the rectifier module, the second input terminal of the main control module is connected to the sensing module, and the output terminal of the main control module is connected to the control terminal of the second power module. In this embodiment of the invention, the first power module drives the main light to emit light, and a battery is provided to power the night light through the second power module when the AC power supply is disconnected. At the same time, the main control module also detects the AC power supply and automatically switches to night light mode or main light mode according to the AC power supply, so that users can obtain necessary lighting at night or in dimly lit environments when the AC power is off. This enriches the function of the lamp and makes the vanity light no longer limited to makeup lighting, but meets the user's multiple functional needs. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the circuit structure of an LED lamp control circuit provided in an embodiment of the present utility model; Figure 2 This is a schematic diagram of the circuit structure of a main control module provided in an embodiment of the present utility model; Figure 3 This is a circuit schematic diagram of an AC detection unit provided in an embodiment of the present invention; Figure 4 This is a partial circuit diagram of a first main control unit provided in an embodiment of this utility model; Figure 5 This is a circuit diagram of a first electronic supply unit provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of the circuit structure of a charging module provided in an embodiment of the present utility model; Figure 7 This is a circuit diagram of a charging module provided in an embodiment of the present utility model; Figure 8 This is a circuit structure diagram of a first power module provided in an embodiment of the present invention; Figure 9(a) is a schematic diagram of the first part of a rectifier module and a first power module provided in an embodiment of the present invention; Figure 9(b) is a second part of the circuit schematic diagram of a rectifier module and a first power module provided in an embodiment of the present invention; Figure 10 This is a circuit diagram of a sensing module provided in an embodiment of the present invention. Detailed Implementation

[0017] To enable those skilled in the art to better understand this solution, the technical solutions in the embodiments of this solution will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this solution, not all of them. Based on the embodiments of this solution, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this solution.

[0018] The term "comprising" and any other variations thereof in the specification, claims, and accompanying drawings of this invention mean "including but not limited to," and are intended to cover a non-exclusive inclusion, not limited to the examples listed herein. Furthermore, the terms "first" and "second," etc., are used to distinguish different objects, not to describe a specific order.

[0019] The implementation of this utility model will be described in detail below with reference to the specific accompanying drawings: Figure 1 This is a schematic diagram of the circuit structure of an LED lamp control circuit provided for an embodiment of this utility model. (Refer to...) Figure 1 The LED light control circuit includes: a rectifier module 1, a first power module 2, a charging module 3, a battery 4, a second power module 5, a main control module 6, and a sensing module 7; The input terminal of rectifier module 1 is connected to an external AC power source, and the output terminal of rectifier module 1 is connected to the input terminal of the first power module 2 and the input terminal of the charging module 3, respectively; the output terminal of the first power module 2 is used to power the main lamp. The output terminal of the charging module 3 is connected to the input terminal of the second power module 5 and the battery 4 respectively; the output terminal of the second power module 5 is used to power the night light. The first input terminal of the main control module 6 is connected to the input terminal of the rectifier module 1, the second input terminal of the main control module 6 is connected to the induction module 7, and the output terminal of the main control module 6 is connected to the control terminal of the second power module 5.

[0020] refer to Figure 1 When powered by an external AC power source, that is, when the switch is turned on, the external AC power source supplies power to the main lamp through the first power module 2, which can meet the high brightness lighting needs of the daily vanity light.

[0021] The main control module 6 detects AC power supply. When it detects that the external AC power supply is disconnected, it draws power from battery 4 and supplies power to the night light via the second power module 5, adapting to low-brightness nighttime scenarios. Simultaneously, a sensing module 7 is installed. The main control module 6 receives signals from the sensing module 7 (infrared sensor and light sensor) through the second input terminal to obtain information such as "person presence" and "light intensity" in the environment. Based on this sensing information, the night light achieves intelligent functions such as "lights up when someone is present and turns off when someone leaves" and "adaptive dimming based on light intensity."

[0022] This application tests AC power supply and automatically switches between main light and night light, achieving automatic and precise switching of emergency lighting without manual intervention. While meeting the basic lighting needs of the vanity light, it adds the lighting function of a night light, so that users can obtain necessary lighting at night or in dimly lit environments when AC power is interrupted. This enriches the function of the lamp, expands its application range, and meets the diverse functional needs of users.

[0023] In one possible implementation, refer to Figure 2 The main control module 6 may include: an AC detection unit 61 and a first main control unit 62; The input terminal of the AC detection unit 61 is connected to the first input terminal of the main control module 6, and the output terminal of the AC detection unit 61 is connected to the first input terminal of the first main control unit 62, for detecting AC power supply; The second input terminal of the first main control unit 62 is connected to the sensing module 7, and the output terminal of the first main control unit 62 is connected to the control terminal of the second power module 5.

[0024] The AC detection unit 61, as an independent functional unit, can directly collect external AC power signals to determine whether the external AC power supply is normal. If the power supply is normal, it controls the second power module 5 to not work, and the night light will not turn on; since the external AC power supply is normal, the first power module 2 works normally, and the main light turns on. If the external AC power supply is disconnected, the first power module 2 will not be powered and will not work, and the main light will not illuminate. Battery 4 powers the second power module 5, and the first main control unit 62 controls the second power module 5 to power the night light. For example, the first main control unit 62 sends a PWM signal to the second power module 5 to control the brightness of the night light. When the external AC power supply is detected to be normal, the output of the first main control unit 62 to the second power module 5 remains at a low level or a high impedance state, and the night light is disabled. Regardless of whether the sensing module 7 is triggered, the night light will not illuminate, effectively eliminating standby power consumption under AC power and achieving extreme energy saving.

[0025] The availability of mains power determines whether the two main functional modules, "main light" and "night light," are enabled or disabled. This rigid isolation (the night light is always off when mains power is available, and the main light is always off when mains power is unavailable) avoids functional interference and unnecessary energy consumption from a system architecture perspective.

[0026] In one possible implementation, refer to Figure 3 The AC detection unit 61 may include: an optocoupler U1, a first diode D1, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, and a first capacitor C1; The positive input terminal of optocoupler U1 is connected to the first end of the first resistor R1, the negative input terminal of optocoupler U1 is connected to the second ground terminal GND2, the positive output terminal of optocoupler U1 is connected to the first end of the second resistor R2, and the negative output terminal of optocoupler U1 is connected to the first ground terminal GND1. The second end of the first resistor R1 is connected to the first end of the first capacitor C1, the first end of the third resistor R3, and the first end of the fourth resistor R4, respectively. The second terminal of the first capacitor C1 and the second terminal of the third resistor R3 are both connected to the second ground terminal GND2. The anode of the first diode D1 is connected to the input terminal of the AC detection unit 61, and the cathode of the first diode D1 is connected to the second terminal of the fourth resistor R4. The second end of the second resistor R2 is connected to the output end of the AC detection unit 61.

[0027] refer to Figure 3 The input terminal of the AC detection unit 61 is connected to an external AC power source, such as mains power. When the mains power is normal, the positive half-cycle AC current flows through the first diode D1 to the fourth resistor R4. At this time, the first diode D1 is in the conducting state, the optocoupler U1 is turned on, and the output terminal of the AC detection unit 61 outputs a low level to the first main control unit 62, indicating that the mains power supply is normal. Conversely, when the mains power is disconnected, the optocoupler U1 is disconnected, and the output terminal of the AC detection unit 61 outputs a high level to the first main control unit 62, indicating that the mains power is disconnected.

[0028] This application employs optocoupler U1 for isolation, completely isolating interference from high voltage, surges, and noise on the mains side. This prevents high-voltage signals from entering the low-voltage circuitry of the first main control unit 62, thus preventing the main control chip from burning out or the program from malfunctioning, resulting in good circuit stability. Furthermore, the circuit structure is simple, the response speed is fast, and the cost is low.

[0029] In one possible implementation, refer to Figure 4 and Figure 5 The first main control unit 62 may include: a first main control chip U2, a first power supply unit 622, and a mode switch SW1; The input terminal of the first power supply unit 622 is connected to the output terminal of the charging module 3, and the output terminal of the first power supply unit 622 is connected to the power supply terminal of the first main control chip U2. The first main control chip U2 is connected to the output terminal of the AC detection unit 61, the sensing module 7 and the mode dialer SW1 respectively. The first main control chip U2 is also connected to the control terminal of the second power module 5, and is used to send the night light dimming signal to the second power module 5.

[0030] The first main control unit 62 draws power from the battery 4 through the first power supply unit 622. Simultaneously, a mode dialer SW1 is set to adjust the working mode of the night light.

[0031] For example, the first power supply unit 622 can be an LDO (Low Dropout Regulator), circuit reference. Figure 5 The specifics will not be elaborated here.

[0032] In one possible implementation, refer to Figure 6 The charging module 3 includes: a constant voltage power supply unit 31 and a charging management unit 32; The input terminal of the constant voltage power supply unit 31 is connected to the input terminal of the charging module 3, and the output terminal of the constant voltage power supply unit 31 is connected to the input terminal of the charging management unit 32. The output terminal of the charging management unit 32 is connected to the output terminal of the charging module 3.

[0033] The constant voltage power supply unit 31 converts the fluctuating DC power output from the rectifier module 1 into a stable DC voltage, preventing input voltage fluctuations from impacting the subsequent charging management unit 32 and providing a stable voltage input foundation for charging the battery 4. The charging management unit 32 can implement intelligent charging strategies for the battery 4, preventing overcharging, overcurrent, and overheating of the battery 4, effectively extending the cycle life of the battery 4, and improving the safety of the charging process.

[0034] For example, the circuit principle of the constant voltage power supply unit 31 and the charging management unit 32 is as follows: Figure 7 The specifics will not be elaborated here.

[0035] In one possible implementation, refer to Figure 8 The main light includes at least two LED light strings; the first power module 2 includes a silicon controlled rectifier dimming unit 21, a color adjustment unit 22, a flicker removal unit 23, and a second main control unit 24. The input terminal of the thyristor dimming unit 21 is connected to the input terminal of the first power module 2, and the output terminal of the thyristor dimming unit 21 is connected to the input terminal of the flicker removal unit 23 and the input terminal of the color tuning unit 22, respectively. Each output terminal of the color adjustment unit 22 is connected to the negative terminal of each LED string, and the output terminal of the flicker removal unit 23 is connected to the positive terminal of each LED string. The second main control unit 24 is connected to the control terminal of the color matching unit 22.

[0036] The SCR dimming unit 21 enables smooth adjustment of the main lamp's brightness, adapting to the lighting needs of different environments. The second main control unit 24, through controlling the color adjustment unit 22, can regulate the current of at least two LED strings, achieving color temperature switching and improving lighting comfort. The flicker-reducing unit 23 filters out ripple in the current, providing a stable power supply current to the LED strings, avoiding the flickering problem that easily occurs in traditional dimming circuits, and reducing the harm to the eyes from prolonged lighting.

[0037] In one possible implementation, referring to FIG9(b), the flicker removal unit 23 includes: a first switch Q1, a second switch Q2, a third switch Q3, a fifth resistor R5, a second capacitor C2, and a Zener diode ZD1; The first terminal of the first switch Q1 is connected to the first terminal of the second switch Q2, the first terminal of the third switch Q3, the first terminal of the fifth resistor R5, and the input terminal of the anti-flicker unit 23. The second terminal of the first switch Q1 is connected to the second terminal of the second switch Q2, the second terminal of the third switch Q3, the first terminal of the second capacitor C2, and the output terminal of the anti-flicker unit 23. The control terminal of the first switch Q1 is connected to the control terminal of the second switch Q2, the control terminal of the third switch Q3, the second terminal of the second capacitor C2, and the anode of the Zener diode ZD1. The cathode of Zener diode ZD1 is connected to the second terminal of the fifth resistor R5.

[0038] The current output by the thyristor dimming unit 21 has ripple (which can easily cause flicker). When the input current is at its peak, the excess energy is stored in the second capacitor C2. When the input current is at its trough, the second capacitor C2 releases the stored energy and supplies power to the LED string through the first, second, and third switches connected in parallel, filling the current trough gap and converting the fluctuating input current into a stable output current. This completely solves the problem of light flicker that is easily generated by the thyristor dimming circuit and achieves flicker-free dimming and color temperature adjustment.

[0039] The clamping effect of the Zener diode ZD1 keeps the control voltage of the switching transistor constant, ensuring stable switching conductivity and preventing output current fluctuations due to input voltage fluctuations. This guarantees uniform and stable brightness of the LED string. The parallel architecture of multiple switching transistors improves current output capability, adapting to the power supply requirements of multiple LED strings in the main light; at the same time, it distributes the current load of individual transistors, reduces heat loss of the switching transistors, and extends the lifespan of the unit.

[0040] In one possible implementation, referring to FIG9(b), the second main control unit 24 includes: a second main control chip U3, a color cutting dialer SW2, and a second power supply unit 241; The input terminal of the second power supply unit 241 is connected to the output terminal of the anti-flicker unit 23, and the output terminal of the second power supply unit 241 is connected to the power supply terminal of the second main control chip U3. The color-cutting dialer SW2 is connected to the second main control chip U3; The second main control chip U3 is also connected to the control terminal of the color adjustment unit 22, and is used to send color adjustment signals to the color adjustment unit 22.

[0041] The color-changing DIP switch SW2 can be preset with multiple color temperature / color combination modes. Users can configure the color adjustment parameters by toggling the DIP switch. The second power supply unit 241 draws power from the flicker removal unit 23 to provide a stable operating voltage for the second main control chip U3, avoiding interference from fluctuations in the main lamp power supply current. The second main control chip U3 outputs precise control commands to the color adjustment unit 22 according to the configuration signal of the DIP switch, realizing the current ratio adjustment of multiple LED light strings and achieving color temperature adjustment.

[0042] Furthermore, the color cutter SW2 and mode cutter SW1 can both be replaced with touch buttons, infrared remote control, or controlled by a mobile APP by adding a Bluetooth / Wi-Fi module. The specific settings can be configured according to actual application requirements.

[0043] For example, the circuit schematic diagrams of the silicon controlled rectifier dimming unit 21 and the color tuning unit 22 are shown in Figure 9(a), and will not be described in detail here.

[0044] In one possible implementation, refer to Figure 10 The sensing module 7 may include: an infrared sensor and a light sensor; Both the infrared sensor and the light sensor are connected to the second main control chip U3.

[0045] An infrared sensor is used to acquire human body detection signals, and a photosensor detects the current ambient light level and compares it with a first preset threshold. The ambient lighting unit is only activated when the light level is below the first preset threshold (e.g., 10 Lux, indicating low ambient brightness) and a valid human body detection signal is received. This ensures the night light only operates in the most essential scenario of "dim lighting with people present," maximizing battery life. Simultaneously, the night light automatically turns off after a user-defined preset delay, enhancing product usability and personalized user experience.

[0046] This application employs a collaborative filtering process that considers both "light sensing" and "human sensing" to ensure precise motion. Combined with mode isolation between "main light" and "night light," it completely eliminates standby power consumption under mains power and power consumption from accidental triggering under battery power.

[0047] Furthermore, the infrared sensor can be replaced with a microwave radar sensor to detect subtle movements or stationary human bodies, thereby improving sensing sensitivity. Specific settings can be configured according to actual application requirements.

[0048] Corresponding to the above embodiments, this utility model embodiment also provides an intelligent front mirror light, including a night light, a main light, and an LED light control circuit as provided in any of the above embodiments; The LED light control circuit supplies power to the night light and the main light.

[0049] The above embodiments are only used to illustrate the technical solutions of this utility model, and are not intended to limit it. Although this utility model has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this utility model.

Claims

1. An LED lamp control circuit, characterized in that, include: The system includes a rectifier module, a first power module, a charging module, a battery, a second power module, a main control module, and a sensing module. The input terminal of the rectifier module is connected to an external AC power source, and the output terminal of the rectifier module is connected to the input terminal of the first power module and the input terminal of the charging module, respectively; the output terminal of the first power module is used to power the main lamp. The output terminal of the charging module is connected to the input terminal of the second power module and the battery, respectively; the output terminal of the second power module is used to power the night light. The first input terminal of the main control module is connected to the input terminal of the rectifier module, the second input terminal of the main control module is connected to the induction module, and the output terminal of the main control module is connected to the control terminal of the second power module.

2. The LED lamp control circuit as described in claim 1, characterized in that, The main control module includes: an AC detection unit and a first main control unit; The input terminal of the AC detection unit is connected to the first input terminal of the main control module, and the output terminal of the AC detection unit is connected to the first input terminal of the first main control unit, for detecting AC power supply; The second input terminal of the first main control unit is connected to the sensing module, and the output terminal of the first main control unit is connected to the control terminal of the second power module.

3. The LED lamp control circuit as described in claim 2, characterized in that, The AC detection unit includes: an optocoupler, a first diode, a first resistor, a second resistor, a third resistor, a fourth resistor, and a first capacitor; The positive input terminal of the optocoupler is connected to the first terminal of the first resistor, the negative input terminal of the optocoupler is connected to the second ground terminal, the positive output terminal of the optocoupler is connected to the first terminal of the second resistor, and the negative output terminal of the optocoupler is connected to the first ground terminal. The second end of the first resistor is connected to the first end of the first capacitor, the first end of the third resistor, and the first end of the fourth resistor, respectively. The second terminal of the first capacitor and the second terminal of the third resistor are both connected to the second ground terminal; The anode of the first diode is connected to the input terminal of the AC detection unit, and the cathode of the first diode is connected to the second terminal of the fourth resistor; The second end of the second resistor is connected to the output end of the AC detection unit.

4. The LED lamp control circuit as described in claim 2, characterized in that, The first main control unit includes: a first main control chip, a first power supply unit, and a mode switch; The input terminal of the first power supply unit is connected to the output terminal of the charging module, and the output terminal of the first power supply unit is connected to the power supply terminal of the first main control chip. The first main control chip is connected to the output terminal of the AC detection unit, the sensing module and the mode switch respectively; The first main control chip is also connected to the control terminal of the second power module, and is used to send a night light dimming signal to the second power module.

5. The LED lamp control circuit as described in any one of claims 1 to 4, characterized in that, The charging module includes: a constant voltage power supply unit and a charging management unit; The input terminal of the constant voltage power supply unit is connected to the input terminal of the charging module, and the output terminal of the constant voltage power supply unit is connected to the input terminal of the charging management unit. The output terminal of the charging management unit is connected to the output terminal of the charging module.

6. The LED lamp control circuit according to any one of claims 1 to 4, characterized in that, The main light includes at least two LED light strings; the first power module includes a silicon controlled rectifier dimming unit, a color adjustment unit, a flicker removal unit, and a second main control unit. The input terminal of the thyristor dimming unit is connected to the input terminal of the first power module, and the output terminal of the thyristor dimming unit is connected to the input terminal of the flicker removal unit and the input terminal of the color tuning unit, respectively. Each output terminal of the color adjustment unit is connected to the negative terminal of each LED string, and the output terminal of the flicker removal unit is connected to the positive terminal of each LED string. The second main control unit is connected to the control terminal of the color matching unit.

7. The LED lamp control circuit as described in claim 6, characterized in that, The flicker-eliminating unit includes: a first switching transistor, a second switching transistor, a third switching transistor, a fifth resistor, a second capacitor, and a Zener diode; The first terminal of the first switch is connected to the first terminal of the second switch, the first terminal of the third switch, the first terminal of the fifth resistor, and the input terminal of the anti-flicker unit. The second terminal of the first switch is connected to the second terminal of the second switch, the second terminal of the third switch, the first terminal of the second capacitor, and the output terminal of the anti-flicker unit. The control terminal of the first switch is connected to the control terminal of the second switch, the control terminal of the third switch, the second terminal of the second capacitor, and the anode of the Zener diode. The cathode of the Zener diode is connected to the second terminal of the fifth resistor.

8. The LED lamp control circuit as described in claim 6, characterized in that, The second main control unit includes: a second main control chip, a color-cutting dialer, and a second power supply unit; The input terminal of the second power supply unit is connected to the output terminal of the flicker removal unit, and the output terminal of the second power supply unit is connected to the power supply terminal of the second main control chip. The color-cutting dialer is connected to the second main control chip; The second main control chip is also connected to the control terminal of the color adjustment unit, and is used to send color adjustment signals to the color adjustment unit.

9. The LED lamp control circuit as described in claim 8, characterized in that, The sensing module includes: an infrared sensor and a photosensor; Both the infrared sensor and the photosensor are connected to the second main control chip.

10. A smart vanity light, characterized in that, Includes a night light, a main light, and an LED light control circuit as described in any one of claims 1 to 9; The LED light control circuit supplies power to the night light and the main light.