Charging and discharging controller

By designing a charge and discharge controller based on Atmega128 microcontroller, using Boost circuit and fuzzy control perturbation observation method, the existing photovoltaic charge and discharge controllers are solved, and the efficient utilization of photovoltaic power and the improvement of system stability are achieved.

CN119944886APending Publication Date: 2025-05-06BAODING TIANWEI BAOBIAN ELECTRICAL
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411956403.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-28
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The existing photovoltaic charge and discharge controllers have problems of insufficient cost-effectiveness and adaptability in improving photovoltaic power utilization and stability.

Method used

A charging and discharging controller based on Atmega128 microcontroller was designed, using Boost circuit and fuzzy control perturbation observation method, and through detection circuit and load control circuit, the battery charging process and the maximum utilization of photovoltaic energy were realized.

Benefits of technology

It improves the utilization rate of photovoltaic power, enhances the stability and anti-interference ability of the system, and improves the cost-effectiveness and adaptability of the charge and discharge controller.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119944886A_ABST
    Figure CN119944886A_ABST
Patent Text Reader

Abstract

The invention relates to a charging and discharging controller. The charging and discharging controller relates to the technical field of power electronic application. The charging and discharging controller comprises a pre-stage detection circuit, a Boost circuit, a post-stage detection circuit, a control switch and a detection circuit which are arranged on a solar cell panel, after the system is powered on to run the initial program, the running program is selected according to the judgment of the photosensitive element. In the MPPT stage, the controller enables the lead-acid storage battery to receive the maximum output power P of the photovoltaic cell by adjusting the duty ratio D of the switching tube Q. And when the charging current is larger than the overcharge termination current, the storage battery is charged in a constant voltage mode, and meanwhile, the charging current of the storage battery continues to be detected. And when the charging current is lower than 10% of the rated current, switching to a floating charging stage, and charging the storage battery by adopting a constant voltage slightly higher than the voltage of the storage battery in the floating charging stage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of power electronics application technology, and specifically relates to a charge and discharge controller. Background Technology

[0002] In public lighting systems, photovoltaic arrays charge lead-acid batteries, which then provide power to the lighting system. To ensure this process operates efficiently and effectively, a photovoltaic charge-discharge controller based on an Atmega128 microcontroller was designed. Based on the characteristics of the battery and photovoltaic array, battery capacity detection and MPPT technology were used, and the main control circuit was a Boost circuit. Experimental results verified that this controller can effectively control the battery charging and discharging process, improving the utilization rate of photovoltaic power, and ultimately achieving a highly efficient and stable operating state for the lighting system.

[0003] To more efficiently collect, store, and utilize solar energy, the hardware of public lighting systems employs independent power supplies, Boost main control circuits, and controllers. The main objective of the software design is to utilize the MPPT algorithm to maximize the conversion of solar energy into electrical energy, storing the collected energy in batteries for use by the lighting system. Currently, various control strategies based on the MPPT algorithm exist, each with its own advantages and disadvantages.

[0004] Therefore, a charge / discharge controller is proposed to further improve the cost-effectiveness and adaptability of the charge / discharge controller. Summary of the Invention

[0005] The purpose of this invention is to provide a simple and reasonably designed charge and discharge controller to solve the above problems. It proposes a hardware circuit design scheme, analyzes the working principle of the hardware circuit, and the hardware circuit of this controller is simple, has good real-time performance, complete functions, high reliability and anti-interference ability.

[0006] The present invention achieves the above objectives through the following technical solutions:

[0007] A charge / discharge controller includes a pre-stage detection circuit, a boost circuit, a post-stage detection circuit, a control switch, and a detection circuit disposed on a solar panel. The output terminal of the solar panel is connected to the pre-stage detection circuit. The pre-stage detection circuit is sequentially connected to the boost circuit, the post-stage detection circuit, a lead-acid battery, the control switch and detection circuit, and an LED street light. The pre-stage detection circuit, the boost circuit, the post-stage detection circuit, the lead-acid battery, the control switch, and the detection circuit are all controlled by the controller.

[0008] As a further optimization of the present invention, the control circuit of the charge and discharge controller includes a detection circuit, a load control circuit, a power transistor drive circuit, and a CPU pin circuit.

[0009] Among them, the load control circuit controls the on and off of the LED street lamp;

[0010] The load control circuit uses a port line to control a triode, and then the triode drives a MOS tube to control the LED street lamp circuit;

[0011] There are three power tubes in the system of the load control circuit. The on and off of one of them to control the switch is driven by a triode, and the other two power tubes are connected to the system charging circuit and need to switch on and off a charging current of more than 5A, and are driven by two MAX4220s.

[0012] As a further optimization scheme of the present invention, the detection circuit includes two parts:

