Light source driving method, device, equipment and storage medium

By determining whether the output voltage of the current loop in the light source driver is within the target range, adjusting the minimum and maximum operating current of the light source driver, and calculating the target output voltage, the problem of low performance detection efficiency of the light source driver is solved, and more accurate performance adjustment and brightness control are achieved.

CN116156697BActive Publication Date: 2026-06-26GUANGDONG LYRIC ROBOT INTELLIGENT AUTOMATION CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG LYRIC ROBOT INTELLIGENT AUTOMATION CO LTD
Filing Date
2023-02-28
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

In existing technologies, the performance detection efficiency of light source drivers is low, and the detection results may be inaccurate, making it difficult to detect and adjust performance problems in a timely manner.

Method used

By determining whether the voltage output by the light source driver to the light source is within the target range based on the output voltage of the current loop in the light source driver, if it is not within the range, the minimum and maximum operating current of the light source are determined, and the target output voltage is calculated based on these parameters. The light source driver is then controlled to output voltage according to the target output voltage.

Benefits of technology

The accuracy of the light source driver has been improved, enabling it to provide a more suitable voltage, thereby allowing the light source to emit brightness that meets actual requirements and ensuring the accuracy and stability of the light source driver performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116156697B_ABST
    Figure CN116156697B_ABST
Patent Text Reader

Abstract

The application provides a control method, device and equipment of a light source driver and a storage medium, and belongs to the technical field of electronic circuits. The method comprises the following steps: determining whether a first voltage output by the light source driver to a light source is within a target interval based on a first output voltage of a current loop in the light source driver; if the first voltage output by the light source driver is not within the target interval, determining a minimum working current and a maximum working current of the light source; determining a target output voltage based on the minimum working current, the maximum working current and a brightness interval of the light source; and controlling the light source driver to perform voltage output according to the target output voltage. The application can determine the performance of the light source driver and adjust the performance problems existing in the light source driver.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic circuit technology, and more specifically, to a control method, apparatus, device, and storage medium for a light source driver. Background Technology

[0002] In the field of electronic circuits, a light source is usually required, and the light source is usually driven by a light source driver to produce light of a corresponding brightness. When using a light source driver, it is necessary to understand its own performance in a timely manner to avoid damage to the circuit.

[0003] In the existing technology, the performance testing of a light source driver usually involves obtaining the operating voltage and current of the light source, and then calculating relevant parameters based on the operating voltage and current of the light source to make a judgment.

[0004] However, simply obtaining the operating voltage and current of the light source for detection is not only inefficient, but may also fail to provide the necessary data and may lead to limitations in the performance of the obtained light source driver. Summary of the Invention

[0005] The purpose of this application is to provide a control method, apparatus, device, and storage medium for a light source driver, which can determine the performance of the light source driver and adjust for performance problems existing in the light source driver.

[0006] The embodiments of this application are implemented as follows:

[0007] One aspect of this application provides a control method for a light source driver, including:

[0008] Based on the first output voltage of the current loop in the light source driver, determine whether the first voltage output by the light source driver to the light source is within the target range;

[0009] If the first voltage output by the light source driver is not within the target range, determine the minimum and maximum operating current of the light source.

[0010] The target output voltage is determined based on the minimum operating current, maximum operating current, and brightness range of the light source.

[0011] Control the light source driver to output voltage according to the target output voltage.

[0012] Optionally, the minimum and maximum operating currents of the light source are determined, including:

[0013] Analog-to-digital acquisition is performed on the light source under the second output voltage of the current loop to obtain the second voltage output by the light source driver to the light source.

[0014] The minimum operating current of the light source is determined based on the second voltage;

[0015] The maximum operating current of the light source is determined based on the selectable output voltage range of the current loop in the light source driver.

[0016] Optionally, determining the minimum operating current of the light source based on the second voltage includes:

[0017] The offset parameter is determined based on the second voltage;

[0018] Based on the offset parameter and the preset mapping relationship between the reference current and the output voltage of the current loop, the minimum operating current of the light source is obtained.

[0019] Optionally, the maximum operating current of the light source is determined based on the selectable output voltage range of the current loop in the light source driver, including:

[0020] The initial output voltage is determined from the selectable output voltage range of the current loop in the light source driver;

[0021] Based on the initial output voltage, the maximum output current of the current loop is determined using the doubling method;

[0022] The maximum operating current of the light source is determined based on the maximum output current.

[0023] Optionally, based on the initial output voltage, the maximum output current of the current loop is determined using a doubling method, including:

[0024] Based on the initial output voltage, the first target voltage is obtained by doubling the voltage.

[0025] The maximum output current of the current loop is calculated based on the feedback potential of the current loop, the first target voltage, and the current adjustment coefficient.

[0026] Optionally, determining whether the first voltage output by the light source driver to the light source is within the target range based on the first output voltage of the current loop in the light source driver includes:

[0027] Analog-to-digital acquisition is performed on the light source under the first output voltage of the current loop to obtain the first voltage output by the light source driver to the light source. The first output voltage of the current loop includes multiple preset voltage values, and each preset voltage value corresponds to a light source brightness value.

