A colorful light control circuit and control method thereof

The MCU controls the occupancy ratio of the four-color lamp module, combined with the voltage regulator and filter circuit, the error problem caused by the frequency offset of the seven-color lamp control chip is solved, and uniform transformation of seven colors and excellent lighting effects are achieved.

CN108282932BActive Publication Date: 2025-01-03XIAMEN XUNHENG ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201810236539.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-03-21
Publication Date
2025-01-03
Estimated Expiration
2038-03-21

AI Technical Summary

Technical Problem

The existing control chip of colorful lights uses simple RC oscillation, resulting in a large frequency offset. The color change cycle error is large when multiple colorful lights work at the same time, and the lighting effect is not good.

Method used

The MCU is used to control the occupancy ratio of the four-color lamp module. Through the B1 switch, voltage regulator, filter circuit, Q1-Q4 transistor and bias resistor, the seven colors are transformed, combined with the switching power supply module and the battery module to prevent miscellaneous Wave interference and excessive current.

Benefits of technology

It realizes a simpler control method and excellent lighting effect, ensures the normal operation of the MCU, avoids abnormalities caused by oscillation and excessive current, and displays seven colors such as red, green, blue, warm light, orange, purple, and pink.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN108282932B_ABST
    Figure CN108282932B_ABST
Patent Text Reader

Abstract

The present invention discloses a seven-color lamp control circuit, including a switch power module, a battery module and a control module, wherein the battery module is connected to the switch power module, the switch power module and the battery module are both connected to the control module, the control module is connected to the LED four-color lamp module, and the control module includes a B1 switch, a voltage stabilizer, a filter circuit, an MCU, a Q1 transistor, a Q2 transistor, a Q3 transistor and a Q4 transistor, four bias resistors and a B2 switch. The present invention also discloses a control method for controlling the conversion of seven colors by using an MCU to control the occupancy ratio of the four-color lamp module PWM, wherein the control method is simpler and has a good lighting effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a control circuit, which is a colorful light control circuit and a control method thereof. Background Art

[0002] Colorful lights are LED lights that can emit seven colors after being powered on. In order to ensure uniform light, the control chip of existing colorful lights uses simple RC oscillation, and the internal frequency offset of the control chip is large. When multiple colorful lights work at the same time, each color change cycle will produce a certain error, and the lighting effect is not good.

[0003] Invention patent 201510090658.0 discloses a method and device for controlling colorful lights, and discloses adjusting and controlling the colorful lights through a PWM (pulse width modulation) method. The control method is complex and the specific control circuit structure is not disclosed. Summary of the invention

[0004] The purpose of the present invention is to provide a seven-color light control circuit and a control method thereof, which controls the space ratio of the four-color light module by MCU to realize the change of seven colors. To achieve the above purpose, the present invention adopts the following technical solutions:

[0005] A colorful light control circuit includes a switching power supply module, a battery module and a control module, wherein the battery module is connected to the switching power supply module, and the switching power supply module and the battery module are both connected to the control module. The invention is characterized in that: the control module is connected to an LED four-color light module, and the control module includes a B1 switch, a voltage stabilizer, a filter circuit, an MCU, a Q1 transistor, a Q2 transistor, a Q3 transistor and a Q4 transistor, four bias resistors and a B2 switch. The B1 switch is connected to the voltage regulator, and the voltage regulator outputs a stable voltage to the MCU. The filter circuit is connected to the MCU to prevent clutter from interfering with the operation of the MCU. The VCC pin of the MCU is connected to the voltage regulator, and the GND pin is connected to the ground. Five groups of control pins respectively control the base of the Q1 transistor, the base of the Q2 transistor, the base of the Q3 transistor, the base of the Q4 transistor and the B2 switch. The B2 switch is a color switching switch, and the other end of the B2 switch is connected to the LED four-color lamp module; the LED four-color lamp module is a red light module, a green light module, a blue light module and a warm light module, one end of which is connected to the switching power supply module and the battery module through the B1 switch, and the other end is respectively connected to the collector of the Q1~Q4 transistors; one end of the four bias resistors is respectively connected to the base of the Q1~Q4 transistors, and the other end is connected to the ground; the emitter of the Q1~Q4 transistors is connected to the ground.