[0013] First: The output power of the solar panel is obtained by detecting the voltage and current of the pre-stage. The voltage detection is collected by the precision resistor voltage division method;

[0014] Second: The charging current and power provided to the lead-acid battery are obtained by detecting the voltage and current after DC-DC conversion. The current detection uses a Hall sensor chip to collect the current signal.

[0015] As a further optimization scheme of the present invention, the main circuit of the charge and discharge controller system uses a Boost circuit. The switching tube selected for the Boost circuit is an N-channel enhancement type MOSFET power tube. By inputting a PWM control signal to the gate G of the MOSFET power tube, the on and off of the power tube is controlled.

[0016] As a further optimization scheme of the present invention, the Boost circuit has a buffer element inductor L, and the inductor L is used for continuous current and voltage boost;

[0017] In the Boost circuit, C1 and C2 are filter capacitors. At the same time, C2 can store energy for power supply, and D is an anti-reverse charging diode;

[0018] The Boost circuit is distributed in a "day" shape. C1 and C2 are located on both sides of the "day" shape, L and D are located on both sides above the "day" shape, and Q is a switch in the middle of the "day" shape;

[0019] The switching period of the Boost circuit is T, and the duty cycle is D. Q is turned on within the time of 0 to DT, and the input voltage charges the inductor L. The current in the inductor L gradually increases. Q is turned off within the time of DT to T, and the inductor L starts to discharge. The voltage across the inductor is superimposed on the voltage of the input power supply, so that a voltage higher than the input end is generated at the output end to charge the lead-acid battery.

[0020] The beneficial effects of this invention are as follows: This invention uses a fuzzy control-based perturbation observation method to control the output of the PWM signal for switching transistors, achieving reasonable and effective control over the battery charging process, improving the utilization rate of photovoltaic energy. Furthermore, after the system powers on and runs the initial program, the operating program is selected based on the judgment of the photosensitive element. In the MPPT stage, the controller adjusts the duty cycle D of the switching transistor Q to ensure the lead-acid battery can receive the maximum output power P from the photovoltaic cell. When the charging current exceeds the overcharge termination current, the battery is charged using a constant voltage method while the charging current continues to be monitored. When the charging current is less than 10% of the rated current, the system switches to the float charging stage, which uses a constant voltage slightly higher than the battery voltage to charge the battery. Attached Figure Description

[0021] Figure 1 This is a schematic diagram of the overall module of the charge and discharge controller of the present invention;

[0022] Figure 2 This is the load control circuit diagram of the present invention;

[0023] Figure 3 This is a power switch drive circuit diagram of the present invention;

[0024] Figure 4 This is a circuit diagram of the voltage and current detection circuit of the present invention;

[0025] Figure 5 This is the main circuit diagram of the charge / discharge controller system of the present invention;

[0026] Figure 6 This is a flowchart of the main program of the charge / discharge controller of the present invention. Detailed Implementation

[0027] The present application will now be described in further detail with reference to the accompanying drawings. It should be noted that the following specific embodiments are only used to further illustrate the present application and should not be construed as limiting the scope of protection of the present application. Those skilled in the art can make some non-essential improvements and adjustments to the present application based on the above application content.

[0028] Example 1, a charge / discharge controller, such as Figure 1As shown, the overall hardware circuit of the charge / discharge controller mainly consists of a Boost circuit, a control drive circuit, pre- and post-stage detection circuits, control switches, and detection circuits. Using an Atmega128 microcontroller to detect the high current and voltage of the photovoltaic array and lead-acid battery requires converting these into safe electrical parameters; otherwise, the main chip will be damaged. A precision resistor voltage divider method is used to convert the high voltage value into a voltage range acceptable to the A / D module. To achieve reasonable and effective control of the battery charging process and improve the utilization rate of photovoltaic power, a fuzzy control-based perturbation observation method is used to control the output of the PWM signal for switching the transistor.

[0029] Specifically, the output of the solar panel is connected to the pre-stage detection circuit, which is then connected in sequence to the Boost circuit, the post-stage detection circuit, the lead-acid battery, the control switch and detection circuit, and the LED street light. The pre-stage detection circuit, the Boost circuit, the post-stage detection circuit, the lead-acid battery, the control switch and detection circuit are all controlled by a controller.

[0030] refer to Figures 2 to 5 As shown, the control circuit consists of a minimum system, a detection circuit, a load control circuit, a power transistor driver circuit, and a CPU pin circuit. The load control in this system controls the on / off state of the streetlights, directly controlling the transistors via I / O lines, and then the transistors drive MOSFETs to control the streetlight circuit. The system has three power transistors; one controls the switching on / off state of the switch, driven by the transistor, while the other two power transistors are connected in the system's charging circuit. Since a charging current of over 5A needs to be switched, two MAX4220 chips are used to drive them.

