LED display, also known as electronic display, is composed of LED dot matrix, which displays text, pictures, animations, and videos by turning on and off red or green lamp beads. The content can be changed at any time. It is usually composed of display module, control system and power supply system. The display module is composed of a dot matrix composed of LED lights, which is responsible for luminous display; the control system can display text, pictures, videos and other contents on the screen by controlling the on and off of the corresponding area. The constant dance card is mainly used to play animations; the power supply system is responsible for converting the input voltage and current into the voltage and current required by the display.
LED display screens are widely used in information indicator lights, large screen displays, backlights for LCDs, solid-state lighting, etc. This paper designs a display screen consisting of four 16×16 dot matrix LED modules, with a single-chip microcomputer as the controller, which can smoothly move and display any number of text or graphic symbols. This circuit can be cascaded to realize a display screen consisting of any number of 16×16 dot matrix LED modules.
1. Control circuit design
The control circuit is controlled by AT89C51 single-chip microcomputer. The display screen is composed of 4 16×16 dot matrix LED modules. Each 16×16 dot matrix LED module is composed of 4 8×8 dot matrix LED modules. Users can expand and add any number of 16×16 dot matrix LED modules as needed. The structure of 8×8 dot matrix LED module is shown in Figure 1. There are 8 rows and 8 columns. Each light-emitting diode is placed at the intersection of row and column lines, with a total of 64 light-emitting diodes. When a column is at a high level and a row is at a low level, the corresponding light-emitting diode lights up.
The P3.0 pin of the microcontroller is connected to the serial data input end of the serial-input-parallel-output shift register 74LS164 (U10), 8 74LS164s (U10~U17) are cascaded, and the P3.1 pin is connected to the clock pulse input end of 8 74LSl64s; the 8 74LS164s are respectively connected to 8 latches 74LS373 (U18~U25), and the data output ends of the 8 latches are connected to the row lines of 4 16×16 dot matrix LED modules, and the row lines of each 16×16 dot matrix LED module are independently controlled. P1.O is connected to the clock pulse input of 8 74LS164 (U2~U9), P1.1 is connected to the serial data input of U2, U4, U6, U8, and every two 74LSl64 (U2 and U3, U4 and U5, U6 and U7, U8 and U9) are cascaded; the parallel data output of U2~U9 is connected to the 64 column lines of 4 16×16 dot matrix LED modules. P1.2 is connected to the clear 0 end of all 74LSl64, and P1.3 is connected to the latch control end of the latch. The designed circuit is shown in Figure 2.
2. Circuit Working Principle
This circuit uses the serial communication port to work in mode 0, and uses P1.O and P1.1 to simulate serial output to achieve smooth movement of LED display characters. Since the LED module is a 16×16 dot matrix, the character dot matrix is also a 16×16 dot matrix, that is, each character consists of 32 bytes, that is, 16 word data, and each word data determines the lighting of each column of LED. The 16×16 dot matrix character data is obtained by the character dot matrix extraction software.
First, the single-chip microcomputer P1.1 serially outputs a binary bit "1", and sends a high level to the first column of the four 16×16 dot matrix LED modules through four groups of 74LSl64. Then, P3.O serially outputs the first column row data of the four 16×16 dot matrix LED modules, that is, the row data of the Y1, Y17, Y33, and Y49 columns, which are latched by 74LS373 and sent to the row line of the LED display screen. At this time, the LED corresponding to the first column of each LED module lights up. The row data of each column is 1 word data, and there are 4 words of data in 4 columns. The address of the first byte of each word data in the character dot matrix data table differs by 32. At this time, each LED module displays the first column of each character. Then P1.1 serially outputs a binary bit "0", which is shifted by 4 groups of 74LS164 and sent to the second column of the four LED modules with a high level. Then P3.O serially outputs the second column row data of the four 16×16 dot matrix LED modules, that is, the row data of the Y2, Y18, Y34, and Y50 columns, which are latched by 74LS373 and sent to the row line of the LED display. At this time, the LED corresponding to the second column of each LED module is lit, that is, the second column of each character is displayed. This cycle is repeated, and the LEDs corresponding to each column of each LED module are lit in turn until the 16th column of each LED module is lit, that is, the columns of each character are displayed in turn. As long as the alternating display time of each column is appropriate, using the visual persistence characteristics of the human eye, it looks like the 16 columns of LEDs are lit at the same time, that is, the entire character looks displayed at the same time. Then scan and display from the 1st column to the 16th column in turn, and repeat this cycle many times to ensure that the displayed characters have sufficient brightness.
In order to achieve the effect of smooth moving display of characters, after the 4 characters implemented above are statically displayed for a certain period of time, when scanning and displaying again, the first column of each LED module starts scanning and displaying from the second column data of each character, that is, the first LED module displays the second column, third column, ..., 16th column of the first character and the first column of the second character, and the second LED module displays the second column, third column, ..., 16th column of the second character and the first column, second column, ... of the third character. When scanning and displaying for the third time, the first column of each LED module starts scanning and displaying from the third column data of each character, that is, the first LED module displays the third column, fourth column, ..., 16th column of the first character and the first column, second column of the second character, and the second LED module displays the third column, fourth column, ..., 16th column of the second character and the first column, second column, ... of the third character. In this way, the smooth moving display of characters is achieved.
3. Programming
According to the above circuit design and working principle, the control program flow chart of this circuit is drawn as shown in Figure 3. Write the control program according to the program flow chart, and generate the target code file after debugging with Wave or Keil software.
4. LED display control circuit simulation
Add the target code file to the microcontroller in the LED display control circuit simulation diagram drawn by Proteus software, and run the simulation. The running result is shown in Figure 4.
V. Conclusion
The LED display control circuit designed in this paper uses the single-chip microcomputer AT89C51 as the controller, and the serial shift output mode realizes the smooth movement display of a line of characters. In practical applications, relevant driving circuits should also be added. This circuit can be expanded to realize the display control of LED display screens composed of any number of 16×16 dot matrix LED modules. Practical applications have shown that the circuit is stable and reliable, and the effect is good.
Previous article:Application design of constant current LED drive system
Next article:Effective LED light source color separation technology
Recommended ReadingLatest update time:2024-11-17 00:29
- Popular Resources
- Popular amplifiers
- 西门子S7-12001500 PLC SCL语言编程从入门到精通 (北岛李工)
- Siemens Motion Control Technology and Engineering Applications (Tongxue, edited by Wu Xiaojun)
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Why does the power supply protect itself?
- Do you know all about LC resonant circuit?
- Wireless Communication Principles Hotspot Technology
- Calling TI display tool mmwave demo visualizer
- DSP 28377D sets a fixed frequency duty cycle PWM, but the output waveform duty cycle and frequency jitter
- TI Engineer's Annual Review: Selected Q&A on Power & Battery Management Topics
- ESP32-S2 development board with color screen MorphESP 240
- MSP430F6638 MCU Timer_A
- FPGA board ARM board SOC board part-time
- Insights on Faster, Better Wi-Fi Deployment in Asia