Design of LED Graphic Display Screen Control System

Publisher:beta13Latest update time:2011-07-08 Source: 中国LED网Keywords:LED Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
introduction

LED display screen has the advantages of low cost, long life, low power consumption and wide operating temperature range, and is widely used in the display of text and image information. The whole system is generally divided into three parts: host computer, display screen control circuit and LED array and its driver.

The design of the display screen control circuit widely uses two types of devices as its control core, one is the single-chip control system, and the other is a programmable logic device. This design adopts a control scheme based on a single-chip microcomputer, as shown in Figure 1. A PC is connected to multiple controllers through an RS485 bus. Each controller is expanded with a temperature sensor, a real-time clock and other peripheral devices to control the display of the LED screen.

The control scheme of single chip microcomputer is adopted, which has simple structure, flexible application and easy expansion.

1 System Hardware Design

The system hardware block diagram is shown in Figure 2. The host PC uses special software to edit the information to be displayed, sends it to the microcontroller through the serial port, stores it in the Flash, and the microcontroller then drives the circuit to display the character code in the form of an LED dot matrix.

The LED dot matrix is ​​a dual-color screen that can display three colors: red, green, and yellow. The core of the controller uses the STC89LE516 microcontroller, with an expanded 32KSRAM as the display buffer, and 512KFlash is used to store the displayed dot matrix information and some necessary parameters.

The DIP switch selects the physical address of this screen. The controller also expands a temperature sensor to collect temperature data and a clock chip to read and write real-time time.

1.1 Memory Expansion Circuit

STC89LE516 is a high-speed, low-power single-chip microcomputer with strong anti-interference, enhanced 51 core, integrated watchdog circuit, 64K bytes of Flash memory, 512 bytes of RAM, online programming, remote upgrade, and low price.

In order to improve the response speed, the system expands 32KSRAMIS61LV256 as the display buffer area to save the currently displayed frame data and some special effects processing data. The interface with the microcontroller is shown in Figure 3. The highest address line A14 of the SRAM is controlled separately by P3.2 of the microcontroller to facilitate the storage of the data of the red and green LED dot matrix in blocks. When the output of P3.2 is 0, the RAM address 0x0000~0x3fff is selected as the data area of ​​the red LED; when the output of P3.2 is 1, the RAM address 0x4000~0x7fff is selected as the data area of ​​the green LED.

Flash is used to store code, display data information and fonts. The Chinese characters and English dot matrix data to be displayed can be called by table lookup. Using 64K bytes of storage space to store 16×16 dot matrix Chinese characters, 2048 characters can be displayed. 512K Flash can meet the storage requirements of different fonts of commonly used characters. The address line of SST39VF040 has 19 bits, and the microcontroller uses P1 port to expand the upper three address lines.

The MCU, SRAM, and Flash in the system require a 3.13V power supply, while the system access power supply is 5V. The LM1117-3.3 can provide a 3.3V regulated power supply for the chip.

The low voltage dropout power chip LM1117 has an output current of up to 800mA, an output voltage accuracy within ±1%, and also has current limiting and thermal protection functions.

1.2 Serial interface circuit

The controller receives data using the full-duplex universal asynchronous receiver/transmitter (UART) inside the microcontroller. When the transmission distance is less than 20m, unbalanced RS-232 is used, and when the transmission distance is from tens of meters to kilometers, RS-485 is used. RS-485 uses balanced transmission and differential reception, so it has the ability to suppress common-mode interference and can be networked to form a distributed system. Since the display screens are scattered and tens or even hundreds of meters apart, the controller uses MAX232 and SN75176 for level conversion, and uses jumpers to switch between RS-232 and RS-485, so as to achieve communication with the PC and complete data storage and update.

1.3 Real-time clock circuit

The interface between the microcontroller and the HT1381 low-power real-time clock chip uses serial transmission. As shown in Figure 4, only three wires are needed to read and write the year, month, day, week, hour, minute, and second, and display them on the LED screen when needed. The clock required by the HT1381 is independent of the microcontroller, and it can work with an external 321768kHz crystal oscillator. Equipped with a 3V rechargeable battery, when the system uses external power supply, the diode is turned on, and the external power supply supplies power to the chip on the one hand and charges the rechargeable battery on the other hand. When the system power supply stops, the diode is turned off, and the chip is powered by the battery.

