Controller, driving method, LED device and readable storage medium

By designing a controller compatible with both constant current and constant voltage drives, the incompatibility problem of traditional controllers is solved, achieving wider applicability and precise brightness adjustment, while providing load protection and reducing space and cost.

CN121751428APending Publication Date: 2026-03-27GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Traditional controllers are incompatible with constant current and constant voltage drive methods, resulting in cramped space, high cost, and inaccurate brightness adjustment.

Method used

Design a controller comprising a main control module, a voltage output module, and a feedback module. The main control module adjusts the feedback voltage to achieve compatibility between constant current drive and constant voltage drive, and supports brightness adjustment and load protection.

Benefits of technology

It expands the applicability of the controller, supports constant current and constant voltage drive modes, provides precise brightness adjustment, effective load protection, and reduces space occupation and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121751428A_ABST
    Figure CN121751428A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a controller, a driving method, LED equipment and a readable storage medium. The controller comprises a main control module, a voltage output module, a feedback module and a load module. The main control module supports constant-voltage driving and constant-current driving and is used for determining the driving mode of the load module. And when the driving mode is a constant-voltage driving mode, the main control module adjusts feedback voltage applied to the voltage output module according to the driving voltage of the load module, so that the voltage output module outputs the driving voltage. When the driving mode is a constant-current driving mode, the main control module obtains feedback information of the feedback module and adjusts feedback voltage applied to the voltage output module according to the feedback information, so that the voltage output module outputs first voltage, and the first voltage is applied to the load module to generate constant current so as to drive the load module. By adjusting the feedback voltage applied to the voltage output module by the main control module, constant-voltage driving or constant-current driving is realized, and compatibility of constant-current driving and constant-voltage driving is completed.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of LED, in particular to a controller, a driving method, an LED device and a readable storage medium. BACKGROUND

[0002] With the development of science and technology, the light emitting diode (LED) technology is becoming more and more mature.

[0003] Generally, the LED lamp bead is connected as a load to the controller when working, and is lit under the driving of the controller. The controller can drive the LED lamp bead in a constant current driving mode, that is, the controller provides a constant current for the LED lamp bead, or the controller can drive the LED lamp bead in a constant voltage driving mode, that is, the controller provides a constant voltage for the LED lamp bead.

[0004] However, the traditional controller can only drive the LED lamp bead in the constant current driving mode or in the constant voltage driving mode, and cannot be compatible with the constant current driving mode and the constant voltage driving mode. SUMMARY

[0005] Embodiments of the present application provide a controller, a driving method, an LED device and a readable storage medium, which realize constant voltage driving or constant current driving by adjusting the feedback voltage applied to the voltage output module, realize the purpose of compatibility of constant current driving and constant voltage driving, and further realize the purpose of improving the application range of the controller.

[0006] In a first aspect, embodiments of the present application provide a controller, comprising:

[0007] A main control module, a voltage output module, a feedback module and a load module, the main control module is connected with the voltage output module and the feedback module, and the voltage output module and the feedback module are connected with the load module, wherein:

[0008] The main control module supports constant voltage driving and constant current driving, and is used to determine the driving mode of the load module; when the driving mode is the constant voltage driving mode, the feedback voltage applied to the voltage output module is adjusted according to the driving voltage of the load module, so that the voltage output module outputs the driving voltage;

[0009] The main control module is further used to acquire the feedback information of the feedback module when the driving mode is the constant current driving mode, and adjust the feedback voltage applied to the voltage output module according to the feedback information, so that the voltage output module outputs the first voltage, the first voltage is applied to the load module to generate a constant current to drive the load module, and the feedback information is used to represent the current of the load module.

[0010] In a second aspect, embodiments of the present application provide a driving method applied to a controller, and the method comprises:

[0011] determine the driving mode of the load of the access controller;

[0012] When the driving mode is the constant voltage driving mode, the feedback voltage applied to the voltage output module by the controller is determined according to the driving voltage of the load, so that the voltage output module outputs the driving voltage;

[0013] When the driving mode is the constant current driving mode, the feedback information is obtained from the feedback module, and the feedback voltage applied to the voltage output module is adjusted according to the feedback information, so that the voltage output module outputs the first voltage, and the first voltage is applied to the load to generate a constant current to drive the load.

[0014] In a third aspect, an embodiment of the present application provides a computer readable storage medium, and the computer readable storage medium stores computer instructions. When the computer instructions are executed by a processor, the computer instructions are used to implement the method in the second aspect or various possible implementation manners of the second aspect.

[0015] In a fourth aspect, an embodiment of the present application provides an LED device, which comprises an LED lamp bead and a controller as described in the first aspect or various possible implementation manners of the first aspect. The controller is used to drive the LED lamp bead to light up the LED lamp bead.

[0016] The controller provided in the embodiments of the present application comprises a master control module, a voltage output module, a feedback module and a load module. The master control module is connected with the voltage output module and the feedback module, and the voltage output module and the feedback module are respectively connected with the load module. The master control module supports constant voltage driving and constant current driving, and is used to determine the driving mode of the load module. When the driving mode is the constant voltage driving mode, the master control module adjusts the feedback voltage applied to the voltage output module according to the driving voltage of the load module, so that the voltage output module outputs the driving voltage. When the driving mode is the constant current driving mode, the master control module obtains the feedback information of the feedback module, and adjusts the feedback voltage applied to the voltage output module according to the feedback information, so that the voltage output module outputs the first voltage, and the first voltage is applied to the load module to generate a constant current to drive the load module. The feedback information is used to represent the current of the load module. By adjusting the feedback voltage applied to the voltage output module by the master control module, the constant voltage driving or the constant current driving is realized, the purpose of compatibility of the constant current driving and the constant voltage driving is achieved, and the purpose of improving the application range of the controller is further achieved. BRIEF DESCRIPTION OF DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creating labor.

