Multi-mode intelligent street light control system

In recent years, with the rapid development of the economy and the continuous deepening of the urbanization process, higher requirements have been put forward for the corresponding municipal supporting facilities. As the public infrastructure of modern cities, street lamps play an important role in the daily operation of the city and people's lives. The advanced level of the street lamp control system marks the modernization level of the city. At present, the world is facing an energy crisis, and power resources have become a scarce resource. There are serious wastes of power resources in China, so energy conservation and consumption reduction are policies that need to be vigorously promoted. At present, many urban streetlight systems can only realize the function of switching lights on time. It only controls the street lights according to the set time, and uses the whole night lighting method, which causes a lot of energy resources to be wasted. With the increasing number of motor vehicles and the population intensive development, the traditional urban street lighting system has also shown many other shortcomings and shortcomings. For example, in the rainy weather, even in the daytime, the sky is dark, but the necessary road lighting is lacking; in the middle of the night and when the flow of people and traffic is scarce, the street lights are illuminated all night, and there is a certain degree of power waste. In addition, the street lights are faulty. It can only be found by the street lamp inspection personnel, and it can not be reflected in the lighting control system in time, which brings inconvenience to the maintenance work. Therefore, it is necessary to establish a smart street light control system with multiple working modes.

The development of technologies such as single-chip microcomputer, 1C chip and sensor provides the premise and basis for the development of intelligent street lamp control and illumination fuzzy control system. The intelligent street lamp control system can not only meet the normal road lighting function, but also effectively save power resources, making the city street lamp system more scientific and humanized, and also improving the work efficiency of the street lamp system maintenance and overhaul, to a certain extent. It reduces the labor intensity of municipal workers.

The intelligent street lamp control system designed in this paper not only has the basic function of on-time switching lights, but also can flexibly set the working mode according to the actual road traffic needs, thus realizing automatic control of the opening and closing of the street lamps, so as to achieve the maximum energy saving. In addition, if the street lamp fails, the system can automatically alarm and communicate to the control center in time.

1 hardware system structure Intelligent street light control system hardware structure as shown. The system uses AT89S52 as the main control module, DS1302 as the clock module, photoelectric switch H22A2 as the infrared sensor module, photosensor as the light metering module, LCD1602 liquid crystal as the display module, and communication chip MAX232 as the communication module. In addition, the system also includes a fault detection module, a keyboard module, and an alarm module.

2 hardware circuit design 21 keyboard module is connected with the single chip P1.0, P1.1, P1.2, P1.3 and P1.4. In the initial state, the button K1 enters the lane working mode, the button K2 enters the timing working mode, and the button K3 enters the road working mode. Exit the current working mode by pressing K5. In the timing operation mode, the DS1302 clock chip is first set by time and minute and second by the buttons K1, K2, and K3, and is determined by the K4 key. Then, the DS1302 clock chip is set by the buttons K1, K2, and K3, respectively. It is determined by the K4 key, so that the time setting and timing setting of the DS1302 clock chip can be modified.

2.2 Metering Module Photosensitive resistors, also known as light pipes, have the property of rapidly decreasing their resistance under the condition of light irradiation, and can be used to detect visible light. Light detection circuit As shown, NE555 constitutes a comparator and uses the switching characteristics of the transistor to convert the signal into a square wave, and its output terminal is connected with the P1. 7 port of the single chip microcomputer. When the ambient light intensity exceeds the set value, the photoresistor only reduces the resistance of g1, NE555 outputs low level, the triode is cut off, the LED indicator is off, the light detection circuit outputs high level to P1. 7 port, and the control system does not start. Working mode; when the ambient light intensity is lower than the set value, the photoresistor only increases the resistance of g1, NE555 outputs a high level, the triode is turned on, the LED indicator is on, the light detection circuit 7 port outputs a low level, and the control system starts. The working 2.3 infrared sensing module infrared sensing circuit is set as shown. When the system works in the alley mode, the infrared sensor H22A2 is used to detect whether there are pedestrians and vehicles passing through, and the infrared sensors are placed in the order of a-c along the road. When the person and the car pass the infrared sensor 1, the sensor outputs high power. Ping, the single-chip microcomputer adds 1 to the count value corresponding to the infrared sensor 1; when the person and the car pass the infrared sensor 2, the sensor outputs a high level, and the single-chip computer adds 1 to the count value corresponding to the sensor 2, and the sensor 1 corresponds to The count value is reduced by 1; when a person or a car passes the infrared sensor 3, the sensor outputs a high level, and the single chip adds 1 to the count value corresponding to the sensor 3, and the corresponding value of the sensor 2 is counted down by 1; When the corresponding value of the sensor is not 0, the street lamp control circuit turns on the street lamp corresponding to the sensor; when the count value corresponding to the infrared sensor is 0, the street lamp control circuit turns off the street lamp corresponding to the infrared sensor.

