Our street lamp has a wide distribution area. According to the need, we independently research and design an intelligent street lamp controller. Since it was put into use, the long-term street lamp control of our station has been solved by manual opening and closing. It greatly reduces the labor intensity of the staff on duty, and also saves the power resources. My platform is located in remote mountainous areas, the area is large, the distribution of street lights is relatively scattered, the use time of street lights is also very different, some need to be often lit at night, some do not need. In order to save power resources. On the one hand, we adopt energy-saving light source; on the other hand, we adopt intelligent street lamp controller designed by ourselves. There are intelligent control chips in the circuit of intelligent street lamp controller. Through the software control system designed by ourselves, the controller has the functions of time control, natural light control and time light control. The controller can not only control the street lamp to turn on in the evening and turn off at dawn, but also adjust the illumination of the switch lamp to turn on and off in the middle of the night. Intelligent chip uses SCM STC89C52RC erasable chip as the control core, writes the time control program, and successfully realizes the automatic control of street lamp. Protel software is used to add the components and MCU STC89C52RC erasable chip to Protel software, and finally generate circuit schematic diagram. The controller is mainly composed of power supply, optical control circuit, clock circuit, driving circuit and so on. The schematic diagram is shown in Figure 1. The controller uses the comparator of the single chip microcomputer to detect the brightness of the environment. The R2 and R3 partial voltage is used as the reference voltage, sending the same phase input P3.4 of the comparator, the environmental luminance signal output by the photosensitive software GM1 and the potentiometer RT1, and sending the inverse input P3.5 of the comparator. When natural environment brightness is high, GM1 resistance value is small, P3.4 potential is lower than P3.5, implied output port P3.2 output low level, and P3.4 potential is higher than P3.5 output high level. MCU judges the brightness of natural environment according to the level of P3.2. When the natural environment brightness changes, enter the natural environment brightness true or false start, 5 minutes analysis and judgment procedures, eliminate interference signals. For real natural environment brightness changes, the output relay from P3.7 controls street lamp lighting or extinguishing. The anti-jamming program is designed for the interference of thunder and lightning at night and the light illuminated by automobile. P3.
6 drives the working instruction of the intelligent controller, indicating the working state of the circuit. Indicator LED 1 indicates various working states of intelligent controller by extinguishing and lighting. Switch K2 is a manual reset switch of single chip computer, which resets automatically when power is on. P2.7 connects another switch K1, K1 has dual functions. When the intelligent controller disconnects the power switch, press the switch K1 and close the disconnected power switch, the controller will adjust the control point of ambient brightness. At this time, K1 is the setting switch. When the intelligent controller works normally, the working state of the street lamp will be turned over once the switch K1 is pressed, and the switch K1 is a manual operation.
Switch. When performing manual operation to control the working state of street lamp, the automatic control function of intelligent controller is invalid. When on duty, it must be noted that under the manual state, the indicator should be in constant blinking, but the output state is different, the flickering speed of the indicator is different, the flickering speed of the indicator is fast when the street lamp is on, and the flickering speed of the indicator is slow when the street lamp is off. To quit the manual operation, there are two ways: one is to hold down the switch K1, stop the flicker after the indicator has been flickering four times, release the switch K1, return the controller to the automatic control state, and execute the corresponding control according to the time at that time. The second is to press the switch K2, (K2 is the reset button of the intelligent controller), and the controller starts to execute the program again. SCM has limited capacity. In order to make full use of each space, a non-volatile memory is set up to store the set information. In order to facilitate user’s operation, the input/output (I/O) ports are grounded or open to achieve different functions and working time settings. P1.7 earthing and ungrounded are set up as “double time” and “single time work”. Single time work is to start the time when the advertising lights are lit up after dark, and the time is up until the lights go out, until second days of darkness can work again; double time work is to open and close the street lights in two periods.
For example, when the street lamp is on at 18:00, the street lamp is off at 4 hours. When the street lamp lights up again after 1:00 in the morning, the street lamp enters the working state again until the ambient brightness control takes effect. Repeat the above procedure on the second day. The time to turn on the light is determined by P1.3, P1.2, P1.
1 and P1.0. The delay time of turning off lights is determined by P2.3, P2.2, P2.
1 and P2.0. From the above two groups of four input/output (I/O) ports to form 4-bit binary 8, 4, 2, 1 codes, a total of 16 digital combinations, 0001 represents a period of time,… 000F represents 15 periods of time, each period of time timing programming is 0.5 hours, so the minimum time to switch street lights is set to 0.5 hours, the maximum is 7.
5 hours. For street lighting that lights up second times before daylight and two days before dawn, it can also meet the requirements of time. When the turn off time is set to 0000, it can turn on the lights continuously and turn on the lights two times the time of setting up the lights. That is, the maximum continuous turn on time is 15 hours. When the turn on time is set to 0000, the setting time is infinite, and the turn on and turn off of the streetlights are controlled by the photosensitive element. At this time, the controller becomes a good anti-interference optical control switch, that is, the darkness is lit and the day is out.
STC company 89C52RC MCU is used as the controller. Reasons for choosing STC: Reduce cost and improve performance. STC89C52RC MCU has the characteristics of In-System programmability (ISP). The advantage of ISP is that without purchasing a general programmer, the MCU can download/burn user programs on the user system, without removing the MCU from the products already produced, and then burning program codes into the MCU with a general programmer. Some products whose programs have not yet been finalized can be produced and perfected at the same time, which reduces the risk of new products due to software defects. The intelligent street lamp controller designed and developed by ourselves has the following advantages: 1. It reduces the cost of purchasing equipment and realizes the automatic control of street lamp. 2. It is easy to set up and learn, and its performance is reliable. 3. It has the ability to resist high frequency interference. 4. The time setting range is wide, thermostatic element which can realize multiple combination modes of time. 5.
Extensible line is also very strong. It can be expanded according to the needs of our street lamp design. Intelligent street lamp controller avoids wasting electricity in the case of sufficient natural light, fully considering the influence of different seasons, can choose different control methods, such as summer thunderstorm season is more, day and night are shorter, sometimes daytime rains cause weather darkening, unexpected accidents, walking inconvenience, can use light control mode. In winter, the days are short and the nights are long. The weather is good and can be controlled by time. In full consideration of the safety of broadcasting, we should make rational use of our power resources. At present, our station has been widely used. Since it was put into use, it has run steadily and reliably. It not only eliminates the trouble of manual switching lights, but also achieves the goal of saving electricity and energy.