LED Control Method, Device and LED Lighting Device
The MCU is connected to the LED driver unit to control the brightness of the LED load, which solves the problem of low dimming depth of the LED driver, and achieves a stable low-brightness lighting effect, meeting consumers' needs for lighting improvement.
Patent Information
- Application Number
- CN202011273322.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-13
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2040-11-13
AI Technical Summary
The LED drive dimming depth in the prior art is not high, and it cannot provide stable low-brightness lighting, which cannot meet the increasing demands of consumers for lighting.
The MCU is connected to the first LED driving unit and the second LED driving unit, and the MCU receives adjustment instructions and controls the brightness of the LED load. The first LED driving unit and the second LED driving unit respectively control the brightness of the LED load to achieve brightness or dimming.
The LED driver dimming depth can be improved, which can meet consumers' demand for low-brightness lighting and provide stable low-brightness lighting effects.
Smart Images

Figure CN112188668B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home, and in particular, to an LED control method, device and LED lighting device. Background Art
[0002] The dimming depth of LED drivers in the prior art is not high, and stable low-brightness lighting cannot be provided, which cannot meet the increasing demands of consumers for lighting.
[0003] A solution has not been proposed for the problem of low dimming depth of LED drivers in the related art. Summary of the Invention
[0004] Embodiments of the present invention provide an LED control method, device and LED lighting device to at least solve the problem of low dimming depth of LED drivers in the related art.
[0005] According to an embodiment of the present invention, an LED control device is provided, including: an MCU, a first LED driving unit, and a second LED driving unit, wherein the MCU is respectively connected to the first LED driving unit and the second LED driving unit.
[0006] The MCU is configured to, when receiving an adjustment instruction, control the first LED driving unit and / or the second LED driving unit according to the adjustment instruction, and control the brightness of the LED load through the first LED driving unit and / or the second LED driving unit.
[0007] The first LED driving unit is configured to control the brightness of the LED load.
[0008] The second LED driving unit is configured to control the brightness of the LED load.
[0009] Optionally, the MCU is further configured to, when receiving the adjustment instruction, send a first control signal to the first LED driving unit according to the adjustment instruction; and / or, when receiving the adjustment instruction, send a second control signal to the second LED driving unit.
[0010] The first LED driving unit is further configured to control the brightness of the LED load according to the first control signal; and / or, the second LED driving unit is further configured to control the brightness of the LED load according to the second control signal.
[0011] Optionally, the MCU is further configured to, when receiving the adjustment instruction, adjust a first duty ratio of the first control signal according to a brightness parameter carried in the adjustment instruction, and send the first control signal carrying the first duty ratio to the first LED driving unit; and / or, when receiving the adjustment instruction, adjust a second duty ratio of the second control signal according to the brightness parameter carried in the adjustment instruction, and send the second control signal carrying the second duty ratio to the second LED driving unit;
[0012] The first LED driving unit is further configured to control the brightness of the LED load according to the first duty ratio carried in the first control signal; and / or, the second LED driving unit is further configured to control the brightness of the LED load according to the second duty ratio carried in the second control signal.
[0013] Optionally, the MCU is further configured to, when receiving the adjustment instruction, if the brightness parameter is greater than 0 and less than a first preset value, send the second control signal carrying the second duty ratio to the second LED driving unit;
[0014] if the brightness parameter is greater than the first preset value and less than a second preset value, send the first control signal carrying the first duty ratio to the first LED driving unit and send the second control signal carrying the second duty ratio to the second LED driving unit, where the first preset value is less than or equal to the second preset value;
[0015] if the brightness parameter is greater than the second preset value, send the first control signal carrying the first duty ratio to the first LED driving unit.
[0016] Optionally, the device further includes: a power supply and an upper sampling resistor, where one end of the upper sampling resistor is respectively connected to the positive pole of the power supply and the output end of the first LED driving unit, the other end of the upper sampling resistor is connected to the LED load, and after the DC bus current of the power supply passes through the upper sampling resistor, it passes through the LED load and flows through the second LED driving unit to ground.
[0017] Optionally, the upper sampling resistor at least includes a first resistor and a second resistor connected in parallel.
[0018] Optionally, the first LED driving unit includes a constant-current LED driving chip U2;
[0019] The second LED driving unit at least includes an N-channel MOS transistor Q4 and a triode Q2.
[0020] Optionally, the second LED driving unit further includes a resistor R51, a resistor R52, a resistor R53, a resistor R54, and a diode, wherein,
[0021] A first end of the resistor R53 is connected to the MCU, a second end of the resistor R53 is respectively connected to a first end of the resistor R54 and a C pole of the triode Q2, a second end of the resistor R54 is connected to an E pole of the triode Q2, the resistor R52 and the resistor R51 are connected in parallel and then connected in parallel to the E pole and the B pole of the triode Q2, and the resistor R51 is connected in series with the N-channel MOS transistor Q4 and the diode.
[0022] According to another embodiment of the present invention, there is also provided an LED lighting device, including the above-mentioned LED control device and an LED load, wherein the LED load is respectively connected to the first LED driving unit and the second LED driving unit.
[0023] Optionally, the LED load includes a cold-color LED load and / or a warm-color LED load.
[0024] According to another embodiment of the present invention, there is also provided an LED control method, including:
[0025] Receiving an adjustment instruction;
[0026] Controlling the first LED driving unit and / or the second LED driving unit according to the adjustment instruction, and controlling the brightness of the LED load through the first LED driving unit and / or the second LED driving unit.
[0027] Optionally, controlling the first LED driving unit and / or the second LED driving unit according to the adjustment instruction, and controlling the brightness of the LED load through the first LED driving unit and / or the second LED driving unit includes:
[0028] Sending a first control signal to the first LED driving unit according to the adjustment instruction, the first control signal being used to instruct the first LED driving unit to control the brightness of the LED load; and / or sending a second control signal to the second LED driving unit, the second control signal being used to instruct the second LED driving unit to control the brightness of the LED load.
[0029] Optionally, sending a first control signal to the first LED driving unit according to the adjustment instruction, and / or sending a second control signal to the second LED driving unit includes:
[0030] Adjust the first duty cycle of the first control signal according to the brightness parameter carried in the adjustment instruction, and send the first control signal carrying the first duty cycle to the first LED driving unit; and / or adjust the second duty cycle of the second control signal according to the brightness parameter carried in the adjustment instruction, and send the second control signal carrying the second duty cycle to the second LED driving unit.
[0031] Optionally, sending the first control signal to the first LED driving unit according to the adjustment instruction, and / or sending the second control signal to the second LED driving unit includes:
[0032] If the brightness parameter is greater than 0 and less than a first preset value, send the second control signal carrying the second duty cycle to the second LED driving unit;
[0033] If the brightness parameter is greater than the first preset value and less than a second preset value, send the first control signal carrying the first duty cycle to the first LED driving unit and send the second control signal carrying the second duty cycle to the second LED driving unit, where the first preset value is less than or equal to the second preset value;
[0034] If the brightness parameter is greater than the second preset value, send the first control signal carrying the first duty cycle to the first LED driving unit.
[0035] According to another embodiment of the present invention, there is also provided an LED control device, including:
[0036] A receiving module, configured to receive an adjustment instruction;
[0037] A control module, configured to control a first LED driving unit and / or a second LED driving unit according to the adjustment instruction, and control the brightness of the LED load through the first LED driving unit and / or the second LED driving unit.
[0038] Optionally, the control module includes:
[0039] A sending sub-module, configured to send a first control signal to the first LED driving unit according to the adjustment instruction, where the first control signal is used to instruct the first LED driving unit to control the brightness of the LED load; and / or send a second control signal to the second LED driving unit, where the second control signal is used to instruct the second LED driving unit to control the brightness of the LED load.
[0040] Optionally, the sending sub-module is further configured to adjust a first duty ratio of the first control signal according to a brightness parameter carried in the adjustment instruction, and send the first control signal carrying the first duty ratio to the first LED driving unit; and / or adjust a second duty ratio of the second control signal according to the brightness parameter carried in the adjustment instruction, and send the second control signal carrying the second duty ratio to the second LED driving unit.
[0041] Optionally, the sending sub-module is further configured to, if the brightness parameter is greater than 0 and less than a first preset value, send the second control signal carrying the second duty ratio to the second LED driving unit;
[0042] if the brightness parameter is greater than the first preset value and less than a second preset value, send the first control signal carrying the first duty ratio to the first LED driving unit and send the second control signal carrying the second duty ratio to the second LED driving unit, where the first preset value is less than or equal to the second preset value;
[0043] if the brightness parameter is greater than the second preset value, send the first control signal carrying the first duty ratio to the first LED driving unit.
[0044] According to another embodiment of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the steps in any one of the above method embodiments when running.
[0045] According to another embodiment of the present invention, there is also provided an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0046] Through the present invention, an adjustment instruction is received; the first LED driving unit and / or the second LED driving unit are controlled according to the adjustment instruction, and are controlled by the first LED driving unit and / or the second LED driving unit, so as to complete brightening or dimming of the LED load, and the problem of low dimming depth of the LED driving in the related art can be solved. By controlling and adjusting the brightness of the LED load through the first LED driving unit and / or the second LED driving unit, the dimming depth of the LED driving is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The drawings described herein are used to provide a further understanding of the present invention, and constitute a part of this application. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention, and do not constitute an improper limitation to the present invention. In the drawings:
[0048] Figure 1 is a flowchart of an LED control method according to an embodiment of the present invention;
[0049] Figure 2 is a block diagram of an LED control device according to an embodiment of the present invention Figure 1 ;
[0050] Figure 3 is a block diagram of an LED control device according to an alternative embodiment of the present invention;
[0051] Figure 4 is a block diagram of an LED lighting device according to an embodiment of the present invention;
[0052] Figure 5 is a schematic diagram of an LED lamp control circuit according to an embodiment of the present invention;
[0053] Figure 6 is a schematic diagram of the correspondence between current and PWM according to an embodiment of the present invention;
[0054] Figure 7 is a block diagram of an LED control device according to an embodiment of the present invention Figure 2 . Detailed Embodiments
[0055] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments. It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments may be combined with each other.
[0056] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence.
[0057] Embodiment 1
[0058] In this embodiment, an LED control method is provided, Figure 1 is a flowchart of an LED control method according to an embodiment of the present invention, as Figure 1 shown, the process includes the following steps:
[0059] Step S102, receiving an adjustment instruction;
[0060] Step S104, controlling the first LED driving unit and / or the second LED driving unit according to the adjustment instruction, and controlling the brightness of the LED load through the first LED driving unit and / or the second LED driving unit.
[0061] Through the above steps S102 to S104, a regulation instruction is received; the first LED driving unit and / or the second LED driving unit is controlled according to the regulation instruction, and the brightness of the LED load is controlled through the first LED driving unit and / or the second LED driving unit, so as to complete the brightening or dimming of the LED load, which can solve the problem of low dimming depth of LED driving in the related art. By driving with the first LED driving unit and / or controlling with the second LED driving unit to adjust the brightness of the LED load, the dimming depth of the LED driving is improved.
[0062] In the embodiment of the present invention, the above step S104 may specifically include:
[0063] A first control signal is sent to the first LED driving unit according to the regulation instruction, and the first control signal is used to instruct the first LED driving unit to control the brightness of the LED load. Further, the first duty ratio of the first control signal is adjusted according to the brightness parameter carried in the regulation instruction; the first control signal carrying the first duty ratio is sent to the first LED driving unit;
[0064] The brightness of the LED load is controlled according to the first control signal within the first brightness range. Specifically, the brightness of the LED load is controlled according to the first duty ratio carried in the first control signal within the first brightness range.
[0065] In the embodiment of the present invention, the above step S106 may specifically include:
[0066] A second control signal is sent to the second LED driving unit, and the second control signal is used to instruct the second LED driving unit to control the brightness of the LED load. Further, the second duty ratio of the second control signal is adjusted according to the brightness parameter carried in the regulation instruction; the second control signal carrying the second duty ratio is sent to the second LED driving unit;
[0067] The brightness of the LED load is controlled according to the second control signal within the second brightness range. Specifically, the brightness of the LED load is controlled according to the second duty ratio carried in the second control signal within the second brightness range. The brightness parameter in this embodiment can be used to characterize the first brightness range and the second brightness range, and can be the same value or a proportional relationship.
[0068] In an optional embodiment, sending a first control signal to the first LED driving unit and / or sending a second control signal to the second LED driving unit may further include: if the brightness parameter is greater than 0 and less than a first preset value, sending the second control signal carrying the second duty ratio to the second LED driving unit; if the brightness parameter is greater than the first preset value and less than a second preset value, sending the first control signal carrying the first duty ratio to the first LED driving unit and sending the second control signal carrying the second duty ratio to the second LED driving unit, where the first preset value is less than or equal to the second preset value; if the brightness parameter is greater than the second preset value, sending the first control signal carrying the first duty ratio to the first LED driving unit.
[0069] The maximum value of the first brightness range is greater than the maximum value of the second brightness range, and the minimum value of the first brightness range is greater than the minimum value of the second brightness range; optionally, the minimum value of the first brightness range is less than or equal to the maximum value of the second brightness range.
[0070] Embodiment 2
[0071] According to an embodiment of the present invention, an LED control device is provided. Figure 2 is a block diagram of the LED control device according to an embodiment of the present invention. Figure 1 , as Figure 2 shown, includes: an MCU 22, a first LED driving unit 23, and a second LED driving unit 24. Among them, the MCU 22 is respectively connected to the first LED driving unit 23 and the second LED driving unit 24.
[0072] The MCU 22 is configured to, when receiving an adjustment instruction, control the first LED driving unit 23 and / or the second LED driving unit 24 according to the adjustment instruction, and control the brightness of the LED load through the first LED driving unit 23 and / or the second LED driving unit 24.
[0073] The first LED driving unit 23 is configured to control the brightness of the LED load.
[0074] The second LED driving unit 24 is configured to control the brightness of the LED load.
[0075] Figure 3 is a block diagram of the LED control device according to an optional embodiment of the present invention, as Figure 3As shown, the system further includes a power supply 21, wherein the power supply 21 is respectively connected to the MCU 22, the first LED driving unit 23, and the second LED driving unit 24, and the power supply 21 is used to supply power to the MCU 22 and the LED load.
[0076] Optionally, the MCU 22 is further configured to send a first control signal to the first LED driving unit 23 when receiving the adjustment instruction; and / or, send a second control signal to the second LED driving unit 24 when receiving the adjustment instruction;
[0077] The first LED driving unit 23 is further configured to control the brightness of the LED load according to the first control signal; and / or, the second LED driving unit 24 is further configured to control the brightness of the LED load according to the second control signal.
[0078] Optionally, the MCU 22 is further configured to, when receiving the adjustment instruction, adjust the first duty cycle of the first control signal according to the brightness parameter carried in the adjustment instruction, and send the first control signal carrying the first duty cycle to the first LED driving unit 23; and / or, when receiving the adjustment instruction, adjust the second duty cycle of the second control signal according to the brightness parameter carried in the adjustment instruction, and send the second control signal carrying the second duty cycle to the second LED driving unit 24;
[0079] The first LED driving unit 23 is further configured to control the brightness of the LED load according to the first duty cycle carried in the first control signal; and / or, the second LED driving unit 24 is further configured to control the brightness of the LED load according to the second duty cycle carried in the second control signal.
[0080] Optionally, the MCU 22 is further configured to, when receiving the adjustment instruction, if the brightness parameter is greater than 0 and less than a first preset value, send the second control signal carrying the second duty cycle to the second LED driving unit 24;
[0081] If the brightness parameter is greater than the first preset value and less than a second preset value, send the first control signal carrying the first duty cycle to the first LED driving unit 23 and send the second control signal carrying the second duty cycle to the second LED driving unit 24, where the first preset value is less than or equal to the second preset value;
[0082] If the brightness parameter is greater than the second preset value, send the first control signal carrying the first duty cycle to the first LED driving unit 23.
[0083] Optionally, the device further includes: a power supply and an upper sampling resistor. One end of the upper sampling resistor is respectively connected to the positive electrode of the power supply 21 and the output end of the first LED driving unit 23, and the other end is connected to the LED load. After the DC bus current of the power supply 21 passes through the upper sampling resistor, it passes through the LED load and flows through the second LED driving unit 24 to ground.
[0084] Optionally, the upper sampling resistor includes at least a first resistor and a second resistor connected in parallel.
[0085] Optionally, the first LED driving unit 23 includes a constant current LED driving chip U2;
[0086] The second LED driving unit 24 includes at least an N-channel MOS transistor Q4 and a triode Q2.
[0087] Optionally, the second LED driving unit 24 further includes a resistor R51, a resistor R52, a resistor R53, a resistor R54, and a diode. Among them,
[0088] The first end of the resistor R53 is connected to the MCU22, the second end of the resistor R53 is respectively connected to the first end of the resistor R54 and the C pole of the triode Q2, the second end of the resistor R54 is connected to the E pole of the triode Q2, the resistor R52 and the resistor R51 are connected in parallel and then connected in parallel with the E pole and the B pole of the triode Q2, and the resistor R51 is connected in series with the N-channel MOS transistor Q4 and the diode.
[0089] Embodiment 3
[0090] According to another embodiment of the present invention, an LED lighting device is further provided. Figure 4 is a block diagram of the LED lighting device according to the embodiment of the present invention, as Figure 4 shown, including the above-mentioned LED control device and an LED load. Among them, the LED load is respectively connected to the first LED driving unit 23 and the second LED driving unit 24.
[0091] Optionally, the LED load includes a cold-color LED load and / or a warm-color LED load.
[0092] Figure 5 is a schematic diagram of the LED lamp control circuit according to the embodiment of the present invention, as Figure 5As shown, it includes two independent LED driving units (i.e., the above-mentioned first LED driving unit and second LED driving unit) and an LED load. The first driver is a constant-current LED driving chip U2; the second driver is a linear LED driving composed of Q4 and Q2; PWW_WW is: the control signal of the constant-current driving U2; PWM_NL is: the control signal of the linear driving; among them, WW+ and WW- are connected to the lamp board, i.e., the LED load; PWM_WW controls the magnitude of the constant current of U2, and PWM_NL controls the magnitude of the linear driving current. Among them, the constant-current driving of U2 controls the LED light from 100% brightness to 10% brightness, and the light regulation range of the linear driving is from 12% brightness to the lowest brightness (one-thousandth or even one-ten-thousandth brightness); if only the constant-current driving of U2 is used, deep dimming cannot be achieved, and if only the linear driving is used, the driving requirements for medium and high brightness cannot be met.
[0093] The brightness from 100% to 10% is driven by the constant-current driving of U2, and the brightness from 12% to lower brightness is driven by the linear driving composed of Q4 and Q2. When the brightness is in the range of 12% - 10%, the constant-current driving and the linear driving work simultaneously. Through the collaborative work of two independent LED drivers, two-stage dimming is achieved, which can not only meet the requirements at high brightness but also achieve deep dimming at low brightness.
[0094] Furthermore, in order to ensure that the light does not flicker during the switching of the two drivers when adjusting from high brightness to below 10% brightness, the upper-end sampling is adopted for the current sampling of U2. As Figure 5 shown, the DC bus current first flows through the sampling resistor, and then neither end of the LED load or the sampling resistor is directly connected to GND. The sampling resistor in the embodiment of the present invention should adopt upper-end sampling, that is, the upper-end sampling resistor. When the two drivers work simultaneously, the current on the sampling resistor is the sum of the currents flowing through the two drivers.
[0095] Figure 6 It is a schematic diagram of the correspondence between current and PWM according to the embodiment of the present invention. As Figure 6 shown, the minimum output current of the constant-current driving U2 is less than or equal to the maximum current of the linear driving, so that the two drivers are effectively connected and the LED is prevented from flickering during the dimming process.
[0096] When dimming from 100% to low brightness, the linear drive can be turned on simultaneously at any time when the constant current driving current of U2 is greater than the maximum current of the linear drive; in this way, the brightness of the lamp will not change due to the activation of one path of the linear drive, because the upper sampling reflects the sum of the output currents of the two drives. When one output current increases, the other output current decreases. Therefore, the total current flowing through the load always follows the current of the sampling resistor; however, if it is lower-end sampling, since the lower-end sampling does not reflect the output current of the linear drive, when they work simultaneously, the total current flowing through the load will change, becoming the sum of the current passing through U2 and the current passing through the linear drive. The brightness change of the LED is not smooth enough, and there will be a brightness jump during the adjustment process.
[0097] The control signal of PWM is sent by the MCU and is used to control the magnitude of the LED driving current. Specifically, as the duty cycle of PWM_WW continuously decreases, the brightness of the lamp gradually dims at this time, while the duty cycle of PWM_NL remains 100% all the time. When the duty cycles of the two driving currents coincide as the duty cycle of PWM_WW decreases, PWM_WW is directly turned off, that is, 0%; then start to decrease the duty cycle of PWM_NL of the linear drive until it is reduced to the lowest brightness; in this way, a seamless connection from 100% brightness to one ten-thousandth brightness is achieved.
[0098] The embodiment of the present invention can achieve a seamless connection from the lowest brightness of the linear drive to 100% brightness. When PWM_NL gradually increases and the two driving currents coincide, start the corresponding duty cycle of PWM_WW, and then gradually increase the duty cycle of PWM_WW until 100% or when the duty cycle of PWM_NL is adjusted from the minimum to 100%, then start the corresponding duty cycle of PWM_WW corresponding to the larger current. When the duty cycle of PWM_NL is 100%, the current of the single night light is equal to the current of the LED drive of the path with a PWM_WW duty cycle of 12% when used alone.
[0099] The embodiment of the present invention can be a single output, specifically a DC-DC constant current drive circuit + linear drive circuit + LED load. In an optional embodiment, it can also be a DC-DC constant current drive circuit + pull-up sampling resistor + linear drive circuit + LED load.
[0100] Embodiments of the present invention may also include two or more outputs of cold and warm channels. Specifically, a DC-DC constant current drive circuit + a cold-color LED load, a DC-DC constant current drive circuit + a linear drive circuit + a warm-color LED load; the linear drive circuit can be connected to the cold-color load and / or the warm-color LED load, usually connected to the warm-color LED load because warm-color LEDs are more suitable for use as the night mode of the lamp at low brightness. In an alternative embodiment, a pull-up sampling resistor is also added. In addition to the above embodiments, similarly, an RGB color light LED load can also be added. Since color lights are generally used as ambient lights, the need for deep dimming is not strong.
[0101] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention.
[0102] Embodiment 4
[0103] In this embodiment, an LED control device is also provided. This device is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0104] Figure 7 is a block diagram of the LED control device according to an embodiment of the present invention Figure 2 , as Figure 7 shown, includes:
[0105] A receiving module 72, configured to receive an adjustment instruction;
[0106] A control module 74, configured to control the first LED driving unit and / or the second LED driving unit according to the adjustment instruction, and control through the first LED driving unit and / or the second LED driving unit.
[0107] Optionally, the control module 74 includes:
[0108] A sending sub-module, configured to send a first control signal to the first LED driving unit according to the adjustment instruction, where the first control signal is used to instruct the first LED driving unit to control the brightness of the LED load; and / or send a second control signal to the second LED driving unit, where the second control signal is used to instruct the second LED driving unit to control the brightness of the LED load.
[0109] Optionally, the sending sub-module is further configured to adjust a first duty ratio of the first control signal according to a brightness parameter carried in the adjustment instruction, and send the first control signal carrying the first duty ratio to the first LED driving unit; and / or adjust a second duty ratio of the second control signal according to the brightness parameter carried in the adjustment instruction, and send the second control signal carrying the second duty ratio to the second LED driving unit.
[0110] Optionally, the sending sub-module is further configured to, if the brightness parameter is greater than 0 and less than a first preset value, send the second control signal carrying the second duty ratio to the second LED driving unit;
[0111] if the brightness parameter is greater than the first preset value and less than a second preset value, send the first control signal carrying the first duty ratio to the first LED driving unit and send the second control signal carrying the second duty ratio to the second LED driving unit, where the first preset value is less than or equal to the second preset value;
[0112] if the brightness parameter is greater than the second preset value, send the first control signal carrying the first duty ratio to the first LED driving unit.
[0113] It should be noted that the above-mentioned various modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned various modules are respectively located in different processors in any combination form.
[0114] Embodiment 5
[0115] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the steps in any one of the above method embodiments when running.
[0116] Optionally, in this embodiment, the above storage medium can be configured to store a computer program for executing the following steps:
[0117] S1, receive an adjustment instruction;
[0118] S2. Control the first LED driving unit and / or the second LED driving unit according to the adjustment instruction, and control through the first LED driving unit and / or the second LED driving unit.
[0119] Optionally, in this embodiment, the above storage medium may include, but is not limited to: various media such as USB flash drives, read-only memories (ROM), random access memories (RAM), mobile hard disks, magnetic disks, or optical discs that can store computer programs.
[0120] Embodiment 6
[0121] An embodiment of the present invention further provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0122] Optionally, the above electronic device may further include a transmission device and input / output devices. Among them, the transmission device is connected to the above processor, and the input / output devices are connected to the above processor.
[0123] Optionally, in this embodiment, the above processor may be configured to execute the following steps through a computer program:
[0124] S1. Receive an adjustment instruction;
[0125] S2. Control the first LED driving unit and / or the second LED driving unit according to the adjustment instruction, and control through the first LED driving unit and / or the second LED driving unit.
[0126] Optionally, specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and will not be elaborated here.
[0127] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by the computing device, so that they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order from here, or they can be separately made into individual integrated circuit modules, or multiple modules or steps among them can be made into a single integrated circuit module to implement. In this way, the present invention is not limited to any specific combination of hardware and software.
[0128] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modifications, equivalent replacements, improvements, etc. made within the principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. An LED control device, characterized in that, Comprising: MCU, a first LED driving unit, a second LED driving unit, a power supply and an upper sampling resistor. The MCU is respectively connected to the first LED driving unit and the second LED driving unit. Wherein, one end of the upper sampling resistor is respectively connected to the positive electrode of the power supply and the output end of the first LED driving unit, the other end of the upper sampling resistor is connected to an LED load, and after the DC bus current of the power supply passes through the upper sampling resistor, it passes through the LED load, flows through the second LED driving unit and then grounds. The MCU is configured to, when receiving an adjustment instruction, control the first LED driving unit and / or the second LED driving unit according to the adjustment instruction, and control the brightness of the LED load through the first LED driving unit and / or the second LED driving unit. The first LED driving unit is configured to control the brightness of the LED load; and / or the second LED driving unit is configured to control the brightness of the LED load. The MCU is further configured to, when receiving the adjustment instruction, send a first control signal to the first LED driving unit according to the adjustment instruction; and / or send a second control signal to the second LED driving unit. The first LED driving unit is further configured to control the brightness of the LED load according to the first control signal; and / or the second LED driving unit is further configured to control the brightness of the LED load according to the second control signal. The MCU is further configured to, when receiving the adjustment instruction, adjust the first duty ratio of the first control signal according to the brightness parameter carried in the adjustment instruction, and send the first control signal carrying the first duty ratio to the first LED driving unit. And / or adjust the second duty ratio of the second control signal according to the brightness parameter carried in the adjustment instruction, and send the second control signal carrying the second duty ratio to the second LED driving unit. The first LED driving unit is further configured to control the brightness of the LED load according to the first duty ratio carried in the first control signal; and / or the second LED driving unit is further configured to control the brightness of the LED load according to the second duty ratio carried in the second control signal.
2. The device according to claim 1, characterized in that, The MCU is further configured to, when receiving the adjustment instruction, if the brightness parameter is greater than 0 and less than a first preset value, send the second control signal carrying the second duty ratio to the second LED driving unit. If the brightness parameter is greater than the first preset value and less than a second preset value, send the first control signal carrying the first duty ratio to the first LED driving unit and send the second control signal carrying the second duty ratio to the second LED driving unit, where the first preset value is less than or equal to the second preset value. If the brightness parameter is greater than the second preset value, send the first control signal carrying the first duty ratio to the first LED driving unit.
3. The device according to claim 1, characterized in that, The upper sampling resistor includes at least a first resistor and a second resistor connected in parallel.
4. The device according to any one of claims 1 to 3, characterized in that, The first LED driving unit includes a constant current LED driving chip U2; The second LED driving unit includes at least an N-channel MOS transistor Q4 and a triode Q2.
5. The device according to claim 4, characterized in that, The second LED driving unit further includes a resistor R51, a resistor R52, a resistor R53, a resistor R54, and a diode, wherein, A first end of the resistor R53 is connected to the MCU, a second end of the resistor R53 is respectively connected to a first end of the resistor R54 and a C electrode of the triode Q2, a second end of the resistor R54 is connected to an E electrode of the triode Q2, the resistor R52 and the resistor R51 are connected in parallel and then connected in parallel to the E electrode and the B electrode of the triode Q2, and the resistor R51 is connected in series with the N-channel MOS transistor Q4 and the diode.
6. An LED lighting device, characterized in that, It includes the LED control device and the LED load according to any one of claims 1 to 5, wherein the LED load is respectively connected to the first LED driving unit and the second LED driving unit.
7. The device according to claim 6, characterized in that, The LED load includes a cold-color LED load and / or a warm-color LED load.
8. An LED control method, characterized in that, It includes: Receiving an adjustment instruction; Controlling the first LED driving unit and / or the second LED driving unit according to the adjustment instruction, and controlling the brightness of the LED load through the first LED driving unit and / or the second LED driving unit, including: Sending a first control signal to the first LED driving unit according to the adjustment instruction, where the first control signal is used to instruct the first LED driving unit to control the brightness of the LED load; and / or sending a second control signal to the second LED driving unit, where the second control signal is used to instruct the second LED driving unit to control the brightness of the LED load; Wherein, sending the first control signal to the first LED driving unit according to the adjustment instruction, and / or sending the second control signal to the second LED driving unit includes: Adjusting a first duty ratio of the first control signal according to a brightness parameter carried in the adjustment instruction, and sending the first control signal carrying the first duty ratio to the first LED driving unit; and / or adjusting a second duty ratio of the second control signal according to the brightness parameter carried in the adjustment instruction, and sending the second control signal carrying the second duty ratio to the second LED driving unit; If the brightness parameter is greater than 0 and less than a first preset value, sending the second control signal carrying the second duty ratio to the second LED driving unit; If the brightness parameter is greater than the first preset value and less than a second preset value, sending the first control signal carrying the first duty ratio to the first LED driving unit and sending the second control signal carrying the second duty ratio to the second LED driving unit, wherein the first preset value is less than or equal to the second preset value; If the brightness parameter is greater than the second preset value, sending the first control signal carrying the first duty ratio to the first LED driving unit.
9. An LED control device, characterized in that, It includes: A receiving module, configured to receive an adjustment instruction; A control module, configured to control a first LED driving unit and / or a second LED driving unit according to the adjustment instruction, and control the brightness of an LED load through the first LED driving unit and / or the second LED driving unit; Wherein, the control module includes: A sending sub-module, configured to send a first control signal to the first LED driving unit according to the adjustment instruction, where the first control signal is used to instruct the first LED driving unit to control the brightness of the LED load; and / or send a second control signal to the second LED driving unit, where the second control signal is used to instruct the second LED driving unit to control the brightness of the LED load; Wherein, the sending sub-module is further configured to adjust a first duty ratio of the first control signal according to a brightness parameter carried in the adjustment instruction, and send the first control signal carrying the first duty ratio to the first LED driving unit; and / or adjust a second duty ratio of the second control signal according to the brightness parameter carried in the adjustment instruction, and send the second control signal carrying the second duty ratio to the second LED driving unit; If the brightness parameter is greater than 0 and less than a first preset value, send the second control signal carrying the second duty ratio to the second LED driving unit; If the brightness parameter is greater than the first preset value and less than a second preset value, send the first control signal carrying the first duty ratio to the first LED driving unit and send the second control signal carrying the second duty ratio to the second LED driving unit, where the first preset value is less than or equal to the second preset value; If the brightness parameter is greater than the second preset value, send the first control signal carrying the first duty ratio to the first LED driving unit.
10. A computer-readable storage medium, characterized in that, A computer program is stored in the storage medium, wherein the computer program is configured to execute the method according to claim 8 when running.
11. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to run the computer program to execute the method according to claim 8.
Citation Information
Patent Citations
Converter circuit and LED lights
CN204634089U
LED control equipment and LED lighting equipment
CN213403577U