[0006] Among them, the LED four-color lamp module is composed of six LED lamp groups connected together, and each LED lamp group is equipped with four color lamp beads: red light lamp beads, green light lamp beads, blue light lamp beads and warm light lamp beads. Each color lamp beads are divided into two groups, three in each group are connected in series, and the two groups are connected in parallel. The red light lamp beads are connected to form a red light module, the green light lamp beads are connected to form a green light module, the blue light lamp beads are connected to form a blue light module, and the warm light lamp beads are connected to form a warm light module.

[0007] It also includes four current-limiting resistors, which are respectively connected in series with the red light module, the green light module, the blue light module and the warm light module.

[0008] Furthermore, it also includes four groups of driving resistors, which are respectively arranged between the bases of Q1 to Q4 and the control pins of the MCU. It also includes a current limiting resistor R21 for preventing the MCU from abnormal due to excessive current, which is arranged between the voltage stabilizer and the MCU.

[0009] Among them, the switching power supply module includes an AC input circuit, a rectifier bridge circuit, an EMI filter circuit and an AC-DC conversion circuit connected in sequence. The AC input is converted into a DC regulated power output through the EMI filter circuit, the rectifier filter circuit and the AC-DC conversion circuit.

[0010] The AC-DC conversion circuit includes a transformer, an IC chip, a diode, a clamping voltage circuit, and a peak absorption circuit. The transformer generates converted AC energy on the transformer and couples it to the secondary through the control of the IC chip. The IC chip is connected to the diode. The diode auxiliary winding rectifies to provide the IC working voltage. One end of the clamping voltage circuit is connected to the IC chip and the other end is connected to the ground. The peak absorption circuit is used to absorb the peak voltage generated by the transformer.

[0011] Wherein, the battery module includes a battery pack, an anti-backflow diode, a first MOS tube, a first driving resistor, a second MOS tube, and a second driving resistor. The first MOS tube is connected to the switching power supply module through the first driving resistor, and the second MOS tube is connected to the battery pack through the second driving resistor. The anti-backflow diode is unidirectionally connected to the switching power supply module and the battery pack; when the switching power supply module is powered on, the first driving resistor drives the first MOS tube, so that the current driven by the second driving resistor to drive the second MOS tube is short-circuited to the ground, and the second MOS tube is not turned on; when the switching power supply module is not powered on, the first MOS tube is not turned on, and the battery pack current drives the second MOS tube to turn on through the second driving resistor.

[0012] The present invention also discloses a control method for a colorful light control circuit. The colorful light control circuit is as described above. The MCU controls the duty cycle of Q1-Q4 transistors PWM. Q1-Q4 transistors respectively control the red light module, green light module, blue light module and warm light module to display different brightness, thereby displaying seven colors: red, green, blue, warm light, orange, purple and pink.

[0013] Among them, the MCU outputs a voltage with a duty cycle of 100% to turn on the Q1 transistor, and the color of the display light is red; the MCU outputs a voltage with a duty cycle of 100% to turn on the Q2 transistor, and the color of the display light is green; the MCU outputs a voltage with a duty cycle of 100% to turn on the Q3 transistor, and the color of the display light is blue; the MCU outputs a voltage with a duty cycle of 100% to turn on the Q4 transistor, and the color of the display light is warm light; the MCU outputs a voltage with a duty cycle of 100% to turn on the Q1 and Q3 transistors, and the color of the display light is purple; the MCU outputs a voltage with a duty cycle of 100% to turn on the Q1 transistor, an output voltage with a duty cycle of 75% to turn on the Q2 transistor, and an output voltage with a duty cycle of 80% to turn on the Q3 transistor, and the color of the display light is pink; the MCU outputs a voltage with a duty cycle of 93% to turn on the Q1 transistor, an output voltage with a duty cycle of 57% to turn on the Q2 transistor, and an output voltage with a duty cycle of 13% to turn on the Q3 transistor, and the color of the display light is orange.

[0014] Due to the adoption of the above structure, the present invention has the following beneficial effects:

[0015] 1. The present invention uses MCU to control the occupancy ratio of the four-color lamp module to control the change of seven colors. The control method is simpler and the lighting effect is better.

[0016] 2. The control module of the present invention includes a voltage stabilizer to provide a stable voltage for the MCU, and the filter circuit can prevent clutter from interfering with the normal operation of the MCU. The bias resistor is set so that the Q1-Q4 transistors have a basic working current, so that the transistors work in the linear amplification area to avoid abnormal operation.

[0017] 3. The drive resistor is set in the control module of the present invention to suppress oscillation, and the current limiting resistor is set to prevent the MCU from working abnormally due to excessive current. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a circuit diagram of the switching power supply module of the present invention.

[0019] Figure 2 is a circuit diagram of the battery module of the present invention.

[0020] Figure 3 It is a principle block diagram of the battery module of the present invention.

[0021] Figure 4 is a circuit diagram of a control module of the present invention.

[0022] Figure 5 It is a waveform control diagram of PWM of red, green, blue and warm light colors among the seven colors of the present invention.

[0023] Figure 6 It is a PWM waveform control diagram of purple among the seven colors of the present invention.

[0024] Figure 7 It is a PWM waveform control diagram of pink among the seven colors of the present invention.

[0025] Figure 8 It is a PWM waveform control diagram of orange among the seven colors of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0027] like Figure 1 As shown, the present invention discloses a colorful light control circuit to achieve the transformation of seven colors: blue, green, red, warm light, purple, pink, and orange. The colorful light control circuit includes a switching power supply module, a battery module, a control module, and an LED four-color light module. The battery module is connected to the switching power supply module, and the switching power supply module and the battery module are both connected to the control module. Each module is described below.

[0028] 1. Switching power supply module

[0029] like Figure 1 As shown, the switching power supply module includes an AC input circuit, a rectifier bridge circuit, an EMI filter circuit and an AC-DC conversion circuit connected in sequence. The AC-DC conversion circuit includes a transformer, an IC chip, a diode, a clamping voltage circuit and a peak absorption circuit. The switching power supply module is designed using the OB25134 primary feedback IC.

[0030] The L and N ends of the AC input circuit are connected to the mains, and after the L end is connected to the fuse, the AC input is rectified by the rectifier bridge circuit (BR1) to convert the AC input into a DC output. EC1, EC2, L1, and L2 form an EMI filter circuit to obtain a smooth DC output. The transformer TR generates converted AC energy on TR and couples it to the secondary through the control of the IC chip. The peak absorption circuit is composed of D1, R1, R2, and C1, which absorbs the peak voltage generated by the leakage inductance of the transformer TR to prevent the IC built-in MOS tube from breaking down. R3 and R4 are used for current limiting when the IC chip starts, EC3 is used to maintain the working voltage of the IC chip and store energy, the diode D2 is used for the transformer auxiliary winding rectification to provide the IC working voltage, and R10 is a current limiting resistor to prevent the input current from being too large and causing abnormal operation of the IC chip. The clamping voltage circuit is composed of R7, R8, and R8A, one end of which is connected to the IC chip and the other end is connected to the ground, which is used to clamp the output voltage. The capacitor C8 absorbs clutter in the loop and stabilizes the loop. According to the turns ratio of the auxiliary winding and the secondary winding (TR3) and the 2.5V reference voltage of the IC internal FB pin, a negative feedback signal from the secondary to the primary is provided, so that the secondary output obtains a stable voltage. The secondary of the high-frequency transformer TR is rectified into DC by D3, and a stable DC voltage is obtained after filtering and energy storage by EC4 and EC5.

[0031] 2. Battery module

[0032] like Figure 2 As shown, the battery module includes a battery pack, an anti-backflow diode D4, a first MOS tube Q5, a first drive resistor R17, a second MOS tube Q6, and a second drive resistor R20. In addition, it also includes bias resistors R16, R18, and a current limiting resistor R20. The battery pack can be formed by three lithium batteries connected in series. The first MOS tube Q5 is connected to the switching power supply module through the first drive resistor R17. The second MOS tube Q6 is connected to the battery pack through the second drive resistor R20. The anti-backflow diode D4 is unidirectionally connected to the switching power supply module and the battery pack, which can prevent the battery current from flowing back when the battery is full or when the switching power supply module is not powered.

[0033] like Figure 3 As shown, when the switch power module is powered on, the first drive resistor R17 drives the first MOS tube Q5, and at this time, the second drive resistor R20 drives the current of the second MOS tube Q6 to short-circuit to the ground. The second MOS tube Q6 is not turned on, the battery pack does not supply power, and the switch power module supplies power. When the light-on power module is not powered on, the first MOS tube Q5 is not turned on, and the battery pack current drives the second MOS tube Q6 to turn on through the second drive resistor, the battery pack is discharged, and the battery pack supplies power to the LED four-color lamp module.

[0034] 3. Control module

[0035] like Figure 4As shown, the control module is connected to the LED four-color lamp module. The control module includes B1 switch, voltage regulator VR1, filter circuit (C2, C3), MCU, Q1 transistor, Q2 transistor, Q3 transistor and Q4 transistor, four bias resistors (R21, R25, R29, R28), B2 switch, four groups of drive resistors (R23, R24, R26, R27), and current limiting resistor R21. The MCU is programmed with the HT66F002 program.

[0036] The B1 switch is connected to the voltage regulator VR1, and the voltage regulator VR1 outputs a stable voltage to the MCU. The current limiting resistor R21 is set between the voltage regulator VR1 and the MCU to prevent excessive current from causing MCU abnormality. When the B1 switch is turned on, the 12V power supply is turned on and outputs a 5V voltage to the MCU through the voltage regulator VR1. The filter circuit is connected to the MCU to prevent clutter from interfering with the MCU operation.

[0037] The VCC pin of the MCU is connected to the voltage regulator VR1, the GND pin is connected to the ground, and the five control pins are respectively connected to the base of the Q1 transistor, the base of the Q2 transistor, the base of the Q3 transistor, the base of the Q4 transistor and the B2 switch. The B2 switch is a color switching switch, and the other end of the B2 switch is connected to the LED four-color lamp module.

[0038] The LED four-color light module is a red light module L1, a green light module L2, a blue light module L3 and a warm light module L4. One end of the module is connected to the switch power module and the battery module through the B1 switch, and the other end is connected to the collector of the Q1~Q4 transistors. The LED four-color light module is composed of six LED light groups (LED1, LED2, LED3, LED4, LED5, LED6). Each LED light group is equipped with four color lamp beads: red light beads (R), green light beads (G), blue light beads (B) and warm light beads (W). Each color lamp bead is divided into two groups, which are connected in three series and two parallels, that is, three in each group are connected in series, and the two groups are connected in parallel: for example, the red light beads of LED1, LED3, and LED5 are connected in series as one group, and the red light beads of LED2, LED4, and LED6 are connected in series as one group, and then the two groups are associated to form the red light module L1. Similarly, the green light beads are connected to form the green light module L2, the blue light beads are connected to form the blue light module L3, and the warm light beads are connected to form the warm light module L4.

[0039] The red light module L1, the green light module L2, the blue light module L3 and the warm light module L4 are respectively connected in series with four current limiting resistors R34, R33, R31 and R30 to prevent the LED four-color light module from being damaged due to excessive current.

[0040] One end of the bias resistor R21 is connected to the base of the Q1 transistor, and the other end is connected to the ground. One end of the bias resistor R25 is connected to the base of the Q2 transistor, and the other end is connected to the ground. One end of the bias resistor R29 is connected to the base of the Q3 transistor, and the other end is connected to the ground. One end of the bias resistor R28 is connected to the base of the Q4 transistor, and the other end is connected to the ground. The emitters of the Q1~Q4 transistors are connected to the ground. The setting of the four groups of bias resistors enables the four transistors to have a basic operating current, so that the transistors work in the linear amplification area.