[0028] The target range is determined based on the pre-stored target voltage and the duration of light source usage.

[0029] Determine whether the first voltage output by the light source driver to the light source is within the target range.

[0030] Optionally, before determining whether the first voltage output by the light source driver to the light source is within the target range based on the first output voltage of the current loop in the light source driver, the method further includes:

[0031] Analog-to-digital acquisition is performed on the light source under the third output voltage of the current loop and the output voltage of the voltage loop to obtain the third voltage output by the light source driver to the light source;

[0032] The actual output current of the light source driver is determined based on the third voltage output by the light source driver to the light source;

[0033] The reference current of the light source driver is determined based on the actual output current of the light source driver.

[0034] Establish a mapping relationship between the reference current and the output voltage of the current loop.

[0035] In another aspect of this application, a control device for a light source driver is provided, comprising: a first detection module, a second detection module, an adjustment module, and an output module;

[0036] The first detection module is used to determine whether the first voltage output by the light source driver to the light source is within the target range based on the first output voltage of the current loop in the light source driver.

[0037] The second detection module is used to determine the minimum and maximum operating current of the light source if the first voltage output by the light source driver is not within the target range.

[0038] The adjustment module is used to determine the target output voltage based on the minimum operating current, maximum operating current, and brightness range of the light source.

[0039] The output module is used to control the light source driver to output voltage according to the target output voltage.

[0040] Optionally, the second detection module is specifically used to perform analog-to-digital acquisition on the light source under the second output voltage of the current loop to obtain the second voltage output by the light source driver to the light source; determine the minimum operating current of the light source based on the second voltage; and determine the maximum operating current of the light source based on the selectable output voltage range of the current loop in the light source driver.

[0041] Optionally, the second detection module is specifically used to determine the offset parameter based on the second voltage; and to obtain the minimum operating current of the light source based on the offset parameter and the preset mapping relationship between the reference current and the output voltage of the current loop.

[0042] Optionally, the second detection module is specifically used to determine the initial output voltage from the selectable output voltage range of the current loop in the light source driver; based on the initial output voltage, the maximum output current of the current loop is determined by doubling; and based on the maximum output current, the maximum operating current of the light source is determined.

[0043] Optionally, the second detection module is specifically used to obtain the first target voltage based on the initial output voltage using a doubling method; and to calculate the maximum output current of the current loop based on the feedback potential of the current loop, the first target voltage, and the current adjustment coefficient.

[0044] Optionally, the first detection module is specifically used to perform analog-to-digital acquisition on the light source under the first output voltage of the current loop to obtain the first voltage output by the light source driver to the light source. The first output voltage of the current loop includes multiple preset voltage values, each of which corresponds to a light source brightness value. The module determines a target range based on the pre-stored target voltage and the usage time of the light source. The module then determines whether the first voltage output by the light source driver to the light source is within the target range.

[0045] Optionally, the device further includes: a preprocessing module, specifically used to perform analog-to-digital acquisition on the light source under the third output voltage of the current loop and the output voltage of the voltage loop to obtain the third voltage output by the light source driver to the light source; determine the actual output current of the light source driver based on the third voltage output by the light source driver to the light source; determine the reference current of the light source driver based on the actual output current of the light source driver; and establish a mapping relationship between the reference current and the output voltage of the current loop.

[0046] In another aspect of this application, a computer device is provided, including: a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the computer program, it implements the steps of a control method for a light source driver.

[0047] In another aspect of this application, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps of a control method for a light source driver.

[0048] The beneficial effects of the embodiments of this application include:

[0049] The control method, apparatus, device, and storage medium for a light source driver provided in this application embodiment can determine whether the first voltage output by the light source driver to the light source is within a target range based on the first output voltage of the current loop in the light source driver; if the first voltage output by the light source driver is not within the target range, the minimum operating current and maximum operating current of the light source are determined; a target output voltage is determined based on the minimum operating current, maximum operating current, and brightness range of the light source; and the light source driver is controlled to output voltage according to the target output voltage. By adjusting the first voltage, an output voltage that better meets the performance requirements of the light source driver can be obtained, thereby enabling the light source driver to provide a more suitable voltage to the light source, resulting in the light source emitting brightness that meets actual needs. In other words, the performance of the light source driver can be determined, and performance problems of the light source driver can be adjusted, improving the accuracy of the light source driver. Attached Figure Description

[0050] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0051] Figure 1 A flowchart illustrating the control method of the light source driver provided in an embodiment of this application;

[0052] Figure 2 This is another schematic flowchart illustrating the control method of the light source driver provided in the embodiments of this application;

[0053] Figure 3 This is another schematic flowchart illustrating the control method of the light source driver provided in the embodiments of this application;

[0054] Figure 4 This is another schematic flowchart illustrating the control method of the light source driver provided in the embodiments of this application;

[0055] Figure 5 This is another schematic flowchart illustrating the control method of the light source driver provided in the embodiments of this application;

