LED dot matrix display principle and procedure

Publisher:创意旋律Latest update time:2011-09-08 Source: 21icKeywords:LED Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The LED dot matrix display introduced in this article can be used to display parameters such as safety days, time, temperature, etc. The program of this article is written using the real-time operating system RTOS. It is introduced as follows.

1. Hardware composition and working principle

(1) CPU control board: The principle is shown in Figure 1. ATmega16 is the core. A 4-16 decoder CD4514 is added to drive ULN2003 to complete the row scanning of the LED. The real-time clock is composed of DS1302 and a 3.6V rechargeable battery. The clock can still work when the power is off. J3 is the ISP program download interface, J4 is the program debugging interface, and J8 is the external adjustment button. The parameters can be adjusted manually without a remote control. J5 is an integrated infrared receiver. ATmega16 has a hardware ISP interface that can directly drive the serial shift chip 74HC595.

(2) LED display board: The principle is shown in Figure 2. It is composed of 16 8x8 LED dot matrices and can display 4 Chinese characters at the same time. 8 74HC595s complete the column drive of the display screen. The two circuit boards are connected by a 40-core flat cable. A display buffer area is opened in the internal RAM of the CPU. The CPU control board reads the Chinese character dot matrix code inside the flash and writes it to the display buffer area. Then read the first line of data in the video memory, drive the 74HC595 through the ISP interface, convert the serial data to parallel, and then connect the corresponding line. After displaying for 1ms, take the next line of data and display it for 1ms until the 16th line, completing a scan. Then shift the data in the video memory to the left by one position and scan it again. In this way, all the Chinese characters are moved into the video memory and displayed in turn, thus realizing the shift of Chinese characters from right to left. After all the Chinese characters are moved, the registers of time, temperature and safety days are refreshed once.

2. Basic structure of the program

First, divide the tasks according to their functional independence. They are divided into five tasks: time reading and writing, temperature acquisition, LED scanning and display, date and day adjustment, and adjusted parameter flashing. Secondly, determine the priority of the task. Time reading and writing, temperature acquisition are 8 levels, date and day adjustment and adjusted parameter flashing are 5 levels, and LED scanning and display are 3 levels. The priority of the task can also be changed dynamically during program operation. The main program is as follows:


The RTOS timing operating system is used in the programming. The main difference between this program and the general foreground and background programs is that each task (i.e., subroutine) works in an infinite loop. The user only needs to do some initialization work for the task. As for when to run what task, this tedious matter can be left to the system to do, so as to maximize the utilization of the CPU.

3. Usage

The remote control used is a finished TV remote control. Press the power button, and it will display "adjust year ××××" and the adjusted digit will flash. Press the volume "+" to increase the corresponding digit, and after adding to 9, it will return to 0. Press the channel "+" to change the adjusted digit.

At the same time, the corresponding bit flashes.

Press the power button again, and the screen will display “Adjust month ××”, “Adjust day ××”, “Week ××”, “Adjust time ××”, “Adjust minute ××”, and “Adjust day ××××” in sequence, ending.

Keywords:LED Reference address:LED dot matrix display principle and procedure

Previous article:LED display chromaticity processing technology
Next article:High-efficiency 120 white LED driving technology based on SC442 design

Recommended ReadingLatest update time:2024-11-16 15:24

Regulating LED Current Using an Inverting Buck-Boost Topology
若需控制LED 亮度,就必须具备能够提供恒定、稳压电流的驱动器。而要达到此目标,驱动器拓朴必须能产生足够的输出电压来顺向偏置LED。那麽当输入和输出电压范围重叠时,设计人员又该如何选择呢?转换器有时可能需要逐渐降低输入电压,但有时也可能需要升高输出电压。以上情况通常出现在那些具有大范围"脏" (dirty) 输入功率来源的应用中,例如车载系统。在这种降压/升压的操作中,几种拓朴可以达到较好的效果,像是SEPIC 或四次切换升降压拓朴。这些拓朴一般需要大量的元件,设计的材料成本也因而增加。但由於它们可提供正输出电压,因此设计人员通常视其为可接受的方案。不过负输出电压转换器也是另一种不该被忽略的替代解决方案。 图1
[Power Management]
Regulating LED Current Using an Inverting Buck-Boost Topology
The basic optical structure of LED traffic lights
Since the light emitted by LED is relatively concentrated in a small solid angle range, LED traffic lights no longer need reflectors. And since LED itself emits colored light, there is no need for colored light distribution mirrors to filter the light. LED uses lenses as collimating optical components, such as conve
[Power Management]
The basic optical structure of LED traffic lights
Application and characteristics of LED color wall screen in LED technology
The LED color wall screen is a new product that applies LED technology to the field of outdoor decorative lighting. Its working principle is composed of two parts: drive and control. It uses small LED square lamps as light-emitting display units, and forms a color display curtain wall through multiple square LED lam
[Power Management]
Application and characteristics of LED color wall screen in LED technology
Powerint LNK405EG 15W PAR38 TRIAC dimming LED driver solution (DER-281)
DER-281 from Powerint is a 15W PAR38 TRIAC dimming flicker-free LED driver reference design using LNK405EG. It has an input voltage of 180VAC to 265VAC, an output voltage of 30V/0.5A, an efficiency of 83% at full load, and is EMI compliant with IEC 61000-4-5 ringwave, IEC 61000-3-2 Class C, and EN55015 B standards.
[Power Management]
Powerint LNK405EG 15W PAR38 TRIAC dimming LED driver solution (DER-281)
High Voltage LED Detailed Explanation
Recently, many websites have been reporting on a "high-voltage LED", believing it to be a new type of LED with many advantages. Some even believe that it will make "today's low-voltage LEDs fade out of the future LED general lighting market" and high-voltage LEDs "dominate the future LED general lighting". Is this rea
[Power Management]
High Voltage LED Detailed Explanation
Single chip 8*8LED dot matrix - display Chinese characters experiment
1. Understand the code. Because my C language foundation is relatively poor, I decided to understand the code first and then modify it based on the source code to write my own dot matrix display. My brief understanding of the code is written as comments attached to the source code below. Please correct me if the
[Microcontroller]
Single chip 8*8LED dot matrix - display Chinese characters experiment
Micro2440 uses LEDS and BUTTONS drivers to realize button control of LED lights [Development Summary]
I recently played with the micro2440 of Friendly Arm and realized the function of controlling the LED light on and off with a button. I would like to summarize it here. If there are any errors, I hope experts can point them out. I also hope to help novices who have just learned to drive. First post the LEDs dri
[Microcontroller]
Micro2440 uses LEDS and BUTTONS drivers to realize button control of LED lights [Development Summary]
Application of wireless technology in LED lighting
Liang Jianrong, engineer manager of Westpac Electronic Technology Co., Ltd., said that in the European and American markets, there are already mature central monitoring lighting systems, while the Chinese lighting market is not mature and is limited to simple operating procedures such as turning on and off,
[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号