[0031] The detection circuit of this system has two parts: the output power of the solar panel can be obtained through the voltage and current detection of the front stage, and the voltage detection uses a precision resistor voltage divider method for acquisition. The charging current and power supplied to the lead-acid battery can be obtained through the detection of the voltage and current after DC-DC conversion, and the current detection uses a Hall sensor chip to acquire the current signal.

[0032] refer to Figure 5As shown, the main circuit uses a boost circuit because its operating current is continuous, its circuit structure is simple, and more importantly, it has a higher energy conversion efficiency than other circuits. The boost circuit in this system uses an N-channel enhancement-mode MOSFET power transistor, which has low power consumption and is suitable for high-frequency circuits. The switching of the power transistor can be controlled by inputting a PWM control signal to its gate G. The inductor L is a buffer element in the boost circuit, serving as a current carrier and voltage booster. C1 and C2 are filter capacitors, and C2 also stores energy for power supply. D is a reverse-charging protection diode. The switching period of the boost circuit is T, and the duty cycle is D. During the time interval 0 to DT, Q is on, and the input voltage charges the inductor L, causing the current in the inductor L to gradually increase. During the time interval DT to T, Q is off, and the inductor L begins to discharge. The voltage across the inductor is superimposed on the input voltage, resulting in a higher voltage at the output, which charges the lead-acid battery.

[0033] The charging and discharging process is divided into two scenarios: daytime charging and nighttime discharging. After the system powers on and runs the initial program, the operating program is selected based on the judgment of the photosensitive element. In the MPPT stage, the controller adjusts the duty cycle D of the switching transistor Q to ensure that the lead-acid battery can receive the maximum output power P from the photovoltaic cell. When the charging current exceeds the overcharge termination current, the battery is charged at a constant voltage while the charging current continues to be monitored. When the charging current is less than 10% of the rated current, the system switches to the float charging stage, which uses a constant voltage slightly higher than the battery voltage to charge the battery.

[0034] The embodiments described above are merely examples of several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention.

Claims

1. A charge and discharge controller, comprising a front-stage detection circuit, a boost circuit, a rear-stage detection circuit, a control switch and a detection circuit arranged on a solar cell panel, characterized in that: The output end of the solar cell panel is connected to the front-stage detection circuit, the front-stage detection circuit is connected to the Boost circuit, the rear-stage detection circuit, the lead-acid battery, the control switch and the detection circuit, and the LED street lamp in sequence, and the front-stage detection circuit is controlled by the controller.

2. A charge and discharge controller according to claim 1, characterized in that: The control circuit in the charge and discharge controller includes a detection circuit, a load control circuit, a power tube drive circuit, and a CPU pin circuit; Among them, the load control circuit controls the on and off of the LED street light; The load control circuit uses a line to control the transistor, which then drives the MOS tube to control the LED street light circuit; There are three power tubes in the load control circuit system, one of which is driven by a transistor to control the on and off of the switch. The other two power tubes are connected to the system charging circuit and need to switch on and off charging currents of more than 5A. They are driven by two MAX4220s.

3. A charge and discharge controller according to claim 2, characterized in that: The detection circuit consists of two parts: First: The output power of the solar panel is obtained through the voltage and current detection of the previous stage. The voltage detection is collected using the precision resistor voltage division method. Second: The charging current and power provided to the lead-acid battery are obtained by detecting the voltage and current after DC-DC conversion. The current detection uses a Hall sensor chip to collect current signals.

4. A charge and discharge controller according to claim 2, characterized in that: The main system circuit of the charge and discharge controller adopts a Boost circuit. The switch tube selected by the Boost circuit is an N-channel enhancement type MOSFET power tube. The on and off of the power tube is controlled by inputting a PWM control signal to the gate G of the MOSFET power tube.

5. A charge and discharge controller according to claim 4, characterized in that: The Boost circuit has a buffer element inductor L, and the inductor L is used for continuing current and boosting voltage; In the Boost circuit, C1 and C2 are filter capacitors, while C2 can store energy and supply power, and D is an anti-reverse charging diode; The boost circuit is distributed in a sun shape, C1 and C2 are located on both sides of the sun shape, L and D are located on both sides above the sun shape, and Q is located in the middle of the sun shape, and Q is a switch; The switching period of the Boost circuit is T, and the duty cycle is D. Q is turned on during the time from 0 to DT, and the input voltage charges the inductor L. The current in the inductor L gradually increases. Q is turned off during the time from DT to T, and the inductor L begins to discharge. The voltage across the inductor is superimposed on the voltage of the input power supply, so that the output end generates a voltage higher than the input end, thereby charging the lead-acid battery.

Citation Information

Cited By

  • Solar automobile charging management method and system based on cadmium telluride power generation glass

    CN120382792A