[0056] Figure 6 This is another schematic flowchart illustrating the control method of the light source driver provided in the embodiments of this application;

[0057] Figure 7 This is another schematic flowchart illustrating the control method of the light source driver provided in the embodiments of this application;

[0058] Figure 8This is a schematic diagram of the control device for the light source driver provided in an embodiment of this application;

[0059] Figure 9 A schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0060] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0061] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0062] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0063] In the description of this application, it should be noted that the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0064] The following section will explain in detail the specific implementation process of the control method for the light source driver provided in the embodiments of this application.

[0065] Figure 1 Please refer to the flowchart illustrating the control method of the light source driver provided in the embodiments of this application. Figure 1 The control method for the light source driver includes:

[0066] S110: Based on the first output voltage of the current loop in the light source driver, determine whether the first voltage output by the light source driver to the light source is within the target range.

[0067] It should be noted that the entity performing the above steps can be the control chip in the light source driver, such as the GP8403 chip.

[0068] Optionally, the light source driver can be a driving device for providing power supply voltage to the light source. The light source driver can include a current loop and a voltage loop, both of which can be voltage output units configured in the light source driver, which can realize the internal voltage output of the light source driver. The light source driver can provide power to the light source as an external voltage output through a specific power supply pin.

[0069] It should be noted that the first output voltage of the current loop can include multiple different voltage values. At the same time as the current loop outputs voltage, the voltage loop will also output voltage. In this step, the voltage output by the voltage loop can be a fixed voltage value.

[0070] With the voltage loop providing a fixed voltage and the current loop providing the aforementioned first output voltage, analog-to-digital conversion can be performed to acquire the first voltage output by the light source driver to the light source, thereby determining whether the first voltage is within the target range.

[0071] The target range can be set according to actual needs, or it can be set according to relevant parameters in the circuit; no specific restrictions are imposed here.

[0072] S120: If the first voltage output by the light source driver is not within the target range, determine the minimum operating current and maximum operating current of the light source.

[0073] Optionally, if the first voltage output by the light source driver is not within the target range, it can be determined that a performance problem was found in the output of the light source driver during the detection process of S110, and the maximum and minimum operating currents of the light source can be determined.

[0074] Conversely, if the first voltage output by the light source driver is within the target range, it can be determined that no performance problem was found in the light source driver during the detection process of S110. In other words, under these circumstances, it can be determined that there is no performance problem with the light source driver, and a prompt signal can be output by the light source driver to indicate that there is no performance problem with the light source driver.

[0075] S130: Determine the target output voltage based on the minimum operating current, maximum operating current, and brightness range of the light source.

[0076] Optionally, after obtaining the minimum and maximum operating currents of the light source, the brightness range of the light source can be determined and the target output voltage can be obtained according to a specific calculation formula.

[0077] S140: Controls the light source driver to output voltage according to the target output voltage.

[0078] Optionally, after obtaining the target output voltage, the light source driver can be controlled to output voltage according to the target output voltage. It should be noted that this voltage can be the voltage output to the light source.

[0079] It should be noted that before executing step S110 above, the value of the flash memory can be read. If the value of the flash memory is empty, step S120 can be executed to determine the minimum and maximum operating current of the light source and subsequent steps. If the value of the flash memory is not empty, steps S110-S140 can be executed in sequence.

[0080] In a control method for a light source driver provided in this application embodiment, it can be determined whether the first voltage output by the light source driver to the light source is within a target range based on the first output voltage of the current loop in the light source driver; if the first voltage output by the light source driver is not within the target range, the minimum operating current and maximum operating current of the light source are determined; a target output voltage is determined based on the minimum operating current, maximum operating current, and brightness range of the light source; and the light source driver is controlled to output voltage according to the target output voltage. By adjusting the first voltage, an output voltage that better meets the performance requirements of the light source driver can be obtained, thereby enabling the light source driver to provide a more suitable voltage to the light source, resulting in the light source emitting brightness that meets actual needs. In other words, the performance of the light source driver can be determined, and performance problems of the light source driver can be adjusted, improving the accuracy of the light source driver.

[0081] The following is a detailed explanation of another specific implementation process of the light source driving control method provided in the embodiments of this application.

[0082] Figure 2 For another schematic flowchart of the control method of the light source driver provided in the embodiments of this application, please refer to... Figure 2 Determine the minimum and maximum operating currents of the light source, including:

[0083] S210: Perform analog-to-digital acquisition on the light source under the second output voltage of the current loop to obtain the second voltage output by the light source driver to the light source.

[0084] Optionally, when determining the minimum operating current and the maximum operating current of the light source, analog-to-digital sampling can be performed again. Specifically, analog-to-digital sampling can be performed when the output of the current loop is the second output voltage and the output of the voltage loop is another fixed voltage. For example, multiple samplings can be performed, and then the average value can be taken to obtain the second voltage output by the light source driver to the light source.

