CN110784966A - LED driving current distribution method and device and storage medium - Google Patents

LED driving current distribution method and device and storage medium Download PDF

Info

Publication number
CN110784966A
CN110784966A CN201810842474.9A CN201810842474A CN110784966A CN 110784966 A CN110784966 A CN 110784966A CN 201810842474 A CN201810842474 A CN 201810842474A CN 110784966 A CN110784966 A CN 110784966A
Authority
CN
China
Prior art keywords
led
leds
group
driving current
matrix
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810842474.9A
Other languages
Chinese (zh)
Other versions
CN110784966B (en
Inventor
薛升
黄涛
李奇峰
杨云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Semiconductor Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201810842474.9A priority Critical patent/CN110784966B/en
Publication of CN110784966A publication Critical patent/CN110784966A/en
Application granted granted Critical
Publication of CN110784966B publication Critical patent/CN110784966B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The invention is applicable to the technical field of LED driving, and provides an LED driving current distribution method and device and a storage medium. According to the LED lamp current dynamic distribution method, the LED matrix comprising the plurality of driving ports obtains the driving current of each group of LEDs according to the obtained driving current and the obtained column number of the LED matrix and the number of the LEDs which are allowed to be included at most in each group of LEDs after the LED matrix is grouped, and further obtains the average driving current of each LED according to the conduction time and the driving current of each group of LEDs and the number of the LEDs included in each group of LEDs, so that on the basis of LED driving grouping scanning, the conduction time selection is carried out on each LED lamp, and further the average driving current is distributed to each LED, and therefore the dynamic distribution of each group of lamp currents is achieved.

Description

LED driving current distribution method and device and storage medium
Technical Field
The invention belongs to the technical field of LED driving, and particularly relates to a method and a device for distributing LED driving current and a storage medium.
Background
In recent years, Light Emitting Diodes (LEDs) have been widely used in various fields, such as LED lamps, due to their advantages of significant energy saving, environmental protection, impact resistance, strong lightning resistance, and long life. While LEDs are widely used, the distribution of LED driving current is one of the most important problems today.
Currently, the prior art mainly adopts two ways to realize the distribution of the LED driving current. The first method for distributing the driving current of the LED is to divide the driving current of the co-positive or co-negative LED matrix into two types, one is to distribute the driving current by controlling the on-time of the COM port, and the other is to realize the LED brightness adjustment function by controlling the on-time of the LED COM port as a whole, but it cannot distribute the average current of one or more lamps; the other method is to distribute the average current of the LED lamp by changing the peripheral SEG current-limiting resistor, however, the method needs to change the resistor parameter into a fixed parameter, which increases the hardware cost, and is not flexible and convenient for the application scheme of LED driving display.
The second LED driving current distribution method is mainly directed to a (N × N-1)) serial dot matrix LED matrix, in which when one input/output port to which LEDs are connected is high, the other input/output port is low, only one lamp is lit per unit time, and the LED lamps are scanned with 1/(N × N-1) Duty, and the larger N is, the larger the number of lit LEDs is, and the shorter the time during which a single LED is lit is, the darker the LED brightness is, in the case of ensuring that the lamps do not flicker. Because the driving mode makes the LED scanning sequence fixed, when distributing the LED average current, the LED lamp is divided into two sections, the conduction time of the previous section of LED lamp is uniformly set, and the conduction time of the next section of LED lamp is uniformly set, and when the LED driving display is applied, if the brightness of any one or more LEDs is required to be adjusted, the LED lamps with two different average currents need to be respectively planned into the previous section of LED scanning conduction time sequence and the next section of LED scanning conduction time sequence.
Therefore, it is necessary to provide a technical solution to solve the above technical problems.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for distributing LED driving currents, and a storage medium, which select an on-time of each LED lamp based on LED driving group scanning, and further distribute an average driving current to each LED lamp, so as to implement dynamic distribution of lamp currents of each group.
A first aspect of an embodiment of the present invention provides an LED driving current distribution method, where the LED driving current distribution method is used to distribute current to LEDs in an LED matrix, where the LED matrix has a plurality of driving ports and includes a plurality of LED groups, and the LED driving current distribution method includes:
after a system is powered on, after an LED reset module finishes resetting, acquiring driving current, scanning matrix data and grouped data of an LED matrix; the scanning matrix data comprises the column number and the row number of the LED matrix, and the grouped data comprises the number of the LED lamps which are allowed to be included at most in each group of LEDs after the LED matrix is grouped;
acquiring the driving current of each group of LEDs according to the driving current, the number of columns of the LED matrix and the number of the LED lamps which are allowed to be included at most in each group of LEDs;
and acquiring the conduction time of each group of LEDs, and acquiring the average driving current of each LED according to the conduction time of each group of LEDs, the driving current of each group of LEDs and the number of LED lamps included in each group of LEDs.
A second aspect of embodiments of the present invention provides an LED driving current distribution device for distributing current to LEDs in an LED matrix, the LED matrix having a plurality of driving ports and including a plurality of LED groups, the LED driving current distribution device including:
the data acquisition module is used for acquiring the driving current, the scanning matrix data and the grouped data of the LED matrix after the LED reset module finishes resetting after the system is powered on; the scanning matrix data comprises the column number and the row number of the LED matrix, and the grouped data comprises the number of the LED lamps which are allowed to be included at most in each group of LEDs after the LED matrix is grouped;
the driving current obtaining module is used for obtaining the driving current of each group of LEDs according to the driving current, the number of columns of the LED matrix and the number of the LED lamps which are allowed to be included at most in each group of LEDs;
and the average driving current obtaining module is used for obtaining the conduction time of each group of LEDs and obtaining the average driving current of each LED according to the conduction time of each group of LEDs, the driving current of each group of LEDs and the number of the LEDs included in each group of LEDs.
A third aspect of the embodiments of the present invention provides an LED driving current distribution apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the LED driving current distribution method when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the above-described LED driving current distribution method.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: according to the LED lamp current dynamic distribution method, the LED matrix comprising the plurality of driving ports obtains the driving current of each group of LEDs according to the obtained driving current and the obtained column number of the LED matrix and the number of the LEDs which are allowed to be included at most in each group of LEDs after the LED matrix is grouped, and further obtains the average driving current of each LED according to the conduction time and the driving current of each group of LEDs and the number of the LEDs included in each group of LEDs, so that on the basis of LED driving grouping scanning, the conduction time selection is carried out on each LED lamp, and further the average driving current is distributed to each LED, and therefore the dynamic distribution of each group of lamp currents is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic diagram of a prior art LED driving circuit;
fig. 2 is a schematic flow chart illustrating an implementation of a method for distributing LED driving current according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a circuit structure of an LED matrix in the LED driving current distribution method shown in FIG. 2;
fig. 4 is a schematic structural diagram of an LED driving current distribution device according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of an LED driving current distribution device according to a third embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 2 is a schematic flowchart of an LED driving current distribution method according to an embodiment of the present invention. As shown in fig. 2, the LED driving current distribution method may include the steps of:
step S21: after a system is powered on, after an LED reset module finishes resetting, acquiring driving current, scanning matrix data and grouped data of an LED matrix; the scanning matrix data comprises the column number and the row number of the LED matrix, and the grouped data comprises the maximum number of LED lamps allowed to be included in each group of LEDs after the LED matrix is grouped.
In the embodiment of the present invention, the LED driving current distribution method provided by the present invention is used for distributing current to LEDs in an LED matrix, such as the LED matrix shown in fig. 3, which includes a plurality of driving ports, such as the driving ports LED0 to LED 7; in addition, the LED matrix has a plurality of LED groups, such as the first to thirty-second groups of LEDs shown in fig. 3.
Further, in this embodiment of the present invention, in a specific implementation, after the system is powered on and the LED reset module completes resetting, the obtaining of the driving current, the scanning matrix data, and the packet data of the LED matrix specifically includes:
after the system is powered on, after the LED reset module is reset, other modules in the LED driving circuit are in an initial state, and each module is built in a Micro Controller Unit (MCU), which includes but is not limited to an LED clock module Controller, an LED driving current Controller, an LED matrix selection Controller, an LED interrupt output Controller, and an LED driving packet Controller. The LED clock module controller provides an LED scanning clock, the LED driving current controller controls and selects LED scanning driving capability, the LED matrix selection controller controls and selects an LED scanning matrix mode, the LED driving group controller controls and selects LED scanning groups, and the LED interrupt output controller generates an interrupt signal to the MCU kernel after controlling the LED scanning to be completed.
Specifically, the LED driving current controller can select a corresponding LED driving current level by setting the LED driving current register, the LED matrix selection controller can select a corresponding scanning matrix mode by setting the LED matrix selection register, the LED interrupt output controller can select a corresponding scanning mode, such as an interrupt mode or a cyclic mode, by setting the LED scanning driving grouping register, and the LED driving grouping controller can control the number of groups of LED driving scanning by setting the LED scanning driving grouping register.
After the setting and selecting process is completed, the LED driving current distribution device can obtain the driving current, the scanning matrix data and the grouping data of the LED matrix according to the corresponding setting. Wherein, the driving current refers to the total driving current of each driving port of the LED matrix, and the total driving current of each driving port is the same; the scan matrix data refers to the number of rows and columns of the LED matrix, e.g. the number of rows 7 and columns 8 in the LED matrix shown in fig. 3; the grouping data includes the number of groups into which the LED matrix is grouped, the number of LED lamps which are allowed to be included at most in each group of LEDs, and the number of LED lamps included in each group of LEDs, for example, the number of groups 32 which are included in the LED matrix after grouping, the number of LED lamps which are allowed to be included at most in each group of LEDs, and the number of LED lamps 1 or 2 included in each group of LEDs shown in fig. 3.
It should be noted that, in the embodiment of the present invention, the LED matrix driven by the present invention is composed of a serial lattice matrix of N × N (N-1), and a specific circuit structure thereof is shown in fig. 3. As can be seen from fig. 3, the number of the driving ports of the LED matrix is one more than the number of rows of the LED matrix, so that the LED driving current distribution method saves I/O port resources and further reduces the cost of the LED driving current distribution method compared with the conventional COM × SEG row-column driving scanning method, but it can be understood by those skilled in the art that the number of the driving ports of the LED matrix is two more than the number of rows of the LED matrix, or three more than the number of rows of the LED matrix, and the like, and the present disclosure is not limited herein.
Step S22: and acquiring the driving current of each group of LEDs according to the driving current, the number of columns of the LED matrix and the number of the LED lamps which are allowed to be included at most in each group of LEDs.
Specifically, as a preferred embodiment of the present invention, step S22 specifically includes:
acquiring the driving scanning duty ratio of each group of LEDs according to the number of columns of the LED matrix and the number of the LED lamps which are allowed to be included at most in each group of LEDs;
and acquiring the driving current of each group of LEDs according to the driving current and the driving scanning duty ratio of each group of LEDs.
In the embodiment of the invention, after the LED driving current distribution device obtains the number of columns of the LED matrix and the number of LED lamps maximally allowed to be included in each group of LEDs, the LED driving current distribution device may calculate the driving scanning duty cycle of each group of LEDs according to the obtained number of columns and the number of LED lamps maximally allowed to be included in each group of LEDs, and further obtain the driving current of each group of LEDs according to the driving current and the driving scanning duty cycle of each group of LEDs; it should be noted that, in the present invention, since the driving scan duty ratio of each group of LEDs is the same, and the driving current of each driving port in the LED matrix is the same, the driving current of each group of LEDs is the same.
Further, as a preferred embodiment of the present invention, obtaining the driving scanning duty ratio of each group of LEDs according to the number of rows of the LED matrix and the number of LED lamps maximally allowed to be included in each group of LEDs specifically includes:
according to the formula Acquiring the driving scanning duty ratio of each group of LEDs; wherein, Duty is the driving scanning Duty ratio of each group of LEDs, N is the number of columns of the LED matrix, M is the number of the LED lamps which are allowed to be included at most in each group of LEDs, and the value range is [1 is more than or equal to M is less than or equal to (N-1)](ii) a k and N are positive integers, and the value range of k is (1, (N-1)); when in use
Figure BDA0001745890470000072
When the remainder is equal to 0, the value of n is 0, when
Figure BDA0001745890470000073
When the remainder is not equal to 0, the value of n is 1,
Figure BDA0001745890470000074
and taking an integer part.
In the embodiment of the present invention, as shown in the following table, in combination with the LED matrix circuit shown in fig. 3, taking N-8 and M-2 as examples, in the LED driving current distribution method provided by the present invention, the scanning duty ratio of each group of LEDs
Figure BDA0001745890470000081
Comprises the following steps:
Figure BDA0001745890470000082
as can be seen from the above table, when the number of columns N of the LED matrix is 8, and the number of LEDs M allowed to be included in each group of LEDs is 2 at most, for the LED matrix of N × N (N-1), the driving scan duty ratio is as follows
Figure BDA0001745890470000083
Compared to the same driving capability and phaseThe driving scanning duty ratio of serial point array scanning with the same number of LED lamps is
Figure BDA0001745890470000084
In other words, the LED driving current distribution method has higher LED driving scanning duty ratio, so that under the same capacity, the average current of the LED can be effectively provided, the scanning peak current of the LED can be effectively reduced, and the service life of the LED is prolonged.
Further, as a preferred embodiment of the present invention, the obtaining of the driving current of each group of LEDs according to the driving current and the driving scanning duty ratio of each group of LEDs specifically includes:
according to the formula
Figure BDA0001745890470000085
Obtaining the driving current of each group of LEDs; wherein, I 1For the drive current of each group of LEDs, I ledIs the drive current of the LED matrix.
In the embodiment of the invention, after the LED driving current distribution device obtains the driving current of the LED matrix and the driving scanning duty ratio of each group of LEDs, the LED driving current distribution device can be used for distributing the driving current of the LED matrix and the driving scanning duty ratio of each group of LEDs according to a formula
Figure BDA0001745890470000086
And acquiring the driving current of each group of LEDs. For example, if the driving current of the LED matrix is I ledIs 60mA, and the driving scanning duty ratio of each group of LEDs is
Figure BDA0001745890470000091
The drive current of each group of LEDs is
Figure BDA0001745890470000092
Step S23: and acquiring the conduction time of each group of LEDs, and acquiring the average driving current of each LED according to the conduction time of each group of LEDs, the driving current of each group of LEDs and the number of LED lamps included in each group of LEDs.
In the embodiment of the present invention, specifically, the obtaining of the on-time of each group of LEDs is that after the system is powered on and the LED reset module is reset, the LED current distribution controller in the LED driving current distribution circuit is in an initial state, and the LED driving current controller can select the on-time of each corresponding group of LEDs by setting the LED current distribution register. After the setting and selecting process is completed, the LED driving current distribution device can obtain the conduction time of each group of LEDs according to the corresponding setting.
Specifically, as a preferred embodiment of the present invention, the number of LED lamps included in each group of LEDs is different, and when a group of LEDs includes two LED lamps, the obtaining of the average driving current of each LED according to the on-time of each group of LEDs, the driving current of each group of LEDs, and the number of LED lamps included in each group of LEDs specifically includes:
segmenting the conduction time of an LED group comprising two LEDs to respectively obtain the conduction time of the two LEDs;
and respectively calculating the average driving current of the two LEDs in the LED group according to the conduction time of the two LEDs, the driving current of each group of LEDs and the number of the LEDs included in each group of LEDs.
In the embodiment of the invention, the LED driving current controller not only selects the conduction time of each corresponding group of LEDs by setting the LED current distribution register, but also distributes the conduction time of a single LED in each group of LEDs by the LED driving current controller. After the LED driving current controller distributes the conduction time of the single LED in each group of LEDs, the LED driving current distribution device can obtain the conduction time of the single LED in each group of LEDs.
Further, as a preferred embodiment of the present invention, if the on-time of the first LED and the second LED in the LED group including two LEDs is the first on-time and the second on-time, respectively, and the first on-time is not less than the second on-time, respectively calculating the average driving current of the two LEDs in the LED group according to the on-time of the two LEDs, the driving current of each group of LEDs, and the number of LEDs included in each group of LEDs specifically includes:
according to the formula
Figure BDA0001745890470000101
Calculating the average driving current of the first LED according to a formula
Figure BDA0001745890470000102
Calculating an average drive current of the second LED; wherein, I 11Is the average drive current of the first LED, t 1Is the on-time of the first LED, I 12Is the average drive current of the second LED, t 2And L is the conduction time of the second LED, and the number of the LED lamps included in each group of LEDs.
In the embodiment of the present invention, after the LED driving current distribution device calculates the average driving current of each LED according to the above formula, each LED can be driven in units of groups according to the average driving current of each LED. Specifically, when the LED driving current distribution device drives each LED in each group, one of the driving ports of the group of LEDs may be set to a low level and the other driving port may be set to a high level, based on which the driving ports are sequentially set to a low level
Figure BDA0001745890470000103
The duty cycle of each group of LEDs is scanned in sequence and each LED in each group of LEDs is driven by the average driving current calculated according to the corresponding formula.
For example, for the second group of LEDs in the seven-row eight-column LED matrix shown in FIG. 3, the LED driving current distribution device is as follows
Figure BDA0001745890470000104
Sequentially scanning each group of LEDs according to the duty cycle of
Figure BDA0001745890470000105
Drives a first LED of the second set of LEDs in accordance with
Figure BDA0001745890470000106
Drives a second LED of the second group of LEDs. In accordance with
Figure BDA0001745890470000107
When scanning each group of LEDs in turn, the duty cycle specifically is as follows: when the driving port LED0 is high and the LED1 is low, the 0 th group of lamps are turned on, and other groups of lamps are turned off; when the driving port LED0 and the LED1 are high and the LED2 is low, the 1 st group of lamps are on; when the driving port LED0 and the LED1 are high and the LED3 is low, the 2 nd group of lamps are turned on, and so on, … … scans the 31 st group of lamps in sequence to finish one cycle lighting.
Further, as a preferred embodiment of the present invention, if the on-time of the first LED and the second LED in the LED group including two LEDs is the first on-time and the second on-time, respectively, and the first on-time is smaller than the second on-time, respectively calculating the average driving current of the two LEDs in the LED group according to the on-time of the two LEDs, the driving current of each group of LEDs, and the number of LEDs included in each group of LEDs specifically includes:
according to the formula
Figure BDA0001745890470000111
Calculating the average driving current of the first LED according to a formula
Figure BDA0001745890470000112
Calculating an average drive current of the second LED; wherein, I 11Is the average drive current of the first LED, t 1Is the on-time of the first LED, I 12Is the average drive current of the second LED, t 2And L is the conduction time of the second LED, and the number of the LED lamps included in each group of LEDs.
In the embodiment of the present invention, after the LED driving current distribution device calculates the average driving current of each LED according to the above formula, each LED can be driven in units of groups according to the average driving current of each LED. Specifically, when the LED driving current distribution device drives each LED in each group, one of the driving ports of the group of LEDs may be set to a low level and the other driving port may be set to a high level, based on which the driving ports are sequentially set to a low level
Figure BDA0001745890470000113
The duty cycle of each group of LEDs is scanned in sequence and each LED in each group of LEDs is driven by the average driving current calculated according to the corresponding formula.
For example, for the second group of LEDs in the seven-row eight-column LED matrix shown in FIG. 3, the LED driving current distribution device is as follows
Figure BDA0001745890470000114
Sequentially scanning each group of LEDs according to the duty cycle of
Figure BDA0001745890470000121
Drives a first LED of the second set of LEDs in accordance with
Figure BDA0001745890470000122
Drives a second LED of the second group of LEDs.
In this embodiment, in an LED matrix including a plurality of driving ports, the driving current of each group of LEDs is obtained according to the obtained driving current and column number of the LED matrix and the maximum number of LED lamps allowed to be included in each group of LEDs after the LED matrix is grouped, and then the average driving current of each LED is obtained according to the on-time and driving current of each group of LEDs and the number of LED lamps included in each group of LEDs, so that on the basis of LED driving group scanning, the on-time selection is performed on each LED lamp, and then the average driving current is distributed to each LED, thereby realizing dynamic distribution of lamp current of each group, and the distribution method is low in cost, convenient and flexible.
Referring to fig. 4, a schematic block diagram of an LED driving current distribution device 4 according to a second embodiment of the present invention is provided. The LED driving current distribution device 4 provided in the embodiment of the present invention includes modules for performing the steps in the embodiment corresponding to fig. 2, and please refer to fig. 2 and the related description in the embodiment corresponding to fig. 2, which are not repeated herein. The LED driving current distribution device 4 provided in the embodiment of the present invention includes a data obtaining module 41, a driving current obtaining module 42, and an average driving current obtaining module 43.
The data acquisition module 41 is configured to acquire the driving current, the scanning matrix data, and the packet data of the LED matrix after the LED reset module completes resetting after the system is powered on; the scanning matrix data comprises the column number and the row number of the LED matrix, and the grouped data comprises the number of the LED lamps which are allowed to be included in each group of LEDs after the LED matrix is grouped.
And the driving current obtaining module 42 is configured to obtain the driving current of each group of LEDs according to the driving current, the number of columns of the LED matrix, and the number of LED lamps that are allowed to be included at most in each group of LEDs.
And an average driving current obtaining module 43, configured to obtain the conduction time of each group of LEDs, and obtain the average driving current of each LED according to the conduction time of each group of LEDs, the driving current of each group of LEDs, and the number of LEDs included in each group of LEDs.
Further, the driving current obtaining module 42 is specifically configured to obtain the driving scanning duty ratio of each group of LEDs according to the number of columns of the LED matrix and the number of LED lamps maximally allowed to be included in each group of LEDs; and acquiring the driving current of each group of LEDs according to the driving current and the driving scanning duty ratio of each group of LEDs.
Further, the driving current obtaining module 42 is specifically configured to obtain the formula Acquiring the drive scanning duty ratio of each group of LEDs; wherein, Duty is the driving scanning Duty ratio of each group of LEDs, N is the number of columns of the LED matrix, M is the number of the LED lamps which are allowed to be included at most in each group of LEDs, and the value range is [1 is more than or equal to M is less than or equal to (N-1)](ii) a k and N are positive integers, and the value range of k is (1, (N-1)); when in use
Figure BDA0001745890470000132
When the remainder is equal to 0, the value of n is 0, when
Figure BDA0001745890470000133
When the remainder is not equal to 0, the value of n is 1,
Figure BDA0001745890470000134
taking integersAnd (4) partial.
Further, the driving current obtaining module 42 is specifically configured to obtain the formula
Figure BDA0001745890470000135
Acquiring the driving current of each group of LEDs; wherein, I 1For the drive current of each group of LEDs, I ledIs the drive current of the LED matrix.
Further, the number of LED lamps included in each group of LEDs is different, and when one group of LEDs includes two LEDs, the average driving current obtaining module 43 is specifically configured to segment the turn-on time of the LED group including the two LEDs, so as to obtain the turn-on time of the two LEDs respectively; and respectively calculating the average driving current of the two LEDs in the LED group according to the conduction time of the two LEDs, the driving current of each group of LEDs and the number of the LED lamps included in each group of LEDs.
Further, if the on-time of the first LED and the second LED in the LED group including two LEDs is the first on-time and the second on-time, respectively, and the first on-time is not less than the second on-time, the average driving current obtaining module 43 is specifically configured to obtain the average driving current according to the formula
Figure BDA0001745890470000136
Calculating the average drive current of the first LED according to the formula Calculating an average drive current of the second LED; wherein, I 11Average drive current of the first LED, t 1Is the on-time of the first LED, I 12Is the average drive current of the second LED, t 2L is the number of LED lamps included in each group of LEDs for the on-time of the second LED.
Further, if the on-time of the first LED and the second LED in the LED group including two LEDs is the first on-time and the second on-time, respectively, and the first on-time is smaller than the second on-time, the average driving current obtaining module 43 is specifically configured to obtain the average driving current according to the formula Calculating the average drive current of the first LED according to the formula
Figure BDA0001745890470000142
Calculating an average drive current of the second LED; wherein, I 11Average drive current of the first LED, t 1Is the on-time of the first LED, I 12Is the average drive current of the second LED, t 2L is the number of LED lamps included in each group of LEDs for the on-time of the second LED.
In this embodiment, the LED driving current distribution device 4 obtains the driving current of each group of LEDs in the LED matrix including the plurality of driving ports according to the obtained driving current and the number of columns of the LED matrix and the number of LED lamps maximally allowed to be included in each group of LEDs after the LED matrix is grouped, and further obtains the average driving current of each LED according to the on-time of each group of LEDs, the driving current and the number of LED lamps included in each group of LEDs, so that on the basis of LED driving group scanning, the on-time selection is performed on each LED lamp, and further the average driving current is distributed to each LED, thereby realizing dynamic distribution of lamp current of each group.
Fig. 5 is a schematic diagram of an LED driving current distribution device 5 according to a third embodiment of the present invention. As shown in fig. 5, the LED driving current distribution device 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52, such as a LED driving current distribution method program, stored in said memory 51 and executable on said processor 50. The processor 50, when executing the computer program 52, implements the steps in the various LED driving current distribution method embodiments described above, such as the steps 21 to 23 shown in fig. 2. Alternatively, the processor 50, when executing the computer program 52, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 41 to 43 shown in fig. 4.
Illustratively, the computer program 52 may be partitioned into one or more modules/units that are stored in the memory 51 and executed by the processor 50 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 52 in the LED driving current distribution device 5. For example, the computer program 52 may be divided into a data acquisition module, a driving current acquisition module, and an average driving current acquisition module (a virtual module in the apparatus), and each module has the following specific functions:
the data acquisition module is used for acquiring the driving current, the scanning matrix data and the grouped data of the LED matrix after the LED reset module finishes resetting after the system is powered on; the scanning matrix data comprises the column number and the row number of the LED matrix, and the grouped data comprises the number of the LED lamps which are allowed to be included in each group of LEDs after the LED matrix is grouped.
And the driving current acquisition module is used for acquiring the driving current of each group of LEDs according to the driving current, the number of columns of the LED matrix and the number of the LED lamps which are allowed to be included at most in each group of LEDs.
And the average driving current obtaining module is used for obtaining the conduction time of each group of LEDs and obtaining the average driving current of each LED according to the conduction time of each group of LEDs, the driving current of each group of LEDs and the number of LED lamps included in each group of LEDs.
Further, the driving current obtaining module is specifically configured to obtain the driving scanning duty ratio of each group of LEDs according to the number of columns of the LED matrix and the number of LED lamps maximally allowed to be included in each group of LEDs; and acquiring the driving current of each group of LEDs according to the driving current and the driving scanning duty ratio of each group of LEDs.
Further, the driving current obtaining module is specifically used for obtaining the formula
Figure BDA0001745890470000151
Acquiring the drive scanning duty ratio of each group of LEDs; wherein, Duty is the driving scanning Duty ratio of each group of LEDs, N is the number of columns of the LED matrix, M is the number of the LED lamps which are allowed to be included at most in each group of LEDs, and the value range is [1 is more than or equal to M is less than or equal to (N-1)](ii) a k and N are positive integers, and the value range of k is (1, (N-1)); when in use
Figure BDA0001745890470000152
When the remainder is equal to 0, the value of n is 0, when
Figure BDA0001745890470000153
When the remainder is not equal to 0, the value of n is 1,
Figure BDA0001745890470000154
and taking an integer part.
Further, the driving current obtaining module is specifically used for obtaining the formula
Figure BDA0001745890470000161
Acquiring the driving current of each group of LEDs; wherein, I 1For the drive current of each group of LEDs, I ledIs the drive current of the LED matrix.
Further, the number of the LEDs included in each group of LEDs is different, and when one group of LEDs includes two LEDs, the average driving current obtaining module is specifically configured to segment the turn-on time of the LED group including the two LEDs to obtain the turn-on times of the two LEDs, respectively; and respectively calculating the average driving current of the two LEDs in the LED group according to the conduction time of the two LEDs, the driving current of each group of LEDs and the number of the LED lamps included in each group of LEDs.
Further, if the conduction time of the first LED and the second LED in the LED group including the two LEDs is the first conduction time and the second conduction time, respectively, and the first conduction time is not less than the second conduction time, the average driving current obtaining module is specifically configured to obtain the average driving current according to a formula
Figure BDA0001745890470000162
Calculating the average drive current of the first LED according to the formula Calculating an average drive current of the second LED; wherein, I 11Average drive current of the first LED, t 1Is the on-time of the first LED, I 12Is the average drive current of the second LED, t 2Is the on-time of the second LED, L isThe number of LED lamps included in each group of LEDs.
Further, if the conduction time of the first LED and the second LED in the LED group including the two LEDs is the first conduction time and the second conduction time, respectively, and the first conduction time is smaller than the second conduction time, the average driving current obtaining module is specifically configured to obtain the average driving current according to a formula
Figure BDA0001745890470000164
Calculating the average drive current of the first LED according to the formula
Figure BDA0001745890470000165
Calculating an average drive current of the second LED; wherein, I 11Average drive current of the first LED, t 1Is the on-time of the first LED, I 12Is the average drive current of the second LED, t 2L is the number of LED lamps included in each group of LEDs for the on-time of the second LED.
The LED driving current distribution device 5 may be various processors, or may be a module inside the processor. The LED driving current distribution device 5 may include, but is not limited to, a processor 50 and a memory 51. It will be understood by those skilled in the art that fig. 5 is only an example of the LED driving current distribution apparatus 5, and does not constitute a limitation to the LED driving current distribution apparatus 5, and may include more or less components than those shown, or combine some components, or different components, for example, the LED driving current distribution apparatus 5 may further include an input-output device, a network access device, a bus, etc.
The Processor 50 may be a Micro Control Unit (MCU), a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the LED driving current distribution device 5, such as a hard disk or a memory of the LED driving current distribution device 5. The memory 51 may also be an external storage device of the LED driving current distribution device 5, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the LED driving current distribution device 5.
Further, the memory 51 may also include both an internal storage unit and an external storage device of the LED driving current distribution apparatus 5. The memory 51 is used for storing the computer program and other programs and data required by the LED driving current distribution device 5. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. An LED driving current distribution method for distributing current to LEDs in an LED matrix, wherein the LED matrix has a plurality of driving ports and comprises a plurality of LED groups, and the LED driving current distribution method comprises the following steps:
after a system is powered on, after an LED reset module finishes resetting, acquiring driving current, scanning matrix data and grouped data of an LED matrix; the scanning matrix data comprises the column number and the row number of the LED matrix, and the grouped data comprises the number of the LED lamps which are allowed to be included at most in each group of LEDs after the LED matrix is grouped;
acquiring the driving current of each group of LEDs according to the driving current, the number of columns of the LED matrix and the number of the LED lamps which are allowed to be included at most in each group of LEDs;
and acquiring the conduction time of each group of LEDs, and acquiring the average driving current of each LED according to the conduction time of each group of LEDs, the driving current of each group of LEDs and the number of LED lamps included in each group of LEDs.
2. The LED driving current distribution method according to claim 1, wherein the obtaining the driving current of each group of LEDs according to the driving current, the number of columns of the LED matrix, and the number of LED lamps at most allowed to be included in each group of LEDs comprises:
acquiring the driving scanning duty ratio of each group of LEDs according to the number of columns of the LED matrix and the number of the LED lamps which are allowed to be included at most in each group of LEDs;
and acquiring the driving current of each group of LEDs according to the driving current and the driving scanning duty ratio of each group of LEDs.
3. The LED driving current distribution method according to claim 2, wherein the obtaining of the driving scan duty cycle of each group of LEDs according to the number of columns of the LED matrix and the number of LED lamps that are allowed to be included at most in each group of LEDs is specifically:
according to the formula
Figure FDA0001745890460000011
Acquiring the driving scanning duty ratio of each group of LEDs; wherein, Duty is the driving scanning Duty ratio of each group of LEDs, N is the number of columns of the LED matrix, and M is the maximum number of LEDs in each groupThe number of the allowed LED lamps is more than or equal to [1 and less than or equal to M and less than or equal to (N-1)](ii) a k and N are positive integers, and the value range of k is (1, (N-1)); when in use
Figure FDA0001745890460000021
When the remainder is equal to 0, the value of n is 0, when
Figure FDA0001745890460000022
When the remainder is not equal to 0, the value of n is 1,
Figure FDA0001745890460000023
and taking an integer part.
4. The LED driving current distribution method according to claim 3, wherein the obtaining of the driving current of each group of LEDs according to the driving current and the driving scan duty cycle of each group of LEDs specifically includes:
according to the formula Obtaining the driving current of each group of LEDs; wherein, I 1For the drive current of each group of LEDs, I ledIs the drive current of the LED matrix.
5. The method according to claim 4, wherein the number of the LEDs included in each group of LEDs is different, and when two LEDs are included in a group of LEDs, the obtaining of the average driving current of each LED according to the turn-on time of each group of LEDs, the driving current of each group of LEDs, and the number of the LEDs included in each group of LEDs specifically comprises:
segmenting the conduction time of an LED group comprising two LEDs to respectively obtain the conduction time of the two LEDs;
and respectively calculating the average driving current of the two LEDs in the LED group according to the conduction time of the two LEDs, the driving current of each group of LEDs and the number of the LEDs included in each group of LEDs.
6. The LED driving current distribution method according to claim 5, wherein if the turn-on time of a first LED and a second LED in an LED group including two LEDs is a first turn-on time and a second turn-on time, respectively, and the first turn-on time is not less than the second turn-on time, calculating the average driving current of the two LEDs in the LED group according to the turn-on time of the two LEDs, the driving current of each group of LEDs, and the number of LEDs included in each group of LEDs is specifically:
according to the formula
Figure FDA0001745890460000031
Calculating the average driving current of the first LED according to a formula
Figure FDA0001745890460000032
Calculating an average drive current of the second LED; wherein, I 11Is the average drive current of the first LED, t 1Is the on-time of the first LED, I 12Is the average drive current of the second LED, t 2And L is the conduction time of the second LED, and the number of the LED lamps included in each group of LEDs.
7. The LED driving current distribution method according to claim 5, wherein if the turn-on time of a first LED and a second LED in an LED group including two LEDs is a first turn-on time and a second turn-on time, respectively, and the first turn-on time is less than the second turn-on time, calculating the average driving current of the two LEDs in the LED group according to the turn-on time of the two LEDs, the driving current of each group of LEDs, and the number of LEDs included in each group of LEDs is specifically:
according to the formula
Figure FDA0001745890460000033
Calculating the average driving current of the first LED according to a formula
Figure FDA0001745890460000034
Calculating an average drive current of the second LED; wherein, I 11Is the average drive current of the first LED, t 1Is the on-time of the first LED, I 12Is the average drive current of the second LED, t 2And L is the conduction time of the second LED, and the number of the LED lamps included in each group of LEDs.
8. An LED driving current distribution device for distributing current to LEDs in an LED matrix, the LED matrix having a plurality of driving ports and including a plurality of LED groups, the LED driving current distribution device comprising:
the data acquisition module is used for acquiring the driving current, the scanning matrix data and the grouped data of the LED matrix after the LED reset module finishes resetting after the system is powered on; the scanning matrix data comprises the column number and the row number of the LED matrix, and the grouped data comprises the number of the LED lamps which are allowed to be included at most in each group of LEDs after the LED matrix is grouped;
the driving current obtaining module is used for obtaining the driving current of each group of LEDs according to the driving current, the number of columns of the LED matrix and the number of the LED lamps which are allowed to be included at most in each group of LEDs;
and the average driving current obtaining module is used for obtaining the conduction time of each group of LEDs and obtaining the average driving current of each LED according to the conduction time of each group of LEDs, the driving current of each group of LEDs and the number of the LEDs included in each group of LEDs.
9. An LED driving current distribution apparatus comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the LED driving current distribution method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the LED driving current distribution method according to any one of claims 1 to 7.
CN201810842474.9A 2018-07-27 2018-07-27 LED driving current distribution method and device and storage medium Active CN110784966B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810842474.9A CN110784966B (en) 2018-07-27 2018-07-27 LED driving current distribution method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810842474.9A CN110784966B (en) 2018-07-27 2018-07-27 LED driving current distribution method and device and storage medium

