Design of LED intelligent street light system controlled by single chip microcomputer

Publisher:科技火箭Latest update time:2012-11-15 Keywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Abstract: This control system uses STC89C58RD single-chip microcomputer as the controller, and is mainly composed of constant current source circuit, clock timing circuit, display circuit, photosensor circuit, infrared receiving circuit, sound and light alarm circuit, etc. It can set the time for street lights (LED) to turn on and off (using LED12864 to display relevant information). The street lights (LED) work normally through the constant current source circuit, and will not burn out even if they encounter short circuits, unstable voltage, etc. The circuit plays a constant current protection role. When the system encounters changes in the brightness of the environment, the street lights will automatically turn off and on, and automatically adjust the lighting conditions according to the traffic conditions on the road, and it has a timing function.

0 Introduction

With the development of digital technology and network technology, the digitization and networking of street lamps have become an inevitable trend. Saving energy, ensuring the life of lamps, improving the level of lighting management, beautifying the city night and ensuring the safety of night travel in the city have become a basic requirement for the lighting system. With the continuous development of social civilization and the rapid expansion of urban scale, urban lighting is no longer limited to road lighting. The society's requirements for lighting rate, accuracy of switching lights, real-time fault detection and timely maintenance, and energy saving of street lamps are also increasing. With the expansion of cities and the rapid growth of the number of street lamps, manual control methods are increasingly unsuitable for urban development in terms of real-time fault monitoring and processing, on-demand control, and energy saving. Therefore, the intelligent control and energy-saving measures taken for street lamps are very meaningful.

The LED intelligent street light control system designed in this paper uses the STC89C58RD microcontroller as the dominant control chip. It can realize a series of intelligent behaviors such as clock-timed switching of lights, switching lights on and off according to changes in ambient light, automatically adjusting the lighting status according to traffic conditions, and implementing sound and light alarms when street lights fail.

1 Overall system design

The system uses a photodiode to detect changes in ambient light and an infrared transmitter and receiver as a device to automatically adjust the light according to traffic conditions. The infrared transmitter is installed on the street light pole and the infrared receiver is installed on the street light bracket. When the photodiode cannot detect the light source and the infrared receiver detects the infrared signal, the street light will light up, otherwise it will not light up. Programming is used to achieve timing, design the time for turning on and off the street lights, select LCD12864 as the display device, and make corresponding displays. The system structure block diagram is shown in Figure 1.

Figure 1 System structure diagram

Figure 1 System structure diagram

2 Unit module design

2.1 Clock timing part

The STC89C58RD chip we chose has a programmable timer/counter, which can be programmed by software to achieve timing/counting. When the set time is reached, the corresponding timing setting task will be executed.

2.2 Photodiode part

This circuit uses a photosensitive diode as the main control element (see Figure 2). When there is no light, the reverse resistance is large and the reverse current is small. When there is light, photons hit the vicinity of the PN junction, and electron-hole pairs are generated near the PN junction. They move in a directional manner under the action of the electric field inside the PN junction, forming a photocurrent. The stronger the light, the greater the photocurrent. Therefore, different voltage signals are output according to the brightness of the environment.

Figure 2 Photosensitive circuit

Figure 2 Photosensitive circuit

2.3 Infrared receiving and transmitting part (detecting traffic conditions and street lights on and off)

As required, infrared receivers are installed on the lamp posts on both sides of the road (see Figure 3). The receiving end of the signal is connected to the microcontroller. When a vehicle or pedestrian passes by, the receiver detects the infrared and the signal end detects the high-level input, thereby controlling the on and off of the street lights.

Figure 3 Infrared emission sensor

Figure 3 Infrared emission sensor

2.4 Sound and light alarm part

When the street lamp fails, LED0 lights up and the buzzer sounds, achieving the sound and light alarm function (see Figure 4). When the microcontroller P0.7-pin is given a high frequency, LED0 lights up, the transistor is turned on, and the buzzer also sounds.

Figure 4 Sound and light alarm

Figure 4 Sound and light alarm

2.5 Display

This part uses LCD128*64 as the display (see Figure 5). The main reason for using this display is that it can display pictures and characters. It has very powerful functions and can control the entire circuit through display prompts.

Figure 5 Display circuit

Figure 5 Display circuit

2.6 Constant current source part

This circuit provides a constant current (see Figure 6). Q3 is connected to the load to make the load work stably. Increasing the load will not affect the change of current.

In this way, the connected street lamp can work stably. By adjusting the input voltage, the output current can be changed accordingly. The reference voltage of the collector C of the TIP122 Darlington tube can be l2-20V.

Figure 6 Constant current source circuit

Figure 6 Constant current source circuit

2.7 Street light quality detection part

