Device for directly driving LED dot matrix through IO port
By using 4 IO ports to control 12 light emitting diodes in the LED dot matrix driving device, and using the visual retention phenomenon principle and three-state driving circuit, the high application cost problem caused by the number of IO ports in the prior art is solved, and the effect of reducing costs and improving product effects is achieved.
Patent Information
- Application Number
- CN202421988757.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2034-08-16
AI Technical Summary
The use of the same number of IO ports as the light emitting diodes in the prior art leads to high product application costs.
The device that directly drives the LED dot matrix through the IO port is used to control 12 light emitting diodes. Using the principle of visual retention phenomenon, the light emitting diodes are lit in sequence during the visual retention time according to bright light requirements, and a three-state driving circuit is connected to the IO port to isolate the current path to avoid the series of light emitting diodes.
It effectively reduces product application costs, reduces hardware resources while not reducing the actual product usage effect, and improves the product usage effect and the simplicity of the logic-driven method.
Smart Images

Figure CN222867247U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of LED display, in particular to a device for directly driving an LED dot matrix through an IO port. Background Art
[0002] LED is the abbreviation of light-emitting diode, which is a kind of semiconductor diode that can convert electrical energy into light energy. Like ordinary diodes, light-emitting diodes are composed of a P pole and an N pole, and also have unidirectional conductivity. When a forward voltage is applied to the light-emitting diode, the holes injected from the P region to the N region and the electrons injected from the N region to the P region recombine with the electrons in the N region and the holes in the P region within a few microns near the PN junction, respectively, to produce spontaneously radiated fluorescence. The energy states of electrons and holes in different semiconductor materials are different. When electrons and holes recombine, the amount of energy released is different. The more energy released, the shorter the wavelength of the light emitted. LED has been applied to all aspects of life and has become one of the most commonly used electronic components in life. The market uses LED dot matrix composed of multiple (usually 12) light-emitting diodes to display product power patterns and operating status (high speed and low speed) patterns.
[0003] In the prior art, the same number of IO ports as the number of light-emitting diodes are used to light up the light-emitting diodes one by one, so that the LED dot matrix screen can be operated. The setting of multiple IO ports greatly increases the application cost of the product. Utility Model Content
[0004] In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a device and method for directly driving an LED dot matrix through an IO port, so as to solve the problem of high application cost of using the same number of IO ports as light-emitting diodes in the prior art.
[0005] To achieve the above-mentioned purpose and other related purposes, the utility model provides a device for directly driving an LED dot matrix through an IO port, comprising an LED dot matrix composed of a plurality of light-emitting diodes, wherein two light-emitting diodes are used to display gear patterns of different running speeds of the machine, and other light-emitting diodes are used together to display different battery power indication patterns;
[0006] It comprises a plurality of IO ports, each of which is connected to a three-state driving circuit, and the three-state driving circuit is used to output a high-level working signal, a low-level working signal and a high-impedance working signal; the input end and the output end of each light-emitting diode are respectively connected to different IO ports.
[0007] In one embodiment of the utility model, the light emitting diodes are provided with 12, including D7-D18, and the IO ports are provided with 4, including PT1-PT4;
[0008] The input end of the light emitting diode D7 is connected to PT2, and the output end is connected to PT1;
[0009] The input end of the light emitting diode D8 is connected to PT1, and the output end is connected to PT2;
[0010] The input end of the light emitting diode D9 is connected to PT1, and the output end is connected to PT3;
[0011] The input end of the light emitting diode D10 is connected to PT1, and the output end is connected to PT4;
[0012] The input end of the light emitting diode D11 is connected to PT3, and the output end is connected to PT1;
[0013] The input end of the light emitting diode D12 is connected to PT3, and the output end is connected to PT2;
[0014] The input end of the light emitting diode D13 is connected to PT2, and the output end is connected to PT3;
[0015] The input end of the light emitting diode D14 is connected to PT2, and the output end is connected to PT4;
[0016] The input end of the light emitting diode D15 is connected to PT4, and the output end is connected to PT1;
[0017] The input end of the light emitting diode D16 is connected to PT4, and the output end is connected to PT2;
[0018] The input end of the light emitting diode D17 is connected to PT4, and the output end is connected to PT3;
[0019] The input end of the light emitting diode D18 is connected to PT3, and the output end is connected to PT4.
[0020] In one embodiment of the present invention, at the same time, there is only one IO port outputting a high-level working signal, another IO port outputting a low-level working signal, and the other IO ports output high-impedance working signals.
[0021] In an embodiment of the present invention, the tri-state driving circuit is composed of a P-type metal oxide semiconductor effect transistor and an N-type metal oxide semiconductor effect transistor connected in series.
[0022] As described above, the device of the utility model for directly driving the LED dot matrix through the IO port has the following beneficial effects:
[0023] When an object is moving rapidly, the human eye can still retain the image for about 100mS-400mS after the image seen by the human eye disappears. This phenomenon is called persistence of vision. This phenomenon is a property of the human eye. When the human eye looks at an object, the image is formed on the retina and input into the human brain through the optic nerve, so that the image of the object is felt. However, when the object is removed, the impression of the object by the optic nerve will not disappear immediately, but will continue for 100mS-400mS. This property of the human eye is called "persistence of vision of the eye". The utility model makes full use of the principle of the persistence of vision phenomenon, and uses 4 IO ports to control 12 light-emitting diodes to light up in sequence within the persistence of vision time according to the light demand, thereby reducing hardware resources without reducing the actual use effect of the product, and effectively reducing the application cost of the product. Moreover, only one light-emitting diode is lit at the same time, and the logic driving method is simple and error-prone, thereby improving the use effect of the product. By connecting a three-state drive circuit to the IO port, the high-impedance working signal of the three-state drive circuit can effectively isolate the current path, ensuring that the current in the circuit in the non-lit state remains extremely small, avoiding the problem of string lighting of the light-emitting diodes in the LED dot matrix, and further improving the use effect of the product. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 Shown is a schematic diagram of the structure of the LED dot matrix disclosed in the utility model.
[0025] Figure 2 The display is a schematic diagram of the pattern display of the LED dot matrix disclosed in the utility model
[0026] Figure 3 Shown is a schematic diagram of the LED dot matrix display drive circuit disclosed by the utility model.
[0027] Figure 4 Shown is a schematic diagram of a three-state driving circuit disclosed in the utility model.
[0028] Figure 5 The display is a schematic diagram of the LED dot matrix pattern display disclosed by the utility model when the product is in high-speed operation state.
[0029] Figure 6 The display is a schematic diagram of the LED dot matrix pattern displayed when the product is running at a low speed disclosed by the utility model. DETAILED DESCRIPTION
[0030] The following is a description of the implementation of the present invention by means of specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification.
[0031] See also Figures 1 to 6. It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings in this specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the utility model, so they have no substantial technical significance. Any modification of the structure, change in the proportion relationship, or adjustment of the size, without affecting the effects and purposes that can be achieved by the utility model, should still fall within the scope of the technical content disclosed by the utility model. At the same time, the terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are only for the convenience of description, and are not used to limit the scope of the implementation of the utility model. Changes or adjustments in their relative relationships should also be regarded as the scope of the implementation of the utility model without substantially changing the technical content.
[0032] Example 1, please refer to Figure 3 The present invention provides a device for directly driving an LED matrix through an IO port, comprising an LED matrix composed of a plurality of light-emitting diodes and a plurality of IO ports, wherein two light-emitting diodes in the LED matrix are used to display gear patterns of different operating speeds of the machine, and other light-emitting diodes are used together to display different battery power indication patterns; the LED matrix can simultaneously display the power status of the product and the high-speed and low-speed operating states; a single IO port is connected to a three-state drive circuit, the three-state drive circuit is composed of a P-type metal oxide semiconductor effect transistor and an N-type metal oxide semiconductor effect transistor connected in series, and the different states of the LED port are controlled by the different states of the P-type metal oxide semiconductor effect transistor and the N-type metal oxide semiconductor effect transistor, so as to achieve the purpose of controlling the drive circuit; specifically, the three-state drive circuit is used to output a high-level working signal, a low-level working signal and a high-impedance working signal; the input end and the output end of the single light-emitting diode are respectively connected to different IO ports.
[0033] Example 2, please refer to Figure 1-6 , based on Example 1, the light emitting diodes are provided with 12, including D7-D18, and the IO ports are provided with 4, including PT1-PT4;
[0034] The input end of the light emitting diode D7 is connected to PT2, and the output end is connected to PT1;
[0035] The input end of the light emitting diode D8 is connected to PT1, and the output end is connected to PT2;
[0036] The input end of the light emitting diode D9 is connected to PT1, and the output end is connected to PT3;
[0037] The input end of the light emitting diode D10 is connected to PT1, and the output end is connected to PT4;
[0038] The input end of the light emitting diode D11 is connected to PT3, and the output end is connected to PT1;
[0039] The input end of the light emitting diode D12 is connected to PT3, and the output end is connected to PT2;
[0040] The input end of the light emitting diode D13 is connected to PT2, and the output end is connected to PT3;
[0041] The input end of the light emitting diode D14 is connected to PT2, and the output end is connected to PT4;
[0042] The input end of the light emitting diode D15 is connected to PT4, and the output end is connected to PT1;
[0043] The input end of the light emitting diode D16 is connected to PT4, and the output end is connected to PT2;
[0044] The input end of the light emitting diode D17 is connected to PT4, and the output end is connected to PT3;
[0045] The input end of the light emitting diode D18 is connected to PT3, and the output end is connected to PT4;
[0046] Please refer to Table 1, which is a truth table for controlling 12 light-emitting diodes to light up using 4 IO ports. Specifically, a) one light-emitting diode corresponds to one pixel of the LED dot matrix image. To display the corresponding pixel, the corresponding light-emitting diode must be lit; b) to light up a light-emitting diode, a high level must be added to the positive electrode of the light-emitting diode and a low level must be added to the negative electrode, and other unlit light-emitting diode circuits must be added to a high impedance state; in Table 1, a high-level working signal is recorded as H, a low-level working signal is recorded as L, and a high-impedance working signal is recorded as Z;
[0047]
[0048] Table 1
[0049] It can be seen from the above table that at the same time, there is only one IO port outputting a high-level working signal, another IO port outputting a low-level working signal, and the other IO ports output high-impedance working signals; in this embodiment, by connecting a three-state drive circuit to the IO port, the high-impedance working signal of the three-state drive circuit can effectively isolate the current path, ensure that the current in the circuit in the non-lit state remains extremely small, avoid the problem of string lighting of the light-emitting diodes in the LED dot matrix, and further improve the use effect of the product.
[0050] Example 3, please refer to Figure 1-6 This embodiment provides a method for directly driving an LED matrix through an IO port, using the devices provided in Embodiments 1 and 2, including the following steps:
[0051] S1. 12 light-emitting diodes D7-D18 are used to form an LED dot matrix, wherein the light-emitting diodes D7 and D8 in the LED dot matrix are used to display the gear patterns of the high-speed and low-speed operation speeds of the machine, and the light-emitting diodes D9-D18 cooperate to display different battery power indication patterns; the light-emitting diodes D7-D8 and the light-emitting diodes D9-D17 use LED tubes with different light colors, specifically, the light-emitting diodes D7-D8 use blue LED tubes, and the light-emitting diodes D9-D17 use white LED tubes;
[0052] S2, using 4 IO ports PT1-PT4 to control the working status of 12 light-emitting diodes D7-D18D;
[0053] S3, setting the working state of the four IO ports to output sequentially in time, at the same time, one and only one IO port outputs a high-level working signal, another IO port outputs a low-level working signal, and the other IO ports output high-impedance working signals;
[0054] S4. Set the current working state maintenance time of a single IO port to 9-12ms.
[0055] The utility model adopts 12 light-emitting diodes D7-D18 to form an LED dot matrix. Since the high and low speed states do not exist at the same time, under normal circumstances, the number of light-emitting diodes in the LED dot matrix that are lit does not exceed 11. When the current working state of a single IO port is maintained for 9ms, the total time length of the LED dot matrix display pattern that is lit does not exceed 99ms; when the current working state of a single IO port is maintained for 10ms, the total time length of the LED dot matrix display pattern that is lit does not exceed 110ms; when the current working state of a single IO port is maintained for 11ms, the total time length of the LED dot matrix display pattern that is lit does not exceed 121ms; when the current working state of a single IO port is maintained for 12ms, the total time length of the LED dot matrix display pattern that is lit does not exceed 132ms; since the object is in fast motion, When the image seen by the human eye disappears, the human eye can still retain the image for about 100mS-400mS. This phenomenon is called persistence of vision. The total time of lighting up the LED dot matrix display pattern is 99ms-132ms, which can achieve the effect of persistence of vision and leave a complete display pattern in the human eye.
[0056] The phenomenon of persistence of vision is a property of the human eye. When the human eye looks at an object, the image is formed on the retina and input into the human brain by the optic nerve, and the image of the object is felt. However, when the object is removed, the impression of the object by the optic nerve does not disappear immediately, but continues for 100mS-400mS. This property of the human eye is called "persistence of vision of the eye". The utility model makes full use of the principle of persistence of vision, and uses 4 IO ports to control 12 light-emitting diodes to light up in sequence according to the light demand within the persistence of vision time, which reduces the hardware resources without reducing the actual use effect of the product, and effectively reduces the application cost of the product; and only one light-emitting diode is lit at the same time, the logical driving method is simple and not prone to errors, and the use effect of the product is improved.
[0057] Embodiment 4, this embodiment provides a computer-readable storage medium on which computer instructions are stored. The computer-readable storage medium may be a computer-readable storage medium included in the electronic device or computer system in the above embodiment; or it may be a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the instructions of the method disclosed in Embodiment 3.
[0058] Embodiment 5, this embodiment provides a computer program, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes a program code for executing the above method. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or the computer program can be installed from a removable medium to execute the instructions of the method disclosed in Embodiment 3.
[0059] In summary, the utility model makes full use of the principle of visual persistence phenomenon, and uses 4 IO ports to control 12 light-emitting diodes to light up in sequence according to the light demand within the visual persistence time, which reduces hardware resources without reducing the actual use effect of the product, and effectively reduces the product application cost; and only one light-emitting diode is lit at the same time, the logical driving method is simple and not prone to errors, and the use effect of the product is improved; by connecting the three-state drive circuit to the IO port, the high-impedance working signal of the three-state drive circuit can effectively isolate the current path, ensure that the current in the non-lit state circuit remains extremely small, avoid the problem of string lighting of light-emitting diodes in the LED matrix, and further improve the use effect of the product. Therefore, the utility model effectively overcomes the various shortcomings of the prior art and has a high industrial utilization value.
[0060] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A device for directly driving an LED matrix through an IO port, characterized in that: It includes an LED dot matrix composed of a plurality of light-emitting diodes, two of which are used to display gear patterns of different operating speeds of the machine, and the other light-emitting diodes are used together to display different battery power indicator patterns; It comprises a plurality of IO ports, each of which is connected to a three-state driving circuit, and the three-state driving circuit is used to output a high-level working signal, a low-level working signal and a high-impedance working signal; the input end and the output end of each light-emitting diode are respectively connected to different IO ports.
2. The device for directly driving an LED matrix through an IO port according to claim 1, characterized in that: The light emitting diodes are provided with 12, including D7-D18, and the IO ports are provided with 4, including PT1-PT4; The input end of the light emitting diode D7 is connected to PT2, and the output end is connected to PT1; The input end of the light emitting diode D8 is connected to PT1, and the output end is connected to PT2; The input end of the light emitting diode D9 is connected to PT1, and the output end is connected to PT3; The input end of the light emitting diode D10 is connected to PT1, and the output end is connected to PT4; The input end of the light emitting diode D11 is connected to PT3, and the output end is connected to PT1; The input end of the light emitting diode D12 is connected to PT3, and the output end is connected to PT2; The input end of the light emitting diode D13 is connected to PT2, and the output end is connected to PT3; The input end of the light emitting diode D14 is connected to PT2, and the output end is connected to PT4; The input end of the light emitting diode D15 is connected to PT4, and the output end is connected to PT1; The input end of the light emitting diode D16 is connected to PT4, and the output end is connected to PT2; The input end of the light emitting diode D17 is connected to PT4, and the output end is connected to PT3; The input end of the light emitting diode D18 is connected to PT3, and the output end is connected to PT4.
3. The device for directly driving an LED matrix through an IO port according to claim 2, characterized in that: At the same time, there is only one IO port outputting a high-level working signal, another IO port outputting a low-level working signal, and the other IO ports output high-impedance working signals.
4. The device for directly driving an LED matrix through an IO port according to claim 1, characterized in that: The three-state driving circuit is composed of a P-type metal oxide semiconductor effect transistor and an N-type metal oxide semiconductor effect transistor connected in series.