Publications (2)

Publication Number Publication Date
CN110784966A true CN110784966A (en) 2020-02-11
CN110784966B CN110784966B (en) 2021-09-10

Family

ID=69377265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810842474.9A Active CN110784966B (en) 2018-07-27 2018-07-27 LED driving current distribution method and device and storage medium

Country Status (1)

Country Link
CN (1) CN110784966B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05191250A (en) * 1991-10-14 1993-07-30 Yokogawa Electric Corp Multiplexer
JPH08248922A (en) * 1995-03-10 1996-09-27 Nagoya Denki Kogyo Kk Led display device
CN101546517A (en) * 2008-03-27 2009-09-30 奇景光电股份有限公司 Oled and methods for driving an OLED panel
CN106991193A (en) * 2017-04-26 2017-07-28 努比亚技术有限公司 Obtain the method and terminal, computer-readable recording medium of article similarity

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05191250A (en) * 1991-10-14 1993-07-30 Yokogawa Electric Corp Multiplexer
JPH08248922A (en) * 1995-03-10 1996-09-27 Nagoya Denki Kogyo Kk Led display device
CN101546517A (en) * 2008-03-27 2009-09-30 奇景光电股份有限公司 Oled and methods for driving an OLED panel
CN106991193A (en) * 2017-04-26 2017-07-28 努比亚技术有限公司 Obtain the method and terminal, computer-readable recording medium of article similarity