[0018] Figure 1 This is a schematic diagram of the resistance voltage regulation method;

[0019] Figure 2A This is a schematic diagram of a controller provided in an embodiment of this application;

[0020] Figure 2B This is another schematic diagram of the controller provided in the embodiments of this application;

[0021] Figure 2C This is yet another schematic diagram of the controller provided in the embodiments of this application;

[0022] Figure 3A This is a schematic diagram of a controller provided in an embodiment of this application;

[0023] Figure 3B This is another schematic diagram of the controller provided in the embodiments of this application;

[0024] Figure 4 This is a schematic diagram showing the relationship between the DAC voltage and the output voltage of the controller provided in this application embodiment;

[0025] Figure 5 This is a flowchart of the driving method provided in the embodiments of this application;

[0026] Figure 6 This is a schematic diagram of the controller provided in the embodiments of this application. Detailed Implementation

[0027] Typically, the industry uses controllers to drive LED chips. LED chip driving methods are mainly divided into constant current driving and constant voltage driving. LED chips driven by constant current are called constant current loads, and those driven by constant voltage are called constant voltage loads. Correspondingly, controllers are divided into controllers for providing constant current and controllers for providing constant voltage. These controllers are implemented using techniques such as pulse width modulation (PWM).

[0028] In some practical applications, constant voltage drive and constant current drive are sometimes required. For such scenarios, existing technologies simultaneously employ controllers for providing constant current and controllers for providing constant voltage, resulting in space constraints, high costs, and cumbersome constant current / constant voltage switching procedures. There are no other solutions that can be compatible with both constant voltage and constant current drives.

[0029] In addition, in actual use, there is also a need to adjust the brightness of the LED lamp bead. The traditional brightness adjustment methods include resistance voltage adjustment method, resistance current adjustment method and frequency adjustment method. The resistance voltage adjustment method is to adjust the voltage to achieve the purpose of adjusting the brightness of the LED lamp bead. The resistance current adjustment method is to adjust the current to achieve the purpose of adjusting the brightness of the LED lamp bead. The frequency adjustment method is to adjust the driving frequency to achieve the purpose of adjusting the brightness of the LED lamp bead. However, it is difficult to accurately adjust the brightness of the LED lamp bead by using these methods.

[0030] For example, referring to Figure 1 , the BUCK circuit is used to provide a voltage, the voltage of the load is Vout, and the resistor R2 is used for voltage division. The voltage provided by the BUCK circuit includes the voltage across the feedback resistor R1. By adjusting the resistance value of the feedback resistor R1, the output voltage Vout is adjusted to achieve the purpose of adjusting the brightness of the LED lamp bead. For example, if the resistance of R1 increases, the voltage across R1 increases, and the voltage Vout of the load decreases, so that the brightness of the load decreases.

[0031] Therefore, the controller provided in the embodiments of the present application is provided. The controller includes a main control module supporting constant current driving and constant voltage driving, and a voltage output module connected to the main control module. The feedback voltage applied to the voltage output module is adjusted by the main control module to realize constant voltage driving or constant current driving, so as to realize the purpose of compatibility of constant current driving and constant voltage driving, and to realize the purpose of improving the application range of the controller.

[0032] The controller provided in the embodiments of the present application is also called a light source controller, a dimming controller, a driving board, a driving controller, etc., and is used to drive a load to light up the LED lamp bead on the load. The LED lamp bead is also called a light source, etc., and can be a load driven in a constant voltage driving mode or a load driven in a constant current driving mode, i.e., the LED lamp bead can be a constant voltage load or a constant current load. The LED lamp bead can be a common lighting LED lamp bead in life, an LED lamp bead on a display screen, or a device providing a light source for a camera in the field of machine vision, which can make the camera take clearer pictures or videos that are easy to be recognized by visual software. A load includes a plurality of LED lamp beads.

[0033] In the embodiments of the present application, the controller is used not only to drive the LED lamp bead to light up the LED lamp bead, but also to adjust the brightness of the LED lamp bead.

[0034] Figure 2A is a schematic diagram of the controller provided in the embodiments of the present application. Please refer to Figure 2AThe control includes a master control module 21, a voltage output module 23, a feedback module 24 and a load module 25. The master control module 21 integrates a digital-to-analog (DAC) function. A feedback output end of the master control module 21 is connected with a feedback input end of the voltage output module 23, for applying a feedback voltage to the voltage output module 23. The master control module 21 is also connected with the feedback module 24. The feedback module 24 and the voltage output module 23 are respectively connected with the load module 25. The voltage output module is used to provide an output voltage Vout to the load module 25. The load module 25 is used to access a constant current load or a constant voltage load.

[0035] Please refer to Figure 2A The master control module 21 supports constant voltage driving and constant current driving, for determining a driving mode of the load module 25. The master control module 21 has a DAC function. Based on the DAC function, a feedback output end of the master control module 21 outputs a DAC voltage. By adjusting the DAC voltage, a size of the feedback voltage Vfb applied to the voltage output module 23 can be adjusted.