2.4 Fault Detection Module Install a fault detection circuit (same as the light detection circuit) next to each street light. Compare the signal output from the fault detection module to the P3. 4 port of the single-chip microcomputer and the signal output from the light detection circuit to the P1.7 port of the single-chip microcomputer. If the high and low levels of the two kinds of signals are different, the MCU activates the alarm module to send an alarm signal and will pass the communication interface. The fault information is transmitted to the control center.

2.5 street light control module and alarm module street light control module is mainly composed of relay circuit. When P0. 4 outputs a high level, the transistor Q3 is turned off, the relay does not work, that is, the street lamp control module remains off; when the P0. 4 output is low, the transistor Q3 is turned on, the relay works, and the street lamp control module enters the open state alarm circuit. Use the sound alarm method. When the street lamp fails, the MCU 3 port outputs a high level, so that the triode in the circuit is turned on, and the buzzer sounds; when the street lamp has no fault, the P0. 3 port of the MCU outputs a low level, and the alarm circuit does not work.

2.6 Clock Module The DS1302 is a high-precision clock IC that can perform year, month, day, week, hour, minute, and second timing. The clock module circuit uses the DS1302 clock chip to provide the system with the clock signal required for timing switch lamp operation, and the clock data can be adjusted through the keyboard control module.

2.7 display module display module uses LCD LCD1602. In the initialization mode, the LCD screen will display choosemode: 1.IR; 2.TM; 3.SM respectively correspond to 1. Lane mode; Timing mode; Road mode ", can be selected according to actual needs by pressing the button. In the case of 1. Lane mode" and road mode, the LCD screen will display the nowisdaytime crystal display according to the high and low levels output from the light detection circuit. "chooseT-Mode:. Ai;2.al;3.on;4.tw, respectively, 1. set the current time; 2. display the time of 2 light timer switches; 3. set the first switch separate switch time; 4. set the second The time when the lights are individually timed can be selected by pressing the button. In the four T-Mode modes, the first line displays the first day of the year, the second line displays one minute and one second, and the time can be adjusted through the keyboard. And settings.

2.8 Communication module system uses MAX232 serial communication circuit. Since the RS232 level of the computer serial port is a 10+10V, and the signal voltage of the general single-chip application system is TTL level 0+5V, MAX232 is used for level conversion to realize communication between the single chip and the computer. The communication circuit is as shown.

3 software design intelligent street light control system uses AT89S51 microcontroller as the core control system, through programming to achieve system functions. The main program stream communication path is as shown. At the beginning of the program, the MCU is initialized first, then the intelligent street lamp working mode is selected, and the fault detection is performed after each execution of the street lamp control module. When the photodetection circuit in the system fails, the buzzer will alarm and will The number of the faulty lamp is displayed on the liquid crystal LCD 1602; when there is no fault, normal operation starts. If the light intensity is weak or the time is turned on, the street light control subsystem is called, otherwise the judgment is continued.

The main program flow must pay attention to some design details in the system software design, such as: whether the software debounce part of the button module is correct and effective; whether the response time in the flow detection control is short enough, and the delay time is too long, there will be people flow and car circulation. After that, the street lamp only increases the brightness of the invalid operation; in the anti-interference program design part of the photosensitive device, the method of multiple discrimination confirmation is adopted, and an appropriate delay is given between the two judgments to ensure that the correct effective signal is detected.

4 Conclusion The system realizes a variety of working modes, not only can set and display the switch light time independently, automatically judge whether to start the set working mode according to the change of ambient light and darkness, and realize the car well by using infrared detection technology. The function of lighting up and turning off the lights. The working mode of the whole system can be flexibly selected according to actual needs, with stable performance, simple and convenient operation, low system cost and high reliability. The system has the advantages of multiple working mode selection and reducing power consumption, and has certain practical significance.

Dress And Ligerie

Dress And Ligerie,Mini Women Dress,Summer Black Evening Dress,Women Underwear Nightdress

Shaoxing Ruier Imp. & Exp. Co.,Ltd , https://www.pasafancyfabric.com