The design of system software (solar street lamps 1) Control of the PWM output. Using microcomputer to TLA94 chip output PWM signal control, when the load changes or appear to protect state, MCU signal ( 220 voff) Shut off the TL494 output, to cut off the inverter
solar street light system software design ( 1) Control of the PWM output. Using microcomputer to TLA94 chip output PWM signal control, when the load changes or appear to protect state, MCU signal ( 220 voff) Shut off TL494 output, cut off the input inverter circuit, ensure the inverter output voltage is zero, the requirements on software design shall ensure that single chip microcomputer has been sampled output signal. ( 2) The battery voltage detection control. The normal work of the storage battery voltage values of 12 + / - 1 v, when the battery voltage is lower than 11 v requires circuit to immediately stop the battery to load the output power, otherwise will affect the service life of the battery, have special battery detection circuit in the system, the microcontroller has been on the battery voltage values sampling, namely Batter_Adin signal in the circuit. Once found that low voltage is controlled by a single-chip computer output signal, RY1) Timely relay switch 1 lamp power supply from the battery to make load. ( 3) Display and keyboard input function. Display functions in this system is divided into two parts: one is the digital tube display, is mainly used to display the system working hours: the other is a LED display, LED the change of state represents the work condition of the circuit, the green represents the normal operation, the red light on behalf of the fault. System is mainly composed of single chip microcomputer software implementation of display function. In addition, considering the need of circuit in the circuit pattern set, thus increased the keyboard input circuit, there are three dial the code switch in this controller, is used to implement the three road street lamp remote control output. Figure 7 is the controller of the main program flow
, LED street light