A novel LED dynamic display method (Figure) (ULN2003)

Publisher:SereneJourneyLatest update time:2012-11-28 Source: 维库电子Keywords:LED Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
LED is often used as a display in single-chip microcomputer application systems. When multiple LED displays are required, in order to simplify the circuit and reduce costs, the selection lines of all gates are often connected in parallel and controlled by an 8-bit I/O port, while the common cathode (positive) I/O line is controlled to achieve the gating of each part. As shown in Figure 1, a 6-bit LED dynamic display interface circuit.


Table 1 Control symbols
Section 2
Section 1
a
b
c
d
and
f
g
dp
Ice1
led2
led3
1st time
0
1
1
1
1
1
1
1
0
1
1
2nd time
1
0
1
1
1
1
1
1
1
1
1
3rd
1
1
0
1
1
1
1
1
1
0
1
4th
1
1
1
0
1
1
1
1
0
1
1
5th
1
1
1
1
0
1
1
1
0
1
0
6th
1
1
1
1
1
0
1
1
0
0
0
7th
1
1
1
1
1
1
0
1
0
1
1
8th
1
1
1
1
1
1
1
0
0
0
0

Table 2 Common anode character table
Glyph
a
b
c
d
and
f
g
dp
coding
0
1
1
1
1
1
1
0
0
FC
1
0
1
1
0
0
0
0
0
60
2
1
1
0
1
1
0
1
0
AND
3
1
1
1
1
0
0
1
0
F2
4
0
1
1
0
0
1
1
0
66
5
1
0
1
1
0
1
1
0
B6
6
1
0
1
1
1
1
1
0
BE
7
1
1
1
0
0
0
0
0
E0
8
1
1
1
1
1
1
1
0
FE
9
1
1
1
1
0
1
1
0
F6

Since all 6-bit selection lines are controlled by one I/O port, the 6-bit LED will display the same character at every moment. If you want to display different characters for each bit, you must use the scanning method to light up each LED in turn, that is, only one bit displays the character at every moment. At this moment, the segment selection controls the I/O port to output the corresponding character segment selection code (font code), and the bit selection controls the I/O port to display the corresponding character. In this way, each bit displays the character to be displayed in time. According to the visual characteristics of the human eye, when the signal frequency added to the LED is greater than 50Hz, the human eye cannot feel its changes, so the interval of each bit display cannot exceed 20ms, that is to say, all LEDs must be lit up in time within 20ms. The more LEDs, the shorter the time, and the insufficient brightness; if the lighting time is increased, the scanning frequency will decrease, and the flickering feeling will easily cause fatigue to the human eye. This method is the dynamic scanning method commonly used by all of us. This scanning method is only applicable to occasions when the number of LEDs does not exceed 10. If 24 or even more are needed now, do we have to use a special drive circuit? Can the problem be solved without increasing hardware overhead? This is a new idea introduced in this article. The circuit connection is shown in Figure 2. Its hardware circuit is exactly the same as the conventional dynamic scanning method. The main difference is the control method.


If the LED is a common anode type, the control signal of segment selection 2 first makes segment a low level, and the other segments b, c, d, e, f, g, dp are all high levels. In this way, whether led1, led2...led23, led24 should light up the a stroke is also controlled by segment selection 1, and segment selection 1 is controlled by the data to be displayed. Then the control signal of segment selection 2 will make b, c, d, e, f, g, dp low level in turn, and scan in sequence, that is, each word is controlled to light up one by one. In this way, as long as 8 cycles are performed, a display can be completed without considering the number of connected LEDs. If you want to display 3 numbers 1, 2, 3 (led1, led2, led3), the control signal added is shown in Table 1, and the common anode character table is shown in Table 2.

The control system of a certain project needs to display 24 numbers. Considering the limited I/O resources of the single-chip microcomputer, the I/O must be expanded according to the conventional method, which makes the circuit complex and increases the hardware cost. Whether software can replace hardware becomes the key to the design. The circuit shown in Figure 3 adopts the method introduced above to display 24 numbers in software. The circuit uses 4 74LS164 and 1 MC1413 (ULN2003). The single-chip microcomputer only needs to control the display through RXD and TXD. The software flow chart is shown in Figure 4.
Keywords:LED Reference address:A novel LED dynamic display method (Figure) (ULN2003)

Previous article:256-level grayscale LED dot matrix screen display principle and circuit design based on FPGA
Next article:LED display and keyboard scanning design in industrial equipment

Recommended ReadingLatest update time:2024-11-16 21:29

micro2440 LED driver (loading and unloading module)
The CD information used by micro2440 is as follows: Laptop system: fedora 13 (compile kernel, configure cross-compilation environment, see manual for details) Desktop system: Windows XP 1. In fedora13: 2. Create a C file and name it my_leds.c Enter the following code: #include linux/miscdevice.h #include mach
[Microcontroller]
Sanan Optoelectronics invests heavily again and plans to invest in Mini/Micro LED epitaxy and chip projects
Sanan Optoelectronics announced that it has signed a project investment contract with the Hubei Gedian Economic and Technological Development Zone Management Committee, with a total investment of 12 billion yuan. According to the contract, Sanan Optoelectronics will invest in a III-V compound semiconductor project in
[Mobile phone portable]
Use timer to control LED light flashing
Experimental Purpose The flashing light program is as classic in embedded learning as "Hello World!" is in C/C++ language learning. It guides countless embedded enthusiasts in a simple way. Through the study of this section, you can basically understand the use of STM32 GPIO and basic timers. Hardware Description This
[Microcontroller]
Beginners must read: LED science knowledge
Semiconductor light- emitting devices include semiconductor light-emitting diodes ( LEDs ), digital tubes, symbol tubes, tees, and dot-matrix display screens (matrix tubes). In fact, each light-emitting unit in a digital tube, symbol tube, tees, and matrix tube is a light-emitting diode
[Power Management]
Beginners must read: LED science knowledge
5W white LED lamp circuit design
Replacing MR16 halogen lamps with LEDs can effectively reduce energy consumption and save circuit and system maintenance costs. This application note details the advantages of using LEDs in current MR16 lighting systems. The 5W white LED driver circuit combined with a heat sink can replace a 10W halogen lamp in an M
[Power Management]
5W white LED lamp circuit design
Sharing of experience and skills in designing efficient and reliable LED drivers
  Recently, the editor interviewed Doug Bailey, a senior expert in LED driver circuit design. He summarized the issues that need to be paid attention to in the design work and his personal design experience, and shared the summary with you as follows:   1. Do not use bipolar power devices   Doug Bailey pointed out
[Power Management]
New dimming design of LED driver based on LT3743
Power drivers that generate high modulated current pulses are used in many lighting applications, from high current LEDs in DLP projectors to high power laser diodes. For example, in high-end video projectors, high power LEDs are used to generate colored lighting. The RGB LEDs in these projectors require precise dimmi
[Power Management]
New dimming design of LED driver based on LT3743
When aircraft engines meet LED lighting
The 1,500- lumen prototype LED lamp developed by the U.S. Department of Energy and the University of Maryland can emit light equivalent to that of a 100-watt halogen lamp, and consumes only 1/3 of the energy. What technology does it rely on to achieve such lighting efficiency? Answer: High-speed
[Power Management]
Latest Power Management Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号