[0036] When the driving mode of the load module 25 is a constant voltage driving mode, the master control module 21 adjusts the feedback voltage Vfb applied to the voltage output module 23 according to a driving voltage of the load module 25, so that the voltage output module 23 outputs the driving voltage.

[0037] When the driving mode of the load module 25 is a constant current driving mode, the master control module 21 acquires feedback information of the feedback module 24, and adjusts the feedback voltage Vfb applied to the voltage output module 23 according to the feedback information, so that the voltage output module 23 outputs a first voltage. The first voltage is applied to the load module 25 to generate a constant voltage, which is used to drive a load on the load module 25, i.e. the LED lamp bead. The feedback information is used to represent a current of the load module 25. By detecting the current flowing through the load on the load module 25 in real time, the current is fed back to the master control module 21. The master control module 21 adjusts the DAC voltage output by the feedback output end according to the current, adjusts the feedback voltage Vfb applied to the voltage output module 23 according to the DAC voltage, and further adjusts a size of the first voltage output by the voltage output module 23.

[0038] The controller provided by the embodiment of the application comprises a main control module, a voltage output module, a feedback module and a load module. A feedback output end of the main control module is configured to apply a feedback voltage to the voltage output module. The main control module is further connected with the feedback module. The feedback module and the voltage output module are respectively connected with the load module. The main control module supports constant-current driving and constant-voltage driving. When the main control module determines that the driving mode of the load module is a constant-voltage driving mode, the feedback voltage applied to the voltage output module is adjusted according to the driving voltage of the load module, so that the voltage output module outputs the driving voltage for driving the load. When the main control module determines that the driving mode of the load module is a constant-current driving mode, feedback information is acquired, and the feedback voltage applied to the voltage output module is adjusted according to the feedback information, so that the voltage output module outputs the first voltage for generating a constant current to drive the constant-current load. By adjusting the feedback voltage applied to the voltage output module to realize constant-voltage driving or constant-current driving, the purpose of realizing the compatibility of constant-current driving and constant-voltage driving is achieved, and the purpose of improving the application range of the controller is further achieved.

[0039] In the above Figure 2A The main control module 21 integrates the DAC function.

[0040] In other possible implementation manners, the controller can further comprise a DAC module 22, that is, the main control module 21 and the DAC module 22 are two independent modules.

[0041] For example, refer to Figure 2B The controller comprises a main control module 21, a DAC module 22, a voltage output module 23, a feedback module 24 and a load module 25.

[0042] The DAC module 22 and the feedback module 24 are respectively connected with the main control module 21, the DAC module 22 is further connected with the voltage output module 23, and the voltage output module 23 and the feedback module 24 are respectively connected with the load module 25.

[0043] The main control module 21 supports constant-voltage driving and constant-current driving, and is configured to determine the driving mode of the load module 25.

[0044] When the driving mode is the constant voltage driving mode, the main control module 21 adjusts the feedback voltage Vfb applied to the voltage output module 23 by the DAC module 22 according to the driving voltage of the load, so that the voltage output module 23 outputs the driving voltage. When the driving mode is the constant current driving mode, the feedback information of the feedback module 24 is obtained, and the feedback voltage Vfb applied to the voltage output module 23 by the DAC module 22 is adjusted according to the feedback information, so that the voltage output module 23 outputs the first voltage, and the first voltage is applied to the load module to generate a constant current to drive the load module. The feedback information is used to characterize the current of the load module. By detecting the current flowing through the load on the load module 25 in real time, the current is fed back to the main control module 21, and the main control module 21 adjusts the DAC voltage output by the feedback output end according to the current, adjusts the feedback voltage Vfb applied to the voltage output module 23 according to the DAC voltage, and further adjusts the size of the first voltage output by the voltage output module 23.

[0045] Please refer to Figure 2B The DAC module 22 mainly has two functions: one is to generate a DAC voltage under the control of the main control module 21, to adjust the feedback voltage Vfb applied to the voltage output module 23 by adjusting the DAC voltage, and to further adjust the output voltage of the voltage output module 23; the other is to compare the size of the feedback current.

[0046] The voltage output module 23 includes a BUCK circuit, which is mainly used to output different voltages. When the load is a constant voltage load, the voltage output by the voltage output module 23 is the driving voltage of the constant voltage load; when the load is a constant current load, the voltage output module 23 outputs a first voltage, which is used to generate a constant current required by the constant current load.

[0047] In the embodiment of the application, the main control module 21 can be connected to the external keys of the controller, and different keys correspond to different driving modes. After the user presses the keys, the main control module determines the driving mode according to the pressed keys.

[0048] The main control module 21 can also establish a serial port connection with the host computer and perform serial port communication. Through the serial port communication, the host computer provides the driving mode of the load to the main control module 21. When the driving mode is the constant voltage driving, the main control module 21 also communicates with the host computer to set the driving voltage and the like; when the driving mode is the constant current driving, the main control module 21 also communicates with the host computer to set the driving current and the maximum power of the load.