1.4 Temperature Sensor Circuit

The temperature sensor uses a single bus digital temperature sensor DS18B20, which integrates the temperature sensor, temperature alarm trigger, ROM, etc. on a very small chip. The sensor directly outputs the digital value of the temperature signal. DS18B20 reflects the temperature value in a 9-bit digital form, and only one signal line is required to read or write data.

1.5 Scanning Control Circuit and LED Array

At present, most LED display screens are designed with a modular structure. The basic unit is the LED display unit module. The screen size and shape can be flexibly changed, and the installation and maintenance of the display are also very convenient. The LED display unit module is divided into two parts: LED dot matrix and drive circuit.

The LED dot matrix uses a red and green dual-primary color screen, which can display three colors: red, green and yellow, and is moderately priced. Each module is 16×64 pixels, consisting of 16 8×8 pixel common anode LED dot matrices. 16 rows of LEDs share one column of data, and the display time of each row of LEDs accounts for 1/16 of a scanning cycle. According to the visual persistence effect of the human eye, as long as the refresh rate of the entire screen is greater than 60Hz, a stable picture can be formed. Each LED display unit has 8 red data input terminals, 8 green data input terminals and 8 row control signal input terminals.

The driving circuit is divided into row driving and column driving.

The row drive circuit is composed of two 3-8 decoders 74HC138. A row selection signal controls the on and off of all LEDs in a row at the same time, so it requires a larger drive current, so 4953 is selected. 4953 contains two P-channel MOSFET tubes, and the maximum drain current can reach 419A, which ensures the row drive capability. 16×64 dot matrix requires 8 4953. The 16-way output of the two 138s is used to select the corresponding rows through the drive of 4953 to realize the control of the rows.

The column driver uses 74HC595, which contains a shift register and a three-state output latch, and can output the 8-bit data of the serial input in parallel. Eight 74HC595s are used to latch the red and green data respectively. The two-way control signal of the microcontroller is connected to the clock input SRCLK and latch signal RCLK of all 595s. The serial output of the first 595 is connected to the serial input of the second 595. Similarly, the connection method of other pins is the same. Through this cascade method, 8 595 chips are connected together, and the parallel output of each 595 chip is connected to the column of 8 LEDs.

The display process is:

(1) Send the first line of red data and green data in the display buffer area to the 595 latch respectively;

(2) Send a row scanning signal to select the first row of the LED array and delay it;

(3) Line blanking, the line scan signal moves down one line and the above process is repeated until the 16th line is displayed. This cycle continues.

Each LED display unit module has two interfaces, which can flexibly expand the LED unit according to different display length requirements, and the controller remains unchanged. If height expansion is required, it can be achieved by expanding the CPLD/FPGA to control the synchronization of the row scan signal. There is no difference in the display and control principles.

2 System software design

The system software includes the host computer software and the slave computer software. The host computer software is written in VC and communicates with the slave computer through an asynchronous serial port. The task of the host computer software is to calibrate the clock, edit the displayed content, color and display effect, etc., and send the data broadcast to the LED display controller. The data format of the communication is shown in Table 1.

After the lower computer is turned on for interrupt and serial port initialization, it executes the display subroutine according to the instructions, and performs temperature sampling and clock data reading at regular intervals. The lower computer is always in a listening state. When there is a serial port interrupt, it communicates with the upper computer. The upper computer sends a 1-byte address character. After receiving it, the lower computer compares it with the address of this screen. The address of this screen is set by the controller's DIP switch. If the address is the same, the data is received, otherwise the interrupt returns, thereby realizing the distributed control of the LED screen. After receiving all the data, it is checked. If an error occurs, it is required to resend. If the check is correct, the acceptance success flag is sent to the upper computer to end the interrupt. The flow of the serial port interrupt program and the timer interrupt program is shown in Figure 5.

