Street lamp control circuit and method powered by combination of solar energy and mains supply
Technical Field
The invention belongs to the technical field of electronic circuits, and particularly relates to a street lamp control circuit and method powered by solar energy and commercial power in a combined mode.
Background
The street lamp on the road at present adopts solar energy power supply, or adopts the municipal power supply, does not adopt the power supply mode that solar energy and commercial power combine, and solar energy power supply can practice thrift the power, but because present solar energy is very in overcast and rainy day gas generating efficiency, adopts the street lamp of solar energy power supply completely, shelters from when overcast and rainy weather is too much or seasonal sunshine, leads to not having sufficient illumination, and the duration of the journey that leans on the battery is limited, reaches certain day, and the street lamp has just gone out. Light supplement at night in some important road sections or monitoring areas cannot be interrupted, and illumination at night in continuous rainy days must be ensured by using solar energy for illumination.
Disclosure of Invention
The invention aims to provide a street lamp control circuit and method powered by combining solar energy and commercial power, and aims to solve the technical problem that the power supply of the existing solar power supply street lamp is insufficient in rainy days.
In order to achieve the purpose, the specific technical scheme of the street lamp control circuit and method for supplying power by combining solar energy and commercial power is as follows:
a street lamp control circuit powered by solar energy and mains supply in a combined mode comprises a photovoltaic panel, a main control circuit, a photovoltaic input sampling circuit, a battery charging circuit, a battery voltage sampling circuit, a lighting power supply changeover switch, a mains supply circuit and an LED drive circuit, wherein the photovoltaic panel is connected with the battery charging circuit, the photovoltaic input sampling circuit is connected with the photovoltaic panel and the main control circuit, the battery charging circuit is connected with the lighting power supply changeover switch, the main control circuit and the battery voltage sampling circuit, the battery voltage sampling circuit is connected with the main control circuit, the main control circuit is connected with the lighting power supply changeover switch and the LED drive circuit, the lighting power supply changeover switch and the LED drive circuit are connected with a street lamp, and the mains supply circuit is connected with the lighting power supply changeover switch;
the photovoltaic panel is used for collecting solar energy;
the photovoltaic input sampling circuit is used for collecting voltage and current signals input by the photovoltaic panel;
the battery charging circuit charges the battery by using the solar energy collected by the photovoltaic panel;
the battery voltage sampling circuit is used for acquiring a voltage signal of the battery;
the lighting power supply changeover switch is used for switching battery power supply or municipal power supply;
the LED driving circuit is used for driving the lighting circuit;
the commercial power supply circuit is used for providing a municipal power supply;
the main control circuit is used for collecting a voltage and current signal of the photovoltaic panel and a voltage and current signal of the battery, controlling the power supply circuit of the charging chip to start working according to the voltage and current signal of the photovoltaic panel, controlling the charging power of the charging circuit of the battery, and controlling the lighting power supply change-over switch to switch between battery power supply and municipal power supply according to the voltage and current signal of the battery.
Further, the voltage stabilizing circuit comprises a 3.3V voltage stabilizing circuit, wherein the 3.3V voltage stabilizing circuit is connected with the main control circuit, and the 3.3V voltage stabilizing circuit is used for supplying power to the main control circuit and the component used for DC3.3V.
Furthermore, the photovoltaic input sampling circuit comprises a photovoltaic input voltage sampling circuit and a photovoltaic charging current sampling amplifier, and the photovoltaic input voltage sampling circuit is connected with the main control circuit and is used for collecting voltage signals input by the photovoltaic panel; the photovoltaic input voltage sampling circuit is connected with the photovoltaic charging current sampling amplifier, the photovoltaic charging current sampling amplifier is connected with the main control circuit, and the photovoltaic charging current sampling amplifier is used for amplifying current signals of the photovoltaic panel and then acquiring and amplifying the signals to the main control circuit.
Furthermore, the battery charging circuit comprises a charging chip power supply circuit, an MPPT charging circuit and a battery, the charging chip power supply circuit is connected with the MPPT charging circuit and the master control circuit, the photovoltaic panel is connected with the MPPT charging circuit, the MPPT charging circuit is connected with the battery and the master control circuit, and the battery is connected with the battery voltage sampling circuit; the charging chip power supply circuit is used for providing a power supply for the MPPT charging circuit, and the MPPT charging circuit is used for controlling the current and voltage of battery charging.
Further, when the voltage of the battery is higher than a set value, the battery is adopted for supplying power; when the voltage of the battery is lower than a set value, the main control circuit is switched to a commercial power circuit for power supply; the main control circuit controls the voltage of the LED driving circuit according to the instruction, so that the brightness of the street lamp is controlled; the master control circuit controls the switching off of the photovoltaic input voltage sampling circuit according to the signal of the battery voltage sampling circuit; when the voltage of the battery voltage sampling circuit reaches the highest value, the main control circuit controls the input voltage of the photovoltaic panel to be disconnected; the main control circuit calculates the electric quantity of the battery according to the voltage of the battery collected by the battery voltage sampling circuit, and the commercial power supply circuit is connected with the main control circuit; and the main control circuit judges the current power supply mode according to the voltage signal of the municipal power supply signal or the voltage value of the battery voltage sampling circuit.
Further, the intelligent terminal comprises an internet of things interface circuit, the 3.3V voltage stabilizing circuit is connected with the internet of things interface circuit, the internet of things interface circuit is connected with the main control circuit, and the internet of things interface circuit is used for establishing connection between the intelligent terminal and the main control circuit.
The infrared remote control system further comprises a functional interface circuit, wherein the functional interface circuit comprises a programming interface circuit and an infrared remote control interface circuit, the programming interface circuit is connected with the main control circuit, and the programming interface circuit is used for burning a program to the main control chip; the infrared remote control interface circuit is connected with the main control circuit and is externally connected with the infrared sensor.
The invention also discloses a method for controlling the power supply of the street lamp by combining solar energy and commercial power, which comprises the following steps:
step 1: a signal acquisition step:
step 1.1: collecting current and voltage signals of a photovoltaic panel: the photovoltaic input sampling circuit collects voltage and current signals input by a photovoltaic panel;
step 1.2: collecting a battery voltage signal: collecting a battery voltage signal;
step 2: a judging step:
step 2.1: judging the voltage and current intensity of the photovoltaic panel;
step 2.2: judging the voltage intensity of the battery;
and step 3: the control steps are as follows:
step 3.1: controlling the charging power of the battery: the main control circuit adjusts the charging power of the battery charging circuit according to the magnitude of the current and voltage signals of the photovoltaic panel;
step 3.2: controlling a power supply switch of the charging chip: the main control circuit controls the power supply circuit of the charging chip to be switched on or off according to the voltage signal of the photovoltaic panel; controlling the power supply circuit of the charging chip to be closed according to the battery voltage signal, and closing the power supply circuit of the charging chip when the battery voltage reaches the maximum value;
step 3.3: lighting power supply change-over switch control: the main control circuit controls the switching of the lighting power supply switch according to the voltage of the battery, and when the voltage of the battery is higher than a set value, the battery is adopted for supplying power; and when the voltage of the battery is lower than a set value, the municipal power supply is switched to.
Further, the step 1 comprises power supply mode signal acquisition: collecting a voltage signal of a mains supply circuit or a voltage value of a battery voltage sampling circuit; the step 3 comprises LED brightness control: the main control circuit controls the brightness of the street lamp according to the program instruction.
Further, the method comprises the following steps of 4: data transmission: the intelligent terminal realizes information interaction and remote control with the main control circuit through an Internet of things interface; and 5: infrared control: the infrared remote controller controls the main control circuit through the infrared interface circuit, and comprises a power supply switching mode and a street lamp brightness adjusting mode.
The street lamp control circuit and method powered by the combination of solar energy and commercial power provided by the invention have the following advantages: the street lamp control circuit and method powered by the combination of the solar energy and the commercial power judges the electric quantity of the battery according to the voltage of the battery, switches the battery and the commercial power through the lighting power supply change-over switch, automatically switches to the commercial power mode when the electric quantity of the battery is exhausted, automatically switches to the battery power supply mode when the battery is charged by the solar energy, and automatically switches back to the battery power supply mode, so that the problem that the street lamp is extinguished due to insufficient battery endurance is solved. The control circuit designed by the invention can utilize solar energy to the maximum extent, and can switch commercial power supply under the condition of insufficient solar energy, thereby avoiding the power failure of the street lamp. Meanwhile, the circuit provided by the invention is provided with an interface of the Internet of things, so that the real-time display of the battery power, equipment faults and the current power supply mode of a background can be realized, and the equipment can be controlled, including power supply mode switching, street lamp brightness adjustment and the like. Has remote monitoring and management functions.
Drawings
FIG. 1 is a block diagram of a street lamp control circuit module of the present invention;
FIG. 2 is a schematic diagram of a master control circuit of the present invention;
fig. 3 is a schematic diagram of the lighting power supply changeover switch and the mains supply circuit of the invention.
Detailed Description
In order to better understand the purpose, structure and function of the present invention, the following describes a street lamp control circuit and method powered by a combination of solar energy and commercial power in detail with reference to the accompanying drawings.
As shown in fig. 1, the street lamp control circuit powered by combination of solar energy and commercial power of the invention comprises a photovoltaic panel, a main control circuit, a 3.3V voltage stabilizing circuit, a photovoltaic input sampling circuit, a battery charging circuit, a battery voltage sampling circuit, an illumination power supply change-over switch, a commercial power supply circuit and an LED driving circuit.
The 3.3V voltage stabilizing circuit is connected with the main control circuit, the photovoltaic panel is connected with the battery charging circuit, the photovoltaic input sampling circuit is connected with the photovoltaic panel and the main control circuit, the battery charging circuit is connected with the lighting power supply change-over switch, the main control circuit and the battery voltage sampling circuit, the battery voltage sampling circuit is connected with the main control circuit, the main control circuit is connected with the lighting power supply change-over switch and the LED drive circuit, the lighting power supply change-over switch and the LED drive circuit are connected with the street lamp, and the commercial power supply circuit is connected with the lighting power supply change-over switch and the main control circuit.
The 3.3V voltage stabilizing circuit is used for supplying power to the main control circuit and the DC3.3V used components.
The photovoltaic panel is used for collecting solar energy.
The photovoltaic input sampling circuit is used for collecting voltage and current signals input by the photovoltaic panel; the photovoltaic input sampling circuit comprises a photovoltaic input voltage sampling circuit and a photovoltaic charging current sampling amplifier, and the photovoltaic input voltage sampling circuit is connected with the main control circuit and is used for collecting voltage signals input by the photovoltaic panel; the photovoltaic input voltage sampling circuit is connected with the photovoltaic charging current sampling amplifier, the photovoltaic charging current sampling amplifier is connected with the main control circuit, and the photovoltaic charging current sampling amplifier is used for amplifying current signals of the photovoltaic panel and then collecting and amplifying the signals to the main control circuit.
The battery charging circuit charges the battery by using the solar energy collected by the photovoltaic panel; the battery charging circuit comprises a charging chip power supply circuit, an MPPT charging circuit and a battery, the charging chip power supply circuit is connected with the MPPT charging circuit and the main control circuit, the photovoltaic panel is connected with the MPPT charging circuit, the MPPT charging circuit is connected with the battery and the main control circuit, and the battery is connected with the battery voltage sampling circuit. The charging chip power supply circuit is used for providing a 24V power supply for the MPPT charging circuit, and the MPPT charging circuit is used for controlling the current and voltage of battery charging.
The battery voltage sampling circuit is used for acquiring a voltage signal of the battery;
the lighting power supply changeover switch is used for switching battery power supply or municipal power supply;
the LED driving circuit is used for driving the lighting circuit;
the commercial power supply circuit is used for providing a municipal power supply;
the master control circuit is used for collecting voltage and current signals of the photovoltaic panel and voltage and current signals of the battery, controlling the power supply circuit of the charging chip to start working according to the voltage and current signals of the photovoltaic panel, and simultaneously controlling the charging power of the MPPT charging circuit so as to achieve the maximum charging efficiency of charging the battery. Controlling a lighting power supply changeover switch to switch between battery power supply and municipal power supply according to a battery voltage signal, and supplying power by using a battery when the battery voltage is higher than a set value; and when the voltage of the battery is lower than a set value, switching to a mains supply circuit for supplying power. And the voltage of the LED driving circuit is controlled according to the instruction, so that the brightness of the street lamp is controlled. And the master control circuit controls the turn-off of the photovoltaic input voltage sampling circuit according to the signal of the battery voltage sampling circuit. When the voltage of the battery voltage sampling circuit reaches the highest value, the main control circuit controls the input voltage of the photovoltaic panel to be disconnected. The main control circuit calculates the battery power according to the battery voltage acquired by the battery voltage sampling circuit, and judges the current power supply mode according to the voltage signal of the municipal power supply signal or the voltage value of the battery voltage sampling circuit.
The street lamp control circuit powered by the combination of solar energy and commercial power also comprises an Internet of things interface circuit,
3.3V voltage stabilizing circuit and thing networking interface circuit are connected, and thing networking interface circuit is connected with master control circuit, and thing networking interface circuit is used for establishing being connected of intelligent terminal and master control circuit, can realize looking over battery power, equipment trouble, current power supply mode etc. in real time on intelligent terminal to and control equipment, including power supply mode switch, street lamp brightness control etc.. The intelligent terminal comprises a computer, a mobile phone and other equipment.
The street lamp control circuit powered by the combination of the solar energy and the mains supply also comprises a functional interface circuit, wherein the functional interface circuit comprises a programming interface circuit and an infrared remote control interface circuit, the programming interface circuit is connected with a main control circuit, and the programming interface circuit is used for burning programs to a main control chip; the infrared remote control interface circuit is connected with the main control circuit and is used for being externally connected with an infrared sensor and utilizing infrared remote control equipment to control the on, off, brightness and the like of the street lamp.
As shown in fig. 2, which is a schematic diagram of a main control circuit of the present invention, an ACC IOUT port is connected to a photovoltaic charging current sampling amplifier to provide a photovoltaic panel current signal for the main control circuit, an ADC VIN1 is connected to a photovoltaic input voltage sampling circuit to provide a photovoltaic panel voltage signal for the main control circuit, an ADC VAC port is connected to a mains supply circuit to provide a municipal voltage signal for the main control circuit, an LEDPW-AC port is connected to a lighting power supply switch to provide a municipal power supply switch, an LEDPW-BT port is connected to a lighting power supply switch to provide a battery power supply switch, a VINSW ON port is connected to an MPPT charging circuit, the main control circuit controls the output power of the MPPT charging circuit, an MPWR ON port is connected to a charging chip power supply circuit to provide a switch for the charging chip power supply circuit, an LED ProctInt port is connected to an LED driving circuit to provide a switch for the LED driving circuit. The IRIN port is connected with the infrared remote control interface circuit and is a switch of the infrared remote control interface circuit, and the LED RUN port is connected with the infrared remote control interface circuit and is an infrared remote control indicator lamp. And the PWM Dim is connected with the LED driving circuit and used for controlling the brightness of the street lamp.
Fig. 3 is a schematic diagram of a municipal power supply circuit and an illumination power supply changeover switch circuit of the invention, a commercial power 12V adapter P6 is connected in parallel with a diode D13 and a capacitor C35 to output 12V power supply voltage, the cathode of the diode D13 is connected with an ADC VAC port of a main control circuit, and the ADC VAC port signal is used for judging whether municipal power supply is adopted. The 12V power supply voltage output by the municipal power supply circuit is connected with MOS tubes Q8 and Q9 of the lighting power supply changeover switch, then the street lamp power supply LED-VCC is output, and the street lamp power supply LED-VCC is connected with the street lamp. The port LEDPW-AC is connected to the PB3 pin of the main control circuit. The + BATT port of the lighting power supply changeover switch is connected with the power supply output of the MPPT charging circuit, the + BATT port is connected with MOS tubes Q4 and Q5 and then outputs a street lamp power supply LED-VCC, and the street lamp power supply LED-VCC is connected with a street lamp. The port LEDPW-BT is connected to the PB4 pin of the main control circuit. The main control circuit controls the port LEDPW-AC or the port LEDPW-BT to be set at a high level according to a battery voltage signal, so that the power supply is switched between the battery power supply and the municipal power supply. In order to prevent the battery voltage from being too low for a long time due to continuous rainy days, a diode D17 and a resistor R57 are connected in series between MOS transistors Q4 and Q5, the 8 th pin of MOS transistor Q5 is connected with the anode of diode D17, the anode of diode D17 is connected with one end of resistor R57, the other end of resistor R57 is connected with the 8 th pin of MOS transistor Q4, and when the battery voltage is too low for a long time, the municipal power supply circuit can slightly charge the battery power supply circuit to protect the battery.
The invention discloses a solar energy and commercial power combined power supply street lamp control method, which comprises the following steps:
step 1: a signal acquisition step:
step 1.1: collecting current and voltage signals of a photovoltaic panel: the photovoltaic input sampling circuit collects voltage and current signals input by a photovoltaic panel; the photovoltaic input voltage sampling circuit collects a voltage signal input by a photovoltaic panel; the photovoltaic charging current sampling amplifier amplifies a current signal of the photovoltaic panel and then acquires an amplified signal to the main control circuit;
step 1.2: collecting a battery voltage signal: collecting a battery voltage signal;
step 1.3: acquiring power supply mode signals: and collecting a voltage signal of a mains supply circuit or a voltage value of a battery voltage sampling circuit.
Step 2: a judging step:
step 2.1: judging the voltage and current intensity of the photovoltaic panel;
step 2.2: and judging the voltage intensity of the battery.
And step 3: the control steps are as follows:
step 3.1: controlling the charging power of the battery: the main control circuit adjusts the charging power of the MPPT charging circuit according to the magnitude of the current and voltage signals of the photovoltaic panel so as to achieve the maximum charging efficiency of the battery;
step 3.2: controlling a power supply switch of the charging chip: the main control circuit controls the power supply circuit of the charging chip to be switched on or off according to the voltage signal of the photovoltaic panel; controlling the power supply circuit of the charging chip to be closed according to the battery voltage signal, and closing the power supply circuit of the charging chip when the battery voltage reaches the maximum value;
step 3.3: lighting power supply change-over switch control: the main control circuit controls the switching of the lighting power supply switch according to the voltage of the battery, and when the voltage of the battery is higher than a set value, the battery is adopted for supplying power; when the voltage of the battery is lower than a set value, the municipal power supply is switched;
step 3.4: LED brightness control: the main control circuit controls the brightness of the street lamp according to the program instruction.
And 4, step 4: data transmission: the intelligent terminal realizes information interaction and remote control with the main control circuit through the Internet of things interface.
And 5: infrared control: the infrared remote controller controls the main control circuit through the infrared interface circuit, and comprises a power supply switching mode and a street lamp brightness adjusting mode.
It is to be understood that the present invention has been described with reference to certain embodiments, and that various changes in the features and embodiments, or equivalent substitutions may be made therein by those skilled in the art without departing from the spirit and scope of the invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the invention without departing from the essential scope thereof. Therefore, it is intended that the invention not be limited to the particular embodiment disclosed, but that the invention will include all embodiments falling within the scope of the appended claims.