[0049] For example, when the load module 25 is connected to a constant voltage load, the controller is set to a constant voltage driving mode by the host computer, and the maximum power and driving voltage are set by the host computer. The host control module 21 controls the DAC module 22 to generate a DAC voltage applied to the voltage output module 23 according to the driving voltage of the constant voltage load, so that the feedback input end of the voltage output module 23 obtains a feedback voltage Vfb. Since the feedback voltage Vfb is different, Vout is different. Therefore, the host control module 21 can control the size of the feedback voltage Vfb by controlling the DAC voltage, thereby causing the voltage output module 23 to generate a driving voltage for driving the constant voltage load, as shown by Vout in the figure. The size of the driving voltage is related to the constant voltage load. For example, the constant voltage load is a 5V1A load, and the driving voltage is 5V; for another example, the constant voltage load is a 12V400mA load, and the driving voltage is 12V.

[0050] For another example, when the load module 25 is connected to a constant current load, the controller is set to a constant current mode by the host computer, and the maximum power and maximum current are set by the host computer. After the constant current load is connected, the feedback module 24 collects feedback information and sends it to the host control module 21. The host control module 21 controls the DAC module 22 to generate a DAC voltage applied to the voltage output module 23 according to the feedback information, so that the feedback input end of the voltage output module 23 obtains a feedback voltage Vfb. Since the feedback voltage Vfb is different, Vout is different. Therefore, the host control module 21 can control the size of the feedback voltage Vfb by controlling the DAC voltage, thereby causing the voltage output module 23 to generate a first voltage applied to the constant current load to generate a constant current to drive the constant current load. The size of the first voltage is related to the constant current load. For example, the constant current load is a 200mA load, and the first voltage satisfies: after the constant current load is connected to the controller, the controller generates a constant current of 200mA to drive the constant current load. For another example, the constant current load is a 400mA load, and the first voltage satisfies: after the constant current load is connected to the controller, the controller generates a constant current of 400mA to drive the constant current load.

[0051] The controller provided by the embodiment of the present application comprises a main control module, a voltage output module, a feedback module and a load module. The main control module is connected with the voltage output module and the feedback module, and the voltage output module and the feedback module are connected with the load module respectively. The main control module supports constant voltage driving and constant current driving, and is used for determining the driving mode of the load module. When the driving mode is the constant voltage driving mode, the main control module adjusts the feedback voltage applied to the voltage output module according to the driving voltage of the load module, so that the voltage output module outputs the driving voltage. When the driving mode is the constant current driving mode, the main control module acquires the feedback information of the feedback module, and adjusts the feedback voltage applied to the voltage output module according to the feedback information, so that the voltage output module outputs the first voltage, the first voltage is applied to the load module to generate a constant current to drive the load module, and the feedback information is used for representing the current of the load module. By adjusting the feedback voltage applied to the voltage output module by the main control module, the constant voltage driving or the constant current driving is realized, the purpose of compatibility of the constant current driving and the constant voltage driving is achieved, and the purpose of improving the application range of the controller is further achieved.

[0052] Figure 2C is another schematic diagram of the controller provided by the embodiment of the present application. Please refer to Figure 2C The controller further comprises a PWM module 26, which is connected with the voltage output end of the voltage output module 23, the main control module 21 and the load module 25. When the driving mode is the constant voltage driving mode, and the main control module 21 determines that the brightness of the load is adjusted to the target brightness, the PWM module is controlled to generate the PWM signal with the target duty cycle, so that the purpose of brightness adjustment is achieved.

[0053] Optionally, the voltage output module of the controller provided by the embodiment of the present application comprises a BUCK circuit, a first resistor R1, a second resistor R2 and a third resistor R3. For example, please refer to Figure 3A and Figure 3B .

[0054] Figure 3A is a schematic diagram of the controller provided by the embodiment of the present application. Figure 3B is another schematic diagram of the controller provided by the embodiment of the present application. Please refer to Figure 3A and Figure 3BThe first resistor R1, the second resistor R2 and the third resistor R3 are all feedback resistors with fixed resistance, and the current flowing through the second resistor R2 is the sum of the currents flowing through the first resistor R1 and the third resistor R3. The first resistor R1 is used to feedback the current generated by the difference voltage between the output end Vout and the feedback voltage Vfb, the second resistor R2 is used to feedback the current generated by the feedback voltage Vfb, and the third resistor R3 is used to feedback the current generated by the difference voltage between the DAC voltage and the feedback voltage. According to the relationship of the currents flowing through the first resistor R1, the second resistor R2 and the third resistor R3, the output end Vout can be determined, and then the size of the feedback voltage Vfb applied to the voltage output module 23 can be adjusted by adjusting the DAC voltage. When the feedback voltage Vfb changes, the output end Vout changes. For details, please refer to the formula (1) and the formula (2) below.

[0055] The first end of the first resistor R1 is connected with the voltage output end of the BUCK circuit, the second end of the first resistor R1 is connected with the first end of the second resistor R2, the second end of the second resistor R2 is grounded, the first end of the third resistor R3 is connected with the DAC module 22, the second end of the third resistor R3 is connected with the first end of the second resistor R2 and the feedback input end of the BUCK circuit, and the BUCK circuit is connected with the input power supply.

[0056] Please refer to Figure 3A and Figure 3B The input power supply is used to provide an input voltage Vin, for example, 24V, which is not limited in the embodiment of the application. The voltage output module 23 is used to generate different voltages according to different loads, and the voltage range is 0-24V.

[0057] Figure 3A and Figure 3B are all described by taking the example that the main control module 21 and the DAC module 22 are independent, and the first end of the third resistor R3 is connected with the DAC module 22. However, the embodiment of the application is not limited, when the main control module 21 integrates the DAC function, the first end of the third resistor R3 is connected with the DAC voltage output end of the main control module.