Also Published As

Publication number Publication date
CN110784966B (en) 2021-09-10

Similar Documents

Publication Publication Date Title
CN107016955B (en) LED display and its driving method
WO2016183890A1 (en) Backlight luminance control method, apparatus, and display apparatus
CN1326175A (en) Modulating circuit, image display therewith and modulating method
US10613379B2 (en) Backlight driving control method and system
WO2018098036A1 (en) Intensity scaled dithering pulse width modulation
CN109379800B (en) Light emitting control method and device for light emitting diode
US11116061B2 (en) Light source driving device
CN105788539A (en) Backlight adjusting method and system, backlight modules and display device
CN101686590A (en) Led dynamic backlight source control algorithm
CN102006696B (en) Light-emitting diode backlight drive circuit, method and constant current source thereof
CN110784966B (en) LED driving current distribution method and device and storage medium
CN113948033B (en) High-precision PWM driving method, device and medium for LED display screen
CN108962132B (en) LED display device and main controller and control method thereof
CN110784961B (en) LED driving method and device and storage medium
CN113571012B (en) Backlight brightness adjusting method, device, equipment and storage medium
CN110809346A (en) Light adjusting method, light adjusting device and terminal equipment
CN104050925A (en) Displaying method and device for LED display screen and LED display screen
CN113380202A (en) Liquid crystal display device and backlight brightness adjusting method
CN114743486A (en) Gamma adjusting method and device for display panel
US10631376B2 (en) High brightness LED matrix driving system
CN109658875B (en) Color gamut control method and display device thereof
CN113298790A (en) Image filtering method, device, terminal and computer readable storage medium
CN111707455A (en) Smooth dimming method and system for lamp
CN113129809B (en) LED array driving method, display array driving device and terminal equipment
CN108259734B (en) Network camera equipment and luminance adjusting method of light supplement lamp thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210219

Address after: 518119 No.1 Yan'an Road, Kuiyong street, Dapeng New District, Shenzhen City, Guangdong Province

Applicant after: BYD Semiconductor Co.,Ltd.

Address before: 518118 BYD Road, Pingshan New District, Shenzhen, Guangdong 3009

Applicant before: BYD Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant