Household intelligent miniature energy management equipment
By designing an intelligent micro energy management device that integrates a 60V lithium battery module, charging circuit and inverter circuit, the problem of safety and stability of household energy storage systems during the charging and discharging process is solved, and safe and fast charging of lithium batteries is realized. The stability of discharge and power supply to household appliances improves energy efficiency.
Patent Information
- Application Number
- CN202410781462.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-10
AI Technical Summary
It is difficult to ensure the safety and stability of existing household energy storage systems during the charging and discharging process, and it is difficult to effectively balance the household electricity load, resulting in low energy utilization efficiency.
An intelligent micro energy management device including a 60V lithium battery module, charging circuit module, inverter circuit module, sampling circuit module, auxiliary power module and control circuit module is designed, using three-stage charging, PID closed-loop control and SPWM waveform output , ensuring the safety and voltage stability of the charging and discharging process.
It realizes safe and fast charging and discharging of lithium batteries, extends battery life, ensures the stability of power supply for household appliances and efficient use of energy. It achieves stable voltage output through three-stage charging and PID closed-loop control, avoiding the impact of battery voltage fluctuations. The impact of electrical appliances.
Smart Images

Figure CN118630872A
Abstract
Description
Technical Field
[0001] The invention relates to the fields of switching power supply technology and automation control technology, and is specifically used for stable conversion and storage of household electric energy. Background Art
[0002] With the advent of the intelligent and information age, household electricity demand has also increased significantly. Against this background, home energy storage systems have emerged. As a micro energy storage power station, its operation is independent of the city's power supply system, showing great application potential. During low-power periods, the low-cost and surplus electricity in the social power supply system can be stored in batteries for backup or power outages during peak power consumption periods. Therefore, home energy storage systems can effectively save household electricity expenses and achieve efficient use of energy by balancing the power load.
[0003] Currently, the common household energy storage systems on the market are all designed based on solar panels. In order to verify the application prospects of systems with lithium batteries as the core of energy storage, it is very necessary to design a household intelligent micro energy management device with safe and reliable charging and discharging process. Summary of the invention
[0004] The purpose of the present invention is to realize a home energy manager with stable and reliable electric energy conversion, providing a new solution for home energy management. The present invention has three-stage charging function, closed-loop control stable output voltage function and battery power monitoring function to ensure the safety of the equipment during the charging and discharging process.
[0005] The specific technical solution for achieving the purpose of the present invention is:
[0006] A household intelligent micro energy management device, characterized in that: the device comprises a 60V lithium battery module, a charging circuit module, an inverter circuit module, a sampling circuit module, an auxiliary power supply module and a control circuit module; the charging circuit module inputs 220V AC mains power and outputs 73.5V DC to charge the lithium battery; the power part of the inverter circuit module inputs the DC voltage output by the 60V lithium battery and outputs 220V sine wave AC to power household appliances; the control circuit module is connected to the inverter circuit module to provide a control signal to the inverter circuit module; the auxiliary power supply module is connected to the inverter circuit module, the control circuit module and the sampling circuit module to power the internal chips of each module; wherein:
[0007] The 60V lithium battery module includes two independent interfaces, input and output. The input interface is connected to the charging circuit module, and the output interface is connected to the inverter circuit module. The two interfaces are respectively connected to an air switch to control the working state of charging or discharging. Charging and discharging cannot be performed at the same time.
[0008] The charging circuit module includes an input rectifier and filter circuit, an EG1165 chip, a half-bridge circuit, a high-frequency transformer, an output rectifier and filter circuit, a secondary power supply circuit, a 78L12 three-terminal voltage regulator, an EG4320 chip, and a feedback circuit; the input of the input rectifier and filter circuit is 220V AC power, which is rectified and filtered by a rectifier bridge and a filter capacitor to obtain a 310V DC, which is then used to power the EG1165 chip after voltage division; the EG1165 chip outputs a half-bridge PWM control signal to drive two MOS tube switches on the half-bridge circuit, converting the 310V DC into a high-voltage square wave signal, thereby controlling the operation of the high-frequency transformer PQ3235; the auxiliary winding of the high-frequency transformer generates an induced electromotive force, which is rectified and filtered by the two MOS tube switches, and then the 310V DC is converted into a high-voltage square wave signal, thereby controlling the operation of the high-frequency transformer PQ3235; the auxiliary winding of the high-frequency transformer generates an induced electromotive force, which is rectified and filtered by the two MOS tube switches, and the 310V DC is converted into a high-voltage square wave signal, thereby controlling the operation of the high-frequency transformer PQ3235; the auxiliary winding of the high-frequency transformer generates an induced electromotive force, which is rectified and filtered by the two MOS tube switches, and the two MOS tube switches are ... two MOS tube switches are rectified and filtered by the two MOS tube switches, and After the secondary power supply circuit, a stable DC voltage is obtained to continuously power the EG1165 chip; the AC generated by the induced electromotive force of the upper secondary winding of the high-frequency transformer is passed through the output rectifier and filter circuit to obtain a 60V DC as the output; the secondary winding below the high-frequency transformer can generate a 15V voltage, which is passed through the 78L12 three-terminal regulator to obtain a 12V voltage to drive the EG4320 chip to work; the EG4320 chip is responsible for three-stage charging management. After sampling the output through a precision resistor in the feedback circuit, the signal is fed back to the EG1165 chip through the EL817C optocoupler, changing the output PWM wave duty cycle of the EG1165, thereby changing the output voltage, achieving the effect of stabilizing the output voltage and output current;
[0009] The inverter circuit module includes a drive circuit, a full-bridge inverter circuit, a filter circuit and an industrial frequency transformer; the drive circuit includes a chip IR2104 and an optical coupler TLP250, and the signal output by the control circuit module is transmitted to IR2104 after being isolated by TLP250, generating four PWM control signals to control the switches of four MOS tubes on the full-bridge inverter circuit to generate a high-frequency AC voltage; the filter circuit filters out the high-frequency component of the square wave signal to obtain a 36Vrms 50Hz sine wave output; the industrial frequency transformer converts the 36Vrms low-voltage AC into a 220V, 50Hz AC;
[0010] The sampling circuit module includes an isolated differential amplifier AMC1200 and an SGM358 operational amplifier; the signal to be sampled is input into the AMC1200 for isolation and amplification after being reduced by resistor voltage division, and then input into the SGM358 to control the output voltage range within 0-3.3V;
[0011] The auxiliary power module includes three linear regulators, which convert the 15-50V input into three outputs of 3.3V, 5V and 12V to power the internal chips of each module;
[0012] The control circuit module is an STM32F407ZGT6 core board, which contains a timer module, an ADC sampling module and an OLED display screen module. The output of the inverter circuit module is connected to the sampling circuit module, and the output of the sampling circuit module is connected to the input interface of the ADC sampling module; the SPWM control signal output by the core board is connected to the optocoupler TLP250 of the inverter circuit module; the core board performs PID closed-loop control algorithm calculation through the sampled output signal, adjusts the SPWM wave duty cycle, and achieves the effect of stabilizing the output voltage.
[0013] Compared with the prior art, the advantages of the present invention are:
[0014] (1) The present invention uses the EG4320 chip, and the charging circuit supports three-stage charging. The charging process is safe and fast, and helps to extend the battery life.
[0015] (2) The present invention outputs SPWM wave based on STM32 single chip microcomputer, so that the output waveform of inverter circuit is pure sine wave, and the voltage is boosted by industrial frequency transformer, so that the inductive load is driven strongly.
[0016] (3) The present invention uses a PID closed-loop control algorithm to achieve a stable control effect of the inverter output voltage, and the output voltage does not change with the fluctuation of the input battery voltage. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a structural block diagram of the present invention;
[0018] Figure 2 It is a flowchart of the working process of the control circuit module of the present invention. DETAILED DESCRIPTION
[0019] The present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0020] See also Figure 1 The present invention includes a 60V lithium battery module 1, a charging circuit module 2, an inverter circuit module 3, a sampling circuit module 4, an auxiliary power supply module 5 and a control circuit module 6.
[0021] The 60V lithium battery module 1 is connected to the charging circuit module 2, the inverter circuit module 3, the sampling circuit module 4, and the auxiliary power supply module 5 respectively.
[0022] The charging circuit module 2 is connected to the 60V lithium battery module 1 .
[0023] The inverter circuit module 3 is connected to the 60V lithium battery module 1 , the sampling circuit module 4 , the auxiliary power supply module 5 , and the control circuit module 6 respectively.
[0024] The sampling circuit module 4 is connected to the 60V lithium battery module 1, the inverter circuit module 3, the auxiliary power supply module 5, and the control circuit module 6 respectively.
[0025] The auxiliary power supply module 5 is connected to the 60V lithium battery module 1 , the inverter circuit module 3 , the sampling circuit module 4 , and the control circuit module 6 respectively.
[0026] The control circuit module 6 is connected to the inverter circuit module 3 , the sampling circuit module 4 , and the auxiliary power supply module 5 respectively.
[0027] The 60V lithium battery module 1 of the present invention comprises two independent interfaces, input and output, the input interface is connected to the charging circuit module 2, and the output interface is connected to the inverter circuit module 3. The two interfaces of the battery are respectively connected to an air switch to control the working state of charging or discharging, and charging and discharging cannot be performed at the same time.
[0028] The charging circuit module 2 of the present invention includes an input rectifying and filtering circuit, an EG1165 chip, a half-bridge circuit, a high-frequency transformer, an output rectifying and filtering circuit, a secondary power supply circuit, a 78L12 three-terminal voltage regulator, an EG4320 chip, and a feedback circuit; the input rectifying and filtering circuit is inputted with 220V mains electricity, which is rectified and filtered by a rectifying bridge and a filtering capacitor to obtain a 310V direct current, which is then used to power the EG1165 chip after voltage division; the EG1165 chip outputs a half-bridge PWM control signal to drive two MOS tube switches on the half-bridge circuit, converting the 310V direct current into a high-voltage square wave signal, thereby controlling the operation of the high-frequency transformer PQ3235; the auxiliary winding of the high-frequency transformer generates an induced electromotive force, which is rectified and filtered After the secondary power supply circuit, a stable DC voltage is obtained to continuously power the EG1165 chip; the AC generated by the induced electromotive force of the upper secondary winding of the high-frequency transformer is passed through the output rectifier filter circuit to obtain a 60V DC as the output; the secondary winding below the high-frequency transformer can generate a 15V voltage, which is passed through the 78L12 three-terminal regulator to obtain a 12V voltage to drive the EG4320 chip to work; the EG4320 chip is responsible for three-stage charging management. After sampling the output through a precision resistor in the feedback circuit, the signal is fed back to the EG1165 chip through the EL817C optocoupler, changing the output PWM wave duty cycle of the EG1165, thereby changing the output voltage size, achieving the effect of stabilizing the output voltage and output current. After connecting to the 220V mains, turn on the air switch between the 60V lithium battery module 1 and the charging circuit module 2, and the charging circuit starts to work to charge the lithium battery.
[0029] The inverter circuit module 3 of the present invention includes a drive circuit, a full-bridge inverter circuit, a filter circuit and an industrial frequency transformer; the drive circuit includes a chip IR2104 and an optical coupler TLP250, and the signal output by the control circuit module 6 is transmitted to IR2104 after being isolated by TLP250, generating four-way PWM control signals, controlling the switches of four MOS tubes on the full-bridge inverter circuit, and generating a high-frequency AC voltage; the filter circuit filters out the high-frequency component of the square wave signal to obtain a 36Vrms 50Hz sine wave output; the industrial frequency transformer converts the 36Vrms low-voltage AC into 220V, 50Hz AC. Turn on the air switch between the 60V lithium battery module 1 and the inverter circuit module 3, and the inverter circuit starts to work to supply power to household appliances.
[0030] The sampling circuit module 4 of the present invention includes an isolated differential amplifier AMC1200 and an SGM358 operational amplifier; the signal to be sampled is input into the AMC1200 for isolation and amplification after being reduced by resistor voltage division, and then input into the SGM358 to control the output voltage range within 0-3.3V. The input is connected to the output of the 60V lithium battery module 1 and the inverter circuit module 3. The output is connected to the ADC sampling interface of the control circuit module 6.
[0031] The auxiliary power supply module 5 of the present invention includes a three-way linear regulator, the input of which is connected to the 60V lithium battery module 1, and the output is connected to the inverter circuit module 3, the sampling circuit module 4 and the control circuit module 6, and can output 3.3V, 5V, and 12V voltages to power the chips in each module.
[0032] The control circuit module 6 of the present invention is an STM32F407ZGT6 core board, which contains a timer module, an ADC sampling module and an OLED display screen module. The output of the inverter circuit module 3 is connected to the sampling circuit module 4, and the output of the sampling circuit module 4 is connected to the input interface of the ADC sampling module on the core board; the SPWM control signal output by the core board is connected to the optical coupler of the inverter circuit module 3. The core board performs PID closed-loop control algorithm calculation through the sampled output signal, adjusts the SPWM wave duty cycle, and achieves the effect of stabilizing the output voltage.
[0033] See also Figure 2 , the control circuit module of the present invention works as follows:
[0034] After turning on the air switch between the 60V lithium battery module 1 and the inverter circuit module 3, the inverter circuit module 3 starts to work, and the auxiliary power module 5 starts to supply power to the microcontroller. After power-on, the STM32F407ZGT6 microcontroller of the control circuit module 6 first initializes the clock and timer. Among them, the TIM2 timer is responsible for ADC sampling, and the TIM3 timer is responsible for the generation of SPWM waves.
[0035] At the beginning, the TIM3 timer generates an interrupt at a frequency of 20kHz. At this frequency, the comparison value is set according to the preset sine table data to realize the generation of SPWM wave. At this time, the preset modulation ratio of the SPWM wave is 0.8. The TIM2 timer also generates an interrupt at a frequency of 20kHz. Each interrupt obtains an ADC sampling value. Each sine wave cycle (50Hz) calculates the sampling value within the cycle, converts it into the effective value of the sine wave output signal of the cycle, and passes the value to the PID control function. The PID control algorithm is mainly composed of the proportional term P, the integral term I, and the differential term D. Among them, the proportional term is related to the error at the current moment, the integral term is related to the past process, and the differential term is related to the next moment in the future. Combining the three can effectively correct the error and stabilize the output. The specific formula is as follows:
[0036]
[0037] in is the output signal of the PID control function, is the error at time t, is the proportionality coefficient, is the integral term coefficient, is the coefficient of the differential term.
[0038] The formula converted into discrete domain is:
[0039]
[0040] in is the output signal of the PID control function, is the error at time i, is the error at the last discrete moment, is the proportionality coefficient, is the integral term coefficient, is the coefficient of the differential term.
[0041] The PID structure is defined in the PID control function, which contains , , Three coefficients, current error , the error amount of the previous moment , and an array that can store 10 times the error amount. Whenever the ADC completes the sampling of a sine wave cycle, the PID control function is called in the interrupt function, and the current voltage amplitude after calculation and conversion is passed to the PID control function. The function has no return value, but will change the value of the modulation ratio M according to the formula (this modulation ratio is limited to 0.4-0.95), and when the next SPWM modulation wave is generated, the changed modulation ratio will be called to generate the next cycle of the SPWM wave to achieve the effect of stabilizing the output voltage amplitude.
[0042] The main program runs at a frequency of 10ms and is responsible for the real-time display of the OLED display module. The displayed parameters include the input voltage value and the output voltage amplitude. The input voltage value is the current battery voltage. The ADC is called in the main program for sampling. When the voltage value is lower than 60V, the blue LED on the core board lights up, indicating that the battery power is low.
Claims
1. A household intelligent micro energy management device, characterized in that: The device includes a 60V lithium battery module, a charging circuit module, an inverter circuit module, a sampling circuit module, an auxiliary power supply module and a control circuit module; the charging circuit module inputs 220V AC mains power and outputs 73.5V DC to charge the lithium battery; the power part of the inverter circuit module inputs the DC voltage output by the 60V lithium battery and outputs 220V sine wave AC to power household appliances; the control circuit module is connected to the inverter circuit module to provide a control signal for the inverter circuit module; the auxiliary power supply module is connected to the inverter circuit module, the control circuit module and the sampling circuit module to power the internal chips of each module; wherein: The 60V lithium battery module includes two independent interfaces, input and output. The input interface is connected to the charging circuit module, and the output interface is connected to the inverter circuit module. The two interfaces are respectively connected to an air switch to control the working state of charging or discharging. Charging and discharging cannot be performed at the same time. The charging circuit module includes an input rectifier and filter circuit, an EG1165 chip, a half-bridge circuit, a high-frequency transformer, an output rectifier and filter circuit, a secondary power supply circuit, a 78L12 three-terminal voltage regulator, an EG4320 chip, and a feedback circuit; the input of the input rectifier and filter circuit is 220V AC power, which is rectified and filtered by a rectifier bridge and a filter capacitor to obtain a 310V DC, which is then used to power the EG1165 chip after voltage division; the EG1165 chip outputs a half-bridge PWM control signal to drive two MOS tube switches on the half-bridge circuit, converting the 310V DC into a high-voltage square wave signal, thereby controlling the operation of the high-frequency transformer PQ3235; the auxiliary winding of the high-frequency transformer generates an induced electromotive force, which is rectified and filtered by the two MOS tube switches, and then the 310V DC is converted into a high-voltage square wave signal, thereby controlling the operation of the high-frequency transformer PQ3235; the auxiliary winding of the high-frequency transformer generates an induced electromotive force, which is rectified and filtered by the two MOS tube switches, and the 310V DC is converted into a high-voltage square wave signal, thereby controlling the operation of the high-frequency transformer PQ3235; the auxiliary winding of the high-frequency transformer generates an induced electromotive force, which is rectified and filtered by the two MOS tube switches, and the two MOS tube switches are ... two MOS tube switches are rectified and filtered by the two MOS tube switches, and After the secondary power supply circuit, a stable DC voltage is obtained to continuously power the EG1165 chip; the AC generated by the induced electromotive force of the upper secondary winding of the high-frequency transformer is passed through the output rectifier and filter circuit to obtain a 60V DC as the output; the secondary winding below the high-frequency transformer can generate a 15V voltage, which is passed through the 78L12 three-terminal regulator to obtain a 12V voltage to drive the EG4320 chip to work; the EG4320 chip is responsible for three-stage charging management. After sampling the output through a precision resistor in the feedback circuit, the signal is fed back to the EG1165 chip through the EL817C optocoupler, changing the output PWM wave duty cycle of the EG1165, thereby changing the output voltage, achieving the effect of stabilizing the output voltage and output current; The inverter circuit module includes a drive circuit, a full-bridge inverter circuit, a filter circuit and an industrial frequency transformer; the drive circuit includes a chip IR2104 and an optical coupler TLP250, and the signal output by the control circuit module is transmitted to IR2104 after being isolated by TLP250, generating four PWM control signals to control the switches of four MOS tubes on the full-bridge inverter circuit to generate a high-frequency AC voltage; the filter circuit filters out the high-frequency component of the square wave signal to obtain a 36Vrms 50Hz sine wave output; the industrial frequency transformer converts the 36Vrms low-voltage AC into a 220V, 50Hz AC; The sampling circuit module includes an isolated differential amplifier AMC1200 and an SGM358 operational amplifier; the signal to be sampled is input into the AMC1200 for isolation and amplification after being reduced by resistor voltage division, and then input into the SGM358 to control the output voltage range within 0-3.3V; The auxiliary power module includes three linear regulators, which convert the 15-50V input into three outputs of 3.3V, 5V and 12V to power the internal chips of each module; The control circuit module is an STM32F407ZGT6 core board, which contains a timer module, an ADC sampling module and an OLED display screen module. The output of the inverter circuit module is connected to the sampling circuit module, and the output of the sampling circuit module is connected to the input interface of the ADC sampling module; the SPWM control signal output by the core board is connected to the optocoupler TLP250 of the inverter circuit module; the core board performs PID closed-loop control algorithm calculation through the sampled output signal, adjusts the SPWM wave duty cycle, and achieves the effect of stabilizing the output voltage.