[0058] In the embodiment of the present application, different constant voltage loads require different driving voltages. In order to enable the controller to provide corresponding driving voltages for the connected constant voltage loads, when the controller sets the working mode to the constant voltage driving mode through communication with the host computer and the load module 25 is connected to the constant voltage load, the main control module 21 determines the maximum power and driving voltage of the constant voltage load through serial communication with the host computer and the like. Then, the main control module 21 controls the size of the DAC voltage generated by the DAC module 22, so that the DAC module 22 applies a suitable feedback voltage Vfb to the voltage output module 23, and then the voltage output module 23 outputs the driving voltage. The range of the DAC voltage is, for example, 0-5V. The driving voltage, i.e., Vout, satisfies the following formulas (1) and (2).

[0059]

[0060] BUCK circuit, the input voltage is, for example, 24V, Vfb is 0.8V, R1=43kΩ, R2=1.8kΩ, R3=7.87kΩ, and the like.

[0061] Figure 4 FIG. 4 is a schematic diagram of the relationship between the DAC voltage and the output voltage of the controller provided in the embodiment of the present application. The abscissa is the DAC voltage, and the ordinate is the output voltage Vout. When the load is a constant voltage load, the output voltage Vout is the driving voltage of the constant voltage load. Please refer to FIG. 4. Figure 4 The range of the DAC is, for example, 0.12V-4.41V, and the range of the output voltage Vout is 0-24V. Obviously, the main control module 21 controls the DAC voltage output by the DAC module 22, so that the voltage output module 23 generates a corresponding feedback voltage Vfb at the feedback input end, and then the voltage output module 23 outputs the driving voltage required by the constant voltage load.

[0062] By using this scheme, the voltage output module is constructed by the BUCK circuit and the resistor, which is simple in structure, low in cost, and convenient for quickly and accurately realizing constant current driving.

[0063] In the embodiment of the present application, different constant current loads require different driving currents, and different driving currents correspond to different first voltages. In order to enable the controller to provide corresponding first voltages for the connected constant current loads, when the controller sets the working mode to the constant current driving mode through communication with the host computer and the load module 25 is connected to the constant current load, the main control module 21 obtains the feedback information from the feedback module 24 and determines the first voltage according to the feedback information. The determination process of the first voltage is shown in the following formulas (3)-(6).

[0064] I L = I4 formula (3)

[0065]

[0066] P L = V L × I L Equation (5)

[0067] V L = V out - V4 Equation (6)

[0068] According to Equation (6), Equation (7) can be obtained:

[0069]

[0070] In Equation (7), V4 can be ignored because it is very small, and Equation (8) is obtained:

[0071]

[0072] In Equations (6) to (8) above, P L , V L , and I L are the power, voltage, and current of the constant current load, respectively, I4 and R4 are the current and resistance of the sampling resistor R4, respectively, Vout is the first voltage, V4 is the voltage across the sampling resistor R4, and I4 is also called the feedback current.

[0073] After the first voltage is determined, the main control module 21 controls the size of the DAC voltage generated by the DAC module 22, so that the DAC module 22 applies a suitable feedback voltage Vfb to the voltage output module 23, and then the voltage output module 23 outputs the first voltage. After the first voltage is applied to the constant current load, a constant current is generated to drive the constant current load.

[0074] The above focuses on how the controller realizes the compatibility of constant current driving and constant voltage driving. On the basis of compatibility, the embodiments of the present application can also perform brightness adjustment and load protection. Next, the brightness adjustment and load protection are described in detail.

[0075] First, brightness adjustment.

[0076] In the embodiments of the present application, the PWM module 26 is mainly used for brightness adjustment of the load in the constant voltage driving mode, and the duty cycle of the PWM signal is different at different brightness. Therefore, when the constant voltage load is connected to the controller and brightness adjustment is needed, the main control module 21 controls the duty cycle of the PWM signal generated by the PWM module 26, thereby realizing the function of brightness adjustment. For example, the user instructs the main control module 21 to adjust the brightness of the constant voltage load to 50% through the host computer. After receiving the instruction, the main control module 21 adjusts the duty cycle of the PWM signal to 50%, thereby adjusting the brightness of the constant voltage load to 50%.

[0077] In the embodiments of the present application, the PWM module 26 is mainly used for adjusting the brightness of the load in the constant voltage driving mode, and the brightness adjustment of the constant current load does not depend on the PWM module 26. Therefore, when the driving mode is the constant current driving mode, that is, when the constant current load is connected to the controller, the duty cycle of the PWM signal output by the PWM module is 100%.

[0078] By using the scheme, the PWM module is arranged to achieve the purpose of adjusting the brightness of the load in the constant voltage driving mode.

[0079] Optionally, in the above embodiments, the main control module 21 is further configured to, when the driving mode is the constant current driving mode and it is determined that the brightness of the load is adjusted to the target brightness, determine the adjustment range according to the maximum current of the load, and adjust the feedback voltage applied to the voltage output module by the DAC module 22 according to the adjustment range to adjust the first voltage, and the adjusted first voltage is used to generate the target brightness. When the main control module 21 and the DAC module are independently arranged, the main control module adjusts the feedback voltage applied to the voltage output module by the DAC module 22 according to the adjustment range to adjust the first voltage, and the adjusted first voltage is used to generate the target brightness.