After receiving the data, the controller stores it in the Flash and executes the corresponding operation according to the command word in the data. The operation judgment process is shown in Figure 6.

The display subroutine searches for the font from the character library according to the Chinese character internal code, sends it to the display buffer, and outputs it to the column selection signal after data processing, and cooperates with the row scanning signal to perform dynamic scanning display. The data processing function mainly completes the subtitle left shift, right shift, shutter, color change, flashing, etc.

3 Conclusion

This paper uses the STC89LE516 single-chip microcomputer. Under the premise of ensuring functionality and stability, it reduces costs and expands large-capacity Flash data storage. The host computer only needs to transmit the Chinese character internal code to display, which reduces the amount of data transmission and improves the response speed. The LED display unit can be flexibly expanded to meet different needs. The system has been verified by experiments to be stable and reliable, supporting temperature, calendar, Chinese characters and various special effects, and can be used in distributed LED displays in industrial production lines, building security, parking lots, etc.

Keywords:LED Reference address:Design of LED Graphic Display Screen Control System

Previous article:Solution to heat dissipation problem of LED display
Next article:Lightning protection strategy and lightning protection circuit design scheme for LED street light power supply

Recommended ReadingLatest update time:2024-11-16 19:52

[In-depth analysis] The development and application of LED street lights
For a long time, traditional light sources such as high-pressure sodium lamps and some metal halide lamps have played a leading role in road lighting. In recent years, the application of LED lighting in China has developed rapidly. Many manufacturers have launched high-power LED street lamps, which are increasingly us
[Power Management]
[In-depth analysis] The development and application of LED street lights
51 MCU Experiment 8: LED Dot Matrix (2): Light up a digital pattern
The circuit diagram of the LED dot matrix module of the development board is as follows: The LED connection method inside the dot matrix is ​​as follows: The LED dot matrix lighting pattern still uses dynamic scanning, the method is the same as "51 single chip microcomputer experiment 5: dynamic digital tube" htt
[Microcontroller]
51 MCU Experiment 8: LED Dot Matrix (2): Light up a digital pattern
Analysis of the heat dissipation structure and principle of LED lamps
As a new generation of solid-state light source, light-emitting diode (LED) has many advantages such as long life, high efficiency and energy saving, and green environmental protection, and is widely used in display! With the development of science and technology in the field of lighting, advanced technology is constan
[Power Management]
Solution to LED street light decay problem
   The key issue of LED street light decay lies in temperature, but LED street lights usually fail in this link. Since the luminous power of LED street lights is greater than that of household lamps, manufacturers have spent a lot of effort on the design of heat dissipation substrate fins and heat dissipation modules.
[Power Management]
51 single chip microcomputer: computer sends data to the serial port and controls the LED light
After the computer sends data to the serial port, it controls the LED light and returns the sent data The procedure is as follows #include "regx52.h" #include "intrins.h" unsigned int num; //Create a global variable void Delay1000ms() //@11.0592MHz {     unsigned char i, j, k;     _nop_();     i = 8;     j =
[Microcontroller]
51 single chip microcomputer: computer sends data to the serial port and controls the LED light
South Korean media: LG Display's Guangzhou factory will be fully operational this month
According to businesskorea, LG Display is expected to ship 1.43 million OLED TV panels in the third quarter of this year, ushering in an era of launching 1 million OLED panels per quarter. It is reported that the company's 8.5-generation production line in Guangzhou has finally started to operate normally after a lo
[Mobile phone portable]
Design of a new LED shadowless lamp control system based on LM3402
  Shadowless lamps are an essential and important device used to illuminate surgical sites. They are required to be able to optimally observe objects of different depths, sizes, and low contrast in the incision and body cavity. Therefore, in addition to being "shadowless", they also require uniform illumination and go
[Power Management]
Design of a new LED shadowless lamp control system based on LM3402
Miniature Regulator Driving White LED Backlighting
Introduction     The emergence of color LCD displays in handheld information appliances has triggered the need for miniature, bright white background lighting. Fortunately, the recently commercialized high-brightness white LEDs provide an ideal solution. These tiny LEDs provide ample white light without the crispne
[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号