LED dot matrix driving method
By setting up driving pins with positive and negative terminals on the LED control chip and using progressive scanning technology, the problems of high cost and grayscale display in LED dot matrix control are solved, achieving efficient grayscale display and brightness enhancement.
Patent Information
- Application Number
- CN202511910797.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-17
- Publication Date
- 2026-03-03
AI Technical Summary
Existing LED dot matrix control requires multiple pins and an additional dot matrix screen driver chip, resulting in high costs and the inability to achieve grayscale display.
The LED control chip has n LED driver pins, with each pair of pins being the positive and negative terminals of each other, driving two LEDs. Grayscale display is achieved through line-by-line scanning and high-level input, and brightness is enhanced by combining driver enhancement pins and switches.
No additional dot matrix screen driver chip is required; fewer pins are needed to drive the LED dot matrix, enabling grayscale display and enhanced brightness.
Smart Images

Figure CN121600845A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of LED driving technology, specifically to an LED dot matrix driving method. Background Technology
[0002] Light-emitting diodes (LEDs) are widely used in lighting, displays, and other fields as semiconductor light sources that are small in size, high in brightness, long in life, and fast in response. LED dot matrix displays text, graphics, and other information by arranging multiple LEDs in a specific way and controlling the on / off state of the LEDs. Current LED dot matrix control typically uses chip pins; driving m*n LEDs requires m+n pins. This method requires a large MCU area and is costly. In practical applications, an additional LED dot matrix screen driver chip is needed, but this increases the product's BOM cost.
[0003] In addition, the brightness of an LED dot matrix screen is also related to the driving capability of its pins. Generally, the greater the driving capability of the pins, the higher the brightness of the LED. The driving capability of the pins determines the upper limit of the LED's brightness. Existing pin driving methods can only maintain a fixed driving capability for the LED, that is, the LED will display a fixed brightness when it is lit, and grayscale display is not possible.
[0004] Therefore, it is essential to provide an LED dot matrix driving method that does not require an additional dot matrix screen driver chip and can display in grayscale. Summary of the Invention
[0005] To address the problems existing in the prior art, this application provides an LED dot matrix driving method that can drive an LED dot matrix screen with fewer pins without the need for an additional dot matrix screen driver chip, and can also achieve LED grayscale display.
[0006] The technical solution adopted by this application to solve the above problems is: An LED dot matrix driving method is provided, wherein n LED driving pins are set on the LED control chip; each pair of LED driving pins is the positive and negative terminals of each other, driving 2 LEDs.
[0007] Furthermore, the n LED driving pins A0, A1, A2...An can drive n*(n-1) LEDs; When pin A0 is the positive terminal of the LED, the remaining (n-1) pins are used as the negative terminals of the LED, which can drive (n-1) LEDs. When pin A1 is the positive terminal of the LED, the remaining (n-1) pins are used as the negative terminals of the LED, which can drive (n-1) LEDs. When pin A2 is the positive terminal of the LED, the remaining (n-1) pins are used as the negative terminals of the LED, which can drive (n-1) LEDs. Similarly, when the An pin is the positive terminal of the LED, the remaining (n-1) pins serve as the negative terminals of the LED, which can drive (n-1) LEDs.
[0008] Furthermore, the n*(n-1) LEDs form an LED dot matrix with n rows and (n-1) columns.
[0009] Furthermore, when it is necessary to light up a certain LED, the LED control chip inputs a high level to the positive terminal pin of the LED that needs to be lit, and inputs a low level to the negative terminal pin of the LED that needs to be lit; When multiple LEDs need to be lit, the LED control chip scans the LED matrix line by line, inputs a high level to the positive terminal pin of the LED that needs to be lit, inputs a low level to the negative terminal pin of the LED that needs to be lit, and sets the negative terminal pin of the LED that does not need to be lit as an input.
[0010] Furthermore, the high level can be replaced by a PWM modulation waveform, and the n LED driving pins synchronously support PWM mapping function.
[0011] Furthermore, the LED control chip is also provided with n LED drive enhancement pins B0, B1, B2...Bn and n drive enhancement switches S0, S1, S2...Sn; The LED driving pin A0 and the LED driving enhancement pin B0 are connected via the driving enhancement switch S0; The LED driving pin A1 and the LED driving enhancement pin B1 are connected via the driving enhancement switch S1; The LED driving pin A2 and the LED driving enhancement pin B2 are connected via the driving enhancement switch S2; Similarly, the LED driving pin An and the LED driving enhancement pin Bn are connected via the driving enhancement switch Sn.
[0012] Furthermore, the n drive enhancement switches can be replaced with a master switch.
[0013] Furthermore, when the drive enhancement switch is turned off, the LED dot matrix is driven by the LED drive pin; When the drive enhancement switch is closed, the LED drive enhancement pin is shorted to the LED drive pin, and together they drive the LED dot matrix.
[0014] This application also provides an LED dot matrix driving circuit using any of the above-described LED dot matrix driving methods, including a processor, a storage module, and an LED driving module; the LED driving module includes n LED driving pins, with two LEDs arranged in opposite directions between every two LED driving pins.
[0015] Furthermore, the LED driving module also includes n LED driving enhancement pins and n driving enhancement switches; the LED driving pins and the LED driving enhancement pins are connected through the driving enhancement switches.
[0016] Using the LED dot matrix driving method provided in this application, an LED dot matrix screen can be driven with fewer pins without the need for an additional dot matrix screen driver chip; at the same time, the brightness of the LED can be enhanced, and LED grayscale display can be achieved by adjusting the signal input. Attached Figure Description
[0017] Figure 1 This is a partial structural diagram of an LED dot matrix, which is provided as an embodiment of the present application for an LED dot matrix driving method.
[0018] Figure 2 This is a partial structural diagram of an LED dot matrix for an LED dot matrix driving method provided in another embodiment of this application.
[0019] Figure 3 This is a partial structural diagram of an LED dot matrix for an LED dot matrix driving method provided in another embodiment of this application.
[0020] Figure 4 This is a schematic diagram of the circuit structure of an LED dot matrix driving circuit provided in another embodiment of this application. Detailed Implementation
[0021] The technical solution of this application will be further described below with reference to the embodiments and accompanying drawings.
[0022] In one embodiment, an LED dot matrix driving method is provided, wherein n LED driving pins are set on the LED control chip; each pair of LED driving pins is the positive and negative terminals of each other, driving 2 LEDs.
[0023] Furthermore, n LED driver pins A0, A1, A2...An can drive n*(n-1) LEDs; When pin A0 is the positive terminal of the LED, the remaining (n-1) pins are used as the negative terminals of the LED, which can drive (n-1) LEDs. When pin A1 is the positive terminal of the LED, the remaining (n-1) pins are used as the negative terminals of the LED, which can drive (n-1) LEDs. When pin A2 is the positive terminal of the LED, the remaining (n-1) pins are used as the negative terminals of the LED, which can drive (n-1) LEDs. Similarly, when pin An is the positive terminal of the LED, the remaining (n-1) pins serve as the negative terminals of the LED, driving (n-1) LEDs. The above n*(n-1) LEDs form an LED matrix of n rows and (n-1) columns.
[0024] In one embodiment, such as Figure 1 As shown, when the LED control chip has a total of 4 LED driving pins (A0, A1, A2, A3), each pair of LED driving pins is the positive and negative terminal of each other, driving 2 LEDs. Therefore, the 4 LED driving pins can drive 12 LEDs.
[0025] Specifically, when pin A0 is the positive terminal, pins A1, A2, and A3 are the negative terminals, which can drive three LEDs numbered 0, 1, and 2; when pin A1 is the positive terminal, pins A0, A2, and A3 are the negative terminals, which can drive three LEDs numbered 3, 4, and 5; and so on. A0, A1, A2, and A3 are a total of four pins, which can drive 4 × (4-1) = 12 LEDs.
[0026] In one embodiment, when it is necessary to light up a certain LED, the LED control chip inputs a high level to the positive terminal pin of the LED that needs to be lit and a low level to the negative terminal pin of the LED that needs to be lit. When multiple LEDs need to be lit, the LED control chip scans the LED matrix line by line, inputting a high level to the positive pin of the LED that needs to be lit and a low level to the negative pin of the LED that needs to be lit, and setting the negative pin of the LED that does not need to be lit as an input, making it present a high impedance state, so that the two ends of the LED will not conduct.
[0027] like Figure 1 As shown, when LED number 5 needs to be lit, the LED control chip scans the LED matrix line by line. According to the requirements, pin A1 is input with a high level and pin A3 is input with a low level. Pins A0 and A2 are set as inputs. At this time, only LED number 5 is turned on and lit, while the other LEDs are not turned on.
[0028] When it is necessary to light up three LEDs numbered 1, 5, and 9, the LED control chip scans the LED matrix row by row. It inputs a high level to the positive pin of the LED that needs to be lit and a low level to the negative pin of the LED that needs to be lit, while setting the negative pin of the LED that does not need to be lit as an input. Specifically, the LED control chip scans in the order of A0, A1, A2, and A3 as the positive input pins of each row of LEDs. First, it inputs a high level to pin A0 and a low level to pin A2, setting pins A1 and A3 as inputs. Then, it inputs a high level to pin A1 and a low level to pin A3, setting pins A0 and A2 as inputs. Finally, it inputs a high level to pin A3 and a low level to pin A0, setting pins A1 and A2 as inputs, thus lighting up the three LEDs numbered 1, 5, and 9 sequentially. If the scanning speed is fast enough, utilizing the persistence of vision, it can achieve the effect of lighting up the three LEDs numbered 1, 5, and 9 simultaneously.
[0029] In one embodiment, a drive enhancement switch can be provided between each group of LED driving pins and drive enhancement pins to meet the need to enhance the brightness of individual LEDs. The LED control chip, in addition to the A0, A1, A2...An LED driving pins, also has n LED drive enhancement pins B0, B1, B2...Bn and n drive enhancement switches S0, S1, S2...Sn. LED driver pin A0 and LED driver enhancement pin B0 are connected via driver enhancement switch S0; LED driver pin A1 and LED driver enhancement pin B1 are connected via driver enhancement switch S1; LED driver pin A2 and LED driver enhancement pin B2 are connected via driver enhancement switch S2; Similarly, the LED driver pin An and the LED driver enhancement pin Bn are connected via the driver enhancement switch Sn.
[0030] like Figure 2As shown, each of the four LED driver pins A0, A1, A2, and A3 is assigned a driver enhancement pin, designated B0, B1, B2, and B3 respectively. Correspondingly, four switches are configured, designated S0, S1, S2, and S3. When it is necessary to light four LEDs numbered 0, 5, 8, and 10, and only the brightness of LED number 5 needs to be increased, the LED control chip scans the LEDs in the order of A0, A1, A2, and A3 as the positive input terminals for each row of LEDs. First, a high level is input to pin A0, and a low level is input to pin A1. First, input a high level to pin A1 and a low level to pin A3, setting pins A0 and A2 as inputs and closing switch S1. Then, input a high level to pin A2 and a low level to pin A3, setting pins A0 and A1 as inputs. Finally, input a high level to pin A3 and a low level to pin A1, setting pins A0 and A2 as inputs. This will sequentially light up LEDs numbered 0, 5, 8, and 10, with increased brightness when LED number 5 is lit.
[0031] In another embodiment, such as Figure 3 As shown, a drive enhancement pin is set for each of the four LED driver pins A0, A1, A2, and A3, which are respectively B0, B1, B2, and B3; at the same time, a master switch S0 is set. When it is necessary to increase the brightness of the lit LED, the switch S0 is closed, which short-circuits the LED driver pin and the drive enhancement pin. The driving capabilities of the two are superimposed, the LED driving capability is stronger, and the LED brightness will be brighter.
[0032] In another embodiment, an LED dot matrix driving circuit that can be configured in an MCU is provided, including a processor, a memory module, and an LED driving module; the LED driving module includes n LED driving pins, with two LEDs arranged in opposite directions between every two LED driving pins. The LED driving module also includes n LED driving enhancement pins and n driving enhancement switches; the LED driving pins and LED driving enhancement pins are connected via driving enhancement switches.
[0033] like Figure 4 As shown, the LED dot matrix driving circuit includes a processor (CORE), a memory module (RAM), and an LED driver module (LED Driver). The LED driver module has a total of 14 LED driving pins, A0, A1, ... A13, and 14 driving enhancement pins, B0, B1, ... B13, corresponding to each other. It also has a general driving enhancement switch S0 to enhance the brightness of the LEDs as needed.
[0034] In this embodiment, the LED dot matrix screen displays data stored in RAM. After configuration by the CORE module, the 13-bit*14 data stored in RAM is input to the LED Driver row by row. The data is then converted from serial to parallel data, and each row displays its corresponding data content. Data is continuously transmitted, automatically retrieved and scanned row by row to complete the LED display. When increased brightness is needed, the driver enhancement switch S0 is closed.
[0035] In another embodiment, the total drive enhancement switch S0 can be replaced by 14 individual drive enhancement switches to control the opening or closing of the corresponding LED drive pins and drive enhancement pins to meet various LED brightness enhancement needs.
[0036] In another embodiment, the high-level driving signal for the LED can be replaced by a PWM modulation waveform, and n LED driving pins synchronously support PWM mapping. Generally, when an LED is lit, its brightness will not change as long as the driving capability of the LED driving pin remains unchanged. However, if the high-level driving signal for the LED is replaced by a PWM modulation waveform, the brightness of the LED can be controlled, such as... Figure 4 As shown, if pins A0 to A13 synchronously support PWM mapping, the same PWM can be mapped sequentially to the corresponding IO of each row during automatic row scanning; 8-bit PWM can achieve 256 levels of grayscale.
[0037] The above embodiments and accompanying drawings are merely explanations and illustrations of the technical solutions of this application, and should not be construed as limiting the specific implementation methods of this application to these descriptions. For those skilled in the art, simple deductions or substitutions made without departing from the concept of the technical solutions of this application still fall within the protection scope of the technical solutions of this application.
Claims
1. A method for driving an LED dot matrix, characterized in that, The LED control chip has n LED driving pins: A0, A1, A2...An. Each pair of LED driving pins is the positive and negative terminal of each other, driving two LEDs.
2. The LED dot matrix driving method according to claim 1, characterized in that, The n LED driving pins can drive n*(n-1) LEDs; When pin A0 is the positive terminal of the LED, the remaining (n-1) pins are used as the negative terminals of the LED, which can drive (n-1) LEDs. When pin A1 is the positive terminal of the LED, the remaining (n-1) pins are used as the negative terminals of the LED, which can drive (n-1) LEDs. When pin A2 is the positive terminal of the LED, the remaining (n-1) pins are used as the negative terminals of the LED, which can drive (n-1) LEDs. Similarly, when the An pin is the positive terminal of the LED, the remaining (n-1) pins serve as the negative terminals of the LED, which can drive (n-1) LEDs.
3. The LED dot matrix driving method according to claim 2, characterized in that, The n*(n-1) LEDs form an LED dot matrix with n rows and (n-1) columns.
4. The LED dot matrix driving method according to claim 3, characterized in that, When a certain LED needs to be lit, the LED control chip inputs a high level to the positive terminal pin of the LED that needs to be lit and a low level to the negative terminal pin of the LED that needs to be lit. When multiple LEDs need to be lit, the LED control chip scans the LED matrix line by line, inputs a high level to the positive terminal pin of the LED that needs to be lit, inputs a low level to the negative terminal pin of the LED that needs to be lit, and sets the negative terminal pin of the LED that does not need to be lit as an input.
5. The LED dot matrix driving method according to claim 4, characterized in that, The high level can be replaced by a PWM modulation waveform, and the n LED driving pins synchronously support PWM mapping function.
6. The LED dot matrix driving method according to claim 2, characterized in that, The LED control chip is also provided with n LED drive enhancement pins B0, B1, B2...Bn and n drive enhancement switches S0, S1, S2...Sn; The LED driving pin A0 and the LED driving enhancement pin B0 are connected via the driving enhancement switch S0; The LED driving pin A1 and the LED driving enhancement pin B1 are connected via the driving enhancement switch S1; The LED driving pin A2 and the LED driving enhancement pin B2 are connected via the driving enhancement switch S2; Similarly, the LED driving pin An and the LED driving enhancement pin Bn are connected via the driving enhancement switch Sn.
7. The LED dot matrix driving method according to claim 6, characterized in that, The n drive enhancement switches can be replaced with a master switch.
8. The LED dot matrix driving method according to any one of claim 6 or claim 7, characterized in that, When the drive enhancement switch is off, the LED matrix is driven by the LED drive pin; When the drive enhancement switch is closed, the LED drive enhancement pin is shorted to the LED drive pin, and together they drive the LED dot matrix.
9. An LED dot matrix driving circuit using the LED dot matrix driving method according to any one of claims 1 to 8, characterized in that, It includes a processor, a storage module, and an LED driver module; the LED driver module includes n LED driver pins, with two LEDs arranged in opposite directions between every two LED driver pins.
10. The LED dot matrix driving circuit according to claim 9, characterized in that, The LED driver module further includes n LED driver enhancement pins and n driver enhancement switches; the LED driver pins and the LED driver enhancement pins are connected through the driver enhancement switches.