LED light control system
The brightness control unit is adjusted through one PWM interface of the MCU chip to output a PWM signal, realize the brightness control of multiple LED lamps, and control the lighting and extinguishing of the LED lamps through the IO interface, solving the problem of limitations in the PWM interface of the MCU chip, reducing the System costs and increased flexibility, suitable for industries, aircraft, ships and other fields.
Patent Information
- Application Number
- CN202111670113.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2041-12-31
AI Technical Summary
Due to the limitations of the PWM interface of the MCU chip, the existing LED light control system needs to increase memory and cost in multiple LED light scenarios, and the development difficulty and instability increase, which cannot effectively solve the problem of insufficient PWM interface.
A LED lamp control system is designed to output PWM signals through a PWM interface of the MCU chip to adjust the voltage signal of the brightness control unit to the LED power input terminal, realize the brightness control of multiple LED lamps, and control the LED lamps through multiple IO interfaces. illuminates and goes off, reducing costs and increasing flexibility.
The brightness adjustment and lighting control of multiple LED lamps is realized, which reduces system costs and has good application value in industries, aircraft, ships and other fields, avoiding increasing design complexity and cost while meeting dimming function requirements.
Smart Images

Figure CN114143929B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of circuit control, in particular to an LED lamp control system. Background Art
[0002] In the process of electronic product design, more and more products use indicator lights to display product functions. The brightness of indicator lights is different in different external environments. For example, the indicator light is one brightness level during the day and another brightness level at night. At this time, the indicator light needs to be dimmed.
[0003] At present, the PWM interface of the integrated processing chip, namely the MCU chip, is generally used in the market to directly dim the indicator light. One PWM interface controls one LED light. If there are several LED lights on the product, several corresponding PWM interfaces are required. However, the PWM interface of the MCU chip is limited. For example, Microchip's PIC18F series has only 4 PWM interfaces. In a product, not only the indicator light dimming requires the PWM interface, but also some other functions require the PWM interface. At this time, there will be a phenomenon that the PWM interface is not enough.
[0004] At this time, the number of PWM interfaces can be increased by software simulation of PWM interfaces, but this method has high requirements on the memory of MCU chips, and requires MCU chips with larger memory. However, the larger the memory of MCU chips, the higher the cost will be, and it will also increase the difficulty and instability of software development, resulting in product failure. You can also choose MCUs with larger pin counts and packages. Generally, MCU chips with more pin counts have more PWM interfaces, but under the same requirements, MCU chips with larger packages have too much cost pressure compared to MCU chips with smaller packages, and it may not guarantee that the PWM interfaces are sufficient; there are also some series of MCU chips, regardless of the size of the package, the number of PWM interfaces is the same, and the use of other series of chips will increase the difficulty of development and extend the development time. In addition, you can also use a dedicated LED driver chip, but the cost pressure of an LED driver chip that can drive more than 3 LEDs is also too great. Summary of the invention
[0005] The purpose of the present invention is to overcome the problem of high cost pressure of the existing LED control system and provide an LED lamp control system.
[0006] In order to achieve the above-mentioned object, the present invention discloses an LED lamp control system, comprising: an MCU chip, a plurality of LED lamps, a brightness control unit and a plurality of sub-switch control units;
[0007] The MCU chip includes a PWM interface and multiple IO interfaces, the PWM interface is connected to the brightness control unit, the brightness control unit is connected to multiple LED lamps, each of the IO interfaces is connected to one of the sub-switch control units, and each of the sub-switch control units is connected to at least one LED lamp;
[0008] The brightness control unit includes a PWM signal input terminal, a brightness adjustment signal output terminal, and an LED power input terminal. The PWM signal input terminal of the brightness control unit is respectively connected to the PWM interface of the MCU chip, and the brightness adjustment signal output terminal is connected to a plurality of LED lamps.
[0009] The sub-switch control unit includes an input end and an output end, the input end of the sub-switch control unit is connected to the IO interface of the MCU chip, and the output end of the sub-switch control unit is connected to at least one LED lamp;
[0010] When the PWM interface of the MCU chip outputs a PWM signal, the brightness control unit adjusts the voltage signal input to the LED power input terminal according to the PWM signal to generate a brightness adjustment signal for the LED lamp, and the brightness adjustment signal is used as the LED power signal of the LED power input terminal to control the brightness of multiple LED lamps;
[0011] When the IO interface of the MCU chip outputs a control signal, the sub-switch control unit controls the lighting and extinguishing of the corresponding at least one LED lamp according to the control signal.
[0012] As an implementable embodiment, the brightness control unit includes a first transistor and a second transistor, the base of the first transistor is connected to the PWM signal input terminal of the brightness control unit, the emitter of the first transistor is connected to the ground terminal, the collector of the first transistor is connected to the base of the second transistor, the collector of the second transistor is connected to the brightness adjustment signal output terminal, and the emitter of the second transistor is connected to the LED power input terminal.
[0013] As an implementation method, the sub-switch control unit includes a third transistor, the input end of the sub-switch control unit is connected to the base of the third transistor, the emitter of the third transistor is connected to the ground end, and the collector of the third transistor is connected to the output end of the sub-switch control unit.
[0014] As an implementation method, the collector of the second transistor is connected to the brightness adjustment signal output terminal, which specifically includes: the emitter of the second transistor is connected to one end of a first resistor, and the other end of the first resistor is connected to the brightness adjustment signal output terminal.
[0015] As an implementable embodiment, the voltage signal input to the LED power input terminal is 12V.
[0016] Correspondingly, the present invention also discloses an LED lamp control system, comprising: an MCU chip, a plurality of LED lamps, at least two brightness control units and a plurality of sub-switch control units;
[0017] The MCU chip includes at least two PWM interfaces and multiple IO interfaces, each of the PWM interfaces is connected to one of the brightness control units, each of the brightness control units is connected to at least one LED lamp, each of the IO interfaces is connected to one of the sub-switch control units, each of the sub-switch control units is connected to at least one LED lamp;
[0018] The brightness control unit includes a PWM signal input terminal, a brightness adjustment signal output terminal, and an LED power input terminal. The PWM signal input terminal of the brightness control unit is respectively connected to the PWM interface of the MCU chip, and the brightness adjustment signal output terminal is connected to at least one LED lamp;
[0019] The sub-switch control unit includes an input end and an output end, the input end of the sub-switch control unit is connected to the IO interface of the MCU chip, and the output end of the sub-switch control unit is connected to at least one LED lamp;
[0020] When the PWM interface of the MCU chip outputs a PWM signal, the brightness control unit adjusts the voltage signal input to the LED power input terminal according to the PWM signal to generate a brightness adjustment signal for the LED lamp, and the brightness adjustment signal is used as the LED power signal of the LED power input terminal to control the brightness of the corresponding at least one LED lamp;
[0021] When the IO interface of the MCU chip outputs a control signal, the control signal controls the lighting and extinguishing of the corresponding at least one LED lamp by controlling the corresponding sub-switch control unit.
[0022] As an implementable embodiment, the brightness control unit includes a first transistor and a second transistor, the base of the first transistor is connected to the PWM signal input terminal of the brightness control unit, the emitter of the first transistor is connected to the ground terminal, the collector of the first transistor is connected to the base of the second transistor, the collector of the second transistor is connected to the brightness adjustment signal output terminal, and the emitter of the second transistor is connected to the LED power input terminal.
[0023] As an implementation method, the sub-switch control unit includes a third transistor, the input end of the sub-switch control unit is connected to the base of the third transistor, the emitter of the third transistor is connected to the ground end, and the collector of the third transistor is connected to the output end of the sub-switch control unit.
[0024] As an implementation method, the collector of the second transistor is connected to the brightness adjustment signal output terminal, which specifically includes: the emitter of the second transistor is connected to one end of a first resistor, and the other end of the first resistor is connected to the brightness adjustment signal output terminal.
[0025] As an implementable embodiment, the voltage signal input to the LED power input terminal is 12V.
[0026] Beneficial effects of the present invention: The present invention controls the brightness control unit to adjust the intensity of the voltage signal input to the LED power input terminal through a PWM control signal sent by a PWM interface of the MCU, so as to control the brightness of multiple LED lamps, and then controls the on and off of the corresponding LED lamps respectively through control signals sent by multiple IO interfaces of the MCU; in this way, the dimming function can be realized, and the indicator lights to be lit can be lit according to actual needs; the cost is reduced, and it has good application value in the fields of industry, aircraft, ships, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 The figure is a schematic diagram of the structure of the brightness adjustment unit of the LED lamp control system according to an embodiment of the present invention.
[0028] Figure 2 It is a schematic diagram of the structure of multiple sub-switch control units of the LED lamp control system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] See also Figure 1 ,This embodiment provides a technical solution: an LED lamp control system, comprising: an MCU chip, a plurality of LED lamps, a brightness control unit and a plurality of sub-switch control units;
[0031] The MCU chip includes a PWM interface and multiple IO interfaces, the PWM interface is connected to the brightness control unit, the brightness control unit is connected to multiple LED lamps, each of the IO interfaces is connected to one of the sub-switch control units, and each of the sub-switch control units is connected to at least one LED lamp;
[0032] The brightness control unit includes a PWM signal input terminal, a brightness adjustment signal output terminal, and an LED power input terminal. The PWM signal input terminal of the brightness control unit is respectively connected to the PWM interface of the MCU chip, and the brightness adjustment signal output terminal is connected to a plurality of LED lamps.
[0033] The sub-switch control unit includes an input end and an output end, the input end of the sub-switch control unit is connected to the IO interface of the MCU chip, and the output end of the sub-switch control unit is connected to at least one LED lamp;
[0034] When the PWM interface of the MCU chip outputs a PWM signal, the brightness control unit adjusts the voltage signal input to the LED power input terminal according to the PWM signal to generate a brightness adjustment signal for the LED lamp, and the brightness adjustment signal is used as the LED power signal of the LED power input terminal to control the brightness of multiple LED lamps;
[0035] When the IO interface of the MCU chip outputs a control signal, the sub-switch control unit controls the lighting and extinguishing of the corresponding at least one LED lamp according to the control signal.
[0036] The brightness control unit includes a first transistor and a second transistor, the base of the first transistor is connected to the PWM signal input terminal of the brightness control unit, the emitter of the first transistor is connected to the ground terminal, the collector of the first transistor is connected to the base of the second transistor, the collector of the second transistor is connected to the brightness adjustment signal output terminal, and the emitter of the second transistor is connected to the LED power input terminal.
[0037] The sub-switch control unit includes a third transistor, the input end of the sub-switch control unit is connected to the base of the third transistor, the emitter of the third transistor is connected to the ground end, and the collector of the third transistor is connected to the output end of the sub-switch control unit.
[0038] The collector of the second transistor is connected to the brightness adjustment signal output terminal, which specifically includes: the emitter of the second transistor is connected to one end of the first resistor, and the other end of the first resistor is connected to the brightness adjustment signal output terminal.
[0039] Wherein, the voltage signal input to the LED power input terminal is 12V.
[0040] In this embodiment, the brightness control unit corresponds to one PWM interface and multiple LED lights, and multiple sub-switch control units correspond to one IO interface and one LED light respectively; in this embodiment, the brightness of all LED lights can be adjusted by connecting a brightness control unit only through a PWM interface. In addition, an IO interface corresponds to an LED light to realize the lighting and extinguishing of the corresponding LED light.
[0041] like Figure 1 As shown, a PWM interface of the MCU is connected to the base of the first transistor Q1, Q1 of the first transistor is connected to the ground terminal GND, the collector of the first transistor Q1 is connected to the base of the second transistor Q2, the emitter of the second transistor Q2 is connected to the voltage input terminal, wherein the voltage input to the voltage input terminal is 12V, the collector of the second transistor Q2 is connected to the plurality of LED lamps, the PWM interface outputs a voltage adjustment signal to the base of the first transistor Q1, the voltage signal input to the voltage input terminal is modulated by the first transistor Q1 and the second transistor Q2, and the collector of the second transistor Q2 outputs a brightness control signal LED POWER, and the brightness control signal LED POWER is as follows Figure 2 The multiple resistors shown reach multiple LED lamps, so as to realize brightness adjustment of the multiple LED lamps. Specifically, the first LED lamp D1 is reached through the first resistor R1, the second LED lamp D2 is reached through the second resistor R2, the third LED lamp D3 is reached through the third resistor R3, ..., and the Nth LED lamp DN is reached through the Nth resistor RN, so as to realize brightness control of the first LED lamp D1, the second LED lamp D2, the third LED lamp D3, ..., the Nth LED lamp DN.
[0042] like Figure 2As shown, the multiple IO interfaces of the MCU chip correspond to multiple third transistors respectively. Specifically, the first IO interface IO1 of the MCU chip is connected to the base of the first third transistor Q31, the emitter of the first third transistor Q31 is connected to the ground terminal GND, and the collector of the first third transistor Q31 is connected to the first LED lamp D1; the second IO interface IO2 of the MCU chip is connected to the base of the second third transistor Q32, the emitter of the second third transistor Q32 is connected to the ground terminal GND, and the collector of the second third transistor Q32 is connected to the first LED lamp D1. The collector of the Nth transistor Q3N is connected to the second LED lamp D2; the third IO interface IO3 of the MCU chip is connected to the base of the third transistor Q33, the emitter of the third transistor Q33 is connected to the ground terminal GND, and the collector of the third transistor Q33 is connected to the third LED lamp D3; ...; the Nth IO interface ION of the MCU chip is connected to the base of the Nth transistor Q3N, the emitter of the Nth transistor Q3N is connected to the ground terminal GND, and the collector of the Nth transistor Q3N is connected to the Nth LED lamp DN.
[0043] The present invention controls the intensity of the voltage signal inputted to the voltage input terminal through a PWM interface of the MCU, thereby controlling the brightness of a plurality of LED lamps simultaneously according to the brightness control signal obtained after adjustment, and then controls the on and off of the plurality of LEDs respectively through a plurality of IO interfaces of the MCU; in this way, the dimming function can be realized, and the indicator lights to be lit can be lit according to actual needs; on the basis of not affecting the product functions, the problem of increasing the design cost is solved from the control logic, the cost is reduced, and the application value is very good in the fields of industry, aircraft, ships, etc.
[0044] Correspondingly, this embodiment also discloses an LED lamp control system, comprising: an MCU chip, a plurality of LED lamps, at least two brightness control units and a plurality of sub-switch control units;
[0045] The MCU chip includes at least two PWM interfaces and multiple IO interfaces, each of the PWM interfaces is connected to one of the brightness control units, each of the brightness control units is connected to at least one LED lamp, each of the IO interfaces is connected to one of the sub-switch control units, each of the sub-switch control units is connected to at least one LED lamp;
[0046] The brightness control unit includes a PWM signal input terminal, a brightness adjustment signal output terminal, and an LED power input terminal. The PWM signal input terminal of the brightness control unit is respectively connected to the PWM interface of the MCU chip, and the brightness adjustment signal output terminal is connected to at least one LED lamp;
[0047] The sub-switch control unit includes an input end and an output end, the input end of the sub-switch control unit is connected to the IO interface of the MCU chip, and the output end of the sub-switch control unit is connected to at least one LED lamp;
[0048] When the PWM interface of the MCU chip outputs a PWM signal, the brightness control unit adjusts the voltage signal input to the LED power input terminal according to the PWM signal to generate a brightness adjustment signal for the LED lamp, and the brightness adjustment signal is used as the LED power signal of the LED power input terminal to control the brightness of the corresponding at least one LED lamp;
[0049] When the IO interface of the MCU chip outputs a control signal, the control signal controls the lighting and extinguishing of the corresponding at least one LED lamp by controlling the corresponding sub-switch control unit.
[0050] The brightness control unit includes a first transistor and a second transistor, the base of the first transistor is connected to the PWM signal input terminal of the brightness control unit, the emitter of the first transistor is connected to the ground terminal, the collector of the first transistor is connected to the base of the second transistor, the collector of the second transistor is connected to the brightness adjustment signal output terminal, and the emitter of the second transistor is connected to the LED power input terminal.
[0051] The sub-switch control unit includes a third transistor, the input end of the sub-switch control unit is connected to the base of the third transistor, the emitter of the third transistor is connected to the ground end, and the collector of the third transistor is connected to the output end of the sub-switch control unit.
[0052] The collector of the second transistor is connected to the brightness adjustment signal output terminal, which specifically includes: the emitter of the second transistor is connected to one end of a first resistor, and the other end of the first resistor is connected to the brightness adjustment signal output terminal.
[0053] Wherein, the voltage signal input to the LED power input terminal is 12V.
[0054] In this embodiment, by providing more than two brightness control units connected to corresponding PWM interfaces respectively, different brightness controls can be implemented on different LED lamps through different PWM interfaces and corresponding brightness control units, making the application more flexible.
[0055] Although the present invention has been disclosed as above in the form of a preferred embodiment, it is not intended to limit the present invention. Any person skilled in the art may make possible changes and modifications to the technical solution of the present invention by using the methods and technical contents disclosed above without departing from the spirit and scope of the present invention. Therefore, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the protection scope of the technical solution of the present invention.
Claims
1. A LED light control system, It is characterized in that include: MCU chip, multiple LED lights, a brightness control unit and multiple sub-switch control units; The MCU chip includes a PWM interface and multiple IO interfaces, the PWM interface is connected to the brightness control unit, the brightness control unit is connected to multiple LED lamps, each of the IO interfaces is connected to one of the sub-switch control units, and each of the sub-switch control units is connected to multiple LED lamps; The brightness control unit includes a PWM signal input terminal, a brightness adjustment signal output terminal, and an LED power input terminal. The PWM signal input terminal of the brightness control unit is respectively connected to the PWM interface of the MCU chip, and the brightness adjustment signal output terminal is connected to a plurality of LED lamps. The brightness control unit includes a first transistor and a second transistor, the base of the first transistor is connected to the PWM signal input terminal of the brightness control unit, the emitter of the first transistor is connected to the ground terminal, the collector of the first transistor is connected to the base of the second transistor, the collector of the second transistor is connected to the brightness adjustment signal output terminal, and the emitter of the second transistor is connected to the LED power input terminal; The collector of the second transistor is connected to the brightness adjustment signal output terminal, which specifically includes: the emitter of the second transistor is connected to one end of a first resistor, and the other end of the first resistor is connected to the brightness adjustment signal output terminal; The sub-switch control unit includes an input end and an output end, the input end of the sub-switch control unit is connected to the IO interface of the MCU chip, and the output end of the sub-switch control unit is connected to a plurality of LED lamps; The sub-switch control unit includes a third transistor, the input end of the sub-switch control unit is connected to the base of the third transistor, the emitter of the third transistor is connected to the ground end, and the collector of the third transistor is connected to the output end of the sub-switch control unit; When the PWM interface of the MCU chip outputs a PWM signal, the brightness control unit adjusts the voltage signal input to the LED power input terminal according to the PWM signal to generate a brightness adjustment signal for the LED lamp, and the brightness adjustment signal is used as the LED power signal of the LED power input terminal to control the brightness of multiple LED lamps; When the IO interface of the MCU chip outputs a control signal, the sub-switch control unit controls the lighting and extinguishing of the corresponding multiple LED lights according to the control signal.
2. The LED light control system according to claim 1, It is characterized in that The voltage signal input to the LED power input terminal is 12V.
3. A LED light control system, It is characterized in that include: MCU chip, multiple LED lights, multiple brightness control units and multiple sub-switch control units; The MCU chip includes a plurality of PWM interfaces and a plurality of IO interfaces, each of the PWM interfaces is respectively connected to a brightness control unit, each of the brightness control units is respectively connected to a plurality of LED lamps, each of the IO interfaces is respectively connected to a sub-switch control unit, each of the sub-switch control units is connected to a plurality of LED lamps; The brightness control unit includes a PWM signal input terminal, a brightness adjustment signal output terminal, and an LED power input terminal. The PWM signal input terminal of the brightness control unit is respectively connected to the PWM interface of the MCU chip, and the brightness adjustment signal output terminal is connected to a plurality of LED lamps. The brightness control unit includes a first transistor and a second transistor, the base of the first transistor is connected to the PWM signal input terminal of the brightness control unit, the emitter of the first transistor is connected to the ground terminal, the collector of the first transistor is connected to the base of the second transistor, the collector of the second transistor is connected to the brightness adjustment signal output terminal, and the emitter of the second transistor is connected to the LED power input terminal; The collector of the second transistor is connected to the brightness adjustment signal output terminal, which specifically includes: the emitter of the second transistor is connected to one end of a first resistor, and the other end of the first resistor is connected to the brightness adjustment signal output terminal; The sub-switch control unit includes an input end and an output end, the input end of the sub-switch control unit is connected to the IO interface of the MCU chip, and the output end of the sub-switch control unit is connected to a plurality of LED lamps; The sub-switch control unit includes a third transistor, the input end of the sub-switch control unit is connected to the base of the third transistor, the emitter of the third transistor is connected to the ground end, and the collector of the third transistor is connected to the output end of the sub-switch control unit; When the PWM interface of the MCU chip outputs a PWM signal, the brightness control unit adjusts the voltage signal input to the LED power input terminal according to the PWM signal to generate a brightness adjustment signal for the LED lamp, and the brightness adjustment signal is used as the LED power signal of the LED power input terminal to control the brightness of the corresponding multiple LED lamps; When the IO interface of the MCU chip outputs a control signal, the control signal controls the lighting and extinguishing of the corresponding multiple LED lights by controlling the corresponding sub-switch control unit.
4. The LED lamp control system according to claim 3, It is characterized in that The voltage signal input to the LED power input terminal is 12V.