[0041] The driving resistor R23 is set between the base of Q1 and the control pin of MCU. The driving resistor R24 ​​is set between the base of Q2 and the control pin of MCU. The driving resistor R26 is set between the base of Q3 and the control pin of MCU. The driving resistor R27 is set between the base of Q4 and the control pin of MCU. The setting of four sets of driving resistors can suppress oscillation and limit current.

[0042] The present invention also discloses a control method of the above circuit: MCU controls the duty cycle of PWM of Q1-Q4 transistors, that is, MCU controls the proportion of the on time of Q1-Q4 transistors relative to the total time within a pulse cycle time of the pulse width modulation (PWM) waveform signal. Q1-Q4 transistors respectively control the red light module, green light module, blue light module and warm light module to display different brightness, thereby displaying seven colors: red, green, blue, warm light color, orange, purple and pink.

[0043] like Figure 5 As shown, to achieve the four colors of red, green, blue and warm light, the MCU only needs to control the corresponding red light module, green light module, blue light module, or warm light module PWM duty cycle to 100%:

[0044] (1) The MCU outputs a voltage with a duty cycle of 100% to turn on the Q1 transistor, and the color of the indicator light is red.

[0045] (2) The MCU outputs a voltage with a duty cycle of 100% to turn on the Q2 transistor, and the color of the indicator light is green.

[0046] (3) The MCU outputs a voltage with a duty cycle of 100% to turn on the Q3 transistor, and the color of the indicator light is blue.

[0047] (4) The MCU outputs a voltage with a duty cycle of 100% to turn on the Q4 transistor, and the color of the display light is warm light.

[0048] like Figure 6 As shown, to achieve bright purple, the MCU outputs a voltage with a duty cycle of 100% to turn on the Q1 and Q3 transistors, and the color of the display light is purple.

[0049] like Figure 7As shown, to realize bright pink light, the MCU outputs a voltage with a duty cycle of 100% to turn on the Q1 transistor, outputs a voltage with a duty cycle of 75% to turn on the Q2 transistor, and outputs a voltage with a duty cycle of 80% to turn on the Q3 transistor, and the color of the display light is pink.

[0050] like Figure 8 As shown, to achieve the orange light, the MCU outputs a voltage with a duty cycle of 93% to turn on the Q1 transistor, outputs a voltage with a duty cycle of 57% to turn on the Q2 transistor, and outputs a voltage with a duty cycle of 13% to turn on the Q3 transistor, and the color of the display light is orange.

[0051] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A control method for a colorful light control circuit, characterized in that: The colorful light control circuit includes a switching power supply module, a battery module and a control module. The battery module is connected to the switching power supply module. The switching power supply module and the battery module are both connected to the control module. The characteristic is that the control module is connected to the LED four-color light module. The control module includes a B1 switch, a voltage stabilizer, a filter circuit, an MCU, a Q1 transistor, a Q2 transistor, a Q3 transistor and a Q4 transistor, four bias resistors and a B2 switch. The B1 switch is connected to the voltage regulator, and the voltage regulator outputs a stable voltage to the MCU. The filter circuit is connected to the MCU to prevent clutter from interfering with the operation of the MCU. The VCC pin of the MCU is connected to the voltage regulator, and the GND pin is connected to the ground. The five groups of control pins respectively control the base of the Q1 transistor, the base of the Q2 transistor, the base of the Q3 transistor, the base of the Q4 transistor and the B2 switch. The B2 switch is a color switching switch, and the other end of the B2 switch is connected to the LED four-color light module; the LED four-color light module is a red light module, a green light module, a blue light module and a warm light module, one end of which is connected to the switching power supply module and the battery module through the B1 switch, and the other end is respectively connected to the collector of the Q1~Q4 transistors; one end of the four bias resistors is respectively connected to the base of the Q1~Q4 transistors, and the other end is connected to the ground; the emitter of the Q1~Q4 transistors is connected to the ground; The LED four-color lamp module is composed of six LED lamp groups connected together, each LED lamp group is provided with four color lamp beads: red light lamp beads, green light lamp beads, blue light lamp beads and warm light lamp beads, each color lamp beads are divided into two groups, three lamp beads in each group are connected in series, and the two groups are connected in parallel. The red light lamp beads are connected to form a red light module, the green light lamp beads are connected to form a green light module, the blue light lamp beads are connected to form a blue light module, and the warm light lamp beads are connected to form a warm light module; It also includes four current-limiting resistors, which are respectively connected in series with the red light module, the green light module, the blue light module and the warm light module; It also includes four groups of driving resistors, which are respectively arranged between the bases of Q1 to Q4 and the control pins of the MCU; The control method is to control the duty cycle of Q1~Q4 transistor PWM through MCU, and Q1~Q4 transistors respectively control the red light module, green light module, blue light module and warm light module to display different brightness, thereby displaying seven colors: red, green, blue, warm light, orange, purple and pink.