[0080] For example, a 200-mA constant current load has a maximum current of 200 mA, and the current adjustment range is 0-200 mA. Different current values in the range correspond to different brightness, and different current values correspond to different first voltages. The first voltage is related to the feedback voltage Vfb of the feedback input end of the voltage output module 23, and the feedback voltage Vfb is related to the DAC voltage generated by the DAC module 22. Therefore, the main control module 21 controls the size of the DAC voltage generated by the DAC module 22 according to the target brightness, so that the DAC module 22 applies a suitable feedback voltage Vfb to the voltage output module 23, and then the first voltage output by the voltage output module 23 can generate the target brightness.

[0081] By adjusting the size of the first voltage output by the voltage output module, the purpose of adjusting the brightness of the constant current load is achieved, and the adjustment method is simple.

[0082] Secondly, load protection.

[0083] In the embodiments of the present application, when the constant voltage load is connected, the feedback information is mainly used to determine whether the power of the constant voltage load is too large. When the power of the constant voltage load exceeds the maximum power, the main control module disconnects the voltage output module, closes the PWM module, and the like to avoid burning out the constant voltage load and the controller.

[0084] When the constant current load is connected, the feedback information has two main functions. One is to control the size of the DAC voltage generated by the main control module 21, so that the DAC module 22 applies a suitable feedback voltage Vfb to the voltage output module 23, and then the voltage output module 23 outputs the first voltage. The other is to determine whether the power of the constant current load is too large. When the power of the constant current load exceeds the maximum power, the main control module disconnects the voltage output module, closes the PWM module, and the like to avoid burning the constant current load and the controller. For example, the output power of the output terminal Vout is the maximum power, which is 10 watts. If the power of the constant current load is 5 watts, the constant current load is easily burned. Therefore, it is necessary to adjust the DAC voltage according to the feedback information, adjust the feedback voltage Vfb according to the DAC voltage, and then adjust the first voltage. By adjusting the first voltage, the purpose of adjusting the output power of the output terminal Vout is achieved.

[0085] In the embodiment of the application, the feedback module can be realized by an operational amplifier or a comparator.

[0086] Please refer to Figure 3A The feedback module 24 includes a sampling resistor R4 and an operational amplifier. The first end of the sampling resistor R4 is connected to the first input end of the operational amplifier and grounded. The second end of the sampling resistor R4 is connected to the load module and connected to the second input end of the operational amplifier. The output end of the operational amplifier is connected to the main control module 21. The feedback information is the sampling current flowing through the sampling resistor.

[0087] By using the operational amplifier and the sampling resistor to construct the feedback module, the structure is simple and the precision is high.

[0088] When the constant voltage load is connected to the controller, that is, when the load connected to the load module 25 is a constant voltage load, the feedback module 24 can obtain the current of the sampling resistor R4 through the operational amplifier, that is, obtain the feedback current. Then, the feedback module 24 feeds back the feedback current to the main control module 21. According to the above formula (3), the feedback current I4 is the current flowing through the constant voltage load. The main control module 21 can calculate the output power of the constant voltage load according to the feedback current and the driving voltage (that is, Vout) of the constant voltage load. In addition, the main control module 21 determines the driving mode and communicates with the upper computer to obtain the maximum power of the constant voltage load. The main control module 21 compares the maximum power and the output power. If the output power is greater than the maximum power, the voltage output module is disconnected, the PWM module is closed, and the like to avoid burning the constant voltage load and the controller.

[0089] When the constant current load is connected to the controller, i.e. when the load connected to the load module 25 is a constant current load, on the one hand, the main control module 21 determines the first voltage according to the feedback current, controls the size of the DAC voltage generated by the DAC module 22, so that the DAC module 22 applies a suitable feedback voltage Vfb to the voltage output module 23, and then the voltage output module 23 outputs the first voltage, which, when applied to the constant current load, generates a constant current to drive the constant current load. On the other hand, the main control module 21 can calculate the output power of the constant current load according to the feedback current and the first voltage, and compare the output power with the maximum power of the constant current load. If the output power is greater than the maximum power, the voltage output module is disconnected, the PWM module is turned off, and the like, to avoid burning the constant current load and the controller.

[0090] With this scheme, the feedback module is constructed by using an operational amplifier and a sampling resistor, etc., which is used for protecting the load in constant voltage mode and for calculating the first voltage and protecting the load in constant current mode, so the structure is simple, the cost is low, and the function is powerful.

[0091] Please refer to Figure 3B The feedback module 24 includes a sampling resistor R4 and a comparator. The first end of the sampling resistor R4 is connected to the ground, the second end of the sampling resistor R4 is connected to the load module 25 and connected to the second input end of the comparator, the first input end of the comparator is connected to the DAC voltage output end of the main control module 21, the output end of the comparator is connected to the feedback input end of the main control module 21, and the feedback input end is the port connected between the main control module 21 and the feedback module 24. The first input end of the comparator is the reverse input end, for example, and the second input end of the comparator is the positive input end. When the main control module 21 and the DAC module 22 are independently set, the first input end of the comparator is connected to the DAC module 22.

[0092] The comparator is used for obtaining the preset reference voltage of the DAC module from the first input end, obtaining the sampling voltage of the sampling resistor from the second input end, and generating feedback information according to the reference voltage and the sampling voltage, wherein the feedback information is used for indicating the size relationship between the reference voltage and the sampling voltage.