[0085] For example, 200 samples can be taken, the average voltage obtained from the 200 samples can be calculated, and this average value can be used as the second voltage output by the aforementioned light source driver to the light source.

[0086] S220: Determine the minimum operating current of the light source based on the second voltage.

[0087] Optionally, after obtaining the second voltage, the minimum operating current of the light source can be determined based on the magnitude of the second voltage.

[0088] It should be noted that the second voltage can be used to determine the relevant adjustment parameters, and then the output of the current loop can be adjusted based on these parameters to obtain the minimum operating current of the light source.

[0089] S230: Determine the maximum operating current of the light source based on the selectable output voltage range of the current loop in the light source driver.

[0090] Optionally, different voltage values ​​can be output in the current loop of the light source driver. These voltage values ​​need to be within a selectable output voltage range, and the maximum operating current of the light source can be determined based on this voltage range.

[0091] The following is a detailed explanation of another specific implementation process of the light source driving control method provided in the embodiments of this application.

[0092] Figure 3 For another schematic flowchart of the control method of the light source driver provided in the embodiments of this application, please refer to... Figure 3 The minimum operating current of the light source is determined based on the second voltage, including:

[0093] S310: Determine the offset parameter based on the second voltage.

[0094] Optionally, the offset parameter can be obtained from the second voltage according to a pre-configured formula, as follows:

[0095] N = (0.025 × IU * a) / 0.87;

[0096] Where I is the current output voltage of the current loop, U is the second voltage, a is a preset coefficient that can be set according to the actual situation, and N is the offset parameter. The final value of the offset parameter needs to be rounded down. For example, the decimal part can be discarded and the integer part can be retained.

[0097] Additionally, if the offset parameter is 0 or negative, the minimum output voltage can be defined as 0.001V, and the current value corresponding to this voltage can be used as the minimum operating current of the light source.

[0098] S320: Based on the offset parameter and the preset mapping relationship between the reference current and the output voltage of the current loop, the minimum operating current of the light source is obtained.

[0099] Optionally, the preset mapping relationship between the reference current and the output voltage of the current loop can be a preset relationship obtained during power-on preparation. In this preset relationship, each offset corresponds to a reference current and the output voltage of the current loop. Based on the offset parameters obtained above, the corresponding output voltage of the current loop can be found.

[0100] The current value corresponding to the output voltage of this current loop is used as the minimum operating current of the light source.

[0101] For example: the offset parameter value obtained through the above calculation is 12. In this mapping relationship, when the offset parameter is 12, the corresponding reference current is 12.651mA and the corresponding current loop output voltage is 0.009V. Therefore, it can be determined that the current loop output voltage corresponding to the offset parameter 12 is 0.009V. The current value corresponding to this 0.009V is the minimum operating current of the light source.

[0102] It should be noted that the output voltage of the current loop and its corresponding current can be determined based on the relevant electrical parameters of the light source, with each operating voltage corresponding to one operating current.

[0103] The following is a detailed explanation of another specific implementation process of the light source driving control method provided in the embodiments of this application.

[0104] Figure 4 For another schematic flowchart of the control method of the light source driver provided in the embodiments of this application, please refer to... Figure 4 The maximum operating current of the light source is determined based on the selectable output voltage range of the current loop in the light source driver, including:

[0105] S410: Determines the initial output voltage from the selectable output voltage range of the current loop in the light source driver.

[0106] Optionally, the initial output voltage can be any value within the selectable output voltage range. In practice, to facilitate subsequent calculations, a smaller value can be selected. For example, if the selectable output voltage range is specifically 0-10V, then a value between 0-1V can be selected as the initial output voltage.

[0107] For example, 0.016V can be selected as the initial output voltage.

[0108] S420: Based on the initial output voltage, the maximum output current of the current loop is determined using the doubling method.

[0109] Optionally, after obtaining the initial output voltage, the doubling method can be used to determine the maximum output current of the current loop.

[0110] Specifically, the initial output voltage can be repeatedly doubled until the feedback potential of the current loop flips, at which point the doubling stops, and the current value corresponding to the maximum output voltage can be the maximum output current.

[0111] S430: Determines the maximum operating current of the light source based on the maximum output current.

[0112] Optionally, after obtaining the maximum output current, the maximum operating current of the light source can be determined. The specific conversion formula is as follows:

[0113] L2 = (L1 / 3 * 0.2 + 1) * L1;

[0114] Where L1 is the maximum output current and L2 is the maximum operating current of the light source.

[0115] The following is a detailed explanation of the specific implementation process for determining the maximum output current of the current loop provided in the embodiments of this application.

[0116] Figure 5 For another schematic flowchart of the control method of the light source driver provided in the embodiments of this application, please refer to... Figure 5 Based on the initial output voltage, the maximum output current of the current loop is determined using the doubling method, including:

[0117] S510: Based on the initial output voltage, the first target voltage is obtained by doubling the voltage.

