Photovoltaic module power optimization system and method
By introducing the power optimizer and firefly algorithm into the photovoltaic system, combined with component-level control and bus net power detection, the problem of low efficiency of the photovoltaic system in different environments is solved, and efficient power generation and safety protection are achieved.
Patent Information
- Application Number
- CN202410625254.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-09-03
AI Technical Summary
Traditional photovoltaic systems may not be able to operate at the maximum power point under different environmental conditions, resulting in low power generation efficiency. Distributed photovoltaic power stations are susceptible to factors such as shadowing and aging, resulting in high mismatch losses and safety hazards.
Design a photovoltaic module power optimization system, including power optimizer hardware and system software, using the firefly algorithm for maximum power point tracking, combined with component-level rapid shutdown and bus net power detection methods to achieve component-level control and safety protection.
It improves the photovoltaic power generation efficiency, reduces the risk of accidents, enhances the safety and management efficiency of the system, and achieves rapid component-level response and abnormal module positioning.
Smart Images

Figure CN118589683A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of photovoltaic design, and in particular to a photovoltaic component power optimization system and method. Background Art
[0002] In the past few decades, non-renewable energy has become increasingly scarce, pollution problems caused by traditional energy consumption have become increasingly serious, and fossil fuel reserves have gradually decreased, which can no longer meet the energy needs of human development. With the advancement of science and technology, countries around the world have increasingly attached importance to the research and development and utilization of renewable energy. China has always adhered to the concept of green and sustainable development. In the "14th Five-Year Plan", it proposed to carry out reforms in the construction of new energy, adjust the existing energy system, increase investment in the field of new energy, accelerate the development of new energy industries, gradually replace traditional energy, reduce carbon emissions, and strive to achieve "carbon peak" and "carbon neutrality" in 2030 and 2060 respectively, and realize a sustainable development future.
[0003] At present, the proportion of renewable energy in the overall energy consumption is gradually increasing with the continuous development and progress of science and technology. At the 25th World Energy Congress, it was repeatedly proposed to adopt an energy strategy model with clean energy as the main and traditional energy as the auxiliary, establish a new energy architecture, and improve the earth's environment with sustainable low-carbon development. The utilization of renewable energy continues to grow, and it is expected that the growth will reach 480GW in 2024. The renewable energy system includes centralized photovoltaics, distributed photovoltaics, offshore wind power, onshore wind power, hydropower, biomass energy, etc. Especially under the new policy encouragement of residential and commercial photovoltaics, distributed photovoltaics have a huge advantage, and its proportion in the new energy system continues to grow rapidly.
[0004] Unlike large-scale centralized photovoltaic power stations that build centralized photovoltaic arrays, distributed photovoltaic power stations can be more flexibly distributed according to actual environmental conditions and install photovoltaic power generation systems in different locations, such as residential roofs, community vacant lots, industrial parks, etc. This decentralized layout design can make better use of existing space resources, reducing construction costs and land demand. At the same time, the construction sites of large-scale centralized photovoltaic power stations are often in areas with low electricity consumption such as neighboring deserts, requiring long-distance power transmission to transmit the generated electricity to urban areas with high electricity consumption. Distributed photovoltaic power stations are usually built near residential areas, factories, etc. Therefore, the electricity produced does not need to be transmitted over long distances, but can be connected to the grid nearby or supplied to nearby users. It is also more advantageous in reducing power transmission losses.
[0005] With the popularization of distributed photovoltaic power generation systems, problems with this type of small-scale photovoltaic power stations built on the surface of buildings have also emerged. On the one hand, they are easily affected by complex factors such as intermittent shadows from adjacent buildings and the rapid aging rate of photovoltaic components during operation. The large differences in the operation of photovoltaic components will cause high mismatch losses, resulting in reduced power generation efficiency of photovoltaic power stations. On the other hand, long-term mismatch problems will also cause DC side faults, especially component hot spots, DC short circuits, and even fire accidents. Therefore, photovoltaic power generation systems are paying more and more attention to the safety protection of power stations.
[0006] Research on control technology is often easier to accomplish than research on chemical materials of photovoltaic modules. In photovoltaic power generation systems, external power electronic devices can help realize modular control of photovoltaic modules. First, the maximum power point tracking technology can be used to quickly and accurately track the maximum power point of the nonlinear PU characteristic curve of the photovoltaic module. The accuracy and efficiency of the tracking algorithm determine the output power. Therefore, research and optimization of the power optimization algorithm can effectively improve power generation efficiency. At the same time, the system can obtain the operating information of each photovoltaic module in real time and carry out targeted processing to reduce the risk of accidents and improve safety protection capabilities.
[0007] The power optimization function circuit was originally located at the front end of the inverter, and the power generation of the photovoltaic power generation system was improved by continuously tracking the maximum power point of the DC bus. This method can only adjust the bus voltage and ignores the mismatch loss between photovoltaic modules. Module-level maximum power tracking has been valued by scientific researchers in recent years. The MPPT algorithm dynamically adjusts the working point of the photovoltaic module under different lighting conditions to maximize its output power. This method can ensure that the output power of each photovoltaic module is always maintained at its maximum possible value to achieve the highest energy conversion efficiency. As the requirements for power generation efficiency and safety performance of photovoltaic power generation systems are further improved, R&D personnel have separated the power optimization unit in the inverter and added component operation status monitoring, remote control and other safety protection functions to design a power optimizer.
[0008] At present, the main companies engaged in the production of power optimizers abroad include SolarEdge, KACO, STMicroelectronics, etc. Since 2009, TigoEnergy of the United States has successively launched the TS4 series power optimizers, including TS4-O, TS4-L, TS4-M and TS4-S models, providing options with different power levels and functional characteristics, and applying wireless communication and power carrier communication methods to the products, so that the operating status of each component can be transmitted to the terminal manager, and users can remotely monitor the operating status of the components in real time; SolarEdge has also launched the P-Series series power optimizers since 2010, and achieved global shipments of 1 million units; STMicroelectronics (ST) has designed the SPV1020 chip, which integrates the power optimization control program with the driver chip to realize real-time voltage and current monitoring of photovoltaic modules to ensure that the system achieves maximum power output under different lighting conditions, and uses a 4-phase staggered cascade circuit topology to simplify the external structure design of the application circuit.
[0009] Although China started late in the research of power optimizers, some companies have also launched their own power optimizer products. For example, the KOPower series developed by Supcon Technology Co., Ltd. has initially possessed the function of component-level power optimization. Huawei's FusionSolar intelligent photovoltaic optimizer series products have realized power optimization and operation status monitoring functions.
[0010] The main function of the power optimizer is to perform power optimization and safety protection. In terms of power optimization, by improving the DC conversion circuit, the conversion efficiency is improved, and the maximum power tracking algorithm is improved and innovated to improve the tracking accuracy and speed, and further increase the photovoltaic power generation. At the same time, due to the frequent accidents in photovoltaic power stations, the research on the safety protection role of power optimizers in component status detection, fault location, etc. is also indispensable. This paper takes the distributed photovoltaic system as the application background, models the photovoltaic components and analyzes the differences in the output characteristics of the photovoltaic components. Under the influence of the wooden barrel effect, the output difference between photovoltaic components will cause the DC bus power formed by the photovoltaic string to decrease, that is, the mismatch effect; and due to the increase in photovoltaic power generation capacity, the DC side of the photovoltaic system has also produced more and more safety hazards. Summary of the invention
[0011] In view of the deficiencies in the prior art, the present invention provides a photovoltaic module power optimization system and method, which has the advantages of improving power generation efficiency, etc., and solves the problem that traditional photovoltaic systems may not be able to operate at the maximum power point under different environmental conditions, resulting in low power generation efficiency.
[0012] To achieve the above object, the present invention provides the following technical solutions: a photovoltaic module power optimization system, including power optimizer hardware, host hardware and system software, wherein wireless modules are used to exchange and transmit data among the power optimizer hardware, host hardware and system software;
[0013] Among them, the power optimizer hardware includes a DC conversion unit, a control unit, a drive unit, a communication unit, a power supply unit, and a sampling unit;
[0014] DC conversion unit: adjusts the output operating voltage of the photovoltaic module to reach the maximum power output point;
[0015] Control unit: As the core of the system, it is responsible for collecting voltage and current, calculating adjustment direction, outputting PWM signals to control the drive circuit, and providing a communication serial port;
[0016] Drive unit: converts the logic level signal generated by the microcontroller into a high voltage signal that controls the on and off of the MOSFET;
[0017] Communication unit: realizes data communication between the power optimizer and the host, and exchanges information through the wireless transmission module;
[0018] Power supply unit: provides stable power supply for the system, including 12V and 3.3V power supply;
[0019] Sampling unit: collects the working voltage, working current and working temperature of the photovoltaic power generation module;
[0020] The host hardware consists of a power supply unit, a display interaction unit, an Internet of Things unit, and a control unit;
[0021] Among them, the power supply unit is used to convert the mains power into a voltage suitable for the host and perform EMI filtering;
[0022] Display interaction unit: provides a user interface that allows users to view system status and perform control operations in real time;
[0023] Internet of Things Unit: Upload power station data to the cloud platform through the NB-IoT module to achieve remote monitoring and control;
[0024] Control unit: responsible for collecting and processing the operating data from the power optimizer;
[0025] The system software includes a power optimization program, a safety protection program, a system communication design and a cloud platform;
[0026] Among them, the power optimization program: uses intelligent optimization algorithms such as the firefly algorithm to dynamically track the maximum power point of photovoltaic modules and improve power generation efficiency;
[0027] Safety protection procedures: including component-level rapid shutdown and abnormality location to ensure safe operation of the system;
[0028] System communication design: Use Modbus and other communication protocols to ensure stable and reliable data transmission between the host and the power optimizer;
[0029] Cloud platform: Receives data from IoT units and provides data storage, analysis, and remote control functions.
[0030] Furthermore, in the DC converter of the DC conversion unit, the switch tube Q1 is always turned on in the boost mode, Q2 is kept off, the PWM of Q3 and Q4 are waveforms with opposite phases, the duty cycle of Q3 is D, and the duty cycle of Q4 is 1-D. When Q3 is turned on and Q4 is turned off, the input end is charged with power inductance, and when Q3 is turned off and Q4 is turned on, the input end and the power inductance are accumulated to supply power to the output end. According to the volt-second balance law, the relationship between the output voltage Vo and the input voltage Vpv is shown as follows:
[0031]
[0032] In the buck mode, the switch tube Q4 is always turned on, Q3 is turned off, the PWM of Q1 and Q2 is an inverted waveform, the duty cycle of Q1 is D, and the duty cycle of Q2 is 1-D. When Q1 is turned on and Q2 is turned off, the electric energy input at the input end can charge the power inductor and also supply energy to the output end. When Q1 is turned off and Q2 is turned on, the power inductor releases its own stored energy to supply power to the output end. According to the volt-second balance law, the relationship between the output voltage Vo and the input voltage Vpv is shown as follows:
[0033] V o =V pv D,
[0034] In the direct-through mode, the four switch tubes maintain a constant switch state, and no switch switching is performed. The output voltage is equal to the input voltage. The input end directly functions as the output end through the energy storage inductor. In this mode, the circuit no longer switches between the on and off states of the switch tube. The switching loss of the circuit is minimal and the conversion efficiency is maximized. According to the volt-second balance law, the relationship between the output voltage Vo and the input voltage Vpv is shown in the following formula:
[0035] V o =V pv .
[0036] Furthermore, the control unit uses an ARM core main control chip to control other functional units and collect voltage signals at the same time, which can provide complementary PWM signal output, provide complementary PWM control signals for the drive circuit, and use the internal UART mounted on the wireless communication module to upload the operating status in real time.
[0037] Furthermore, the driving voltage of the driving unit is 12V, the logic voltage is 3.3V, the maximum system voltage can reach 100V, the output driving current Ip is as high as 3A, the GS inter-electrode reverse charge Qrr is 120nC, the switching frequency fs is selected as 100kHz, and the driving current needs to complete the charging and discharging of the switch tube FB4410Z in a time much smaller than the switching cycle. The charge reversal period of the switching signal is one percent of the switching cycle, as shown in the following formula:
[0038] T rr =1 / 100f s ,
[0039] Then the accumulated charge of the driving current during the reversal period satisfies:
[0040] I p T rr >Q rr .
[0041] Furthermore, the sampling unit includes temperature sampling, voltage sampling and current sampling, as follows:
[0042] Temperature sampling: The working temperature is collected to effectively protect the power optimizer and prevent the internal power circuit of the power optimizer from continuing to work and being damaged when the temperature is abnormal. The temperature sampling design is to connect a 10kΩ fixed resistor and a 10kΩ (25℃) thermistor in series, and a filter capacitor in parallel. The voltage at both ends of the thermistor is sampled and connected to the ADC sampling port of the MCU to obtain the actual working temperature and the sampled voltage value VT. After the resistor voltage division calculation, the changed resistance value of the NTC resistor is obtained. According to the temperature resistance reference table provided by the manufacturer, the actual temperature can be obtained after looking up the table:
[0043]
[0044] Voltage sampling: The input voltage is divided proportionally by resistors R31, R32, and R33. The divided voltage signal is connected to the input of the LM358 operational amplifier, amplified proportionally, and connected to the ADC sampling port to separate the ADC pin of the MCU chip from the signal to be measured. The sampling signal is filtered while protecting the control chip. The input and output voltage range of the power optimizer is designed to be 20-60V. After the resistor voltage divider, the maximum voltage input to the operational amplifier does not exceed 1.3V. The proportional relationship between the ADC sampling signal Vins and the actual voltage value Vinp is:
[0045]
[0046] Current sampling: Using the series resistance sampling method, the relationship between the actual current value Ipv and the sampled output voltage Vs at BIN satisfies:
[0047]
[0048] The actual current value can be obtained by transformation:
[0049]
[0050] Furthermore, since the working environment of the host is mainly next to a photovoltaic power station, the host power supply is generally obtained from the mains. The power supply unit in the host hardware uses an AC-DC transformer module with cold and hot ground isolation. This module can convert 220V mains into 5V DC. Due to the connection to the mains, surge current, pulse high voltage, and electric shock may occur. It is necessary to first perform EMI filtering on the mains, as follows:
[0051] The live wire input terminal is connected to fuse f1 to provide overload protection, the neutral wire terminal is connected to NTC thermistor to prevent excessive surge current during startup, the common mode inductor T1 filters out the common mode interference between the live and neutral wires, the Y capacitors CY1 and CY2 perform differential mode filtering, and the varistor RV2 and X capacitor CX prevent pulse high voltage.
[0052] Furthermore, the power optimization program is used for power optimization and safety protection response of photovoltaic modules. The power optimization program mainly includes: voltage and current data acquisition, maximum power tracking algorithm, PID control of output voltage, PWM output of drive signal, and the safety protection response program mainly includes the response action of the component-level fast shutdown command sent by the host in an emergency and the positioning of the abnormal power generation module in the photovoltaic string;
[0053] The safety protection program consists of two parts: first, after receiving the fast shutdown command, the power optimizer's response action design, and the power optimizer cooperates with the host to locate the photovoltaic components with abnormal power generation.
[0054] Component-level fast shutdown program design: When the power optimizer receives the fast shutdown command, it first turns off the advanced timer. At this time, due to the energy storage elements in the circuit, the output voltage will not drop to 0V immediately. It is necessary to discharge the circuit internally and continuously detect the output voltage until the output voltage drops to the discharge threshold voltage. Then, the internal shutdown flag register is set. The host learns through system communication that the photovoltaic component is disconnected from the power generation bus. When all power optimizers are disconnected from the power generation bus one after another, the component-level fast shutdown of the distributed photovoltaic power generation system is completed.
[0055] Abnormal positioning program design: In the DC power generation bus, in order to obtain the position of abnormal photovoltaic components that have a negative impact on the system's power generation, each power generation module is detected one by one, that is, the host disconnects the power generation modules in the system through the communication bus, and at the same time measures the change in bus power before and after the power generation module is disconnected to obtain the working status of the power generation module. This cycle is repeated to obtain the actual power generation gain of each module to the system, and the status of each module is divided;
[0056] System communication design: In a distributed photovoltaic system, a host receives the operating information of multiple power optimizers. In order to maintain the smoothness of system communication, a bus communication protocol is required to standardize the communication behavior of each slave, and the Modbus bus protocol is used to design the system communication.
[0057] The present application further proposes an operation method of a photovoltaic module power optimization system, including the photovoltaic module power optimization system, comprising the following steps:
[0058] S1 system initialization: Start the system and perform hardware and software initialization settings, including setting the system stack space, data format, and thread priority;
[0059] S2 data sampling: collects voltage, current, temperature and other data through ADC channel and DMA unit, and transmits the sampled data to the maximum power tracking program module;
[0060] S3 Maximum Power Point Tracking (MPPT): Uses MPPT algorithms such as the Firefly algorithm to calculate the maximum power point (MPP) of the PV module and dynamically adjusts the operating point to track the maximum power output;
[0061] S4 PID control: According to the target output voltage value obtained by the MPPT algorithm, the PID control program is used to adjust the duty cycle of the PWM signal and control the output of the cascaded Buck-Boost circuit to achieve the desired voltage point;
[0062] S5 PWM signal generation: Use the advanced timer of STM32 to set the PWM mode, generate PWM signals, adjust the system output voltage, and achieve precise control of the output voltage of photovoltaic modules;
[0063] S6 Safety Protection: Design safety protection procedures, including component-level rapid shutdown and abnormal module positioning, to respond to emergencies and improve system safety;
[0064] S7 communication: data transmission and command response between the host and the power optimizer are realized through communication protocols such as Modbus;
[0065] S8 display interaction: The system status is displayed in real time on the display interaction unit of the host, including device number, input and output voltage, power value, etc., and allows users to operate through the interface;
[0066] S9 IoT data upload: upload the collected data to the cloud platform, such as OneNET cloud platform, through the IoT module to achieve remote monitoring and control;
[0067] S10 task scheduling: Use real-time operating systems such as FreeRTOS for task scheduling to ensure that high-priority tasks can be responded to in a timely manner;
[0068] S11 Abnormality handling: During system operation, abnormal conditions are monitored and handled, such as locating abnormal power generation modules through bus net power detection method;
[0069] S12 system test: Conduct system performance tests, including simulation experiments and field experiments, to verify the optimization capability and safety protection performance of the power optimizer;
[0070] S13 Data Analysis: Analyze test data and evaluate system performance, including power generation efficiency improvement and safety protection response time;
[0071] S14 System Maintenance: Based on the test results and data analysis, perform necessary maintenance and optimization on the system to improve system stability and reliability.
[0072] Furthermore, the firefly algorithm is as follows: specifically applied in maximum power tracking, the position of the firefly is within the output voltage range of the photovoltaic module, and the brightness of each firefly Ii is proportional to the power generation Pi (V) of the power generation module at the output voltage value:
[0073] I i ∞P i (V),
[0074] In the movement of fireflies, fireflies with low brightness will move towards fireflies with high brightness. If firefly j is the brightest firefly, then firefly i will move to position
[0075]
[0076] is the current position of firefly i, α is the step factor with a value range of [0, 1], rand is a random number with a value range of [0, 1], β(r ij ) is the attraction of high brightness firefly j to firefly i:
[0077] β(r ij )=β0exp(-γr ij2 ),
[0078] Where β0 is the maximum attraction defined, γ is the attraction coefficient, r ij is the relative distance between firefly i and firefly j:
[0079] r ij =||X j -X i ||.
[0080] Furthermore, when the firefly algorithm is actually applied in the maximum power tracking of the power optimizer, taking the population size as N as an example, each time the brightness of the firefly population is updated, N exponential operations are required to calculate the attraction between fireflies. Due to the limited computing power of the controller, this period of time is very long. If the power generation changes of photovoltaic modules are to be tracked quickly and accurately in time, the original firefly algorithm must be improved to calculate the attraction β(r ij ) is updated to improve the calculation and change it to a quadratic function as shown in the following formula, where R is the length of the one-dimensional function optimization interval, making it easier to implement in a microcontroller:
[0081]
[0082] In order to compare the performance of the firefly algorithm and the traditional power optimization algorithm in maximum power tracking, a comparative experiment was built in the matlab environment. Taking the variable step-size observation perturbation method in the traditional power optimization algorithm as an example, the firefly algorithm and the perturbation observation method were compared in the optimization of the maximum value of one-dimensional function. The variable step-size observation perturbation method and the firefly algorithm were used to calculate the multi-peak power characteristic curve f(x).
[0083] f(x)=10sin(x)+20sin(2x)+30sin(3x)+40sin(5x),
[0084] The perturbation and observation method can only perturb 200 times. The firefly algorithm sets the population size to 10 and the maximum number of iterations to 20, so that both algorithms can only obtain the objective function values corresponding to 200 optimal positions. The cross-boundary processing is the crossing mode as follows, where up is the optimal upper bound and down is the optimal lower bound:
[0085]
[0086] Compared with the prior art, the technical solution of this application has the following beneficial effects:
[0087] The photovoltaic component power optimization system and method are based on the application background of distributed photovoltaic systems. On the one hand, the principle of mismatch loss of photovoltaic strings under the influence of the barrel effect is analyzed, and the use of power optimizers for component and power optimization is proposed. On the basis of the traditional maximum power tracking algorithm, the application of the firefly algorithm in power optimization is proposed. This method has a more effective optimization trajectory in multi-peak optimization, which improves the power generation capacity of the photovoltaic system. On the other hand, the use of component-level power electronics technology provides a way for modular control of photovoltaic systems and "components and rapid shutdown". When a safety accident occurs, the DC bus of up to 1,000 volts can be reduced to a safe range. At the same time, through the control of the system on the power generation module, the bus net power detection method is used to locate the abnormal power generation module, and the operating status of the module is judged according to the actual gain of each power generation module on the power generation, thereby improving the management efficiency and safety protection capability of the photovoltaic power generation system.
[0088] The photovoltaic module power optimization system and method have completed the hardware structure design and software control program design of the power optimizer, and designed an experimental prototype, including the hardware design of various hardware modules: DC conversion circuit, power supply circuit, sampling circuit, drive circuit, control circuit, communication circuit, Internet of Things circuit, and display interaction circuit, including various software module programs: the design of the power optimization program and safety protection program of the power optimizer. The system communication program design uses the Modbus communication protocol as the communication specification between the power optimizer and the host to perform data transmission and command response. A simulated photovoltaic module experimental environment and a field photovoltaic module experimental environment are built, and comprehensive functional debugging of power optimization and safety protection is performed. The results show that on the basis of normal system operation, the power optimizer designed in this paper has a small deviation from the ideal value in power optimization and has high accuracy. In the event of a safety accident, the component-level rapid shutdown command of the photovoltaic power generation system is received, and the component-level shutdown is quickly realized to reduce the bus voltage. The abnormal module can be located through host control to improve the stability of the photovoltaic power generation system.
[0089] The photovoltaic module power optimization system and method, through the maximum power point tracking (MPPT) technology, the system can dynamically adjust the working state of the photovoltaic module to achieve maximum power output, thereby improving the overall power generation efficiency. The firefly algorithm is used for maximum power tracking. The algorithm shows a more effective optimization trajectory in multi-peak optimization, which helps to improve the power generation capacity of the photovoltaic system. The power optimizer and the photovoltaic module form a minimum power generation module, which is convenient for system expansion and maintenance. The system has a component-level fast shutdown capability. When a safety accident occurs, the DC bus voltage can be quickly reduced to a safe range, thereby enhancing the safety of the system. Through the bus net power detection method, the system can locate the abnormal power generation module, which helps to quickly identify and solve problems in the system. The Internet of Things technology is integrated, and data upload and remote monitoring are performed through the cloud platform to improve The intelligence level and manageability of the system are improved. The system hardware design takes into account factors such as circuit parameter calculation, chip selection, and peripheral circuit design. The software design includes communication protocols, control algorithms, user interaction interfaces, etc., realizing the organic combination of software and hardware. The system can monitor the operating status of photovoltaic modules in real time, and perform real-time control and response through the human-computer interaction interface. It adopts general communication protocols such as Modbus, making the system easy to expand and compatible with a variety of photovoltaic modules and power optimizers. By improving power generation efficiency and reducing maintenance costs, the system has good economic benefits in the long run. The system design takes into account different working environments, such as temperature changes, electromagnetic interference, etc., so that the system can work stably under harsh industrial environment conditions. Through simulation experiments and field experiments, the design and performance of the system have been fully tested and verified. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] Figure 1 It is a schematic diagram of the hardware system structure of the present invention;
[0091] Figure 2 This is a schematic diagram of the system software design structure of the present invention;
[0092] Figure 3 This is a schematic diagram of the optimal trajectory structure of the perturbation observation method of the present invention;
[0093] Figure 4 This is a schematic diagram of the firefly algorithm optimization trajectory structure of the present invention;
[0094] Figure 5 This is a schematic diagram of the component-level rapid shutdown control structure of the present invention;
[0095] Figure 6 This is a schematic diagram of the comparative structure of photovoltaic modules of the present invention;
[0096] Figure 7 A schematic diagram of a structure for obtaining power generation status of a photovoltaic module of the present invention;
[0097] Figure 8 It is a schematic diagram of the topological structure of the DC conversion circuit of the present invention;
[0098] Fig. 9 This is a schematic diagram of the design structure of the filter circuit of the present invention;
[0099] Fig.10 This is a schematic diagram of the circuit design structure of the control unit of the present invention;
[0100] Fig.11 This is a schematic diagram of the peripheral circuit structure of the driver chip of the present invention;
[0101] Fig.12 It is a schematic diagram of the structure of the driving circuit of the present invention;
[0102] Fig.13 It is a schematic diagram of the structure of the current detection circuit of the present invention;
[0103] Fig.14 It is a schematic diagram of the structure of the wireless communication circuit of the present invention;
[0104] Fig.15 This is a schematic diagram of the 12V power supply design structure of the present invention;
[0105] Fig.16 This is a schematic diagram of the 3.3V power supply design structure of the present invention;
[0106] Fig.17 This is a schematic diagram of the AC-5VDC circuit structure of the present invention;
[0107] Fig.18 This is a schematic diagram of the LDO circuit structure of the present invention;
[0108] Fig.19 This is a schematic diagram of the serial port screen circuit structure of the present invention;
[0109] Fig. 20 This is a schematic diagram of the NB-IoT circuit structure of the present invention;
[0110] Fig.21 It is the Modbus communication flow chart of the present invention;
[0111] Fig. 22 This is a power optimization flow chart of the present invention;
[0112] Fig.23 This is the data sampling process of the present invention;
[0113] Fig.24 This is a flow chart of the firefly algorithm of the present invention;
[0114] Fig.25 It is the PID control block diagram of the component of the present invention;
[0115] Fig.26This is a component-level rapid shutdown flow chart of the present invention;
[0116] Fig. 27 This is a flowchart of abnormal location of the present invention;
[0117] Fig.28 This is the freertos system flow chart of the present invention;
[0118] Fig.29 This is a task flow chart of the Internet of Things of the present invention;
[0119] Fig.30 This is the 12V power supply waveform diagram of the present invention;
[0120] Fig.31 This is the 3.3V power supply waveform diagram of the present invention;
[0121] Fig.32 HO and LO driving waveform diagram of the present invention;
[0122] Fig.33 Output waveform diagram for the present invention;
[0123] Fig.34 This is a design diagram of the simulated photovoltaic module experiment of the present invention;
[0124] Fig.35 The power optimization experiment data diagram of the present invention;
[0125] Fig.36 This is a waveform diagram of the output voltage when the present invention is quickly shut down. DETAILED DESCRIPTION
[0126] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0127] See also Figure 1-36 , a photovoltaic module power optimization system in this embodiment includes power optimizer hardware, host hardware and system software, and wireless modules are used to exchange and transmit data between the power optimizer hardware, host hardware and system software;
[0128] Among them, the power optimizer hardware includes a DC conversion unit, a control unit, a drive unit, a communication unit, a power supply unit, and a sampling unit;
[0129] DC conversion unit: adjusts the output operating voltage of the photovoltaic module to reach the maximum power output point;
[0130] Control unit: As the core of the system, it is responsible for collecting voltage and current, calculating adjustment direction, outputting PWM signals to control the drive circuit, and providing a communication serial port;
[0131] Drive unit: converts the logic level signal generated by the microcontroller into a high voltage signal that controls the on and off of the MOSFET;
[0132] Communication unit: realizes data communication between the power optimizer and the host, and exchanges information through the wireless transmission module;
[0133] Power supply unit: provides stable power supply for the system, including 12V and 3.3V power supply;
[0134] Sampling unit: collects the working voltage, working current and working temperature of the photovoltaic power generation module;
[0135] The host hardware consists of a power supply unit, a display interaction unit, an Internet of Things unit, and a control unit;
[0136] Among them, the power supply unit is used to convert the mains power into a voltage suitable for the host and perform EMI filtering;
[0137] Display interaction unit: provides a user interface that allows users to view system status and perform control operations in real time;
[0138] Internet of Things Unit: Upload power station data to the cloud platform through the NB-IoT module to achieve remote monitoring and control;
[0139] Control unit: responsible for collecting and processing the operating data from the power optimizer;
[0140] System software includes power optimization program, safety protection program, system communication design and cloud platform;
[0141] Among them, the power optimization program: uses intelligent optimization algorithms such as the firefly algorithm to dynamically track the maximum power point of photovoltaic modules and improve power generation efficiency;
[0142] Safety protection procedures: including component-level rapid shutdown and abnormality location to ensure safe operation of the system;
[0143] System communication design: Use Modbus and other communication protocols to ensure stable and reliable data transmission between the host and the power optimizer;
[0144] Cloud platform: Receives data from IoT units and provides data storage, analysis, and remote control functions.
[0145] Among them, in the DC converter in the DC conversion unit, the switch tube Q1 is always turned on in the boost mode, Q2 is kept off, the PWM of Q3 and Q4 are waveforms with opposite phases, the duty cycle of Q3 is D, and the duty cycle of Q4 is 1-D. When Q3 is turned on and Q4 is turned off, the input end is charged with power inductance. When Q3 is turned off and Q4 is turned on, the input end and the power inductance are accumulated to supply power to the output end. According to the volt-second balance law, the relationship between the output voltage Vo and the input voltage Vpv is shown as follows:
[0146]
[0147] In the buck mode, the switch tube Q4 is always turned on, Q3 is turned off, the PWM of Q1 and Q2 is an inverse waveform, the duty cycle of Q1 is D, and the duty cycle of Q2 is 1-D. When Q1 is turned on and Q2 is turned off, the electric energy input at the input end can charge the power inductor and also supply energy to the output end. When Q1 is turned off and Q2 is turned on, the power inductor releases its own stored energy to supply power to the output end. According to the volt-second balance law, the relationship between the output voltage Vo and the input voltage Vpv is shown in the following formula:
[0148] V o =V pv D,
[0149] In the direct-through mode, the four switch tubes maintain a constant switch state, and no switch switching is performed. The output voltage is equal to the input voltage. The input end directly functions as the output end through the energy storage inductor. In this mode, the circuit no longer switches between the on and off states of the switch tube. The switching loss of the circuit is minimal and the conversion efficiency is maximized. According to the volt-second balance law, the relationship between the output voltage Vo and the input voltage Vpv is shown in the following formula:
[0150] V o =V pv .
[0151] It should be noted that the DC conversion circuit is the core hardware component of the power optimizer. Taking into account factors such as cost and efficiency, the DC conversion circuit in the power optimizer generally selects a non-isolated topology circuit, such as using the Buck, Boost and Buck-Boost circuits corresponding to the DC conversion circuit topology diagram to perform DC voltage conversion. Among them, the Boost circuit mainly moves the operating point by boosting the voltage, which is suitable for situations where there are fewer photovoltaic modules in the photovoltaic string. The Buck circuit moves the operating point voltage by reducing the voltage, which is usually suitable for situations where there are more photovoltaic modules in the photovoltaic string. Although the traditional Buck-Boost circuit can change the operating point in both directions and has a wider operating range, its output voltage and input voltage have opposite polarities, which increases the complexity of control and safety.
[0152] Since the output voltage of photovoltaic modules fluctuates greatly, the power optimizer needs to have a wider input voltage range. At the same time, the stability of the optimizer's internal system requires the optimizer to have a minimum input voltage threshold and a maximum input voltage threshold, and has certain requirements for the output voltage and load current. The specific design parameters are shown in the following table:
[0153] DC converter circuit design parameters
[0154]
[0155] Considering that the circuit works in CCM mode, according to the design parameters in the above table, the parameters of the MOS tube, input capacitor, output capacitor, and power inductor in the power circuit are calculated and the device selection is performed. Because this power circuit has a boost mode and a buck mode, it is necessary to calculate the parameters of the equivalent circuits in the two modes respectively, and select compatible device parameters:
[0156] For the MOS switch tube, its withstand voltage value needs to meet both the boost mode and the buck mode. At the same time, the current carrying capacity of the MOS switch tube must also meet the requirements. Therefore, the MOS switch tube selects the FB4410Z model.
[0157] (1) In buck mode, the inductance value L satisfies the following condition, where r is the inductor ripple rate.
[0158]
[0159] Output capacitance value C o for:
[0160] (2) In boost mode, the inductance value L satisfies the following conditions:
[0161]
[0162] Output capacitance value C o for:
[0163] Finally, considering that the input voltage range and output voltage range of the cascade Buck-Boost circuit are the same, the duality of the input capacitor and the output capacitor in the boost mode and the buck mode, the input capacitor and the output capacitor should have similar values. Therefore, this article uses an input capacitor value of 28uF, an output capacitor value of 28uF, and an inductor value of 15uF. Due to the working environment requirements of the power optimizer, the capacitor selection should give priority to the service life. Finally, 14 2.2uF ceramic capacitors are selected in parallel. At the same time, in order to obtain a lower ripple rate, a CLC filter circuit is used as shown in the attached figure. In addition, in order to prevent lightning strikes, a varistor RV1 is specially installed to provide a discharge path for the lightning high voltage as shown in the attached figure. C4 is 14 2.2uF ceramic capacitors in parallel.
[0164] Among them, the control unit adopts the ARM core main control chip to control other functional units, and at the same time collects the voltage signal, can provide complementary PWM signal output, provide complementary PWM control signals for the drive circuit, and use the internal UART mounted on the wireless communication module to upload the operating status in real time.
[0165] It should be noted that when selecting the chip, by considering many factors such as system basic requirements and product cost performance, an ARM core main control chip is used to control other functional units. This single-chip microcomputer has an internal ADC detection channel to collect voltage signals. At the same time, this single-chip microcomputer has an advanced timer that can provide complementary PWM signal output, provide complementary PWM control signals for the drive circuit, and use the internal UART mounted on the wireless communication module to upload the operating status in real time, which greatly saves design costs, power supply filtering, and the control unit circuit is shown in the control unit circuit design diagram, including power supply filtering circuit, BOOT mode selection, 8 MHz external passive crystal oscillator, LED indicator light, reset circuit and other function control pins.
[0166] The main functional pins are shown in Table 3 below, including: SWD burning interface, the internal resources used include: 5-way current, voltage and temperature sampling, 4-way PWM circuit, communication serial port, temperature sampling interface and other interfaces.
[0167] Resource Allocation Table
[0168]
[0169] Among them, the driving voltage of the drive unit is 12V, the logic voltage is 3.3V, the maximum system voltage can reach 100V, the output driving current Ip is as high as 3A, the GS inter-electrode reverse charge Qrr is 120nC, the switching frequency fs is selected as 100kHz, and the driving current needs to complete the charging and discharging of the switch tube FB4410Z in a time much smaller than the switching cycle. The charge reversal period of the switching signal is one percent of the switching cycle, as shown in the following formula:
[0170] T rr =1 / 100f s ,
[0171] Then the accumulated charge of the driving current during the reversal period satisfies:
[0172] I p T rr >Q rr .
[0173] It should be noted that the driving capability of the PWM drive signal generated by the microcontroller is far from being able to directly control the conduction and cutoff of the MOS tube in the power circuit, so a drive circuit is needed to amplify the pulse signal generated by the microcontroller. At the same time, the drive unit between the microcontroller and the power circuit also plays a role in isolating and protecting the microcontroller.
[0174] The cascaded Buck-Boost topology circuit used in this article requires 4 drive signals for control. The driving capability of the selected driver chip must match the FB4410Z switch tube used in the cascaded Buck-Boost topology circuit designed above. Based on the above requirements, this design uses TI's SM72295 full-bridge driver chip, which contains 2 half-bridge drive circuits and integrates a current differential sensor amplifier, reducing the circuit design cost. The drive voltage is 12V, the logic voltage is 3.3V, the maximum system voltage can reach 100V, and the output drive current Ip is as high as 3A.
[0175] The peripheral circuit diagram of the driver chip is the peripheral circuit design of the driver chip SM72295. Pins LIA, HIA, LIB, and HIB are four PWM signals input to the chip, which are connected to the logic level PWM input of the microcontroller. Pins LOA, HOA, LOB, and HOB are drive signals for controlling the MOS switch tube with an output of up to 12V. C16 and C23 are bootstrap capacitors of the two half-bridges. The voltage across the capacitor cannot change suddenly, so that the voltage between the GS of the upper arm switch tube of the bridge meets the turn-on voltage of the MOS switch tube.
[0176] The driving signal output by the driver chip enters the four switch tubes G through the driving circuit of the driving circuit diagram. The 5Ω resistor is mainly used as a charging current path to charge the capacitance between GS, so that the MOS switch tube meets the conduction condition, and at the same time reduces the parasitic inductance and parasitic capacitance during PCB wiring. The impact of the oscillation on the driving waveform caused by the parasitic inductance and parasitic capacitance during PCB wiring. When the driving hardware circuit was initially designed, the parasitic phenomenon during PCB wiring was ignored, resulting in ringing in the driving waveform and severe heating of the MOS switch tube. Finally, the ringing phenomenon was eliminated by widening the switch driving wiring of the driver chip; because the voltage across the capacitor cannot change suddenly, when the PWM wave changes from high to low, the charge between the GS poles needs a discharge path, and the diode is used as the discharge path of the parasitic capacitance of the G pole. The 10k resistor is connected in parallel between the GS poles to prevent the G pole from being suspended, and it can also be used as a discharge path for the parasitic capacitance between the GS poles.
[0177] Among them, the sampling unit includes temperature sampling, voltage sampling and current sampling, as follows:
[0178] Temperature sampling: The working temperature is collected to effectively protect the power optimizer and prevent the internal power circuit of the power optimizer from continuing to work and causing damage when the temperature is abnormal. The temperature sampling design is a 10kΩ fixed resistor and a 10kΩ (25℃) thermistor in series, a filter capacitor in parallel, and a voltage sampling pressure is performed on both ends of the thermistor. It is connected to the ADC sampling port of the MCU to obtain the actual working temperature and the sampling voltage value VT. After the resistor voltage division calculation, the resistance value of the NTC resistor is obtained after the change. According to the temperature resistance reference table provided by the manufacturer, the actual temperature can be obtained after looking up the table:
[0179]
[0180] Voltage sampling: The input voltage is divided proportionally by resistors R31, R32, and R33. The divided voltage signal is connected to the input of the LM358 operational amplifier, amplified proportionally, and connected to the ADC sampling port to separate the ADC pin of the MCU chip from the signal to be measured. The sampling signal is filtered while protecting the control chip. The input and output voltage range of the power optimizer is designed to be 20-60V. After the resistor voltage divider, the maximum voltage input to the operational amplifier does not exceed 1.3V. The proportional relationship between the ADC sampling signal Vins and the actual voltage value Vinp is:
[0181]
[0182] Current sampling: Using the series resistance sampling method, the relationship between the actual current value Ipv and the sampled output voltage Vs at BIN satisfies:
[0183]
[0184] The actual current value can be obtained by transformation:
[0185]
[0186] It should be noted that the existing current detection methods mainly include mutual inductor detection, Hall sensor detection, and series resistance detection. Mutual inductor detection uses a current transformer to convert the current to be measured through the secondary coil of the mutual inductor into a voltage signal proportional to the current. The mutual inductor is large in size and not suitable for packaging; Hall sensor detection uses the Hall effect. When the current passes through the conductor, the magnetic field perpendicular to the conductor and the current direction will cause a voltage difference on both sides of the conductor to convert the current to be measured into a voltage signal proportional to the current. Although the Hall sensor detection is more precise, the cost is relatively high; series resistance detection uses a small resistance to convert the current to be measured into a voltage signal in the form of a series voltage divider, and then measures the voltage signal. After considering the cost and performance, the series resistance sampling method is finally adopted; the current of the power optimizer designed in this paper is large, so the series resistance value should be selected to be small to reduce circuit loss, establish an external current sampling circuit, and use the current detection unit inside the SM72295 driver chip selected in the previous section to convert the current value into an electrical signal that can be read by the ADC channel of the microcontroller.
[0187] It should be noted that the power optimizer needs to monitor the working status of each photovoltaic array and power optimizer at a long distance, which puts higher requirements on the communication system and data transmission. Considering factors such as communication distance and conditions, the design of the wireless communication circuit should try to meet the requirements of low power consumption, low cost and miniaturization.
[0188] E34-2G4H20D is a wireless module based on nRF24101+, working in the 2.4~2.518GHZ frequency band, with a transmit power of 100mW, half-duplex, TTL level output, and compatible with 3.3V and 5V IO port voltages. It uses the serial port for data transmission and reception, which lowers the threshold of wireless applications. E34-2G4H20D has automatic frequency hopping function, strong anti-interference ability, high transmission rate and small delay. Automatic frequency hopping technology is to ensure the confidentiality and anti-interference of communication. Compared with fixed-frequency communication, frequency hopping communication is more concealed and difficult to be intercepted. Frequency hopping communication also has good anti-interference ability. Even if some frequencies are interfered with, normal communication can still be carried out on other frequencies that are not interfered with.
[0189] As shown in the wireless communication circuit diagram, the serial port of the control chip STM32F103C8T6 is connected to the TX and RX of the E34-2G4H20D module. The M0 and M1 pins select the working mode. This design selects mode 0. The two pins are connected to 10kΩ pull-down resistors R40 and R41. In this mode, the system uses AUX for wireless transceiver buffer indication and self-test indication. When the AUX pin is low, data is input to the module. After the data is written to the module, the AUX pin becomes high and the module starts serial port data output.
[0190] Among them, since the working environment of the host is mainly next to the photovoltaic power station, the host power supply is generally obtained from the mains. The power supply unit in the host hardware uses an AC-DC transformer module with cold and hot ground isolation. This module can convert 220V mains into 5V DC. Due to the connection to the mains, surge current, pulse high voltage, and electric shock may occur. The mains needs to be EMI filtered first, as follows:
[0191] The live wire input terminal is connected to fuse f1 to provide overload protection, the neutral wire terminal is connected to NTC thermistor to prevent excessive surge current during startup, the common mode inductor T1 filters out the common mode interference between the live and neutral wires, the Y capacitors CY1 and CY2 perform differential mode filtering, and the varistor RV2 and X capacitor CX prevent pulse high voltage.
[0192] It should be noted that the power supply unit inside the power optimizer provides the system with two levels of power supply, 12V and 3.3V. The 12V level mainly supplies energy to the circuits related to the MOS tube drive unit, and the 3.3V level provides power to the sampling unit, control unit and wireless transmission unit. While the power is output, interference phenomena such as surge, jitter and noise may occur. Due to the stability requirements of the power supply, the two power supply units need to be designed separately. The input voltage fluctuation range of the power optimizer is large, and it is difficult for general power conversion chips to work stably. After comparing the power conversion chips of multiple manufacturers, the MP9486 wide input range buck chip produced by MPS was finally selected. The external circuit adopts the Buck structure. The high-power MOS switch tube is integrated inside the chip. The SW pin is connected to the external power inductor L4. The freewheeling diode uses the Schottky diode SS210 with relatively fast switch flipping to provide a freewheeling circuit for the inductor. C 46 The bootstrap capacitor provides the turn-on voltage for the internal switch of the power chip. 48 and electrolytic capacitor EC1 to filter the power supply output ripple. FB is the chip feedback pin. The output voltage is 27 , R 28 , R 30 The series voltage divider forms a feedback loop to maintain the FB voltage at 200mV, R 29 and C 47 The RC filter is formed to make the feedback voltage more stable and the output voltage is stabilized at 12V.
[0193]
[0194] The 3.3V power supply chip uses the 3.3V constant voltage version of the LM2576 chip. As shown in the attached figure, the chip integrates the voltage divider resistor of the feedback end. It only needs to connect the output end and the feedback end in series, which reduces the design of the external feedback circuit. Since the 3.3V power supply needs to provide a digital logic reference level for the microcontroller, it is necessary to reasonably design C2 and C 59capacitance and use wider wiring or copper plating to reduce the fluctuation of output voltage and ensure the stability of sampling value.
[0195] It should be noted that the display interaction unit uses the TJC8048X370_011C TFT capacitive touch screen. The screen provides corresponding UI design software, which simplifies the tedious interface design of the microcontroller. At the same time, the serial port is used to communicate with the microcontroller, and the control logic is convenient and fast. The microcontroller updates the display data by sending corresponding instructions and key-value pairs. When the user changes the control amount through the touch screen, the corresponding UI control is updated, and the microcontroller will also receive the corresponding key-value pairs. In modern industrial applications, commonly used Internet of Things solutions include LTE, GPRS, NB-IoT, and this design selects Narrow Band Internet of Things (Narrow Band Internet of Things) to achieve remote monitoring and online control of photovoltaic components. Things, NB-IoT) solution, NB-IoT is an emerging technology of narrowband Internet of Things wide area network based on existing cellular base stations. In the same frequency band, NB-IoT has higher gain than the existing network, wider coverage area, and the ability to support massive connections. At the same time, NB-IoT has lower power consumption, and the standby time of the module can be up to 10 years. It is widely used around the world. The main domestic companies engaged in the NB-IoT industry include China Mobile and Huawei. By comparing the stability and cost-effectiveness of the products, the M5311 produced by China Mobile was finally selected. This module is not only inexpensive, but also has a supporting online cloud platform-OneNET, and has good compatibility with various network transmission protocols.
[0196] Among them, the working frequency bands of the M5311 chip include: B3 [1710MHz, 1880MHz], B5 [824MHz, 900MHz], B8 [880MHz, 960MHz]. According to the chip manual, the related circuits built include: power-on reset circuit, operation status circuit, SIM card interface circuit, etc. As shown in the NB-IoT diagram, the chip is powered by LDO output ground 3.3V. Due to the different pin level driving capabilities of the main control chip and M5311, the power-on reset pin is driven by transistors Q1 and Q2. When the RST_NB and PWR_NB pins of the main control chip output a high level, the transistor is turned on, the Rs_NB and Pw_NB pins of the M5311 are pulled low, and the state is maintained for 2s. The M5311 chip is powered on and reset, and the M5311 communicates with the main control chip through the serial port. The main control chip uses the AT instruction set to control the operation of the M5311 and obtain the operating status. The M5311 chip connects to the SIM card slot through SIM_VCC, SIM_CLK, SIM_DATA, and SIM_RST to obtain the IoT account information in the SIM card.
[0197] Among them, the power optimization program is used for power optimization and safety protection response of photovoltaic modules. The power optimization program mainly includes: voltage and current data acquisition, maximum power tracking algorithm, PID control of output voltage, and PWM output of drive signal. The safety protection response program mainly includes the response action of the component-level fast shutdown command sent by the host in an emergency and the positioning of the abnormal power generation module in the photovoltaic string;
[0198] The safety protection program consists of two parts: first, after receiving the fast shutdown command, the power optimizer's response action design, and the power optimizer cooperates with the host to locate the photovoltaic components with abnormal power generation.
[0199] Component-level fast shutdown program design: When the power optimizer receives the fast shutdown command, it first turns off the advanced timer. At this time, due to the energy storage elements in the circuit, the output voltage will not drop to 0V immediately. It is necessary to discharge the circuit internally and continuously detect the output voltage until the output voltage drops to the discharge threshold voltage. Then, the internal shutdown flag register is set. The host learns through system communication that the photovoltaic component is disconnected from the power generation bus. When all power optimizers are disconnected from the power generation bus one after another, the component-level fast shutdown of the distributed photovoltaic power generation system is completed.
[0200] Abnormal positioning program design: In the DC power generation bus, in order to obtain the position of abnormal photovoltaic components that have a negative impact on the system's power generation, each power generation module is detected one by one, that is, the host disconnects the power generation modules in the system through the communication bus, and at the same time measures the change in bus power before and after the power generation module is disconnected to obtain the working status of the power generation module. This cycle is repeated to obtain the actual power generation gain of each module to the system, and the status of each module is divided;
[0201] System communication design: In a distributed photovoltaic system, a host receives the operating information of multiple power optimizers. In order to maintain the smoothness of system communication, a bus communication protocol is required to standardize the communication behavior of each slave, and the Modbus bus protocol is used to design the system communication.
[0202] Modbus protocol is a commonly used serial communication protocol that supports a variety of physical transmission media, including serial ports (RS-232, RS-485), Ethernet, etc., to meet the needs of different application scenarios. The flexibility of this application scenario makes Modbus widely applicable to industrial control systems of various sizes and complexities. It has now become a standard communication protocol for a large number of industrial equipment and controllers, and can be seamlessly integrated with various devices and systems, and can be easily implemented on various mainstream hardware platforms and operating systems. Since the communication environment of photovoltaic power stations is usually full of temperature changes, electromagnetic interference, etc., and the Modbus protocol has high anti-interference ability and reliability, through appropriate hardware and network configuration, low-latency and high-reliability communication connections can be achieved. Even in the harsh industrial environment conditions such as photovoltaic power stations that are full of electromagnetic interference and temperature changes, the Modbus protocol can work stably.
[0203] At the same time, Modbus is an open standard communication protocol, and its protocol specifications and related documents are available free of charge, which means that anyone can use the Modbus protocol for development, and is not restricted by proprietary technology or licensing fees, which can greatly reduce the construction cost of photovoltaic power stations. The Modbus protocol uses a broadcast message format. This concise data format and communication structure are easy for R&D personnel to understand and implement, and can quickly build a communication architecture.
[0204]
[0205] Taking the Modbus message format in the figure above as an example, the request message sent by the host includes the slave address, function code, address register start bit, register number and CRC check bit. The slave address is the "identity code" of each slave. Modbus currently has nearly 100 function codes, including reading and writing of coil quantity, discrete quantity, input register and holding register. In this example, the host request message address is 0x01, indicating that the host sends a request to slave 0x001. The function code in the request message is 03, indicating reading the holding register, and the starting address is 0x00 (decimal 107) , the number of registers is 0x01 (read 1 register), and the slave repeats the slave address and function code called by the host and transmits the byte number 0x02 and data 0x190x98 of the corresponding address register to the host, and the host and the power optimizer as the slave use the Modbus protocol as the communication criterion within the system. As shown in the specific program flow chart, the host sends a broadcast message. Although each slave shares two communication buses and can receive the host's request response, only the slave with the same slave address as in the request message will send a response and execute the response action according to the request content.
[0206] It should be noted that the power optimizer uses ST's F1 series general-purpose chips, and the development platform is MDK. The power optimizer's program design is mainly used for power optimization and safety protection response of photovoltaic modules. The power optimization program mainly includes: voltage and current data acquisition, maximum power tracking algorithm, PID control of output voltage, and PWM output of drive signal. The safety protection response program mainly includes the response action of the "module-level fast shutdown" command sent by the host in an emergency and the positioning of abnormal power generation modules in the photovoltaic string.
[0207] The power optimization flow chart is shown in the Modbus communication flow chart. After the system is powered on and initialized, the ADC channel is turned on for data sampling to obtain the current input and output voltage and input and output current of the power optimizer. The sampled data is transmitted to the maximum power tracking program module, and the mppt algorithm is substituted to start calculating the next set of target operating point voltages. The voltage value is substituted into the PID module. According to the relationship between the target voltage and the current voltage, it is determined which operating mode the cascade Buck-Boost should work in, and by changing the duty cycle of the PWM output, the output voltage is adjusted to the target output voltage point, and then the cycle is repeated again.
[0208] Among them, the power optimization program design includes
[0209] (1) Data sampling program design:
[0210] The chip selected in this design contains a direct memory access (DMA) unit directly connected to the ADC channel. DMA is a mechanism for data transmission between peripherals or between peripherals and memory. The combination of DMA and ADC is used to achieve efficient data acquisition. The specific working principle is: first configure the DMA channel, set the ADC data register as the source address, set the memory address as the destination address, and set the direction and size of data transmission. Configure the ADC module, select the conversion channel, set the sampling period and other parameters, the ADC starts to collect analog signals and convert them into digital signals. When the ADC conversion is completed, the DMA controller transfers the conversion result directly to the specified memory address to complete the data sampling process. The STM32 DMA controller allows data to be transferred directly between peripherals and memory without passing through the CPU, which can reduce the CPU load and improve the efficiency and performance of the system.
[0211] The data sampling program flow is shown in the data sampling flow. After the ADC sampling is completed and the DMA transfer completion interrupt is triggered, the sampled data is median filtered. Since the subsequent maximum power tracking algorithm performs relevant calculations based on the sampled data, the accuracy of data sampling determines the accuracy of the subsequent program calculation results. If the sampling value fluctuates greatly, it will cause deviations in the power point calculation results and even cause serious misjudgments. Therefore, while ensuring the reasonable design of the hardware circuit, the corresponding filtering algorithm should also be designed. The filtering algorithm selected in this design is median filtering, that is, the filtering result of this filtering takes the median of multiple ADC sampling values. This method has a good suppression effect on periodic interference and is suitable for the noise interference environment of this design.
[0212] (2) Maximum power tracking: Based on the maximum power tracking principle mentioned above, the firefly algorithm is used to track the maximum power of the photovoltaic module. The position of each firefly is output in turn, the brightness of each firefly is detected, the mutual attraction between the fireflies is calculated, and the next round of algorithm iteration is performed. The MCU converts the position of the firefly into the output voltage of the power generation module, controls the duty cycle of the PWM through the next-level PID algorithm, controls the output voltage to reach the corresponding value, and records the power of the power generation module under the voltage, and converts the power proportionally to the brightness of the firefly at that position. The specific process is shown in the firefly algorithm flow chart.
[0213] First, you need to initialize the algorithm parameters: population size N, maximum attraction, maximum brightness, position range, etc., and initialize the position of the firefly group and sort them so that the power optimizer can output different voltage values in turn. Calculate the brightness of each firefly in the initialization stage, and bring it into the calculated attraction between fireflies to get the position where the next round of fireflies will move to. The fireflies with the highest brightness will move randomly in a small range, and the remaining fireflies will move towards the brightest firefly based on the distance from the brightest firefly and the brightness of both parties. In this way, the termination condition of the loop iteration can be set to a fixed number of iterations. At the same time, when the environment changes, the power of the voltage point originally maintained by the system will change, and the maximum power point still needs to be recalculated.
[0214] (3) PID control:
[0215] PID control is usually used to adjust the output of the system. This design uses PID control to make the system's output working voltage as close to the set value as possible. During the power optimization process, it is necessary to output the working voltage of fixed points multiple times. For the maximum power tracking, the target output voltage value is obtained, and the control system needs to be adjusted to the expected voltage point. This design adjusts the parameters of the PID control program to ensure the speed and accuracy of this process. The logic block diagram is shown in the attached figure, where K p is the proportional adjustment coefficient, which is mainly used to perform linear adjustment according to the deviation between the measured value and the expected value.p The larger the K is, the greater the response of the output signal to the deviation will be, and the overall adjustment speed of the system will be faster, but too large K p It may cause a larger overshoot and output oscillation; K i Adjust to the integral adjustment coefficient, when the proportional coefficient K p When there is a static deviation between the regulated output and the target value, K i By integrating the accumulated deviation, the static error of the system is eliminated. i The larger the value, the stronger the controller's response to the deviation. However, it cannot be too large, otherwise it may lead to integral saturation and cause system instability. d It is the differential adjustment coefficient. When the system output fluctuates greatly, it is used to suppress the system output oscillation and avoid excessive fluctuation of the power optimizer system output voltage.
[0216] (4) PWM output:
[0217] STM32 contains advanced timers, which can work in multiple modes such as timer mode, PWM mode or input capture mode. The internal timer TIM1 of this chip is an advanced timer. By setting the timer to PWM mode, it can be used to generate PWM signals. It has three output channels that can output PWM signals and three complementary PWM output channels. This design uses two sets of complementary channels PA8 and PB13, PA9 and PB14. The system clock is 72MHz. By setting the clock division coefficient PSC register and the automatic reload ARR register, the advanced timer can output the PWM signal at a frequency of 100kHz.
[0218]
[0219] At the same time, the output voltage of the system is changed by adjusting the duty cycle D of the PWM signal. The higher the accuracy of the duty cycle D, the more accurate the output voltage. Therefore, ARR should be as large as possible. The frequency division coefficient PSC of this design is 1, the automatic reload ARR is 720, and the duty cycle accuracy can reach 1 / 720.
[0220] For the cascade Buck-Boost circuit, the upper and lower switches of the bridge arm will cause circuit damage if they are turned on at the same time, so complementary PWM signal control is required. However, since the on and off times of the two switches cannot be completely connected, it is necessary to perform "dead zone control" on the complementary control signal to prevent the two switches from being turned on at the same time. STM32 can configure the dead zone structure to establish the dead zone time T dead , that is, a pair of PWM output channels output low level at the same time. In the program design of this article, T dead Pick:
[0221]
[0222] Among them, the main functions of the host program design are to collect the operating data of each power optimizer, drive the screen to display data and perform human-computer interaction, and drive the Internet of Things module to upload data. The program development mainly adopts C language, uses the MDK5.14 platform, and establishes a connection with the OneNET cloud platform of China Mobile Internet of Things. Due to the complexity of the functions, this article embeds the freertos system into the microcontroller to ensure the smoothness of program execution.
[0223] FreeRTOS is a lightweight, portable, and scalable kernel specially designed for embedded systems. It is used to manage tasks, interrupts, and resources. Freertos has the following main features: Real-time: Freertos has real-time performance and can meet the response time requirements of real-time systems. It adopts a priority scheduling strategy and supports dynamic adjustment of task priorities to ensure that high-priority tasks can respond to events in a timely manner. Lightweight: The Freertos kernel is concise in design, with relatively small code size and small system resource usage. It is suitable for resource-constrained embedded systems. Its kernel only contains necessary functions, and additional functional modules can be selectively added as needed. Portability: Freertos provides a common API interface and a standard compiler tool chain, supporting a variety of processor architectures and development environments, including ARM, AVR, PIC, MIPS, etc. This makes FreeRTOS easily ported to different hardware platforms
[0224] The FreeRTOS system adopts a task management mode, encapsulating each functional program as a task. There are priorities between tasks, and tasks with higher real-time requirements are given higher priorities. Each task has a corresponding task control block. The main function of the task control block is to save the status information of the task, such as task pointer, task priority, task handle, etc. Through the task control block, the system can perform various operations on the task.
[0225] The host FreeRTOS system flow chart designed in this paper first initializes the system, including system stack space, data format, thread priority, etc.; then creates corresponding tasks for the system communication program, display interaction program and Internet of Things program respectively, and mounts them in the task scheduling function. The task scheduling function uniformly schedules each thread, including: start, suspend, resume, and destroy actions.
[0226] The display interaction interface design is completed by the USART HMI software, a special UI design interface for the TJC8048X370_011C model screen. The display interface is designed in advance in the USART HMI, including the display of the device number, input voltage, output voltage, power value and operating switch status. The control chip and the screen communicate through the serial port to transmit data. The data format is "key-value pair". The control chip can send key-value pairs to change the corresponding values of the display interface, and the user can also use the touch screen to change the actual working status of the optimizer.
[0227] The flowchart of the Internet of Things program designed for the NB-IoT module is shown in the figure. After the system is started, the parameters are initialized first. The connection interfaces defined in advance by the cloud platform include: ProductID, DeviceID, and APIKey. The control chip responds to AT commands with the NB-IoT module to control the running status of the NB-IoT module and uploads the slave running status information obtained by the host through wireless communication to the cloud platform. The following table shows the functions of the AT control commands used.
[0228] AT command set
[0229]
[0230]
[0231] The M5311 module has a corresponding IoT platform - OneNET cloud platform, which is developed by China Mobile IoT Company and provides access support. Developers using the M5311 module can access it through multiple protocols such as LwM2M, MQTT, ModBus, etc. In this design, the traffic-saving MQTT protocol is selected as the data transmission, and the data exchange is completed through the publish-subscribe mode. First, complete the creation of the product on the OneNET cloud platform, and add devices based on the product to obtain the product ID, device ID and APIKey. Match these product-related information with the preset information in the program, and the cloud platform can obtain the operation information of the power optimizer transmitted by the host.
[0232] Specifically, the data collected by this device is sent to M5311 using the MQTT protocol. M5311 then communicates through the NB-IoT network, packages the data and uploads it to the OneNET cloud. At the same time, the web interface can be controlled on the OneNET cloud to achieve visual control of the data.
[0233] In summary, the designed power optimizer and host circuit were subjected to system performance testing, and the functional modules of the designed power optimizer and host were analyzed to see whether they were operating normally. Functional debugging was performed on each module one by one. At the same time, in order to analyze the accuracy of maximum power tracking and safety protection related performance, a corresponding test environment was built, and power optimization and safety protection test experiments were completed.
[0234] In this experiment, the experimental equipment used include: oscilloscope, DC adjustable power supply, multimeter, sliding rheostat, photovoltaic modules, and the power optimizer and host designed in this article. This section builds the corresponding experimental environment to test the power optimization effect of the power optimizer on the photovoltaic modules and the component safety protection response when an accident occurs, and conducts a complete test on the functional feasibility and system control of the photovoltaic power optimizer. The experimental equipment includes oscilloscope, adjustable power supply, power optimizer, host, digital multimeter, sliding rheostat, and photovoltaic module.
[0235] Photovoltaic systems are generally operated outdoors. The connection ends of photovoltaic modules should use sealed, waterproof, low-loss connectors. The MC4 photovoltaic connector is designed according to the IP68 protection level and has good protection. The contact resistance is less than 0.35 milliohms and the loss is low. Therefore, this experiment uses the MC4 photovoltaic connector to connect the photovoltaic module and the power optimizer.
[0236] After completing the circuit board production of the power optimizer and the host, check whether the welding of each component is correct, and then conduct comprehensive performance debugging on each functional unit of the power optimizer and the host, mainly including: power supply unit test, drive unit test, DC conversion unit, etc. Observe the module control waveform through an oscilloscope to determine whether the performance meets the design expectations.
[0237] The wide range voltage input by the power optimizer is filtered and then enters the MP9486 step-down chip to output 12V voltage. Fig.30 As shown on the oscilloscope (5V / div), the test cursor shows 12.2V, which is close to the expected voltage value. At the same time, due to the presence of high-frequency switching signals, the voltage is polluted by certain noise, and the ripple has a noise signal close to the switching frequency of the DC converter.
[0238] The 3.3V power supply waveform of the control unit, communication unit and sampling unit is shown in the attached figure (2V / div). The test cursor shows around 3.3V. Since this level needs to provide a reference voltage for the sampling unit, the ripple must be low. The figure shows that the ripple is controlled within 50mV, which will not have a significant impact on the sampling accuracy.
[0239] In the system design, this paper uses the SM72295 driver chip to output 12V complementary PWM drive signals at the HO and LO pins respectively. The drive signal is measured using the AC gear of the oscilloscope, as shown in the attached figure (5V / div). Channel one is the output level of the HO pin, and channel two is the output level of the LO pin. It can be seen that the drive signals are complementary and the level value is about 10V. Although the internal level loss of the driver chip does not reach the designed 12V, it has met the MOS tube drive requirements. At the same time, this paper designs a dead zone control time of 111ns through an advanced timer. From the oscilloscope display, there is a dead zone time of nearly 100ns between the falling edge of HO and the rising edge of LO, which is consistent with the expected design of this paper.
[0240] The power optimizer and the host use the Modbus communication protocol. In order to test whether the communication mechanism between the power optimizer and the host meets the corresponding instructions of Modbus communication, the Modbus Poll debugging tool on the PC side is used to replace the host to send instructions for reading and writing related registers to the power optimizer, and the E34-2G4H20D communication unit is connected through the USB serial port conversion tool.
[0241] Similarly, the Modbus Slave debugging tool is used on the PC side instead of the power optimizer as the slave to receive the control commands of the relevant registers sent by the host designed in this article.
[0242] The output waveform is shown in the attached figure. The cascade Buck-Boost circuit adopts the boost mode, and the preset duty cycle is 1 / 9. The theoretical output voltage should be 33.75V after calculation. The actual output waveform is shown in the attached figure (500mV / div). When the oscilloscope probe selects the "×10 gear", it can be seen that the output voltage fluctuates between 3 and 3.5V. When the oscilloscope is adjusted to the AC gear, the peak-to-peak ripple value is about 5V.
[0243] Among them, during the operation of the photovoltaic system, the photovoltaic modules may be disturbed by various environmental factors, which is not conducive to the quantitative analysis of experimental data. In order to ensure the rigor of the experiment, before the power optimizer conducts field experiments with the photovoltaic modules, a DC adjustable power supply is first used to simulate the photovoltaic modules. The output end of the power optimizer is connected to both ends of the load. By adjusting the output voltage of the DC power supply, the change trajectory of the output voltage of the power optimizer is observed and compared with the principle value obtained by the calculation formula.
[0244] As shown in the design diagram of the simulated photovoltaic module experiment, the power supply current remains unchanged and the voltage value of the power supply is changed to simulate the power change of the photovoltaic module to measure the output voltage U of the power optimizer. o , and according to the input and output power conservation, calculate the theoretical output voltage value of the power optimizer.
[0245] In order to test the power optimization capability of the power optimizer in boost mode, the power supply is maintained at a larger output current, and the power optimizer's ability to track the maximum power point in boost mode is tested. By comparing the output voltage value of the power optimizer with the theoretical calculated value, it can be seen that the voltage tracking of the maximum power point in this design has a small deviation from the theoretical value.
[0246] Simulation experiment parameters in boost mode
[0247]
[0248]
[0249] The power supply is maintained at a larger output current. At this time, the power optimizer increases the output current capability through the buck mode to maintain the maximum power output. By comparing the output voltage value of the power optimizer with the theoretical calculated value, it can be seen that the experimental data is close to the theoretical value.
[0250] Simulation experimental parameters in buck mode
[0251]
[0252] After testing the power optimization capability of the power optimizer, this section conducts a field experiment on the power optimization of photovoltaic modules by the power optimizer. Two photovoltaic modules are used, one of which is directly connected to the load, and the other is first connected to the power optimizer. The output end of the power optimizer is connected to the load. The two photovoltaic modules are compared and real-time power is obtained through the wireless communication module.
[0253] In order to facilitate development and testing, the power optimizer is a bare board test and does not have a heat sink with normal specifications. The light intensity in the experimental scenario cannot be too large, otherwise the MOS switch tube will quickly heat up and cause the switch tube to break down. The real-time power of the two photovoltaic modules is obtained as shown in the attached figure. Due to changes in light and temperature, the power generation of the photovoltaic modules changes with time. From 8 am to 11 am, the power generation of the photovoltaic modules continues to increase. The effect of the photovoltaic modules with power optimizers on increasing the power generation is between 12.18% and 21.30%.
[0254] In the safety protection experiment, the component-level rapid shutdown can be performed through the host control. By clicking the switch button on the touch screen interface, the DC change unit of the power optimizer can be turned on or off. According to the component-level rapid shutdown safety specification requirements, the component discharge time is required to be within 30s, so that the cumulative voltage of the DC bus is lower than 80V, as shown in the attached figure. When the component level is rapidly shut down, the output waveform of the power optimizer, after receiving the rapid shutdown command, the output voltage is rapidly reduced from 35V to about 5V within 8 seconds to meet the requirements of component-level rapid shutdown. By artificially covering the photovoltaic components, the power generation power of photovoltaic component 2 is reduced. By pressing the detection button, the host will cycle shut down the two power optimizers, measure the bus power change, determine the position number of the photovoltaic components that affect the bus power generation power, and display the abnormal module position that affects the overall power generation of the photovoltaic string through the detection interface.
[0255] The present application further proposes an operation method of a photovoltaic module power optimization system, including a photovoltaic module power optimization system, comprising the following steps:
[0256] S1 system initialization: Start the system and perform hardware and software initialization settings, including setting the system stack space, data format, and thread priority;
[0257] S2 data sampling: collects voltage, current, temperature and other data through ADC channel and DMA unit, and transmits the sampled data to the maximum power tracking program module;
[0258] S3 Maximum Power Point Tracking (MPPT): Uses MPPT algorithms such as the Firefly algorithm to calculate the maximum power point (MPP) of the PV module and dynamically adjusts the operating point to track the maximum power output;
[0259] S4 PID control: According to the target output voltage value obtained by the MPPT algorithm, the PID control program is used to adjust the duty cycle of the PWM signal and control the output of the cascaded Buck-Boost circuit to achieve the desired voltage point;
[0260] S5 PWM signal generation: Use the advanced timer of STM32 to set the PWM mode, generate PWM signals, adjust the system output voltage, and achieve precise control of the output voltage of photovoltaic modules;
[0261] S6 Safety Protection: Design safety protection procedures, including component-level rapid shutdown and abnormal module positioning, to respond to emergencies and improve system safety;
[0262] S7 communication: data transmission and command response between the host and the power optimizer are realized through communication protocols such as Modbus;
[0263] S8 display interaction: The system status is displayed in real time on the display interaction unit of the host, including device number, input and output voltage, power value, etc., and allows users to operate through the interface;
[0264] S9 IoT data upload: upload the collected data to the cloud platform, such as OneNET cloud platform, through the IoT module to achieve remote monitoring and control;
[0265] S10 task scheduling: Use real-time operating systems such as FreeRTOS for task scheduling to ensure that high-priority tasks can be responded to in a timely manner;
[0266] S11 Abnormality handling: During system operation, abnormal conditions are monitored and handled, such as locating abnormal power generation modules through bus net power detection method;
[0267] S12 system test: Conduct system performance tests, including simulation experiments and field experiments, to verify the optimization capability and safety protection performance of the power optimizer;
[0268] S13 Data Analysis: Analyze test data and evaluate system performance, including power generation efficiency improvement and safety protection response time;
[0269] S14 System Maintenance: Based on the test results and data analysis, perform necessary maintenance and optimization on the system to improve system stability and reliability.
[0270] The firefly algorithm is as follows: It is specifically applied in maximum power tracking. The position of the firefly is within the output voltage range of the photovoltaic module. The brightness of each firefly Ii is proportional to the power generation power Pi (V) of the power generation module at the output voltage value:
[0271] I i ∞P i (V),
[0272] In the movement of fireflies, fireflies with low brightness will move towards fireflies with high brightness. If firefly j is the brightest firefly, then firefly i will move to position
[0273] is the current position of firefly i, α is the step factor with a value range of [0, 1], rand is a random number with a value range of [0, 1], β(r ij ) is the attraction of high brightness firefly j to firefly i:
[0274] β(r ij )=β0exp(-γr ij 2 ),
[0275] Where β0 is the maximum attraction defined, γ is the attraction coefficient, r ij is the relative distance between firefly i and firefly j:
[0276] r ij =||X j -X i ||.
[0277] Among them, when the firefly algorithm is actually applied in the maximum power tracking of the power optimizer, taking the population size as N as an example, each time the brightness of the firefly population is updated, N exponential operations are required to calculate the attraction between fireflies. Due to the limited computing power of the controller, this period of time is very long. If the power generation changes of photovoltaic modules are to be tracked quickly and accurately in time, the original firefly algorithm must be improved to calculate the attraction β(r ij ) is updated to improve the calculation and change it to a quadratic function as shown in the following formula, where R is the length of the one-dimensional function optimization interval, making it easier to implement in a microcontroller:
[0278]
[0279] In order to compare the performance of the firefly algorithm and the traditional power optimization algorithm in maximum power tracking, a comparative experiment was built in the matlab environment. Taking the variable step-size observation perturbation method in the traditional power optimization algorithm as an example, the firefly algorithm and the perturbation observation method were compared in the optimization of the maximum value of one-dimensional function. The variable step-size observation perturbation method and the firefly algorithm were used to calculate the multi-peak power characteristic curve f(x).
[0280] f(x)=10sin(x)+20sin(2x)+30sin(3x)+40sin(5x),
[0281] The perturbation and observation method can only perturb 200 times. The firefly algorithm sets the population size to 10 and the maximum number of iterations to 20, so that both algorithms can only obtain the objective function values corresponding to 200 optimal positions. The cross-boundary processing is the crossing mode as follows, where up is the optimal upper bound and down is the optimal lower bound:
[0282]
[0283] Firefly algorithm optimization settings
[0284]
[0285] The firefly algorithm optimization trajectory diagram is the optimization trajectory of the firefly algorithm in the multi-peak objective function. Compared with the variable step size perturbation observation method, the optimization range of the firefly algorithm also summarizes the global situation. At the same time, there are optimization trajectories for the range near multiple peaks of the curve. There are more optimization advantages in the peak where the optimal value of the objective function is located. The optimal value finally obtained is closer to the target optimal value. Therefore, this paper adopts the firefly algorithm as the core optimization algorithm for power optimization.
[0286] It should be noted that the environment of distributed photovoltaic power stations is different from that of centralized photovoltaic power stations. Centralized photovoltaic power stations are generally large-scale photovoltaic power stations built with abundant and relatively stable solar energy resources in desert areas. The operation of photovoltaic modules has good consistency. Distributed photovoltaic power stations are mainly small-scale photovoltaic power stations built on the surface of buildings. The operation of photovoltaic modules varies greatly, and the aging rate of photovoltaic modules is fast, especially the frequent failures on the DC side. Common photovoltaic module abnormalities include module hot spots, module shadows, and module cracks.
[0287] The power generation capacity of photovoltaic modules with component hot spots drops significantly, causing the current of abnormal photovoltaic modules to be lower than that of other normally working photovoltaic modules, which will cause the bypass diode of the photovoltaic module to be turned on. The photovoltaic module will be in a reverse biased state as a power consumption load to generate heat. If the local temperature of the photovoltaic module is raised for a long time, it will not only cause power loss if the abnormal module is not cleared, but may also cause local overheating and cause fire. According to statistics, 90% of fire accidents in photovoltaic power stations are caused by DC side faults.
[0288] Distributed photovoltaic systems are often installed on the roofs of users' houses, which makes rescue more difficult than ground-based centralized photovoltaic power stations. When an accident occurs, even if the downstream inverter is immediately shut down, the DC bus voltage will still remain at thousands of volts. According to NEC2017690.12 "Component-level Self-Shutdown Solution", this safety regulation requires: with 305mm outside the photovoltaic matrix as the boundary, within 30S after the rapid shutdown device is activated, the voltage within the boundary range must be reduced to below 80V, which means that "component-level rapid shutdown" is required.
[0289] Under the power optimizer structure, the photovoltaic system bypasses abnormal components through the downstream control capabilities of each power generation component and reports to the system in a timely manner. On the one hand, it can prevent further damage to the abnormal photovoltaic components. On the other hand, safety personnel can conduct targeted detection based on the component operating status received by the system, which protects the photovoltaic components and reduces the risk of safety accidents caused by further deterioration of photovoltaic system failures.
[0290] In photovoltaic strings, the use of power optimizers enables each photovoltaic module to have independent switch control. On the basis of establishing a complete communication mechanism, when a safety accident occurs, the host can use a wireless transmission device to send a component-level shutdown command to the power optimizer in each smallest photovoltaic power generation module. After receiving the command, the power optimizer will stop power generation and output. The high-voltage DC bus formed by each photovoltaic string will be cut into several low-voltage modules. The maximum voltage within the limit is approximately equal to the open-circuit voltage of a single photovoltaic module, thereby ensuring that the rescue process proceeds quickly and smoothly.
[0291] Due to the high frequency of accidents in photovoltaic power stations, it is also necessary to study the positioning of abnormal photovoltaic modules using the power optimizer structure. The output current of the power optimizer controls the conduction and bypass of the power generation module through the system, obtains the actual gain of the module on the power generation power of the distributed photovoltaic system, judges the operating status of photovoltaic modules with low power generation, and locates photovoltaic modules that have a negative impact on power generation, which helps to improve the power generation power of photovoltaic strings and prevent further damage to abnormal power modules, thereby causing serious hazards such as DC side short circuit.
[0292] When photovoltaic modules experience abnormal phenomena such as shadowing, hot spots, and cracking, they are usually accompanied by abnormal voltage, abnormal current, and especially abnormal power generation of the photovoltaic modules. Taking the hot spot phenomenon as an example, when a photovoltaic module has a hot spot phenomenon, the VI characteristic curve and the current will show a step-by-step decrease as the voltage value increases. At the same time, the open-circuit voltage of the photovoltaic module will also decrease slightly. The hot spot will also significantly reduce the power generation of the photovoltaic module.
[0293] For a photovoltaic module with a power optimizer, as shown in the attached figure, a photovoltaic module that works normally can be adjusted by the power optimizer to maintain constant power along the curve M1-M0-M2, and the output current I can be adjusted between the upper and lower thresholds of the output voltage. ok When adjusted within a certain range as shown in the formula, the output current intervals of each photovoltaic power optimizer have an intersection, and the DC bus can theoretically output without loss.
[0294] For PV modules with abnormal power generation in the series-connected PV strings, because the voltage range of the outputs of each power optimizer is a constant threshold, the output current capacity of the abnormal PV modules with reduced power generation is greatly reduced, and the overall current of the DC bus will decrease due to the "barrel effect". As shown in the attached figure, since the power generation value of the abnormal module 4 is low, even after adjustment by the power optimizer, the output current can be adjusted within a certain range, and the output current capacity still cannot operate in the same range as the output current of other modules. At this time, the bus power of the PV string composed of modules 1, 2, and 3 will even be higher than the bus power of the PV string composed of modules 1, 2, 3, and 4.
[0295] Therefore, this paper proposes a bus net power detection method, which uses the host to obtain the actual gain of the power generation module on the bus power generation to determine whether the power generation module has a positive effect on the photovoltaic string power generation, thereby determining whether the photovoltaic components in the power generation module are in an abnormal state. As shown in the attached photovoltaic component power generation state acquisition diagram, the specific steps are: connect N power generation modules in series, use the communication bus, disconnect the Kth power generation module in turn, and then, according to P BUS , P MPPK , P BUS_C The relationship between the three can determine the actual power generation gain of module K to the photovoltaic string, and divide the component operation status into three situations: normal state, inefficient state, and abnormal state.
[0296] As shown in the following table, according to P BUS , P MPPK , P BUS_C The relationship between the three can determine the actual power generation gain of the photovoltaic power generation module K to the photovoltaic string, and divide the operating status of the photovoltaic module into three situations: normal state, inefficient state, and abnormal state. Among them, the normal state means that when the photovoltaic module is turned on and bypassed, the change in bus power is approximately equal to the power generation power of the photovoltaic module, that is, the power generation module can completely superimpose power with the DC bus; the inefficient state means that when the photovoltaic module is turned on and bypassed, the change in bus power is less than the power generation power of the photovoltaic module, that is, the power generation module can partially superimpose power with the photovoltaic string, and the power generation efficiency is low; and the abnormal state means that the bus power when the photovoltaic module is turned on is less than the bus power when the photovoltaic module is bypassed. At this time, the photovoltaic module will reduce the power generation power of the DC bus, which has a negative impact on the power generation of the photovoltaic system.
[0297] Module Status Table
[0298]
[0299] The beneficial effects of the above embodiments are:
[0300] Taking the distributed photovoltaic system as the application background, on the one hand, the principle analysis is carried out for the mismatch loss of photovoltaic strings under the influence of the barrel effect, and the use of power optimizer for component and power optimization is proposed. On the basis of the traditional maximum power tracking algorithm, the application of firefly algorithm in power optimization is proposed. This method has a more effective optimization trajectory in multi-peak optimization, which improves the power generation capacity of the photovoltaic system. On the other hand, the use of component-level power electronics technology provides a way for the modular control of photovoltaic systems and "components and rapid shutdown". When a safety accident occurs, the DC bus of up to 1,000 volts can be reduced to a safe range. At the same time, through the control of the system on the power generation module, the bus net power detection method is used to locate the abnormal power generation module. According to the actual gain of each power generation module on the power generation, the operating status of the module is judged to improve the management efficiency and safety protection capability of the photovoltaic power generation system.
[0301] The design of the hardware structure and software control program of the power optimizer have been completed, and an experimental prototype has been designed, including the hardware design of various hardware modules: DC conversion circuit, power supply circuit, sampling circuit, drive circuit, control circuit, communication circuit, Internet of Things circuit, and display interaction circuit, including the design of various software module programs: the design of the power optimization program and safety protection program of the power optimizer. The system communication program design uses the Modbus communication protocol as the communication specification between the power optimizer and the host for data transmission and command response. A simulated photovoltaic component experimental environment and a field photovoltaic component experimental environment have been built, and comprehensive functional debugging of power optimization and safety protection has been carried out. The results show that, based on the normal operation of the system, the power optimizer designed in this paper has a small deviation from the ideal value in power optimization and has high accuracy. In the event of a safety accident, it receives the component-level rapid shutdown command of the photovoltaic power generation system, quickly realizes component-level shutdown, and reduces the bus voltage. The host control can realize the positioning of abnormal modules and improve the stability of the photovoltaic power generation system.
[0302] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0303] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and alterations may be made to the embodiments without departing from the principles and spirit of the invention.
Claims
1. A photovoltaic module power optimization system, characterized in that: It includes power optimizer hardware, host hardware and system software, wherein wireless modules are used to exchange and transmit data among the power optimizer hardware, host hardware and system software; Among them, the power optimizer hardware includes a DC conversion unit, a control unit, a drive unit, a communication unit, a power supply unit, and a sampling unit; DC conversion unit: adjusts the output operating voltage of the photovoltaic module to reach the maximum power output point; Control unit: As the core of the system, it is responsible for collecting voltage and current, calculating adjustment direction, outputting PWM signals to control the drive circuit, and providing a communication serial port; Drive unit: converts the logic level signal generated by the microcontroller into a high voltage signal that controls the on and off of the MOSFET; Communication unit: realizes data communication between the power optimizer and the host, and exchanges information through the wireless transmission module; Power supply unit: provides stable power supply for the system, including 12V and 3.3V power supply; Sampling unit: collects the working voltage, working current and working temperature of the photovoltaic power generation module; The host hardware consists of a power supply unit, a display interaction unit, an Internet of Things unit, and a control unit; Among them, the power supply unit is used to convert the mains power into a voltage suitable for the host and perform EMI filtering; Display interaction unit: provides a user interface that allows users to view system status and perform control operations in real time; Internet of Things Unit: Upload power station data to the cloud platform through the NB-IoT module to achieve remote monitoring and control; Control unit: responsible for collecting and processing the operating data from the power optimizer; The system software includes a power optimization program, a safety protection program, a system communication design and a cloud platform; Among them, the power optimization program: uses intelligent optimization algorithms such as the firefly algorithm to dynamically track the maximum power point of photovoltaic modules and improve power generation efficiency; Safety protection procedures: including component-level rapid shutdown and abnormality location to ensure safe operation of the system; System communication design: Use Modbus and other communication protocols to ensure stable and reliable data transmission between the host and the power optimizer; Cloud platform: Receives data from IoT units and provides data storage, analysis, and remote control functions.
2. A photovoltaic module power optimization system according to claim 1, characterized in that: In the DC converter of the DC conversion unit, the switch tube Q1 is always turned on in the boost mode, Q2 is kept off, the PWM of Q3 and Q4 are waveforms with opposite phases, the duty cycle of Q3 is D, and the duty cycle of Q4 is 1-D. When Q3 is turned on and Q4 is turned off, the input end is charged with power inductance, and when Q3 is turned off and Q4 is turned on, the input end and the power inductance are accumulated to supply power to the output end. According to the volt-second balance law, the relationship between the output voltage Vo and the input voltage Vpv is shown as follows: In the buck mode, the switch tube Q4 is always turned on, Q3 is turned off, the PWM of Q1 and Q2 is an inverted waveform, the duty cycle of Q1 is D, and the duty cycle of Q2 is 1-D. When Q1 is turned on and Q2 is turned off, the electric energy input at the input end can charge the power inductor and also supply energy to the output end. When Q1 is turned off and Q2 is turned on, the power inductor releases its own stored energy to supply power to the output end. According to the volt-second balance law, the relationship between the output voltage Vo and the input voltage Vpv is shown as follows: V o =V pv D, In the direct-through mode, the four switch tubes maintain a constant switch state, and no switch switching is performed. The output voltage is equal to the input voltage. The input end directly functions as the output end through the energy storage inductor. In this mode, the circuit no longer switches between the on and off states of the switch tube. The switching loss of the circuit is minimal and the conversion efficiency is maximized. According to the volt-second balance law, the relationship between the output voltage Vo and the input voltage Vpv is shown in the following formula: V o =V pv 。 3. A photovoltaic module power optimization system according to claim 1, characterized in that: The control unit uses an ARM core main control chip to control other functional units and collect voltage signals at the same time, which can provide complementary PWM signal output, provide complementary PWM control signals for the drive circuit, and use the internal UART mounted on the wireless communication module to upload the operating status in real time.
4. A photovoltaic module power optimization system according to claim 1, characterized in that: The driving voltage of the driving unit is 12V, the logic voltage is 3.3V, the maximum system voltage can reach 100V, the output driving current Ip is as high as 3A, the GS inter-electrode reverse charge Qrr is 120nC, the switching frequency fs is selected as 100kHz, and the driving current needs to complete the charging and discharging of the switch tube FB4410Z in a time much smaller than the switching cycle. The charge reversal period of the switching signal is one percent of the switching cycle, as shown in the following formula: T rr =1 / 100f s , Then the accumulated charge of the driving current during the reversal period satisfies: I p T rr >Q rr 。 5. The photovoltaic module power optimization system according to claim 1, characterized in that: The sampling unit includes temperature sampling, voltage sampling and current sampling, which are as follows: Temperature sampling: The working temperature is collected to effectively protect the power optimizer and prevent the internal power circuit of the power optimizer from continuing to work and being damaged when the temperature is abnormal. The temperature sampling design is to connect a 10kΩ fixed resistor and a 10kΩ (25℃) thermistor in series, and a filter capacitor in parallel. The voltage at both ends of the thermistor is sampled and connected to the ADC sampling port of the MCU to obtain the actual working temperature and the sampled voltage value VT. After the resistor voltage division calculation, the changed resistance value of the NTC resistor is obtained. According to the temperature resistance reference table provided by the manufacturer, the actual temperature can be obtained after looking up the table: Voltage sampling: The input voltage is divided proportionally by resistors R31, R32, and R33. The divided voltage signal is connected to the input of the LM358 operational amplifier, amplified proportionally, and connected to the ADC sampling port to separate the ADC pin of the MCU chip from the signal to be measured. The sampling signal is filtered while protecting the control chip. The input and output voltage range of the power optimizer is designed to be 20-60V. After the resistor voltage divider, the maximum voltage input to the operational amplifier does not exceed 1.3V. The proportional relationship between the ADC sampling signal Vins and the actual voltage value Vinp is: Current sampling: Using the series resistance sampling method, the relationship between the actual current value Ipv and the sampled output voltage Vs at BIN satisfies: The actual current value can be obtained by transformation:
6. A photovoltaic module power optimization system according to claim 1, characterized in that: Since the host's working environment is mainly next to a photovoltaic power station, the host's power supply is generally obtained from the mains. The power supply unit in the host hardware uses an AC-DC transformer module with cold and hot ground isolation. This module can convert 220V mains into 5V direct current. Due to the connection to the mains, surge current, pulse high voltage, and electric shock may occur. The mains needs to be firstly EMI filtered, as follows: The live wire input terminal is connected to fuse f1 to provide overload protection, the neutral wire terminal is connected to NTC thermistor to prevent excessive surge current during startup, the common mode inductor T1 filters out the common mode interference between the live and neutral wires, the Y capacitors CY1 and CY2 perform differential mode filtering, and the varistor RV2 and X capacitor CX prevent pulse high voltage.
7. A photovoltaic module power optimization system according to claim 1, characterized in that: The power optimization program is used for power optimization and safety protection response of photovoltaic modules. The power optimization program mainly includes: voltage and current data acquisition, maximum power tracking algorithm, PID control of output voltage, PWM output of drive signal, and the safety protection response program mainly includes the response action of the module-level fast shutdown command sent by the host in an emergency and the positioning of the abnormal power generation module in the photovoltaic string; The safety protection program consists of two parts: first, after receiving the fast shutdown command, the power optimizer's response action design, and the power optimizer cooperates with the host to locate the photovoltaic components with abnormal power generation. Component-level fast shutdown program design: When the power optimizer receives the fast shutdown command, it first turns off the advanced timer. At this time, due to the energy storage elements in the circuit, the output voltage will not drop to 0V immediately. It is necessary to discharge the circuit internally and continuously detect the output voltage until the output voltage drops to the discharge threshold voltage. Then, the internal shutdown flag register is set. The host learns through system communication that the photovoltaic component is disconnected from the power generation bus. When all power optimizers are disconnected from the power generation bus one after another, the component-level fast shutdown of the distributed photovoltaic power generation system is completed. Abnormal positioning program design: In the DC power generation bus, in order to obtain the position of abnormal photovoltaic components that have a negative impact on the system's power generation, each power generation module is detected one by one, that is, the host disconnects the power generation modules in the system through the communication bus, and at the same time measures the change in bus power before and after the power generation module is disconnected to obtain the working status of the power generation module. This cycle is repeated to obtain the actual power generation gain of each module to the system, and the status of each module is divided; System communication design: In a distributed photovoltaic system, a host receives the operating information of multiple power optimizers. In order to maintain the smoothness of system communication, a bus communication protocol is required to standardize the communication behavior of each slave, and the Modbus bus protocol is used to design the system communication.
8. A method for operating a photovoltaic module power optimization system, comprising the photovoltaic module power optimization system according to any one of claims 1 to 7, characterized in that: The following steps are involved: S1 system initialization: Start the system and perform hardware and software initialization settings, including setting the system stack space, data format, and thread priority; S2 data sampling: collects voltage, current, temperature and other data through ADC channel and DMA unit, and transmits the sampled data to the maximum power tracking program module; S3 Maximum Power Point Tracking (MPPT): Uses MPPT algorithms such as the Firefly algorithm to calculate the maximum power point (MPP) of the PV module and dynamically adjusts the operating point to track the maximum power output; S4 PID control: According to the target output voltage value obtained by the MPPT algorithm, the PID control program is used to adjust the duty cycle of the PWM signal and control the output of the cascaded Buck-Boost circuit to achieve the desired voltage point; S5 PWM signal generation: Use the advanced timer of STM32 to set the PWM mode, generate PWM signals, adjust the system output voltage, and achieve precise control of the output voltage of photovoltaic modules; S6 Safety Protection: Design safety protection procedures, including component-level rapid shutdown and abnormal module positioning, to respond to emergencies and improve system safety; S7 communication: data transmission and command response between the host and the power optimizer are realized through communication protocols such as Modbus; S8 display interaction: The system status is displayed in real time on the display interaction unit of the host, including device number, input and output voltage, power value, etc., and allows users to operate through the interface; S9 IoT data upload: upload the collected data to the cloud platform, such as OneNET cloud platform, through the IoT module to achieve remote monitoring and control; S10 task scheduling: Use real-time operating systems such as FreeRTOS for task scheduling to ensure that high-priority tasks can be responded to in a timely manner; S11 Abnormality handling: During system operation, abnormal conditions are monitored and handled, such as locating abnormal power generation modules through bus net power detection method; S12 system test: Conduct system performance tests, including simulation experiments and field experiments, to verify the optimization capability and safety protection performance of the power optimizer; S13 Data Analysis: Analyze test data and evaluate system performance, including power generation efficiency improvement and safety protection response time; S14 System Maintenance: Based on the test results and data analysis, perform necessary maintenance and optimization on the system to improve system stability and reliability.
9. The method for operating a photovoltaic module power optimization system according to claim 8, characterized in that: The firefly algorithm is as follows: It is specifically applied in maximum power tracking. The position of the firefly is within the output voltage range of the photovoltaic module. The brightness of each firefly Ii is proportional to the power generation Pi (V) of the power generation module at the output voltage value: I i ∞P i (V), In the movement of fireflies, fireflies with low brightness will move towards fireflies with high brightness. If firefly j is the brightest firefly, then firefly i will move to position is the current position of firefly i, α is the step factor with a value range of [0, 1], rand is a random number with a value range of [0, 1], β(r ij ) is the attraction of high brightness firefly j to firefly i: β(r ij )=β0exp(-γr ij 2 ), Where β0 is the maximum attraction defined, γ is the attraction coefficient, r ij is the relative distance between firefly i and firefly j: r ij =||X j -X i ||。 10. The method for operating a photovoltaic module power optimization system according to claim 8, characterized in that: When the firefly algorithm is actually applied in the maximum power tracking of the power optimizer, taking the population size as N as an example, each time the brightness of the firefly population is updated, N exponential operations are required to calculate the attraction between fireflies. Due to the limited computing power of the controller, this period of time is very long. If the power generation changes of photovoltaic modules are to be tracked quickly and accurately in time, the original firefly algorithm must be improved to calculate the attraction β(r ij ) is updated to improve the calculation and change it to a quadratic function as shown in the following formula, where R is the length of the one-dimensional function optimization interval, making it easier to implement in a microcontroller: In order to compare the performance of the firefly algorithm and the traditional power optimization algorithm in maximum power tracking, a comparative experiment was built in the matlab environment. Taking the variable step-size observation perturbation method in the traditional power optimization algorithm as an example, the firefly algorithm and the perturbation observation method were compared in the optimization of the maximum value of one-dimensional function. The variable step-size observation perturbation method and the firefly algorithm were used to calculate the multi-peak power characteristic curve f(x). f(x)=10sin(x)+20sin(2x)+30sin(3x)+40sin(5x), The perturbation and observation method can only perturb 200 times. The firefly algorithm sets the population size to 10 and the maximum number of iterations to 20, so that both algorithms can only obtain the objective function values corresponding to 200 optimal positions. The cross-boundary processing is the crossing mode as follows, where up is the optimal upper bound and down is the optimal lower bound:
Citation Information
Cited By
Battery piece power optimization system, method and device of photovoltaic curtain wall and medium
CN119324673A
MPPT (Maximum Power Point Tracking) control system and method for cold chain vehicle and cold chain vehicle
CN120377454A
MPPT solar charging and discharging control system and method applied to photovoltaic system
CN121618656A
Capacitor starting regulation and control method and system for air-ground integrated cooperative communication transmission
CN121984810A
Capacitance starting regulation method and system for air-ground integrated cooperative communication transmission
CN121984810B