This circuit uses two voltage comparators built with an LM358, which can detect the quality of the two street lamps at the P1 and P2 ends respectively. When the street lamp is turned on, there will be voltage at the 2nd and 6th pins of the comparator, and the 3rd and 5th pins of the comparator adjust the voltage through the sliding resistor, and the adjustment voltage of the 3rd and 5th pins should be smaller than the working voltage of the 2nd and 6th pins respectively, but it cannot be adjusted to 0 V. Therefore, when the street lamp is working normally, the P0.5 and P0.6 pins of the microcontroller output low level, and when the street lamp is faulty, the P0.5 and P0.6 pins will output high level.

3 System Software Design

The system software block diagram is shown in Figure 7.

Figure 7 System software block diagram

Figure 7 System software block diagram

4 System Test Results

The test results of the voltage and current at the output end of the LED street lamp drive current are shown in Table 1 and Table 2.

Table 1 Load 1 (one lamp)

Table 1 Load 1 (one lamp)

Table 2 Load 2 (two lamps)

Table 2 Load 2 (two lamps)

5 Conclusion

This paper proposes a design scheme of intelligent control system for street lamps based on single chip microcomputer, and completes the design of hardware and software. The intelligent control device can automatically adjust the lighting status according to the traffic conditions: when vehicles or pedestrians approach the street lamps, the street lamps gradually become brighter; when vehicles or pedestrians move away, the street lamps automatically dim and finally go out. The controller can also independently control the on and off time of each street lamp. The system has high overall cost performance, low maintenance cost, low power consumption, environmentally friendly process, and meets the requirements of green economy and conservation-oriented society.

Keywords:MCU Reference address:Design of LED intelligent street light system controlled by single chip microcomputer

Previous article:Dynamic encryption measures for microcontroller programs
Next article:Design of Network Video Monitoring System Based on Single Chip Microcomputer

Recommended ReadingLatest update time:2024-11-16 20:37

Learning some related knowledge about microcontroller memory
Following the content of the previous issue, we will continue to understand the memory of microcontrollers and learn some related knowledge. There are two combination schemes of on-chip ROM and off-chip ROM. The first scheme is that the ROM inside the 51 microcontroller has a total of 4K. 4K is its storage capacity. I
[Microcontroller]
Learning some related knowledge about microcontroller memory
51 MCU realizes the combination of two independent buttons to trigger
1. Use proteus to draw a simple circuit diagram for subsequent simulation 2. Programming /******************************************************************************************************************** ---- @Project: Independent-KEY ---- @File: main.c ---- @Edit: ZHQ ---- @Version: V1.0 ---- @Creatio
[Microcontroller]
51 MCU realizes the combination of two independent buttons to trigger
PIC microcontroller compilation fails error summary
1. Error : Can't find 0x12C words for psect rbss_1 in segment BANK1 The connector tells you that there are 0x12C (300) bytes to be put into bank1, but the capacity of bank1 is insufficient. Obviously, the only way to solve this problem is to move some variables originally located in bank1 to other banks. 2.
[Microcontroller]
How to implement modular programming of microcontroller? Thinking + examples + system tutorials
In the first few years when I started working in R&D, I mainly worked on microcontroller software development. Although the functions could be realized, I always felt that something was missing. I always feel that the programs I write are not perfect, the portability is not good enough, and the functions are not easy
[Microcontroller]
51 MCU-Software debugging to check running time
In the last lesson, we know that "for(i=0;i 30000;i++);" only delays for a certain period of time. Although we can change 30000 to other numbers (not exceeding 65535) to determine the duration of the delay, it seems a bit difficult to measure the delay of 1 second. So in this section, we will teach you how to view the
[Microcontroller]
51 MCU-Software debugging to check running time
Structural block diagram and principle analysis of 89C51 microcontroller
89C51 microcontroller structure block diagram 1. An 8-bit microprocessor CPU. 2. On-chip data memory (RAM128B/256B): used to store data that can be read/written, such as intermediate results of operations, final results, and data to be displayed. 3. On-chip 4kB program memory Flash ROM (4KB): used to store programs, s
[Microcontroller]
Structural block diagram and principle analysis of 89C51 microcontroller
Summary of PIC microcontroller development skills
    The PIC series 8-bit single-chip microcomputer (RISC microcontroller) developed by Microchip Technology Inc. in the United States, especially the microcontroller with built-in second-generation Flash memory (40-year storage life), is unique in rapid application. Due to its ease of use and high reliability, this se
[Microcontroller]
Summary of PIC microcontroller development skills
How to Improve the Design Efficiency of Blood Glucose Meter System
A blood glucose meter is a medical device used to measure the glucose concentration in the blood. Depending on the specific blood glucose concentration, it may also need to provide hypoglycemia medication management functions. The blood glucose meter uses test strips to react with the patient's blood drop. After a c
[Medical Electronics]
How to Improve the Design Efficiency of Blood Glucose Meter System
Latest Analog Electronics 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号