[0118] Optionally, after obtaining the initial output voltage, it can be continuously doubled based on the initial output voltage. Each doubling can determine the feedback potential of the current loop. For example, 0.016V can be used as the initial output voltage to start doubling. The first output voltage is 0.016V, the second is 0.032V, the third is 0.064V, the fourth is 0.128V, and so on, until the determined feedback potential of the current loop reaches a low potential. The voltage corresponding to this point is the first target voltage.

[0119] For example: when the third output voltage is 0.064V, the feedback potential of the current loop is high; when the fourth output voltage is 0.128V, the feedback potential of the current loop is low. Therefore, 0.128V is the first target voltage.

[0120] S520: The maximum output current of the current loop is calculated based on the feedback potential of the current loop, the first target voltage, and the current adjustment coefficient.

[0121] Optionally, after obtaining the first target voltage, the second target voltage and the third target voltage can be calculated separately, wherein the second target voltage can be 0.38 times the first target voltage, and the third target voltage can be the intermediate value between the first target voltage and the second target voltage.

[0122] After performing the steps of S510 above, the feedback potential of the current loop can be reacquired after a delay. For example, after a delay of 200ms, the feedback potential of the current loop can be reacquired. Based on the potential obtained this time, the maximum output current can be calculated in different ways.

[0123] If the potential obtained this time is a high potential, the calculation formula is as follows:

[0124] L1 = U3 × b;

[0125] Where U3 is the third target voltage mentioned above, b is the current adjustment coefficient, and L1 is the maximum output current of the current loop;

[0126] If the potential obtained this time is a low potential, the calculation formula is as follows:

[0127] L1 = U2 × b;

[0128] Wherein, U2 is the aforementioned second target voltage.

[0129] Optionally, the maximum operating voltage of the light source can also be obtained:

[0130] By measuring the voltage across the identification resistor, the type and color of the light source can be determined based on the voltage range. From this, the cutoff and operating voltages of the LEDs connected in series with the light source can be identified. By detecting the voltage across the light source, the number of LEDs connected in series can be calculated, and the maximum operating voltage of the light source can be deduced from the number of LEDs.

[0131] It should be noted that after obtaining the maximum and minimum operating currents of the light source using the above method, the brightness range of the light source can be calculated. The specific calculation process is as follows:

[0132] The increase in light source brightness is linear. We can divide the brightness values ​​of levels 1-255 into 100 parts and use the intercept formula to obtain the following formula:

[0133] Y=99 / 25400X-99 / 25400+0.01;

[0134] Where X is the brightness value and Y is the percentage, specifically, the brightness value of X from 1 to 255 can be converted into a percentage value between 1 and 100;

[0135] After obtaining the percentage, the fourth output voltage of the current loop can be calculated using the following formula:

[0136] The fourth output voltage of the current loop = (Imax - Imin) × Y + Imin;

[0137] Where Imax is the maximum operating current of the light source, Imin is the minimum operating current of the light source, and Y is the percentage of the above.

[0138] Optionally, the fifth output voltage of the voltage loop can be determined differently based on the brightness. The specific determination process is as follows:

[0139] When the brightness X is between 100 and 255, the calculation formula used is as follows:

[0140] Y1 = 99 / 15500X - 9745 / 15500;

[0141] U5=(Vlotage(255)*2-Vlotage(100)*2)*Y1+Vlotage(100)*2+B;

[0142] When the brightness X is between 1 and 100, the calculation formula used is as follows:

[0143] Y2 = 0.01 * X;

[0144] U5=(Vlotage(100)*2-Vlotage(30)*2)*Y2+Vlotage(30)*2+B;

[0145] Where Vlotage() is the output voltage of the voltage loop under the corresponding brightness value in parentheses; U5 is the fifth output voltage of the voltage loop; B is a fixed calculation coefficient obtained through a large number of calculations, for example, it can be 0.43; Y1 and Y2 are different percentage parameters used under two conditions to convert the brightness value of X from 1 to 255 into a percentage value between 1 and 100.

[0146] When the current loop outputs voltage according to the fourth output voltage and the voltage loop outputs voltage according to the fifth output voltage, output sampling can be performed to collect the voltage output from the light source driver to the light source at this time. Specifically, multiple samplings can be performed, and the average value obtained can be used as the target output voltage. Then, the light source driver can be controlled to output according to the target output voltage.

[0147] The following is a detailed explanation of another specific implementation process of the light source driving control method provided in the embodiments of this application.

[0148] Figure 6For another schematic flowchart of the control method of the light source driver provided in the embodiments of this application, please refer to... Figure 6 Based on the first output voltage of the current loop in the light source driver, determine whether the first voltage output by the light source driver to the light source is within the target range, including:

[0149] S610: Perform analog-to-digital acquisition on the light source under the first output voltage of the current loop to obtain the first voltage output by the light source driver to the light source.

[0150] The first output voltage of the current loop includes multiple preset voltage values, each of which corresponds to a light source brightness value.

[0151] Optionally, the output voltage of the voltage loop can be a fixed value, and a corresponding first output voltage can be provided based on the required brightness. For example, three different required light source brightness values ​​of 30, 100, and 255 can be provided respectively, and different brightness values ​​can correspond to different first output voltages.