[0093] With this scheme, the feedback module is constructed by using a comparator and a sampling resistor, etc., and the load protection is performed according to the comparison result, so the structure is simple.

[0094] For constant voltage driving, a reference voltage is set to the DAC module in advance, which is provided to the feedback module 24 through the first input terminal of the comparator of the feedback module 24. The reference voltage is the voltage across the sampling resistor R4 when the constant voltage load power exceeds the maximum power. When the constant voltage load is connected to the controller, i.e., when the load connected to the load module 25 is a constant voltage load, if the constant voltage load power does not exceed the maximum power, the reference voltage is greater than or equal to the sampling voltage. If the constant voltage load power exceeds the maximum power, the reference voltage is less than the sampling voltage. Therefore, after the feedback module obtains the reference voltage and the sampling voltage, it generates feedback information according to the size relationship between the reference voltage and the sampling voltage and sends it to the main control module 21.

[0095] After the main control module 21 receives the feedback information, if the feedback information indicates that the reference voltage is greater than or equal to the sampling voltage, it is considered that the output power of the constant voltage load does not exceed the maximum power. If the feedback information indicates that the reference voltage is less than the sampling voltage, it is considered that the output power of the constant voltage load exceeds the maximum power, and the voltage output module is disconnected, the PWM module is turned off, etc. to avoid burning out the constant voltage load and the controller.

[0096] For constant current driving, a reference voltage is set to the DAC module in advance, which is provided to the feedback module 24 through the first input terminal of the comparator of the feedback module 24. The reference voltage is the voltage across the sampling resistor R4 when the constant current load is driven by the constant current voltage. After the constant current load is connected to the controller, i.e., when the load connected to the load module 25 is a constant current load, on the one hand, the main control module 21 determines whether the sampling voltage is equal to the reference voltage according to the feedback information. When the sampling voltage is not equal to the reference voltage, the main control module controls the size of the DAC voltage generated by the DAC module 22, so that the DAC module 22 applies a suitable feedback voltage Vfb to the voltage output module 23, and then the voltage output module 23 outputs a first voltage. After the first voltage is applied to the constant current load, a constant current is generated to drive the constant current load. Moreover, when the output module 23 outputs the first voltage, the sampling voltage is equal to the reference voltage. For example, for a 200-mA constant current load, assume that the reference voltage is set to 20 mV in advance. After the constant current load is connected, the second input terminal of the comparator obtains the sampling voltage, which is 10 mV, i.e., the reference voltage is greater than the sampling voltage. Then the main control module 21 controls the size of the DAC voltage generated by the DAC module 22, so that the DAC module 22 applies a suitable feedback voltage Vfb to the voltage output module 23, and then the output voltage of the voltage output module 23 changes until the sampling voltage is equal to the reference voltage. When the sampling voltage is equal to the reference voltage, the output voltage of the voltage output module at this time is taken as the first voltage.

[0097] On the other hand, the main control module 21 determines whether the output power of the constant current load exceeds the maximum power according to the feedback information. For example, when the sampling voltage is equal to the reference voltage, the main control module 21 determines that the output power of the constant current load is less than the maximum power. When the sampling voltage is greater than or equal to the reference voltage, the main control module 21 determines that the output power of the constant current load is greater than the maximum power, and turns off the voltage output module, turns off the PWM module, etc. to avoid burning the constant current load and the controller. When the sampling voltage is less than the reference voltage, the main control module determines that the output power of the constant current load is less than the maximum power.

[0098] With this scheme, the feedback module is constructed by using a comparator and a sampling resistor, etc., which is used for protecting the load in the constant voltage mode and generating the first voltage and protecting the load in the constant current mode, so that the structure is simple, the cost is low, and the function is powerful.

[0099] On the basis of the above controller, the embodiment of the present application further provides a driving method. For example, please refer to Figure 5 . Figure 5 is a flow chart of the driving method provided by the embodiment of the present application. The embodiment includes:

[0100] 501, determine the driving mode of the load connected to the controller.

[0101] 502, when the driving mode is the constant voltage driving mode, determine the feedback voltage applied to the voltage output module of the controller according to the driving voltage of the load, so that the voltage output module outputs the driving voltage;

[0102] 503, when the driving mode is the constant current driving mode, obtain the feedback information from the feedback module, and apply the feedback voltage to the voltage output module according to the feedback information, so that the voltage output module outputs the first voltage, and the first voltage is applied to the load to generate a constant current to drive the load.

[0103] The driving method provided by the embodiment of the present application can be applied to the above controller, and the implementation principle and technical effects are similar, which will not be described here.

[0104] On the basis of the above controller, the embodiment of the present application further provides an LED device, which includes an LED lamp bead and the controller realized in any of the above modes, and the controller is used to drive the LED lamp bead to light up the LED lamp bead, and the number of the LED lamp bead is at least one. For the structure and working principle of the controller, please refer to the above embodiments, which will not be described here.

[0105] Figure 6 is a structural schematic diagram of the controller provided by the embodiment of the present application. Please refer to Figure 6The controller 600 in this application embodiment includes: at least one processor 61, at least one communication bus 62, a user interface 63, at least one network interface 64, and a memory 65.

[0106] The communication bus 62 is used to enable communication between these components.

[0107] The user interface 63 may include a display screen and a camera. Optionally, the user interface 63 may also include a standard wired interface and a wireless interface. The display screen is used to display the editing interface, roaming interface, etc.

