Small night lamp driving circuit
By designing the night light drive circuit and using the resistor and MOS tube Q2 to control the chip select signal end of the thyristor dimming chip, the problem that the thyristor chip without PWM pin cannot realize the night light function is solved, and the MCU chip is realized. The space ratio controls the night light function, the circuit is simple, and it matches the market chips.
Patent Information
- Application Number
- CN202323266717.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-29
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2033-11-29
AI Technical Summary
The chips used for thyristor dimming on the market currently lack PWM pins and cannot realize the night light function through the duty cycle of the MCU chip.
A night light driving circuit is designed. By setting the resistor and MOS tube Q2, the total resistance of the chip select signal terminal of the thyristor dimming chip is controlled. The PWM port of the MCU chip is used to realize the output current changes in different states to match the market. thyristor dimming chip.
It is possible to control the thyristor dimming chip without PWM pin through the duty cycle of the MCU chip to realize the night light function. The circuit is simple and can match the thyristor dimming chips on the market to achieve changes in output current under different states.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of silicon controlled dimming, in particular to a night light driving circuit. Background Art
[0002] Currently, the night light circuits on the market all control the PWM pin of the main circuit chip by adjusting the duty cycle of the MCU chip to achieve the change of the output current. However, the chips currently on the market used for thyristor dimming do not have PWM pins, so the function of the night light cannot be achieved. Therefore, there is a special need for a night light driving circuit that can control the thyristor dimming chip without PWM pins through the duty cycle of the MCU chip to achieve the night light function. Utility Model Content
[0003] The technical problem to be solved by the utility model is to provide a night light driving circuit which can control a thyristor dimming chip without a PWM foot through the duty cycle of an MCU chip to realize a night light function.
[0004] In order to solve the above technical problems, the technical solution adopted by the utility model is:
[0005] A night light driving circuit comprises a resistor RS1, a resistor RS2, a thyristor dimming chip IC1, a resistor RS3, a resistor RS4, a MOS tube Q2, an MCU chip IC2, a signal driving module, a night light lighting module and a main light lighting module, wherein a chip selection signal end of the thyristor dimming chip IC1 is electrically connected to one end of the resistor RS1, one end of the resistor RS2, one end of the resistor RS3 and one end of the resistor RS4 respectively, a PWM1 end of the MCU chip IC2 is electrically connected to the night light lighting module, a PWM2 end of the MCU chip IC2 is electrically connected to the main light lighting module, and a PWM3 end of the MCU chip IC2 is electrically connected to a gate of the MOS tube Q2 and a source of the MOS tube Q2 respectively through the signal driving module.
[0006] Furthermore, the night light lighting module includes a resistor R24, a resistor R25, a MOS tube Q3 and a light-emitting diode LED1, the gate of the MOS tube Q3 is electrically connected to one end of the resistor R24 and one end of the resistor R25 respectively, the other end of the resistor R24 is electrically connected to the PWM1 end of the MCU chip IC2, the other end of the resistor R25 is electrically connected to the source of the MOS tube Q3, the drain of the MOS tube Q3 is electrically connected to the cathode of the light-emitting diode LED1, and the anode of the light-emitting diode LED1 is electrically connected to the positive electrode of the power supply.
[0007] Furthermore, the main light lighting module includes a resistor R22, a resistor R23, a MOS tube Q4 and a light-emitting diode LED2, the gate of the MOS tube Q4 is electrically connected to one end of the resistor R22, the source of the MOS tube Q4 is electrically connected to one end of the resistor R23, and the source of the MOS tube Q4 and one end of the resistor R23 are both grounded, the other end of the resistor R22 is distributed and electrically connected to the other end of the resistor R23 and the PWM2 end of the MCU chip IC2, the source of the MOS tube Q4 is electrically connected to the cathode of the light-emitting diode LED2, and the anode of the light-emitting diode LED2 is electrically connected to the positive electrode of the power supply.
[0008] Furthermore, the signal driving module includes a diode D13, a resistor R29, a resistor R28, an electrolytic capacitor E4, a voltage regulator ZD5, a resistor R34, a resistor R35 and a photoelectric coupler U1, the first end of the photoelectric coupler U1 is electrically connected to the PWM3 end of the MCU chip IC2 through the resistor R35, the second end and the third end of the photoelectric coupler U1 are grounded, the fourth end of the photoelectric coupler U1 is electrically connected to one end of the resistor R34 and the gate of the MOS tube Q4, respectively, the other end of the resistor R34 is electrically connected to one end of the resistor R28, the cathode of the voltage regulator ZD5 and one end of the electrolytic capacitor E4, the other end of the electrolytic capacitor E4 is electrically connected to the anode of the voltage regulator ZD5, and the other end of the electrolytic capacitor E4 and the anode of the voltage regulator ZD5 are both grounded, and the other end of the resistor R28 is electrically connected to the cathode of the diode D13 through the resistor R29.
[0009] Furthermore, a resistor R33 is included, one end of which is electrically connected to the signal driving module and the gate of the MOS tube Q2 respectively, and the other end of the resistor R33 is electrically connected to the source of the MOS tube Q2 and the other end of the resistor R33 is grounded.
[0010] Furthermore, it also includes an input switch signal detection module, and the input signal detection module is electrically connected to the input signal terminal of the MCU chip IC2.
[0011] Furthermore, the input switch signal detection module includes a diode D12, a resistor R30, a resistor R31, a resistor R32, an electrolytic capacitor E5 and a Zener diode ZD4, the cathode of the Zener diode ZD4 is electrically connected to the input signal end of the MCU chip IC2, one end of the resistor R31 and one end of the resistor R32, the other end of the resistor R31 is electrically connected to one end of the resistor R30, the other end of the resistor R30 is electrically connected to the cathode of the diode D12 and one end of the electrolytic capacitor E5, the other end of the electrolytic capacitor E5 is electrically connected to the other end of the resistor R32 and the anode of the Zener diode ZD4, and the other end of the electrolytic capacitor E5, the other end of the resistor R32 and the anode of the Zener diode ZD4 are all grounded.
[0012] Furthermore, it also includes a power supply module, which is electrically connected to the power input terminal of the MCU chip IC2.
[0013] Furthermore, the power supply module includes a resistor R36, a resistor R26, a resistor R27, a voltage regulator ZD3 and a capacitor C7, one end of the capacitor C7 is electrically connected to the power input end of the MCU chip IC2, the cathode of the voltage regulator ZD3 and one end of the resistor R27, respectively, the other end of the resistor R27 is electrically connected to one end of the resistor R36, the other end of the resistor R36 is electrically connected to the positive electrode of the power supply through the resistor R26, and the anode of the voltage regulator ZD3 and the other end of the capacitor C7 are both grounded.
[0014] Furthermore, the model of the MCU chip IC2 is CM9MC21A.
[0015] The beneficial effects of the utility model are:
[0016] This solution sets resistor RS1, resistor RS2, thyristor dimming chip IC1, resistor RS3, resistor RS4, MOS tube Q2, MCU chip IC2, signal drive module, night light lighting module and main light lighting module. When the MCU chip IC2 detection switch is powered on for the first time, the PWM2 end of the MCU chip IC2 outputs a high level, and the PWM1 end of the MCU chip IC2 and the PWM3 end of the MCU chip IC2 output a low level. When the PWM2 end of the MCU chip IC2 is at a high level, the main light lighting module works and the main light is on; when the PWM1 end of the MCU chip IC2 is at a low level, the night light lighting module does not work and the night light is not on; when the PWM3 end of the MCU chip IC2 outputs a low level, the signal drive module does not work, and the MOS tube Q2 is turned on at this time; so when the main light is on, the total resistance of the chip select signal end (i.e., CS pin) of the thyristor dimming chip IC1 is resistor RS1, resistor RS2, resistor RS3 and resistor RS4 in parallel, and the output is a high current, and the current state is the main light lighting mode. ; When the MCU chip IC2 detects that the switch is powered on for the second time, the PWM1 end of the MCU chip IC2 and the PWM3 end of the MCU chip IC2 output a high level, and the PWM2 end of the MCU chip IC2 outputs a low level. When the PWM1 end of the MCU chip IC2 outputs a high level, the night light lighting module works and the night light is on; when the PWM2 end of the MCU chip IC2 outputs a low level, the main light lighting module does not work and the main light is not on; when the PWM3 output of the MCU chip IC2 is a high level, the signal drive module works, and the MOS tube Q2 is cut off at this time. Therefore, when the night light is on, the total resistance of the chip select signal end (i.e., the CS pin) of the thyristor dimming chip IC1 is the resistor RS1 and the resistor RS2 in parallel, and the output is a low current. The current state is the night light lighting mode; this scheme controls the total resistance of the chip select signal end (i.e., the CS pin) of the thyristor dimming chip IC1 through the MOS tube Q2 to achieve the change of output current in different states. The circuit is simple and can match the thyristor dimming chip on the market, thereby realizing the function of the night light. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a circuit schematic diagram of a switch signal detection module, a power supply module and an MCU chip IC2 of a night light driving circuit according to the utility model;
[0018] Figure 2 It is a circuit principle diagram of the main circuit of the night light driving circuit according to the utility model;
[0019] Figure 3 A circuit schematic diagram of a night light illumination module according to the night light driving circuit of the utility model;
[0020] Figure 4It is a circuit principle diagram of the main light illumination module of the night light driving circuit according to the utility model;
[0021] Figure 5 It is a circuit schematic diagram of a signal driving module, a resistor RS3, a resistor RS4, a resistor R33 and a MOS tube Q2 of a night light driving circuit according to the utility model. DETAILED DESCRIPTION
[0022] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in conjunction with the implementation modes and the accompanying drawings.
[0023] Please refer to Figures 1 to 5 , the technical solution adopted by the utility model is:
[0024] A night light driving circuit comprises a resistor RS1, a resistor RS2, a thyristor dimming chip IC1, a resistor RS3, a resistor RS4, a MOS tube Q2, an MCU chip IC2, a signal driving module, a night light lighting module and a main light lighting module, wherein a chip selection signal end of the thyristor dimming chip IC1 is electrically connected to one end of the resistor RS1, one end of the resistor RS2, one end of the resistor RS3 and one end of the resistor RS4 respectively, a PWM1 end of the MCU chip IC2 is electrically connected to the night light lighting module, a PWM2 end of the MCU chip IC2 is electrically connected to the main light lighting module, and a PWM3 end of the MCU chip IC2 is electrically connected to a gate of the MOS tube Q2 and a source of the MOS tube Q2 respectively through the signal driving module.
[0025] From the above description, it can be seen that the beneficial effects of the utility model are:
[0026] This solution sets resistor RS1, resistor RS2, thyristor dimming chip IC1, resistor RS3, resistor RS4, MOS tube Q2, MCU chip IC2, signal drive module, night light lighting module and main light lighting module. When the MCU chip IC2 detection switch is powered on for the first time, the PWM2 end of the MCU chip IC2 outputs a high level, and the PWM1 end of the MCU chip IC2 and the PWM3 end of the MCU chip IC2 output a low level. When the PWM2 end of the MCU chip IC2 is at a high level, the main light lighting module works and the main light is on; when the PWM1 end of the MCU chip IC2 is at a low level, the night light lighting module does not work and the night light is not on; when the PWM3 end of the MCU chip IC2 outputs a low level, the signal drive module does not work, and the MOS tube Q2 is turned on at this time; so when the main light is on, the total resistance of the chip select signal end (i.e., CS pin) of the thyristor dimming chip IC1 is resistor RS1, resistor RS2, resistor RS3 and resistor RS4 in parallel, and the output is a high current, and the current state is the main light lighting mode. ; When the MCU chip IC2 detects that the switch is powered on for the second time, the PWM1 end of the MCU chip IC2 and the PWM3 end of the MCU chip IC2 output a high level, and the PWM2 end of the MCU chip IC2 outputs a low level. When the PWM1 end of the MCU chip IC2 outputs a high level, the night light lighting module works and the night light is on; when the PWM2 end of the MCU chip IC2 outputs a low level, the main light lighting module does not work and the main light is not on; when the PWM3 output of the MCU chip IC2 is a high level, the signal drive module works, and the MOS tube Q2 is cut off at this time. Therefore, when the night light is on, the total resistance of the chip select signal end (i.e., the CS pin) of the thyristor dimming chip IC1 is the resistor RS1 and the resistor RS2 in parallel, and the output is a low current. The current state is the night light lighting mode; this scheme controls the total resistance of the chip select signal end (i.e., the CS pin) of the thyristor dimming chip IC1 through the MOS tube Q2 to achieve the change of output current in different states. The circuit is simple and can match the thyristor dimming chip on the market, thereby realizing the function of the night light.
[0027] Furthermore, the night light lighting module includes a resistor R24, a resistor R25, a MOS tube Q3 and a light-emitting diode LED1, the gate of the MOS tube Q3 is electrically connected to one end of the resistor R24 and one end of the resistor R25 respectively, the other end of the resistor R24 is electrically connected to the PWM1 end of the MCU chip IC2, the other end of the resistor R25 is electrically connected to the source of the MOS tube Q3, the drain of the MOS tube Q3 is electrically connected to the cathode of the light-emitting diode LED1, and the anode of the light-emitting diode LED1 is electrically connected to the positive electrode of the power supply.
[0028] From the above description, it can be seen that when the MCU chip IC2 detects that the switch is powered on for the second time, the PWM1 end of the MCU chip IC2 and the PWM3 end of the MCU chip IC2 output a high level, and the PWM2 end of the MCU chip IC2 outputs a low level. When the PWM1 end of the MCU chip IC2 outputs a high level, the MOS tube Q3 is turned on, and the night light (i.e., the light-emitting diode LED1) is on; when the PWM2 end of the MCU chip IC2 outputs a low level, the main light lighting module does not work, and the main light is not on; when the PWM3 output of the MCU chip IC2 is a high level, the signal drive module works, and at this time the MOS tube Q2 is cut off, so when the night light is on, the total resistance of the chip select signal end (i.e., the CS pin) of the thyristor dimming chip IC1 is the resistor RS1 and the resistor RS2 in parallel, and the output is a low current, and the current state is the night light lighting mode; the resistor R24 plays a role in current limiting, and the resistor R25 is a pull-down resistor, which ensures that the level of the input end of the MOS tube Q2 is a low level when there is no signal input, so as to prevent the MOS tube Q3 from being triggered by mistake.
[0029] Furthermore, the main light lighting module includes a resistor R22, a resistor R23, a MOS tube Q4 and a light-emitting diode LED2, the gate of the MOS tube Q4 is electrically connected to one end of the resistor R22, the source of the MOS tube Q4 is electrically connected to one end of the resistor R23, and the source of the MOS tube Q4 and one end of the resistor R23 are both grounded, the other end of the resistor R22 is distributed and electrically connected to the other end of the resistor R23 and the PWM2 end of the MCU chip IC2, the source of the MOS tube Q4 is electrically connected to the cathode of the light-emitting diode LED2, and the anode of the light-emitting diode LED2 is electrically connected to the positive electrode of the power supply.
[0030] From the above description, it can be seen that when the MCU chip IC2 detection switch is powered on for the first time, the PWM2 end of the MCU chip IC2 outputs a high level, and the PWM1 end of the MCU chip IC2 and the PWM3 end of the MCU chip IC2 output a low level. When the PWM2 end of the MCU chip IC2 is at a high level, the MOS tube Q4 is turned on, and the main light (that is, the light-emitting diode LED2) is on; when the PWM1 end of the MCU chip IC2 is at a low level, the night light lighting module does not work, and the night light is not on; the PWM3 end of the MCU chip IC2 When the output of the terminal is low level, the optocoupler U1 is cut off and not conducting. At this time, the MOS tube Q2 is conducting. Therefore, when the main light is on, the total resistance of the chip select signal terminal (i.e., the CS pin) of the thyristor dimming chip IC1 is the resistor RS1, the resistor RS2, the resistor RS3 and the resistor RS4 in parallel. The output is a high current, and the current state is the main light lighting mode; the resistor R22 plays a role in current limiting, and the resistor R23 is a pull-down resistor. Its function is to ensure that the level of the input terminal of the MOS tube Q2 is low when there is no signal input, so as to prevent the MOS tube Q4 from being triggered by mistake.
[0031] Furthermore, the signal driving module includes a diode D13, a resistor R29, a resistor R28, an electrolytic capacitor E4, a voltage regulator ZD5, a resistor R34, a resistor R35 and a photoelectric coupler U1, the first end of the photoelectric coupler U1 is electrically connected to the PWM3 end of the MCU chip IC2 through the resistor R35, the second end and the third end of the photoelectric coupler U1 are grounded, the fourth end of the photoelectric coupler U1 is electrically connected to one end of the resistor R34 and the gate of the MOS tube Q4, respectively, the other end of the resistor R34 is electrically connected to one end of the resistor R28, the cathode of the voltage regulator ZD5 and one end of the electrolytic capacitor E4, the other end of the electrolytic capacitor E4 is electrically connected to the anode of the voltage regulator ZD5, and the other end of the electrolytic capacitor E4 and the anode of the voltage regulator ZD5 are both grounded, and the other end of the resistor R28 is electrically connected to the cathode of the diode D13 through the resistor R29.
[0032] It can be seen from the above description that when the PWM3 terminal inputs a low level, the photocoupler U1 is turned off, the input voltage signal is rectified by the diode D13, and then limited by the resistor R28 and the resistor R29, and filtered by the voltage regulator ZD5 and the electrolytic capacitor E4 to stabilize the voltage at 5.1V, and then limited by the resistor R34 to provide a switching signal to the MOS tube Q2. At this time, the MOS tube Q2 is turned on, and the resistors RS3 and RS4 are in a working state; when the PWM3 terminal inputs a high level, the input voltage signal is limited by the resistor R35. At this time, the photocoupler U1 is turned on, and there is no signal input to the gate of the MOS tube Q2. The MOS tube Q2 is turned off at this time, and the resistors RS3 and RS4 are in an open circuit and in a non-working state.
[0033] It also includes a resistor R33, one end of which is electrically connected to the signal driving module and the gate of the MOS tube Q2, respectively, and the other end of the resistor R33 is electrically connected to the source of the MOS tube Q2 and the other end of the resistor R33 is grounded.
[0034] As can be seen from the above description, the resistor R33 is set as a pull-down resistor to ensure that the level of the gate of the MOS tube Q2 is low when there is no signal input, so as to prevent the MOS tube Q2 from being triggered by mistake.
[0035] Furthermore, it also includes an input switch signal detection module, and the input signal detection module is electrically connected to the input signal terminal of the MCU chip IC2.
[0036] Furthermore, the input switch signal detection module includes a diode D12, a resistor R30, a resistor R31, a resistor R32, an electrolytic capacitor E5 and a Zener diode ZD4, the cathode of the Zener diode ZD4 is electrically connected to the input signal end of the MCU chip IC2, one end of the resistor R31 and one end of the resistor R32, the other end of the resistor R31 is electrically connected to one end of the resistor R30, the other end of the resistor R30 is electrically connected to the cathode of the diode D12 and one end of the electrolytic capacitor E5, the other end of the electrolytic capacitor E5 is electrically connected to the other end of the resistor R32 and the anode of the Zener diode ZD4, and the other end of the electrolytic capacitor E5, the other end of the resistor R32 and the anode of the Zener diode ZD4 are all grounded.
[0037] From the above description, it can be seen that the input switch signal detection module is used to detect the switch signal to realize the switching of the main light and the night light. The output voltage is filtered and rectified by the voltage regulator D12, and then provides current to the voltage regulator ZD4 through the current limiting resistor R30 and the resistor R31. The electrolytic capacitor E5 is used as a filter electrolytic to filter the voltage regulator ZD4, and the resistor R32 is a discharge resistor to discharge the electrolytic capacitor E5.
[0038] Furthermore, it also includes a power supply module, which is electrically connected to the power input terminal of the MCU chip IC2.
[0039] Furthermore, the power supply module includes a resistor R36, a resistor R26, a resistor R27, a voltage regulator ZD3 and a capacitor C7, one end of the capacitor C7 is electrically connected to the power input end of the MCU chip IC2, the cathode of the voltage regulator ZD3 and one end of the resistor R27, respectively, the other end of the resistor R27 is electrically connected to one end of the resistor R36, the other end of the resistor R36 is electrically connected to the positive electrode of the power supply through the resistor R26, and the anode of the voltage regulator ZD3 and the other end of the capacitor C7 are both grounded.
[0040] From the above description, it can be seen that the output voltage provides current to the voltage regulator ZD3 through the current limiting resistor R26, the resistor R36 and the resistor R27, and then stabilizes the voltage at about 3.3V through the filter capacitor C7 to power the MCU chip IC2.
[0041] Furthermore, the model of the MCU chip IC2 is CM9MC21A.
[0042] Please refer to Figures 1 to 5 , Embodiment 1 of the present utility model is:
[0043] Please refer to Figure 1 , Figure 2 and Figure 5A night light driving circuit includes a resistor RS1 (resistance value is 22Ω), a resistor RS2 (resistance value is 24Ω), a thyristor dimming chip IC1 (model BP3286C), a resistor RS3 (resistance value is 6.8Ω), a resistor RS4 (resistance value is 5.6Ω), a MOS tube Q2 (model BL2304), an MCU chip IC2 (model CM9MC21A), a signal driving module, a night light lighting module and a main light lighting module, wherein the chip selection signal end of the thyristor dimming chip IC1 is electrically connected to one end of the resistor RS1, one end of the resistor RS2, one end of the resistor RS3 and one end of the resistor RS4 respectively, the PWM1 end of the MCU chip IC2 is electrically connected to the night light lighting module, the PWM2 end of the MCU chip IC2 is electrically connected to the main light lighting module, and the PWM3 end of the MCU chip IC2 is electrically connected to the gate of the MOS tube Q2 and the source of the MOS tube Q2 respectively through the signal driving module.
[0044] Please refer to Figure 3 The night light lighting module includes a resistor R24 (resistance value is 300Ω), a resistor R25 (resistance value is 47kΩ), a MOS tube Q3 (model BL02N10CG) and a light emitting diode LED1 (model 2835). The gate of the MOS tube Q3 is electrically connected to one end of the resistor R24 and one end of the resistor R25 respectively, the other end of the resistor R24 is electrically connected to the PWM1 end of the MCU chip IC2, the other end of the resistor R25 is electrically connected to the source of the MOS tube Q3, the drain of the MOS tube Q3 is electrically connected to the cathode of the light emitting diode LED1, and the anode of the light emitting diode LED1 is electrically connected to the positive electrode of the power supply.
[0045] Please refer to Figure 4 The main light illumination module includes a resistor R22 (resistance value is 300Ω), a resistor R23 (resistance value is 47kΩ), a MOS tube Q4 (model BL02N10CG) and a light emitting diode LED2 (model 2835), the gate of the MOS tube Q4 is electrically connected to one end of the resistor R22, the source of the MOS tube Q4 is electrically connected to one end of the resistor R23, and the source of the MOS tube Q4 and one end of the resistor R23 are both grounded, the other end of the resistor R22 is distributed and electrically connected to the other end of the resistor R23 and the PWM2 end of the MCU chip IC2, the source of the MOS tube Q4 is electrically connected to the cathode of the light emitting diode LED2, and the anode of the light emitting diode LED2 is electrically connected to the positive electrode of the power supply.
[0046] Please refer to Figure 5The signal driving module includes a diode D13 (model E1J), a resistor R29 (resistance value is 100kΩ), a resistor R28 (resistance value is 100kΩ), an electrolytic capacitor E4 (capacitance value is 4.7μF), a voltage regulator ZD5 (voltage regulator value is 5.1V), a resistor R34 (resistance value is 1kΩ), a resistor R35 (resistance value is 100kΩ) and a photocoupler U1 (model BL817S-C), and the first end of the photocoupler U1 is electrically connected to the PWM3 end of the MCU chip IC2 through the resistor R35. The second end and the third end of the photoelectric coupler U1 are grounded, the fourth end of the photoelectric coupler U1 is electrically connected to one end of the resistor R34 and the gate of the MOS tube Q4 respectively, the other end of the resistor R34 is electrically connected to one end of the resistor R28, the cathode of the voltage regulator tube ZD5 and one end of the electrolytic capacitor E4 respectively, the other end of the electrolytic capacitor E4 is electrically connected to the anode of the voltage regulator tube ZD5 and the other end of the electrolytic capacitor E4 and the anode of the voltage regulator tube ZD5 are both grounded, and the other end of the resistor R28 is electrically connected to the cathode of the diode D13 through the resistor R29.
[0047] Please refer to Figure 5 , and also includes a resistor R33 (resistance value is 10kΩ), one end of the resistor R33 is electrically connected to the signal driving module and the gate of the MOS tube Q2 respectively, the other end of the resistor R33 is electrically connected to the source of the MOS tube Q2 and the other end of the resistor R33 is grounded.
[0048] Please refer to Figure 1 , also includes an input switch signal detection module, and the input signal detection module is electrically connected to the input signal end of the MCU chip IC2.
[0049] Please refer to Figure 1The input switch signal detection module includes a diode D12 (model E1J), a resistor R30 (resistance value is 10kΩ), a resistor R31 (resistance value is 10kΩ), a resistor R32 (resistance value is 10kΩ), an electrolytic capacitor E5 (capacitance value is 3.3μF) and a voltage regulator ZD4 (voltage regulator value is 3.9V), the cathode of the voltage regulator ZD4 is respectively electrically connected to the input signal end of the MCU chip IC2, one end of the resistor R31 and one end of the resistor R32, the other end of the resistor R31 is electrically connected to one end of the resistor R30, the other end of the resistor R30 is respectively electrically connected to the cathode of the diode D12 and one end of the electrolytic capacitor E5, the other end of the electrolytic capacitor E5 is respectively electrically connected to the other end of the resistor R32 and the anode of the voltage regulator ZD4, and the other end of the electrolytic capacitor E5, the other end of the resistor R32 and the anode of the voltage regulator ZD4 are all grounded. The input switch signal detection module is used to detect the switch signal to realize the switching of the main light and the night light. The output voltage is filtered and rectified by the voltage regulator tube D12, and then provides current to the voltage regulator tube ZD4 through the current limiting resistor R30 and the resistor R31. The electrolytic capacitor E5 is used as a filter electrolytic to filter the voltage regulator tube ZD4. The resistor R32 is a discharge resistor to discharge the electrolytic capacitor E5.
[0050] Please refer to Figure 1 , and also includes a power supply module, which is electrically connected to the power input terminal of the MCU chip IC2.
[0051] Please refer to Figure 1 The power supply module includes a resistor R36 (resistance value is 1.5kΩ), a resistor R26 (resistance value is 1.5kΩ), a resistor R27 (resistance value is 1.5kΩ), a voltage regulator ZD3 (voltage regulator value is 3.3V) and a capacitor C7 (capacitance value is 2.2μF), one end of the capacitor C7 is electrically connected to the power input end of the MCU chip IC2, the cathode of the voltage regulator ZD3 and one end of the resistor R27, the other end of the resistor R27 is electrically connected to one end of the resistor R36, the other end of the resistor R36 is electrically connected to the positive electrode of the power supply through the resistor R26, and the anode of the voltage regulator ZD3 and the other end of the capacitor C7 are grounded. The output voltage V1+ provides current to the voltage regulator ZD3 through the current limiting resistor R26, the resistor R36 and the resistor R27, and then stabilizes the voltage at about 3.3V through the filter capacitor C7 to supply power to the MCU chip IC2.
[0052] The model of the MCU chip IC2 is CM9MC21A.
[0053] It also includes a filtering module, a DC / DC conversion module and a high-frequency rectification and filtering module. The filtering module is used to convert an AC signal into a DC signal. The DC / DC conversion module is used to provide stable DC power to the output LED lamp beads. The high-frequency rectification and filtering module is used to remove the ripple signal in the power output to make the power output more stable. The filtering module includes a transformer T1 (inductance value is 20mH), a transformer T2 (inductance value is 0.8mH), a rectifier bridge BR1 (model MB10F), an inductor L1 (inductance value is 1mH), a capacitor C1 (capacitance value is 100nF) and a capacitor C2 (capacitance value is 100nF). The DC / DC conversion module includes a resistor R13 (resistance value is 51kΩ), a resistor R 12 (resistance value is 150kΩ), resistor R7 (capacitance value is 220kΩ), capacitor C4 (capacitance value is 1nF), resistor R8 (capacitance value is 82Ω), resistor R37 (capacitance value is 82Ω), diode D1 (model DO-214A), capacitor C6 (capacitance value is 0.022nF), resistor R6 (capacitance value is 51kΩ), diode D3 (model E1J), resistor R10 (resistance value is 150kΩ), resistor R9 (resistance value is 100Ω), diode D2 (model E1J), resistor R11 (resistance value is 1kΩ), electrolytic capacitor E1 (capacitance value is 4.7μF) and transformer T3 (inductance value is 2.3mH). For the specific connection relationship between the components, please refer to Figure 2 .
[0054] The working principle of the above night light driving circuit is:
[0055] When the MCU chip IC2 detection switch is powered on for the first time, the PWM2 end of the MCU chip IC2 outputs a high level, and the PWM1 end of the MCU chip IC2 and the PWM3 end of the MCU chip IC2 output a low level. When the PWM2 end of the MCU chip IC2 is at a high level, the MOS tube Q4 is turned on, and the main light (i.e., the light-emitting diode LED2) is on; when the PWM1 end of the MCU chip IC2 is at a low level, the MOS tube Q3 is turned off, and the night light (i.e., the light-emitting diode LED1) is not on; when the PWM3 end of the MCU chip IC2 outputs a low level, the optocoupler U1 is turned off and not turned on, and the MOS tube Q2 is turned on at this time, so when the main light is on, the total resistance of the chip select signal end (i.e., the CS pin) of the thyristor dimming chip IC1 is the resistor RS1, the resistor RS2, the resistor RS3 and the resistor RS4 in parallel, and the output is a high current, and the current state is the main light lighting mode;
[0056] When the MCU chip IC2 detects that the switch is powered on for the second time, the PWM1 end of the MCU chip IC2 and the PWM3 end of the MCU chip IC2 output high levels, and the PWM2 end of the MCU chip IC2 outputs low levels. When the PWM1 end of the MCU chip IC2 outputs high levels, the MOS tube Q3 is turned on, and the night light (i.e., the light-emitting diode LED1) is on; when the PWM2 end of the MCU chip IC2 outputs a low level, the MOS tube Q4 is turned off, and the main light (i.e., the light-emitting diode LED2) is off; when the PWM3 output of the MCU chip IC2 is a high level, the photocoupler U1 is turned on, and the MOS tube Q2 is turned off at this time. Therefore, when the night light is on, the total resistance of the chip select signal end (i.e., the CS pin) of the thyristor dimming chip IC1 is the resistor RS1 and the resistor RS2 in parallel, and the output is a low current. The current state is the night light lighting mode.
[0057] This solution uses MOS tube Q2 to control the total resistance of the chip select signal end (i.e., CS pin) of the thyristor dimming chip IC1 to achieve changes in output current under different states. The circuit is simple and can match the thyristor dimming chip on the market, thereby realizing the function of a night light.
[0058] In summary, the utility model provides a night light driving circuit, by setting resistor RS1, resistor RS2, thyristor dimming chip IC1, resistor RS3, resistor RS4, MOS tube Q2, MCU chip IC2, signal driving module, night light lighting module and main light lighting module, when the MCU chip IC2 detects that the switch is powered on for the first time, the PWM2 end of the MCU chip IC2 outputs a high level, and the PWM1 end of the MCU chip IC2 and the PWM3 end of the MCU chip IC2 output a low level. When the PWM2 end of the MCU chip IC2 is at a high level, the main light lighting module works and the main light is on; when the PWM1 end of the MCU chip IC2 is at a low level, the night light lighting module does not work and the night light is not on; when the PWM3 end of the MCU chip IC2 outputs a low level, the signal driving module does not work, and the MOS tube Q2 is turned on at this time; so when the main light is on, the total resistance of the chip select signal end (i.e., CS pin) of the thyristor dimming chip IC1 is the resistor RS1, the resistor RS2, the resistor RS3 and the resistor RS4 connected in parallel, and the output is a high current. The state is the main light lighting mode; when the MCU chip IC2 detects that the switch is powered on for the second time, the PWM1 end of the MCU chip IC2 and the PWM3 end of the MCU chip IC2 output a high level, and the PWM2 end of the MCU chip IC2 outputs a low level. When the PWM1 end of the MCU chip IC2 outputs a high level, the night light lighting module works and the night light is on; when the PWM2 end of the MCU chip IC2 outputs a low level, the main light lighting module does not work and the main light is not on; when the PWM3 output of the MCU chip IC2 is a high level, the signal drive module works, and the MOS tube Q2 is cut off at this time, so when the night light is on, the total resistance of the chip select signal end (i.e., the CS pin) of the thyristor dimming chip IC1 is the resistor RS1 and the resistor RS2 in parallel, and the output is a low current, and the current state is the night light lighting mode; this scheme controls the total resistance of the chip select signal end (i.e., the CS pin) of the thyristor dimming chip IC1 through the MOS tube Q2 to achieve the change of output current in different states. The circuit is simple and can match the thyristor dimming chip on the market, thereby realizing the function of the night light.
[0059] The above description is only an embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent transformations made using the contents of the specification and drawings of the present invention, or directly or indirectly applied in the relevant technical field, are also included in the patent protection scope of the present invention.
Claims
1. A night light driving circuit, characterized in that: It includes a resistor RS1, a resistor RS2, a thyristor dimming chip IC1, a resistor RS3, a resistor RS4, a MOS tube Q2, an MCU chip IC2, a signal driving module, a night light lighting module and a main light lighting module. The chip selection signal end of the thyristor dimming chip IC1 is electrically connected to one end of the resistor RS1, one end of the resistor RS2, one end of the resistor RS3 and one end of the resistor RS4 respectively, the PWM1 end of the MCU chip IC2 is electrically connected to the night light lighting module, the PWM2 end of the MCU chip IC2 is electrically connected to the main light lighting module, and the PWM3 end of the MCU chip IC2 is electrically connected to the gate of the MOS tube Q2 and the source of the MOS tube Q2 respectively through the signal driving module.
2. The night light driving circuit according to claim 1, characterized in that: The night light lighting module includes a resistor R24, a resistor R25, a MOS tube Q3 and a light-emitting diode LED1. The gate of the MOS tube Q3 is electrically connected to one end of the resistor R24 and one end of the resistor R25 respectively, the other end of the resistor R24 is electrically connected to the PWM1 end of the MCU chip IC2, the other end of the resistor R25 is electrically connected to the source of the MOS tube Q3, the drain of the MOS tube Q3 is electrically connected to the cathode of the light-emitting diode LED1, and the anode of the light-emitting diode LED1 is electrically connected to the positive electrode of the power supply.
3. The night light driving circuit according to claim 1, characterized in that: The main light lighting module includes a resistor R22, a resistor R23, a MOS tube Q4 and a light-emitting diode LED2, wherein the gate of the MOS tube Q4 is electrically connected to one end of the resistor R22, the source of the MOS tube Q4 is electrically connected to one end of the resistor R23, and the source of the MOS tube Q4 and one end of the resistor R23 are both grounded, the other end of the resistor R22 is distributed at the other end of the resistor R23 and is electrically connected to the PWM2 end of the MCU chip IC2, the source of the MOS tube Q4 is electrically connected to the cathode of the light-emitting diode LED2, and the anode of the light-emitting diode LED2 is electrically connected to the positive electrode of the power supply.
4. The night light driving circuit according to claim 1, characterized in that: The signal driving module includes a diode D13, a resistor R29, a resistor R28, an electrolytic capacitor E4, a voltage regulator tube ZD5, a resistor R34, a resistor R35 and a photoelectric coupler U1. The first end of the photoelectric coupler U1 is electrically connected to the PWM3 end of the MCU chip IC2 through the resistor R35, the second end and the third end of the photoelectric coupler U1 are grounded, the fourth end of the photoelectric coupler U1 is electrically connected to one end of the resistor R34 and the gate of the MOS tube Q4 respectively, the other end of the resistor R34 is electrically connected to one end of the resistor R28, the cathode of the voltage regulator tube ZD5 and one end of the electrolytic capacitor E4 respectively, the other end of the electrolytic capacitor E4 is electrically connected to the anode of the voltage regulator tube ZD5, and the other end of the electrolytic capacitor E4 and the anode of the voltage regulator tube ZD5 are both grounded, and the other end of the resistor R28 is electrically connected to the cathode of the diode D13 through the resistor R29.
5. The night light driving circuit according to claim 1, characterized in that: It also includes a resistor R33, one end of which is electrically connected to the signal driving module and the gate of the MOS tube Q2, respectively, and the other end of the resistor R33 is electrically connected to the source of the MOS tube Q2 and the other end of the resistor R33 is grounded.
6. The night light driving circuit according to claim 1, characterized in that: It also includes an input switch signal detection module, which is electrically connected to the input signal terminal of the MCU chip IC2.
7. The night light driving circuit according to claim 6, characterized in that: The input switch signal detection module includes a diode D12, a resistor R30, a resistor R31, a resistor R32, an electrolytic capacitor E5 and a voltage regulator ZD4. The cathode of the voltage regulator ZD4 is electrically connected to the input signal end of the MCU chip IC2, one end of the resistor R31 and one end of the resistor R32, respectively. The other end of the resistor R31 is electrically connected to one end of the resistor R30. The other end of the resistor R30 is electrically connected to the cathode of the diode D12 and one end of the electrolytic capacitor E5, respectively. The other end of the electrolytic capacitor E5 is electrically connected to the other end of the resistor R32 and the anode of the voltage regulator ZD4, and the other end of the electrolytic capacitor E5, the other end of the resistor R32 and the anode of the voltage regulator ZD4 are all grounded.
8. The night light driving circuit according to claim 1, characterized in that: It also includes a power supply module, which is electrically connected to the power input terminal of the MCU chip IC2.
9. The night light driving circuit according to claim 8, characterized in that: The power supply module includes a resistor R36, a resistor R26, a resistor R27, a voltage regulator ZD3 and a capacitor C7, one end of the capacitor C7 is electrically connected to the power input end of the MCU chip IC2, the cathode of the voltage regulator ZD3 and one end of the resistor R27 respectively, the other end of the resistor R27 is electrically connected to one end of the resistor R36, the other end of the resistor R36 is electrically connected to the positive electrode of the power supply through the resistor R26, and the anode of the voltage regulator ZD3 and the other end of the capacitor C7 are both grounded.
10. The night light driving circuit according to claim 1, characterized in that: The model of the MCU chip IC2 is CM9MC21A.