[0152] The output voltage can be acquired based on analog-to-digital sampling. For example, it can be sampled 400 times and the average value can be calculated. This average value is the first voltage output by the light source driver to the light source.

[0153] S620: Determine the target range based on the pre-stored target voltage and the duration of light source usage.

[0154] Optionally, the target range can be determined based on the pre-stored target voltage and the usage time of the light source. For example, if the usage time of the light source is within 2 months, the error range can be defined as ±1.5%; if the usage time of the light source is more than 2 months, the error range can be defined as ±3%.

[0155] Then, the target voltage can be increased by the corresponding error interval to obtain the target interval.

[0156] For example, if the target voltage is 1.5V, then with an error range of 1.5%, the target range is between 1.4775 and 1.5225; correspondingly, with an error range of 3%, the target range is between 1.455 and 1.545. The specific formula is as follows:

[0157] The upper limit of the target interval = U0 × (1 + q);

[0158] The lower limit of the target interval = U0 × (1-q);

[0159] Where U0 is the target voltage and q is the absolute value of the error interval.

[0160] S630: Determine whether the first voltage output by the light source driver to the light source is within the target range.

[0161] Optionally, after determining the first voltage and the target range based on the above method, it can be determined whether the first voltage is within the target range. If it is, it can be determined that the detection is correct and the light source driver is functioning normally. If it is not, it can be determined that there is a performance problem, and the steps corresponding to S120 above can be executed.

[0162] Optionally, before performing the above tests, the voltage across the light source can be collected in advance to determine the working state of the light source.

[0163] The operating states of a light source can include the following three:

[0164] State 1: The light source is between the minimum and maximum operating voltages. At this time, the light source is working normally. The prerequisite for the execution of method S610 is that the light source is in a normal working state.

[0165] State 2: If the voltage is greater than the maximum operating voltage, it indicates that the light source is short-circuited.

[0166] State 3: If the voltage is less than the minimum operating voltage, it means that no light source is inserted.

[0167] The following is a detailed explanation of another specific implementation process of the light source driving control method provided in the embodiments of this application.

[0168] Figure 7 For another schematic flowchart of the control method of the light source driver provided in the embodiments of this application, please refer to... Figure 7 Before determining whether the first voltage output by the light source driver to the light source is within the target range based on the first output voltage of the current loop in the light source driver, the method further includes:

[0169] S710: Perform analog-to-digital acquisition on the light source under the third output voltage of the current loop and the output voltage of the voltage loop to obtain the third voltage output by the light source driver to the light source.

[0170] Optionally, before performing step S710, the flash memory can be read to check if it has been modified. If so, step S710 can be performed.

[0171] Furthermore, after the power is turned on, the main switch pin and the current limiting pin can be set to push-pull output, outputting a high level.

[0172] Optionally, the third output voltage of the current loop can be a variable voltage, while the output voltage of the voltage loop can be a fixed voltage, such as 3.7V. In this case, analog-to-digital acquisition can be performed to obtain the third voltage output by the light source driver to the light source.

[0173] Specifically, the third voltage can be obtained by taking the average value after 200 data collections.

[0174] Optionally, taking four changes as an example, for instance:

[0175] The first time, the voltage loop outputs 3.7V, the current loop outputs 1V, and there is a delay of 15ms.

[0176] The second time, the voltage loop outputs 3.7V, the current loop outputs 0.2V, and the delay is 40ms;

[0177] The third time, the voltage loop outputs 3.7V, the current loop outputs 0.022V, and the delay is 200ms;

[0178] The fourth time, the voltage loop outputs 3.7V, the current loop outputs 0.01V, and there is a delay of 4 seconds.

[0179] S720: Determine the actual output current of the light source driver based on the third voltage output by the light source driver to the light source.

[0180] Optionally, after obtaining the third voltage, the actual output voltage of the light source driver can be determined, using the following formula:

[0181] UB = UA × 2 × 33 / 4.7;

[0182] Where UA is the third voltage mentioned above, and UB is the actual output voltage.

[0183] After obtaining the actual output voltage, the actual output current can be calculated based on this actual output voltage. The specific calculation formula is as follows:

[0184] IB = (UB - 0.7) / 2;

[0185] Where IB is the actual output current.

[0186] S730: Determine the reference current of the light source driver based on the actual output current of the light source driver.

[0187] Optionally, after obtaining the actual output current of the light source driver, the reference current of the light source driver can be determined. The specific calculation formula is as follows:

[0188] IC = IB + 0.87 × N;

[0189] Where N is the offset parameter, which can be 12, and IC is the reference current.

[0190] It should be noted that the offset parameter can be set according to the actual output voltage. For example, when the voltage is between 6-22V, the value is 12; when the voltage is greater than 22V, the value is 15; and when the voltage is less than 6V, the value is 8.

[0191] S740: Establishes the mapping relationship between the reference current and the output voltage of the current loop.