[0108] Among them, the network interface 64 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0109] The processor 61 may include one or more processing cores. The processor 61 connects to various parts within the controller 600 using various interfaces and lines, and executes various functions and processes data of the controller 600 by running or executing instructions, programs, code sets, or instruction sets stored in the memory 65, and by calling data stored in the memory 65. Optionally, the processor 61 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 61 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Microcontroller Unit (MCU).

[0110] The memory 65 may include random access memory (RAM) or read-only memory. Optionally, the memory 65 may include a non-transitory computer-readable storage medium. The memory 65 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 65 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 65 may also be at least one storage device located remotely from the aforementioned processor 61. Figure 6 As shown, the memory 65, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an operating application program for the controller.

[0111] This application also provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, are used to implement the driving method implemented by the controller described above.

[0112] This application also provides a computer program product comprising a computer program that, when executed by a processor, implements the driving method implemented by the controller described above.

[0113] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0114] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart...Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0115] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0116] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 Figure 1 The steps of the function specified in one or more boxes.

[0117] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0118] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0119] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0120] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0121] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A controller, characterized in that, include: The system comprises a main control module, a voltage output module, a feedback module, and a load module. The main control module is connected to the voltage output module and the feedback module. The voltage output module and the feedback module are each connected to the load module. The main control module supports constant voltage drive and constant current drive, and is used to determine the drive mode of the load module; when the drive mode is constant voltage drive, the feedback voltage applied to the voltage output module is adjusted according to the drive voltage of the load module, so that the voltage output module outputs the drive voltage; The main control module is further configured to, when the driving mode is constant current driving mode, acquire feedback information from the feedback module and adjust the feedback voltage applied to the voltage output module according to the feedback information, so that the voltage output module outputs a first voltage, the first voltage is applied to the load module to generate a constant current to drive the load module, and the feedback information is used to characterize the current of the load module.

2. The controller according to claim 1, characterized in that, Also includes: A pulse width modulation (PWM) module is connected to the voltage output module, the main control module, and the load module; The main control module is also used to control the PWM module to generate a PWM signal with a duty cycle of the target duty cycle when the driving mode is constant voltage driving mode and it is determined that the brightness of the load is adjusted to the target brightness. The main control module is also used to control the duty cycle of the PWM signal output by the PWM module to be 100% when the driving mode is constant current driving mode.

3. The controller according to claim 1, characterized in that, The main control module is further configured to, when the driving mode is constant current driving mode and it is determined that the brightness of the load module is adjusted to the target brightness, determine the adjustment range according to the maximum current of the load, adjust the feedback voltage applied to the voltage output module according to the adjustment range to adjust the first voltage, and the adjusted first voltage is used to generate the target brightness.

4. The controller according to any one of claims 1 to 3, characterized in that, The feedback module includes a sampling resistor and an operational amplifier. The first end of the sampling resistor is connected to the first input terminal of the operational amplifier and grounded. The second end of the sampling resistor is connected to the load module and to the second input terminal of the operational amplifier. The output terminal of the operational amplifier is connected to the main control module. The feedback information is the sampling current flowing through the sampling resistor.

5. The controller according to any one of claims 1 to 3, characterized in that, The feedback module includes a sampling resistor and a comparator. The first end of the sampling resistor is grounded, the second end of the sampling resistor is connected to the load module and to the second input end of the comparator, the first input end of the comparator is connected to the digital-to-analog converter (DAC) voltage output end of the main control module, and the output end of the comparator is connected to the feedback input end of the main control module. The comparator is used to obtain a preset reference voltage from the DAC voltage output terminal of the main control module through the first input terminal, obtain the sampled voltage of the sampling resistor from the second input terminal, and generate the feedback information based on the reference voltage and the sampled voltage. The feedback information is used to indicate the magnitude relationship between the reference voltage and the sampled voltage.

6. The controller according to claim 5, characterized in that, The main control module is also used to protect the load when the feedback information indicates that the reference voltage is less than the sampling voltage.

7. The controller according to any one of claims 1 to 3, characterized in that, The main control module, when the feedback information is a feedback current, is also used to determine the maximum power of the load, determine the output power of the load based on the feedback current, and protect the load when the output power is greater than or equal to the maximum power.

8. The controller according to any one of claims 1 to 3, characterized in that, The voltage output module includes a BUCK circuit, a first resistor, a second resistor, and a third resistor. The first end of the first resistor is connected to the voltage output terminal of the BUCK current. The second end of the first resistor is connected to the first end of the second resistor. The second end of the second resistor is grounded. The first end of the third resistor is connected to the DAC voltage output terminal of the main control module. The second end of the third resistor is connected to the first end of the second resistor and to the feedback input terminal of the BUCK circuit. The BUCK circuit is connected to the input power supply.

9. A driving method, characterized in that, Applied to a controller, the method includes: Determine the driving mode of the load connected to the controller; When the driving mode is constant voltage driving mode, the feedback voltage applied by the controller to the voltage output module is determined according to the driving voltage of the load, so that the voltage output module outputs the driving voltage; When the driving mode is constant current driving mode, feedback information is obtained from the feedback module, and the feedback voltage applied to the voltage output module is adjusted according to the feedback information so that the voltage output module outputs a first voltage, and the first voltage is applied to the load to generate a constant current to drive the load.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in claim 9.

11. An LED device, characterized in that, The LED device includes LED beads and a controller as described in any one of claims 1-8, the controller being used to drive the LED beads to illuminate them.