At present, most campus street lights adopt photosensitive control, which has the major disadvantage of being easily affected by light pollution, causing misoperation, and the reliability of photosensitive devices is relatively poor, with high dust prevention requirements, requiring frequent cleaning and high usage costs. With the development and maturity of power carrier technology, especially the speed and cost reduction of power carrier chips, the power carrier technology in street light controllers has been widely applied in smart communities, smart buildings, automatic meter reading, and information appliances. The street light controller combining power carrier technology and computer technology can overcome the disadvantages of photosensitive control, greatly save wiring costs, achieve energy saving and intelligent centralized bidirectional control.
The upper computer is composed of a PC, and a program written in VB communicates with the main control microcontroller through a serial port to monitor the working condition of the street lights. To ensure the reliability of communication, a conversion isolation module is added between the serial ports of the upper computer and the main control computer. The main control computer is composed of a microcontroller, which is the core part of the street light controller. Due to the large program size of the main control computer, the microcontroller adopts 8052. On the one hand, the main control computer communicates with the lower computer through the power line using the modulation and demodulation chip of the power carrier, and on the other hand, communicates with the upper PC. The slave control microcontroller uses the modulation and demodulation chip to obtain instructions from the main control computer through the power line and control the streetlight switch; Send the working status of the street lamp to the main control machine through the power line
The system uses power line carrier communication to connect all street lights to a microcontroller, which communicates with a computer to control the working status of the street lights. Automatic control mode and manual control mode can be set. The automatic control mode can control the working mode of the street lights according to the local solar activity pattern and combined with the actual situation. When night (or low light) comes and it is in the peak traffic period, all street lights are turned on. After the peak traffic period, they enter a proportional opening, such as 65% after midnight; Before the early hours of the morning, the proportion of streetlights turned on can be reduced to 40%, achieving intelligent and energy-saving control. The manual control method can set the on/off time of the streetlights at any time or control the on/off of the streetlights separately. In addition, the working status of the streetlights can be used to report actual damage to the streetlights and display the specific location to remind maintenance personnel to repair in a timely manner
Both the master and slave microcontrollers are equipped with DS1302 clock chips, which have EEPROM to maintain the working parameters of the microcontroller. This allows the upper computer and master microcontroller to be turned off, while the slave microcontroller runs offline. Even if there is a communication error, the street lamp can still work normally according to the last working parameters.