[0192] Optionally, since the third input voltage of the current loop is a variable voltage, different reference currents can be obtained based on different input voltages of the current loop, and thus a mapping relationship between the reference current and the output voltage of the voltage current can be established.

[0193] Once the mapping relationship is obtained, it can be stored, and in subsequent calculations, the output can be quickly determined based on this mapping relationship.

[0194] It should be noted that this mapping relationship may include: offset parameters, reference current, and output voltage of the voltage stream.

[0195] The mapping relationship between the reference current and the output voltage of the current loop is the same mapping relationship used when calculating the minimum operating current of the light source.

[0196] It should be noted that the presence of a detection anomaly can be determined based on the actual output voltage. For example, if the normal output range is 6-22V, and the actual output voltages collected twice are not within the normal output range, then a detection anomaly signal can be output.

[0197] Optionally, if the flash memory has not been modified before performing step S710, then steps S710-S740 do not need to be performed, and the following steps can be performed instead:

[0198] After power is applied, set the main switch and current limiting switch pins to push-pull output, outputting a low level.

[0199] The control voltage loop outputs a fixed 3.5V voltage, while the current loop outputs a varying voltage, as detailed below:

[0200] Taking three changes as an example, for instance:

[0201] The first time, the voltage loop outputs 3.5V, the current loop outputs 1V, and there is a delay of 15ms.

[0202] The second time, the voltage loop outputs 3.5V, the current loop outputs 0.2V, and the delay is 40ms;

[0203] The third time, the voltage loop outputs 3.5V, the current loop outputs 0.025V, and the delay is 400ms.

[0204] After execution, the current limiting switch pin can be set to push-pull output, outputting a low level.

[0205] The following describes the apparatus, device, and storage medium corresponding to the control method of the light source driver provided in this application, which are used to implement the method. The specific implementation process and technical effects are described above and will not be repeated below.

[0206] Figure 8Please refer to the schematic diagram of the control device for the light source driver provided in the embodiments of this application. Figure 8 The control device for the light source driver includes: a first detection module 810, a second detection module 820, an adjustment module 830, and an output module 840.

[0207] The first detection module 810 is used to determine whether the first voltage output by the light source driver to the light source is within the target range based on the first output voltage of the current loop in the light source driver.

[0208] The second detection module 820 is used to determine the minimum and maximum operating current of the light source if the first voltage output by the light source driver is not within the target range.

[0209] Adjustment module 830 is used to determine the target output voltage based on the minimum operating current, maximum operating current and brightness range of the light source;

[0210] The output module 840 is used to control the light source driver to output voltage according to the target output voltage.

[0211] Optionally, the second detection module 820 is specifically used to perform analog-to-digital acquisition on the light source under the second output voltage of the current loop to obtain the second voltage output by the light source driver to the light source; determine the minimum operating current of the light source based on the second voltage; and determine the maximum operating current of the light source based on the selectable output voltage range of the current loop in the light source driver.

[0212] Optionally, the second detection module 820 is specifically used to determine the offset parameter based on the second voltage; and to obtain the minimum operating current of the light source based on the offset parameter and the preset mapping relationship between the reference current and the output voltage of the current loop.

[0213] Optionally, the second detection module 820 is specifically used to determine the initial output voltage from the selectable output voltage range of the current loop in the light source driver; based on the initial output voltage, the maximum output current of the current loop is determined by doubling; and based on the maximum output current, the maximum operating current of the light source is determined.

[0214] Optionally, the second detection module 820 is specifically used to obtain the first target voltage based on the initial output voltage using a doubling method; and to calculate the maximum output current of the current loop based on the feedback potential of the current loop, the first target voltage, and the current adjustment coefficient.

[0215] Optionally, the first detection module 810 is specifically used to perform analog-to-digital acquisition on the light source under the first output voltage of the current loop to obtain the first voltage output by the light source driver to the light source. The first output voltage of the current loop includes multiple preset voltage values, each preset voltage value corresponding to a light source brightness value. Based on the pre-stored target voltage and the usage time of the light source, a target range is determined. It is then determined whether the first voltage output by the light source driver to the light source is within the target range.

[0216] Optionally, the device further includes: a preprocessing module 850, which is specifically used to perform analog-to-digital acquisition on the light source under the third output voltage of the current loop and the output voltage of the voltage loop to obtain the third voltage output by the light source driver to the light source; determine the actual output current of the light source driver based on the third voltage output by the light source driver to the light source; determine the reference current of the light source driver based on the actual output current of the light source driver; and establish a mapping relationship between the reference current and the output voltage of the current loop.

[0217] In a control device for a light source driver provided in this application embodiment, it can determine whether the first voltage output by the light source driver to the light source is within a target range based on the first output voltage of the current loop in the light source driver; if the first voltage output by the light source driver is not within the target range, the minimum operating current and maximum operating current of the light source are determined; a target output voltage is determined based on the minimum operating current, maximum operating current, and brightness range of the light source; and the light source driver is controlled to output voltage according to the target output voltage. By adjusting the first voltage, an output voltage that better meets the performance requirements of the light source driver can be obtained, thereby enabling the light source driver to provide a more suitable voltage to the light source, resulting in the light source emitting brightness that meets actual needs. In other words, the performance of the light source driver can be determined, and performance problems of the light source driver can be adjusted, improving the accuracy of the light source driver.

