Design of LED intelligent street light control system based on single chip microcomputer

Publisher:幸福时刻Latest update time:2012-06-03 Source: 中国LED网Keywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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 single-chip microcomputer 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, so 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 to form 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 control system based on single chip microcomputer

Previous article:The basic principles and specific methods of power supply driving LED
Next article:High-efficiency DC/DC constant current power supply LED driver innovative design solution

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

Atmel Releases AES-128 AVR Microcontroller for Car Key Applications
Atmel® Corporation, a leading manufacturer of microcontrollers and touch solutions, announced the availability of the new ultra-low-power AVR® microcontroller (MCU) ATA5790N with an AES-128 immobilizer protocol stack. The device integrates low-frequency (LF) immobilizer functions and a 3D LF receiver in a single 5mm
[Power Management]
Atmel Releases AES-128 AVR Microcontroller for Car Key Applications
Analysis of the working selection mode of the register TMOD of the MCS-51 single-chip microcomputer
The special function register TMOD is the working mode register of T0 and T1, and its format is as follows: The lower 4 bits of TMOD are the mode field of T0, and the upper 4 bits are the mode field of T1, and their meanings are exactly the same. Working mode selection bits M1, M0 (mode 0~3) Timing mode and exter
[Microcontroller]
Analysis of the working selection mode of the register TMOD of the MCS-51 single-chip microcomputer
PIC12F629 microcontroller program development, KEY+LED
#include     #define OUT_LED GPIO2 #define KEY_LED GPIO4 __CONFIG(0X0184); //Turn off everything and use internal RC void Delay_us(unsigned int n) {  while(n--); } void main() {  int i=0,j=0;  GPIO=0X37; //IO port data  INTCON=0X00; //Interrupt control bit; all off  IOCB=0X00; //Level change triggers inter
[Microcontroller]
A handheld GPS positioning system based on PIC microcontroller and GPS receiver module
  1 Introduction   GPS attracts many users around the world with its high precision, all-weather, global coverage, convenience, flexibility, high quality and low price. The widespread application of GPS has changed the way people work, improved work efficiency and brought huge economic benefits. Here we propose a des
[Microcontroller]
A handheld GPS positioning system based on PIC microcontroller and GPS receiver module
Infineon's XMC4000 microcontroller based on ARM Cortex-M4 core
XMC4000 is Infineon's 32-bit microcontroller based on the ARM Cortex-M4 core. The XMC4000 family combines the industry-standard core with Infineon's rich and powerful peripheral set, and is suitable for a wide range of fields such as motor control, automation, smart home, power conversion, medical equipment, and engin
[Microcontroller]
Infineon's XMC4000 microcontroller based on ARM Cortex-M4 core
A complete analysis of 15 key design issues of LED lamps
To design a product, we must first determine which LED packaging structure to use; then consider how to adapt to these packaging forms; we do not have many choices, and the optical structure is built on these packages; many of our creative ideas cannot be fully utilized. 1. Problems in semiconductor lighting ap
[Power Management]
My thoughts on learning 51 single chip microcomputer
Here is a special one  Defines a bit variable of a special function register.     Both bit and sbit are variable types extended by C51. The typical application is: sbit P0_0=P0^0; // that is, define P0_0 as the first bit of P0 port to perform bit operations. Use XOR operation to take bits and perform,,,,,,  
[Microcontroller]
A brief discussion on the market potential of LED indoor lighting
The LED indoor lighting market has huge potential. Currently, various types of LED lamps are available on the market. Both traditional lighting companies and emerging LED companies are eyeing the big cake of indoor lighting replacement. However, the reporter's investigation results show that LED is unlikely to shake
[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号