IC chip and multi-color-temperature switching circuit
By incorporating components such as timer modules into the IC chip to achieve PWM signal control and current regulation, the problem of existing IC chips being unable to switch between multiple color temperatures is solved, providing a convenient multi-color temperature switching solution that is compatible with SCR dimming.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- XIAMEN TOPSTAR LIGHTING
- Filing Date
- 2025-05-07
- Publication Date
- 2026-05-19
AI Technical Summary
Existing IC chips can only achieve silicon controlled rectifier dimming, but cannot achieve multi-color temperature switching. Moreover, existing multi-color temperature switching solutions are costly and inconvenient to operate.
Design an IC chip that integrates a timer module, an analog-to-digital converter module, a processing module, a reference generation module, a comparator module, an operational amplifier, and a MOSFET. Through the cooperation of these modules, PWM signal control and current regulation can be achieved. Combined with multi-color temperature status setting pins, multi-color temperature switching can be realized.
It achieves compatibility with SCR dimming while enabling convenient switching between multiple color temperatures, reducing costs and simplifying the operation process.
Smart Images

Figure CN224265151U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of dimming and color temperature switching technology, and in particular to an IC chip and a multi-color temperature switching circuit. Background Technology
[0002] Existing IC chips can only implement silicon controlled rectifier (SCR) dimming, not multi-color temperature switching. To achieve multi-color temperature switching, the following solution must be adopted, as detailed below:
[0003] The main constant current circuit uses a thyristor dimming IC, and the color temperature switching is achieved by a hardware multi-position DIP switch; however, this solution requires high switch cost, and the production, processing, and functional testing are cumbersome and costly; in addition, for already installed lamps, if you want to switch the color temperature, you need to remove them and manually toggle the switch before reinstalling them, which is very inconvenient. Utility Model Content
[0004] The technical problem to be solved by this utility model is to provide an IC chip and a multi-color temperature switching circuit that can realize the function of silicon controlled rectifier dimming and multi-color temperature switching.
[0005] To solve the above-mentioned technical problems, the first technical solution adopted by this utility model is as follows:
[0006] An IC chip is provided with a current setting pin, a first color temperature setting pin, a second color temperature setting pin, a third color temperature setting pin, a power-down detection pin, a first LED current output pin, and a second LED current output pin. The IC chip internally includes a timer module, a first analog-to-digital converter module, a second analog-to-digital converter module, a third analog-to-digital converter module, a processing module, a reference generation module, a comparator module, operational amplifier AMP1, operational amplifier AMP2, MOSFET Q1, and MOSFET Q2.
[0007] The processing module is electrically connected to the timer module, the first analog-to-digital converter module, the second analog-to-digital converter module, the third analog-to-digital converter module, and the comparator module. The input terminal of the reference generation module is electrically connected to the current setting pin, the first pulse width modulation output terminal of the timer module, and the second pulse width modulation output terminal of the timer module. The output terminal of the reference generation module is electrically connected to the non-inverting input terminal of operational amplifier AMP1 and the non-inverting input terminal of operational amplifier AMP2. The output terminal of operational amplifier AMP1 is electrically connected to the gate of MOSFET Q1, and the output terminal of operational amplifier AMP2 is electrically connected to the gate of MOSFET Q2. The gates are electrically connected; the inverting input of operational amplifier AMP1 is electrically connected to the source of MOSFET Q1; the inverting input of operational amplifier AMP2 is electrically connected to the source of MOSFET Q2; the drain of MOSFET Q1 is electrically connected to the first LED current output pin; the drain of MOSFET Q2 is electrically connected to the second LED current output pin; the comparator module is electrically connected to the power-down detection pin; the first analog-to-digital converter module is electrically connected to the first color temperature setting pin; the second analog-to-digital converter module is electrically connected to the second color temperature setting pin; and the third analog-to-digital converter module is electrically connected to the third color temperature setting pin.
[0008] The second technical solution adopted in this utility model is:
[0009] A multi-color temperature switching circuit includes a first rectifier module, a silicon controlled rectifier dimming constant current module, a first load module, resistors R201, R202, R203, R204, and the aforementioned IC chip.
[0010] The current setting pin of the IC chip is electrically connected to one end of resistor R201. The other end of resistor R201 is electrically connected to the SCR dimming constant current module, one end of resistor R202, one end of resistor R203, and one end of resistor R204. The other end of resistor R202 is electrically connected to the first color temperature setting pin of the IC chip. The other end of resistor R203 is electrically connected to the second color temperature setting pin. The other end of resistor R204 is electrically connected to the third color temperature setting pin. The first LED current output pin and the second LED current output pin of the IC chip are both electrically connected to the first load module. The power-down detection pin of the IC chip is electrically connected to the first rectifier module and the SCR dimming constant current module.
[0011] The third technical solution adopted in this utility model is:
[0012] A multi-color temperature switching circuit includes a second rectifier module, a second load module, resistors R301, R302, R303, and R304, and the aforementioned IC chip.
[0013] The current setting pin of the IC chip is electrically connected to one end of resistor R301. The other end of resistor R301 is electrically connected to the second rectifier module, one end of resistor R302, one end of resistor R303, and one end of resistor R304. The other end of resistor R302 is electrically connected to the first color temperature setting pin of the IC chip. The other end of resistor R303 is electrically connected to the second color temperature setting pin. The other end of resistor R304 is electrically connected to the third color temperature setting pin. The first LED current output pin and the second LED current output pin of the IC chip are both electrically connected to the second load module. The power-down detection pin of the IC chip is electrically connected to the second rectifier module.
[0014] The beneficial effects of this utility model are as follows:
[0015] The IC chip in this solution internally includes a timer module, a first analog-to-digital converter (ADC) module, a second analog-to-digital converter (ADC) module, a third analog-to-digital converter (ADC) module, a processing module, a reference generation module, a comparator module, operational amplifiers AMP1 and AMP2, and MOSFETs Q1 and Q2. The timer module executes and outputs signals with different duty cycles for PWM1 and PWM2. PWM1 generates the reference voltage for operational amplifier AMP1, and PWM2 generates the reference voltage for operational amplifier AMP2, thereby controlling the current flowing through the first and second LED current output pins, respectively. The first, second, and third ADC modules achieve different duty cycles for PWM1 and PWM2 by detecting the voltages of their corresponding pins. The comparator module detects the wall switch signal from the external device, providing the processing module with information on switching and power-down events. The reference generation module generates the reference voltage for operational amplifier AMP1. The reference voltage of operational amplifier AMP1 and AMP2; operational amplifiers AMP1 and AMP2 are used to control the conduction of MOSFETs Q1 and Q2 to control the LED current value flowing through the first LED current output pin and the second LED current output pin; this solution achieves dimming and multi-color temperature switching functions through the timer module, first analog-to-digital conversion module, second analog-to-digital conversion module, third analog-to-digital conversion module, processing module, reference generation module, comparator module, operational amplifiers AMP1 and AMP2, MOSFETs Q1 and Q2, and the current setting pin, first color temperature status setting pin, second color temperature status setting pin, third color temperature status setting pin, power-down detection pin, first LED current output pin and second LED current output pin set on the IC chip. This makes the IC chip of this solution compatible with the SCR dimming function and can also realize multi-color temperature switching. Attached Figure Description
[0016] Figure 1 This is a schematic diagram of the IC chip structure of this utility model;
[0017] Figure 2 This is a circuit diagram of the multi-color temperature switching circuit of this utility model;
[0018] Figure 3 This is another circuit diagram of the multi-color temperature switching circuit of this utility model;
[0019] Label Explanation:
[0020] 1. Flash storage module; 2. Timer module; 3. First analog-to-digital converter module; 4. Second analog-to-digital converter module; 5. Third analog-to-digital converter module; 6. Processing module; 7. Reference generation module; 8. Comparator module; 9. Power supply module; 10. RAM storage module. Detailed Implementation
[0021] To explain in detail the technical content, objectives, and effects of this utility model, the following description is provided in conjunction with the embodiments and accompanying drawings.
[0022] Please refer to Figure 1 The first technical solution adopted by this utility model is:
[0023] An IC chip is provided with a current setting pin, a first color temperature setting pin, a second color temperature setting pin, a third color temperature setting pin, a power-down detection pin, a first LED current output pin, and a second LED current output pin. The IC chip internally includes a timer module, a first analog-to-digital converter module, a second analog-to-digital converter module, a third analog-to-digital converter module, a processing module, a reference generation module, a comparator module, operational amplifier AMP1, operational amplifier AMP2, MOSFET Q1, and MOSFET Q2.
[0024] The processing module is electrically connected to the timer module, the first analog-to-digital converter module, the second analog-to-digital converter module, the third analog-to-digital converter module, and the comparator module. The input terminal of the reference generation module is electrically connected to the current setting pin, the first pulse width modulation output terminal of the timer module, and the second pulse width modulation output terminal of the timer module. The output terminal of the reference generation module is electrically connected to the non-inverting input terminal of operational amplifier AMP1 and the non-inverting input terminal of operational amplifier AMP2. The output terminal of operational amplifier AMP1 is electrically connected to the gate of MOSFET Q1, and the output terminal of operational amplifier AMP2 is electrically connected to the gate of MOSFET Q2. The gates are electrically connected; the inverting input of operational amplifier AMP1 is electrically connected to the source of MOSFET Q1; the inverting input of operational amplifier AMP2 is electrically connected to the source of MOSFET Q2; the drain of MOSFET Q1 is electrically connected to the first LED current output pin; the drain of MOSFET Q2 is electrically connected to the second LED current output pin; the comparator module is electrically connected to the power-down detection pin; the first analog-to-digital converter module is electrically connected to the first color temperature setting pin; the second analog-to-digital converter module is electrically connected to the second color temperature setting pin; and the third analog-to-digital converter module is electrically connected to the third color temperature setting pin.
[0025] As can be seen from the above description, the beneficial effects of this utility model are as follows:
[0026] The IC chip in this solution internally includes a timer module, a first analog-to-digital converter (ADC) module, a second analog-to-digital converter (ADC) module, a third analog-to-digital converter (ADC) module, a processing module, a reference generation module, a comparator module, operational amplifiers AMP1 and AMP2, and MOSFETs Q1 and Q2. The timer module executes and outputs signals with different duty cycles for PWM1 and PWM2. PWM1 generates the reference voltage for operational amplifier AMP1, and PWM2 generates the reference voltage for operational amplifier AMP2, thereby controlling the current flowing through the first and second LED current output pins, respectively. The first, second, and third ADC modules achieve different duty cycles for PWM1 and PWM2 by detecting the voltages of their corresponding pins. The comparator module detects the wall switch signal from the external device, providing the processing module with information on switching and power-down events. The reference generation module generates the reference voltage for operational amplifier AMP1. The reference voltage of operational amplifier AMP1 and AMP2; operational amplifiers AMP1 and AMP2 are used to control the conduction of MOSFETs Q1 and Q2 to control the LED current value flowing through the first LED current output pin and the second LED current output pin; this solution achieves dimming and multi-color temperature switching functions through the timer module, first analog-to-digital conversion module, second analog-to-digital conversion module, third analog-to-digital conversion module, processing module, reference generation module, comparator module, operational amplifiers AMP1 and AMP2, MOSFETs Q1 and Q2, and the current setting pin, first color temperature status setting pin, second color temperature status setting pin, third color temperature status setting pin, power-down detection pin, first LED current output pin and second LED current output pin set on the IC chip. This makes the IC chip of this solution compatible with the SCR dimming function and can also realize multi-color temperature switching.
[0027] Furthermore, the IC chip also includes a resistor R3. One end of the resistor R3 is electrically connected to the inverting input of the operational amplifier AMP1 and the source of the MOS transistor Q1, respectively, and the other end of the resistor R3 is grounded.
[0028] As can be seen from the above description, the current i of the first LED current output pin flows to GND after passing through resistor R3. Resistor R3 is connected to the inverting input terminal of operational amplifier AMP1 as the sampling resistor of the current i. As can be seen from the virtual short of the amplifier, when the reference voltage Vref output by the reference generation module is adjusted to the operational amplifier AMP1, the current i of the first LED current output pin can be adjusted, so that i*R3=Vref.
[0029] Furthermore, the IC chip also includes a resistor R4, one end of which is electrically connected to the inverting input of the operational amplifier AMP2 and the source of the MOS transistor Q2, and the other end of which is grounded.
[0030] As described above, the current i from the second LED current output pin flows to GND after passing through resistor R4. Resistor R4 serves as the sampling resistor for this current i and is connected to the inverting input of operational amplifier AMP2. As can be seen from the amplifier's virtual short, adjusting the reference voltage Vref output by the reference generation module to operational amplifier AMP2 can adjust the current i from the second LED current output pin, ultimately making i*R4=Vref.
[0031] Furthermore, the IC chip also includes resistors R1 and R2. The comparator module is electrically connected to one end of resistor R1 and one end of resistor R2, respectively. The other end of resistor R1 is electrically connected to the power-down detection pin, and the other end of resistor R2 is grounded.
[0032] As can be seen from the above description, since the power failure detection pin is a high voltage pin, a low voltage is obtained by voltage division through resistors R1 and R2 in series, and then given to the comparator module to determine whether the line is connected to the dimmer and the phase angle of the dimmer.
[0033] Furthermore, the IC chip is also provided with a high-voltage power supply pin, and the IC chip is also provided with a power supply module, which is electrically connected to the high-voltage power supply pin, the Flash storage module, the timer module and the processing module respectively.
[0034] As can be seen from the above description, the RAM storage module is used to cache temporary data.
[0035] The second technical solution adopted in this utility model is:
[0036] A multi-color temperature switching circuit includes a first rectifier module, a silicon controlled rectifier dimming constant current module, a first load module, resistors R201, R202, R203, R204, and the aforementioned IC chip.
[0037] The current setting pin of the IC chip is electrically connected to one end of resistor R201. The other end of resistor R201 is electrically connected to the SCR dimming constant current module, one end of resistor R202, one end of resistor R203, and one end of resistor R204. The other end of resistor R202 is electrically connected to the first color temperature setting pin of the IC chip. The other end of resistor R203 is electrically connected to the second color temperature setting pin. The other end of resistor R204 is electrically connected to the third color temperature setting pin. The first LED current output pin and the second LED current output pin of the IC chip are both electrically connected to the first load module. The power-down detection pin of the IC chip is electrically connected to the first rectifier module and the SCR dimming constant current module.
[0038] Furthermore, the thyristor dimming constant current module includes a chip IC1. The dimmer access detection pin of the chip IC1 is electrically connected to the first rectifier module and the power-down detection pin of the IC chip, respectively. The drain pin of the chip IC1 is electrically connected to the other end of resistor R201, one end of resistor R202, one end of resistor R203, and one end of resistor R204, respectively.
[0039] Furthermore, the thyristor dimming constant current module also includes a resistor R104 and an electrolytic capacitor E1. One end of the resistor R104 is electrically connected to the VD pin of the chip IC1, and the other end of the resistor R104 is electrically connected to one end of the electrolytic capacitor E1, the drain pin of the chip IC1, the other end of the resistor R201, one end of the resistor R202, one end of the resistor R203, and one end of the resistor R204. The other end of the electrolytic capacitor E1 is electrically connected to the first rectifier module, the high-voltage power supply pin of the IC chip, and the first load module.
[0040] Furthermore, the thyristor dimming constant current module also includes resistors R105, R106, and R107. One end of resistor R105 is electrically connected to the first current detection pin of chip IC1. The other end of resistor R105 is electrically connected to one end of resistor R106, one end of resistor R107, and the second current detection pin of chip IC1, respectively. The other end of resistor R106 is electrically connected to the first rectifier module and the other end of resistor R107, and the other ends of resistors R106 and R107 are both grounded.
[0041] The third technical solution adopted in this utility model is:
[0042] A multi-color temperature switching circuit includes a second rectifier module, a second load module, resistors R301, R302, R303, and R304, and the aforementioned IC chip.
[0043] The current setting pin of the IC chip is electrically connected to one end of resistor R301. The other end of resistor R301 is electrically connected to the second rectifier module, one end of resistor R302, one end of resistor R303, and one end of resistor R304. The other end of resistor R302 is electrically connected to the first color temperature setting pin of the IC chip. The other end of resistor R303 is electrically connected to the second color temperature setting pin. The other end of resistor R304 is electrically connected to the third color temperature setting pin. The first LED current output pin and the second LED current output pin of the IC chip are both electrically connected to the second load module. The power-down detection pin of the IC chip is electrically connected to the second rectifier module.
[0044] Please refer to Figure 1 Embodiment 1 of this utility model is as follows:
[0045] An IC chip is provided with a current setting pin (VCS pin), a first color temperature setting pin (CS1 pin), a second color temperature setting pin (CS2 pin), a third color temperature setting pin (CS3 pin), a power-down detection pin (AIN pin), a first LED current output pin (OUT1 pin), and a second LED current output pin (OUT2 pin). The IC chip internally includes a RAM storage module 10, a Flash storage module 1, a timer module 2, a first analog-to-digital converter module 3, a second analog-to-digital converter module 4, a third analog-to-digital converter module 5, a processing module 6, a reference generation module 7, a comparator module 8, an operational amplifier AMP1, an operational amplifier AMP2, a MOSFET Q1, and a MOSFET Q2.
[0046] The processing module 6 is electrically connected to the RAM storage module 10, Flash storage module 1, timer module 2, first analog-to-digital converter module 3, second analog-to-digital converter module 4, third analog-to-digital converter module 5, and comparator module 8, respectively. The RAM storage module 10 is electrically connected to the Flash storage module 1 and timer module 2, respectively. The input terminal of the reference generation module 7 is electrically connected to the current setting pin, the first pulse width modulation output terminal and the second pulse width modulation output terminal of the timer module 2, respectively. The output terminal of the reference generation module 7 is electrically connected to the non-inverting input terminal of operational amplifier AMP1 and the non-inverting input terminal of operational amplifier AMP2, respectively. The output terminal of operational amplifier AMP1 is connected to the MOS transistor Q. The gate of 1 is electrically connected; the output of operational amplifier AMP2 is electrically connected to the gate of MOS transistor Q2; the inverting input of operational amplifier AMP1 is electrically connected to the source of MOS transistor Q1; the inverting input of operational amplifier AMP2 is electrically connected to the source of MOS transistor Q2; the drain of MOS transistor Q1 is electrically connected to the first LED current output pin; the drain of MOS transistor Q2 is electrically connected to the second LED current output pin; the comparator module 8 is electrically connected to the power-down detection pin; the first analog-to-digital converter module 3 is electrically connected to the first color temperature setting pin; the second analog-to-digital converter module 4 is electrically connected to the second color temperature setting pin; and the third analog-to-digital converter module 5 is electrically connected to the third color temperature setting pin.
[0047] Power is supplied to the internal modules of the IC chip through a high-voltage power supply pin (i.e., HV pin);
[0048] The wall switch is powered down by a comparator function of a power-down detection pin (i.e., AIN pin), which, together with the pre-programmed program, enables the color temperature cycle switching state and the color temperature memory function after the light is turned off.
[0049] By connecting a current setting pin (i.e., VCS pin) to ground with a resistor, the maximum current of the IC chip's OUT1 and OUT2 pins can be set, which is the initial reference current.
[0050] The color temperature of the three intermediate states is adjusted by connecting resistors to ground (CS1 / CS2 / CS3) on three CS pins (CS1, CS2, and CS3 respectively) to prevent color temperature deviation caused by junction voltage and luminous efficacy deviation of white and yellow LEDs. This solution uses three ADC modules (first analog-to-digital conversion module 3, second analog-to-digital conversion module 4, and third analog-to-digital conversion module 5) to detect the pin voltage and output different PWM1 / PWM2 duty cycles to change the reference voltage and control the current ratio of OUT1 / OUT2 pins.
[0051] Yellow light or white light current flows into the first LED current output pin and the second LED current output pin, respectively;
[0052] The RAM storage module 10 and Flash storage module 1 are used to store data such as programs and the PWM1 / PWM2 states of the MCU before power failure.
[0053] The timer module 2 is used to execute output signals with different duty cycles of PWM1 / PWM2. PWM1 generates AMP1 reference, and PWM2 generates AMP2 reference, thereby controlling the current flowing through the OUT1 pin (yellow light, 2700K color temperature, LEDs W1-W8) and the OUT2 pin (white light, 5000K color temperature, LEDs A1-A8) respectively, to achieve constant current of the LEDs. The internal circuitry of the timer module 2 may include devices and circuits already used in the MCU field, such as counters, control registers, clock circuits, interrupt circuits, and output circuits.
[0054] The first analog-to-digital converter module 3, the second analog-to-digital converter module 4, and the third analog-to-digital converter module 5 implement different PWM1 and PWM2 duty cycles by detecting the corresponding pin voltages. The internal circuitry of the first analog-to-digital converter module 3, the second analog-to-digital converter module 4, and the third analog-to-digital converter module 5 may include devices and circuits already used in the MCU field, such as analog input circuits, sample-and-hold circuits, analog-to-digital converter units, logic control circuits, and digital output circuits.
[0055] The comparator module 8 is used to detect the wall switch signal of the peripheral device, so that the processing module 6 can read the switch and power failure information.
[0056] The processing module 6 is used to execute programs, process switch detection information, configure timer module 2 data, and finally output the set PWM1 / PWM2 signals.
[0057] The reference generation module 7 is used to generate reference voltages for operational amplifiers AMP1 and AMP2; the reference generation module 7 can be a circuit that has been applied in the chip field in the prior art, such as a bandgap reference circuit or a Zener diode reference circuit.
[0058] The operational amplifiers AMP1 and AMP2 are used to control the conduction level of MOSFETs Q1 and Q2, so as to control the LED current value flowing through the OUT1 pin (i.e., the first LED current output pin) and the OUT2 pin (i.e., the second LED current output pin).
[0059] The IC chip also has a resistor R3 inside. One end of the resistor R3 is electrically connected to the inverting input terminal of the operational amplifier AMP1 and the source of the MOS transistor Q1, respectively, and the other end of the resistor R3 is grounded.
[0060] The IC chip also has a resistor R4 inside. One end of the resistor R4 is electrically connected to the inverting input terminal of the operational amplifier AMP2 and the source terminal of the MOS transistor Q2, respectively, and the other end of the resistor R4 is grounded.
[0061] The IC chip also includes resistors R1 and R2. The comparator module 8 is electrically connected to one end of resistor R1 and one end of resistor R2, respectively. The other end of resistor R1 is electrically connected to the power-down detection pin, and the other end of resistor R2 is grounded.
[0062] The IC chip is also provided with a high-voltage power supply pin (which draws power from the circuit bus to power the various modules inside the IC chip). The IC chip is also provided with a power supply module 9 (which powers the internal modules such as the Flash storage module 1, the timer module 2, and the processing module 6). The power supply module 9 is electrically connected to the high-voltage power supply pin, the Flash storage module 1, the timer module 2, and the processing module 6, respectively.
[0063] Please refer to Figure 2 Embodiment two of this utility model is as follows:
[0064] A multi-color temperature switching circuit includes a first rectifier module, a silicon controlled rectifier dimming constant current module, a first load module, resistors R201, R202, R203, and R204, and the IC chip in Embodiment 1.
[0065] The current setting pin of the IC chip is electrically connected to one end of resistor R201. The other end of resistor R201 is electrically connected to the SCR dimming constant current module, one end of resistor R202, one end of resistor R203, and one end of resistor R204. The other end of resistor R202 is electrically connected to the first color temperature setting pin of the IC chip. The other end of resistor R203 is electrically connected to the second color temperature setting pin. The other end of resistor R204 is electrically connected to the third color temperature setting pin. The first LED current output pin and the second LED current output pin of the IC chip are both electrically connected to the first load module. The power-down detection pin of the IC chip is electrically connected to the first rectifier module and the SCR dimming constant current module.
[0066] The thyristor dimming constant current module includes a chip IC1. The dimmer access detection pin of the chip IC1 is electrically connected to the first rectifier module and the power-down detection pin of the IC chip, respectively. The drain pin of the chip IC1 is electrically connected to the other end of resistor R201, one end of resistor R202, one end of resistor R203 and one end of resistor R204, respectively.
[0067] The thyristor dimming constant current module also includes a resistor R104 and an electrolytic capacitor E1. One end of the resistor R104 is electrically connected to the VD pin of the chip IC1. The other end of the resistor R104 is electrically connected to one end of the electrolytic capacitor E1, the drain pin of the chip IC1, the other end of the resistor R201, one end of the resistor R202, one end of the resistor R203, and one end of the resistor R204. The other end of the electrolytic capacitor E1 is electrically connected to the first rectifier module, the high-voltage power supply pin of the IC chip, and the first load module.
[0068] The thyristor dimming constant current module also includes resistors R105, R106, and R107. One end of resistor R105 is electrically connected to the first current detection pin of chip IC1. The other end of resistor R105 is electrically connected to one end of resistor R106, one end of resistor R107, and the second current detection pin of chip IC1. The other end of resistor R106 is electrically connected to the first rectifier module and the other end of resistor R107, and the other ends of resistors R106 and R107 are both grounded.
[0069] The first rectifier module includes a fuse resistor F1, a varistor RV1, a rectifier bridge BR1, a diode D1, and an electrolytic capacitor E1;
[0070] The first load module includes LEDs W1-W8 and LEDs A1-A8;
[0071] Chip IC1 is a commercially available standard SCR dimming IC chip. The TRIAC pin (drain pin) of chip IC1 detects whether a dimmer is connected, and the VIN pin of chip IC1 draws drain current to reliably turn on the dimmer. Resistors R106 and R107 are used to set the maximum current of the entire lamp, i.e., the IC chip (i.e.,...) Figure 2 The maximum current output from the OUT1 and OUT2 pins (represented by U1 in the text) is the sum of their outputs.
[0072] IC chip (i.e.) Figure 2 The circuit (represented by U1) is connected in series in the load module. The VIN pin of the IC1 chip is connected to the positive output of the rectifier bridge to detect the wall switch signal. The program controls the current ratio of the OUT1 and OUT2 pins of the IC chip, thereby controlling the color temperature.
[0073] The color temperature values for states two, three, and four are adjusted by using the resistance values of resistors R202, R203, and R204. A detailed analysis follows:
[0074] Taking a five-state (i.e., five color temperature) transition cycle as an example:
[0075] State 1: 2700K; State 2: 3000K; State 3: 3500K; State 4: 4000K; State 5: 5000K;
[0076] In state one, the fixed duty cycle is: PWM1=100%, PWM2=0% (only yellow light is on, i.e., 2700K).
[0077] State 5 has the following fixed duty cycles: PWM1=0%, PWM2=100% (only white light is on, i.e., 5000K).
[0078] State 2 sets the duty cycle by taking different resistance values for resistor R202, as shown in Table 1 below:
[0079]
[0080] Table 1
[0081] If the value is 3KΩ, then PWM1 = 87% duty cycle and PWM2 = 13% duty cycle. Under the condition that the voltage and luminous efficiency of white light and yellow light are exactly the same, the theoretical color temperature after color mixing is: 2700*87%+5000*13%=3000K. If the junction voltage or luminous efficiency of the two LEDs are different, the color temperature after color mixing may deviate from the theoretical value of 3000K. In this case, the value of resistor R202 can be changed according to the table to change the duty cycle of PWM1 and PWM2, so as to make the color temperature more accurate and closer to the target color temperature.
[0082] Similarly, the theoretical value of resistor R203 is 3KΩ, and the value is taken according to Table 2 (corresponding to different PWM1 / PWM2 duty cycles to adjust the color temperature).
[0083]
[0084] Table 2
[0085] Similarly, the theoretical value of resistor R204 is 3KΩ, and the value is varied according to Table 3 to output different PWM1 / PWM2 duty cycles to adjust the color temperature;
[0086]
[0087] Table 3
[0088] After setting the resistance value of each resistor, if the program is set to switch on or off three times within three seconds, the entire light will enter a cycle of states 1-5. When it jumps to the user's preferred state, such as state 3, the power is turned off. After that, the light will remain on in state 3 at any time when it is powered on again. Unless the operation of switching on or off three times within three seconds is repeated, the light will remain on in state 3.
[0089] Please refer to Figure 3 Embodiment three of this utility model is as follows:
[0090] A multi-color temperature switching circuit includes a second rectifier module, a second load module, resistors R301, R302, R303, and R304, and the IC chip in Embodiment 1.
[0091] The current setting pin of the IC chip is electrically connected to one end of resistor R301. The other end of resistor R301 is electrically connected to the second rectifier module, one end of resistor R302, one end of resistor R303, and one end of resistor R304. The other end of resistor R302 is electrically connected to the first color temperature setting pin of the IC chip. The other end of resistor R303 is electrically connected to the second color temperature setting pin. The other end of resistor R304 is electrically connected to the third color temperature setting pin. The first LED current output pin and the second LED current output pin of the IC chip are both electrically connected to the second load module. The power-down detection pin of the IC chip is electrically connected to the second rectifier module.
[0092] The second rectifier module includes a rectifier bridge BR2, a fuse resistor F2, a varistor RV2, a diode D2, and an electrolytic capacitor E2;
[0093] The second load module includes LEDs W11-W18 and LEDs A11-A18;
[0094] Electrolytic capacitor E2 is used as a conventional post-bridge filter electrolytic capacitor, and the filtered power is directly supplied to the IC chip;
[0095] The IC chip sets the maximum current output of the OUT1 and OUT2 pins by resistor R301, and adjusts the color temperature values of states two, three, and four by resistors R302, R303, and R304.
[0096] To achieve accurate power-down detection, diode D2 is used to electrolytically isolate rectifier bridge BR2 and electrolytic capacitor E2, and the AIN pin of the IC chip (i.e., the power-down detection pin) draws power from the positive output terminal of rectifier bridge BR2.
[0097] In summary, this utility model provides an IC chip and a multi-color temperature switching circuit. The IC chip internally includes a RAM storage module, a Flash storage module, a timer module, a first analog-to-digital converter module, a second analog-to-digital converter module, a third analog-to-digital converter module, a processing module, a reference generation module, a comparator module, operational amplifiers AMP1 and AMP2, and MOSFETs Q1 and Q2. The RAM and Flash storage modules store the program and the PWM1 and PWM2 states before the MCU is powered off. The timer module executes and outputs signals with different duty cycles for PWM1 and PWM2. PWM1 generates a reference voltage for operational amplifier AMP1, and PWM2 generates a reference voltage for operational amplifier AMP2, thereby controlling the current flowing through the first LED current output pin and the second LED current output pin, respectively. The first, second, and third analog-to-digital converter modules detect the voltage of their corresponding pins to achieve different duty cycles for PWM1 and PWM2. The comparator module detects the wall of the peripheral device. The switching signal is used by the processing module to read the switching and power-down information; the reference generation module is used to generate the reference voltage for operational amplifiers AMP1 and AMP2; operational amplifiers AMP1 and AMP2 are used to control the conduction level of MOSFETs Q1 and Q2 to control the LED current value flowing through the first LED current output pin and the second LED current output pin; this solution achieves dimming and multi-color temperature switching functions through the Flash storage module, timer module, first analog-to-digital converter module, second analog-to-digital converter module, third analog-to-digital converter module, processing module, reference generation module, comparator module, operational amplifiers AMP1 and AMP2, MOSFETs Q1 and Q2, and the current setting pins, first color temperature status setting pin, second color temperature status setting pin, third color temperature status setting pin, power-down detection pin, first LED current output pin, and second LED current output pin set on the IC chip. This allows the IC chip in this solution to be compatible with the SCR dimming function and to achieve multi-color temperature switching.
[0098] The above description is merely an embodiment of this utility model and does not limit the patent scope of this utility model. Any equivalent modifications made based on the content of this utility model specification and drawings, or direct or indirect applications in related technical fields, are similarly included within the patent protection scope of this utility model.
Claims
1. An IC chip, characterized in that, The IC chip is equipped with a current setting pin, a first color temperature setting pin, a second color temperature setting pin, a third color temperature setting pin, a power-down detection pin, a first LED current output pin, and a second LED current output pin. The IC chip internally includes a timer module, a first analog-to-digital converter module, a second analog-to-digital converter module, a third analog-to-digital converter module, a processing module, a reference generation module, a comparator module, operational amplifier AMP1, operational amplifier AMP2, MOSFET Q1, and MOSFET Q2. The processing module is electrically connected to the timer module, the first analog-to-digital converter module, the second analog-to-digital converter module, the third analog-to-digital converter module, and the comparator module. The input terminal of the reference generation module is electrically connected to the current setting pin, the first pulse width modulation output terminal of the timer module, and the second pulse width modulation output terminal of the timer module. The output terminal of the reference generation module is electrically connected to the non-inverting input terminal of operational amplifier AMP1 and the non-inverting input terminal of operational amplifier AMP2. The output terminal of operational amplifier AMP1 is electrically connected to the gate of MOSFET Q1, and the output terminal of operational amplifier AMP2 is electrically connected to the gate of MOSFET Q2. The gates are electrically connected; the inverting input of operational amplifier AMP1 is electrically connected to the source of MOSFET Q1; the inverting input of operational amplifier AMP2 is electrically connected to the source of MOSFET Q2; the drain of MOSFET Q1 is electrically connected to the first LED current output pin; the drain of MOSFET Q2 is electrically connected to the second LED current output pin; the comparator module is electrically connected to the power-down detection pin; the first analog-to-digital converter module is electrically connected to the first color temperature setting pin; the second analog-to-digital converter module is electrically connected to the second color temperature setting pin; and the third analog-to-digital converter module is electrically connected to the third color temperature setting pin.
2. The IC chip according to claim 1, characterized in that, The IC chip also has a resistor R3 inside. One end of the resistor R3 is electrically connected to the inverting input terminal of the operational amplifier AMP1 and the source of the MOS transistor Q1, respectively, and the other end of the resistor R3 is grounded.
3. The IC chip according to claim 1, characterized in that, The IC chip also has a resistor R4 inside. One end of the resistor R4 is electrically connected to the inverting input terminal of the operational amplifier AMP2 and the source terminal of the MOS transistor Q2, respectively, and the other end of the resistor R4 is grounded.
4. The IC chip according to claim 1, characterized in that, The IC chip also includes resistors R1 and R2. The comparator module is electrically connected to one end of resistor R1 and one end of resistor R2, respectively. The other end of resistor R1 is electrically connected to the power-down detection pin, and the other end of resistor R2 is grounded.
5. The IC chip according to claim 1, characterized in that, The IC chip is also provided with a high-voltage power supply pin, and the IC chip is also provided with a power supply module. The power supply module is electrically connected to the high-voltage power supply pin, the timer module and the processing module respectively.
6. The IC chip according to claim 1, characterized in that, The IC chip also includes a RAM storage module and a Flash storage module. The RAM storage module is electrically connected to the Flash storage module, the timer module, and the processing module, respectively. The Flash storage module is electrically connected to the processing module.
7. A multi-color temperature switching circuit, characterized in that, It includes a first rectifier module, a silicon controlled rectifier dimming constant current module, a first load module, resistors R201, R202, R203, and R204, and an IC chip according to any one of claims 1-6; The current setting pin of the IC chip is electrically connected to one end of resistor R201. The other end of resistor R201 is electrically connected to the SCR dimming constant current module, one end of resistor R202, one end of resistor R203, and one end of resistor R204. The other end of resistor R202 is electrically connected to the first color temperature setting pin of the IC chip. The other end of resistor R203 is electrically connected to the second color temperature setting pin. The other end of resistor R204 is electrically connected to the third color temperature setting pin. The first LED current output pin and the second LED current output pin of the IC chip are both electrically connected to the first load module. The power-down detection pin of the IC chip is electrically connected to the first rectifier module and the SCR dimming constant current module.
8. The multi-color temperature switching circuit according to claim 7, characterized in that, The thyristor dimming constant current module includes a chip IC1. The dimmer access detection pin of the chip IC1 is electrically connected to the first rectifier module and the power-down detection pin of the IC chip, respectively. The drain pin of the chip IC1 is electrically connected to the other end of resistor R201, one end of resistor R202, one end of resistor R203 and one end of resistor R204, respectively.
9. The multi-color temperature switching circuit according to claim 8, characterized in that, The thyristor dimming constant current module also includes resistors R105, R106, and R107. One end of resistor R105 is electrically connected to the first current detection pin of chip IC1. The other end of resistor R105 is electrically connected to one end of resistor R106, one end of resistor R107, and the second current detection pin of chip IC1. The other end of resistor R106 is electrically connected to the first rectifier module and the other end of resistor R107, and the other ends of resistors R106 and R107 are both grounded.
10. A multi-color temperature switching circuit, characterized in that, It includes a second rectifier module, a second load module, resistors R301, R302, R303, and R304, and an IC chip according to any one of claims 1-6; The current setting pin of the IC chip is electrically connected to one end of resistor R301. The other end of resistor R301 is electrically connected to the second rectifier module, one end of resistor R302, one end of resistor R303, and one end of resistor R304. The other end of resistor R302 is electrically connected to the first color temperature setting pin of the IC chip. The other end of resistor R303 is electrically connected to the second color temperature setting pin. The other end of resistor R304 is electrically connected to the third color temperature setting pin. The first LED current output pin and the second LED current output pin of the IC chip are both electrically connected to the second load module. The power-down detection pin of the IC chip is electrically connected to the second rectifier module.