2. The control method of the colorful light control circuit as claimed in claim 1, characterized in that: The MCU outputs a voltage with a duty cycle of 100% to turn on the Q1 transistor, and the color of the display light is red; the MCU outputs a voltage with a duty cycle of 100% to turn on the Q2 transistor, and the color of the display light is green; the MCU outputs a voltage with a duty cycle of 100% to turn on the Q3 transistor, and the color of the display light is blue; the MCU outputs a voltage with a duty cycle of 100% to turn on the Q4 transistor, and the color of the display light is warm light; the MCU outputs a voltage with a duty cycle of 100% to turn on the Q1 and Q3 transistors, and the color of the display light is purple; the MCU outputs a voltage with a duty cycle of 100% to turn on the Q1 transistor, a voltage with a duty cycle of 75% to turn on the Q2 transistor, and a voltage with a duty cycle of 80% to turn on the Q3 transistor, and the color of the display light is pink; the MCU outputs a voltage with a duty cycle of 93% to turn on the Q1 transistor, a voltage with a duty cycle of 57% to turn on the Q2 transistor, and a voltage with a duty cycle of 13% to turn on the Q3 transistor, and the color of the display light is orange.

3. The control method of the colorful light control circuit as claimed in claim 1, characterized in that: The control circuit also includes a current limiting resistor R21 for preventing an abnormality of the MCU caused by excessive current, and the current limiting resistor R21 is arranged between the voltage stabilizer and the MCU.

4. The control method of the colorful light control circuit as claimed in claim 1, characterized in that: The switching power supply module includes an AC input circuit, a rectifier bridge circuit, an EMI filter circuit and an AC-DC conversion circuit connected in sequence. The AC input is converted into a DC regulated power output through the EMI filter circuit, the rectifier filter circuit and the AC-DC conversion circuit.

5. The control method of the colorful light control circuit as claimed in claim 4, characterized in that: The AC-DC conversion circuit includes a transformer, an IC chip, a diode, a clamping voltage circuit, and a peak absorption circuit. The transformer generates converted AC energy on the transformer and couples it to the secondary through the control of the IC chip. The IC chip is connected to the diode. The diode auxiliary winding rectifies to provide IC working voltage. One end of the clamping voltage circuit is connected to the IC chip and the other end is connected to the ground. The peak absorption circuit is used to absorb the peak voltage generated by the transformer.

6. The control method of the colorful light control circuit as claimed in claim 1, characterized in that: The battery module comprises a battery pack, an anti-backflow diode, a first MOS tube, a first driving resistor, a second MOS tube, and a second driving resistor. The first MOS tube is connected to the switching power supply module through the first driving resistor, the second MOS tube is connected to the battery pack through the second driving resistor, and the anti-backflow diode is unidirectionally connected to the switching power supply module and the battery pack; when the switching power supply module is powered on, the first driving resistor drives the first MOS tube, so that the current driven by the second driving resistor to drive the second MOS tube is short-circuited to the ground, and the second MOS tube is not turned on; when the switching power supply module is not powered on, the first MOS tube is not turned on, and the battery pack current drives the second MOS tube to turn on through the second driving resistor.