[0218] The above-described device is used to execute the method provided in the foregoing embodiments, and its implementation principle and technical effect are similar, so they will not be described again here.

[0219] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-a-chip (SOC).

[0220] Figure 9 Please refer to the schematic diagram of the computer device provided in the embodiments of this application. Figure 9 The computer device includes: a memory 910 and a processor 920. The memory 910 stores a computer program that can run on the processor 920. When the processor 920 executes the computer program, it implements the steps of a control method for a light source driver.

[0221] Another aspect of the embodiments of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of a control method for a light source driver.

[0222] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0223] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0224] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0225] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute partial steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0226] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0227] The above description is merely a preferred embodiment of this application and is not intended to limit 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 protection scope of this application.

Claims

1. A control method for a light source driver, characterized in that, include: Based on the first output voltage of the current loop in the light source driver, determine whether the first voltage output by the light source driver to the light source is within the target range; If the first voltage output by the light source driver is not within the target range, determine the minimum operating current and the maximum operating current of the light source; The target output voltage is determined based on the minimum operating current, maximum operating current, and brightness range of the light source. Control the light source driver to output voltage according to the target output voltage; Determining the minimum and maximum operating current of the light source includes: Analog-to-digital acquisition is performed on the light source under the second output voltage of the current loop to obtain the second voltage output by the light source driver to the light source; The minimum operating current of the light source is determined based on the second voltage; The maximum operating current of the light source is determined based on the selectable output voltage range of the current loop in the light source driver.

2. The control method for the light source driver as described in claim 1, characterized in that, Determining the minimum operating current of the light source based on the second voltage includes: The offset parameter is determined based on the second voltage; Based on the offset parameter and the preset mapping relationship between the reference current and the output voltage of the current loop, the minimum operating current of the light source is obtained.

3. The control method for the light source driver as described in claim 1, characterized in that, Determining the maximum operating current of the light source based on the selectable output voltage range of the current loop in the light source driver includes: The initial output voltage is determined from the selectable output voltage range of the current loop in the light source driver; Based on the initial output voltage, the maximum output current of the current loop is determined using the doubling method; The maximum operating current of the light source is determined based on the maximum output current.

4. The control method for the light source driver as described in claim 3, characterized in that, The process of determining the maximum output current of the current loop based on the initial output voltage using a doubling method includes: Based on the initial output voltage, the first target voltage is obtained using the doubling method; The maximum output current of the current loop is calculated based on the feedback potential of the current loop, the first target voltage, and the current adjustment coefficient.

5. The control method for the light source driver as described in claim 1, characterized in that, Determining whether the first voltage output by the light source driver to the light source is within the target range based on the first output voltage of the current loop in the light source driver includes: The light source under the first output voltage of the current loop is subjected to analog-to-digital acquisition to obtain the first voltage output by the light source driver to the light source. The first output voltage of the current loop includes multiple preset voltage values, and each preset voltage value corresponds to a light source brightness value. The target range is determined based on the pre-stored target voltage and the usage duration of the light source; Determine whether the first voltage output by the light source driver to the light source is within the target range.

6. The control method for the light source driver as described in any one of claims 1-5, characterized in that, Before determining whether the first voltage output by the light source driver to the light source is within the target range based on the first output voltage of the current loop in the light source driver, the method further includes: Analog-to-digital acquisition is performed on the light source under the third output voltage of the current loop and the output voltage of the voltage loop to obtain the third voltage output by the light source driver to the light source; The actual output current of the light source driver is determined based on the third voltage output by the light source driver to the light source; The reference current of the light source driver is determined based on the actual output current of the light source driver; Establish a mapping relationship between the reference current and the output voltage of the current loop.

7. A control device for a light source driver, characterized in that, include: The system comprises a first detection module, a second detection module, an adjustment module, and an output module. The first detection module is used to determine whether the first voltage output by the light source driver to the light source is within the target range based on the first output voltage of the current loop in the light source driver; The second detection module is used to determine the minimum operating current and maximum operating current of the light source if the first voltage output by the light source driver is not within the target range. The adjustment module is used to determine the brightness range of the light source based on the minimum and maximum operating current of the light source, and adjust the first voltage output by the light source driver based on the brightness range to obtain the target output voltage. The output module is used to control the light source driver to output voltage according to the target output voltage; The second detection module is used to perform analog-to-digital acquisition on the light source under the second output voltage of the current loop to obtain the second voltage output by the light source driver to the light source; The minimum operating current of the light source is determined based on the second voltage; The maximum operating current of the light source is determined based on the selectable output voltage range of the current loop in the light source driver.

8. A computer device, characterized in that, include: A memory and a processor, wherein the memory stores a computer program that can run on the processor, and when the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1 to 6.