Solar light following power generation method and device based on automatic compensation
Through the cooperation of automatic compensation technology and photoresistor, the direction of the solar panel is adjusted in real time, which solves the problem of insufficient power generation caused by obstructions or weather in the existing technology, achieving more efficient use of light energy and extending the life of the equipment.
Patent Information
- Application Number
- CN202410653001.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing solar tracking power generation method cannot make full use of daily light when there is an obstruction in front of the solar panel or the weather is bad, resulting in insufficient power generation.
Using the solar light chasing power generation method based on automatic compensation, through the horizontal control subsystem, elevation control subsystem and reset control board, combined with the photoresistor and image processing module, the direction and angle of the solar panel are adjusted in real time, and the target detection algorithm and gradient are used The information filters out the strongest light position and fine-tunes it through differential voltage to ensure that the solar panel is always facing the strongest light point.
It improves the regulation efficiency and sensitivity to light intensity of solar light chasing power generation, makes full use of current lighting conditions, improves the power generation efficiency of solar panels, reduces the wear and tear of mechanical equipment, and extends the life of photovoltaic equipment.
Smart Images

Figure CN118625859A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of solar energy technology, and in particular to a solar energy tracking power generation method and device based on automatic compensation. Background Art
[0002] Solar chasing power generation is a power generation method that uses control technology to ensure that solar panels or photovoltaic arrays are always facing the sun by tracking the position of the sun in real time. This technology can maximize the absorption of solar energy and improve power generation efficiency. Automatic compensation is a function of an automatic adjustment system that aims to adjust system parameters in real time based on detected feedback signals or preset conditions to offset external interference, changes or errors so that the system can maintain stable operation or achieve the expected performance indicators. In automatic compensation, the system automatically calculates the corresponding compensation amount based on the detected deviation or error signal, and applies it to the control parameters or output of the system to achieve real-time adjustment and correction of the system. This function is often used in various automation systems, control systems, and feedback systems to improve the stability, accuracy and performance of the system.
[0003] The solar chasing power generation method based on automatic compensation is a power generation technology that uses an automated control system to enable solar panels or photovoltaic arrays to automatically track the position of the sun to maximize the absorption of solar energy. This method uses an automatic compensation system to adjust the direction and angle of the solar panel or photovoltaic array in real time according to the detected position of the sun and preset conditions so that it always faces the sun. When the position of the sun changes, the automatic compensation system automatically calculates the compensation amount that should be adjusted and applies it to the control parameters of the system to ensure that the solar panel or photovoltaic array can follow the changes in the position of the sun in time and maximize the capture of solar energy to improve power generation efficiency.
[0004] Existing solar tracking power generation methods often adjust the position of solar panels in real time based on the sun coordinates captured by the positioning system. This fixed mode still adjusts the position of solar panels based on the sun coordinates when there are obstructions in front of the solar panels or the weather conditions are bad, resulting in the inability to fully utilize daily sunlight and insufficient power generation. Summary of the invention
[0005] In order to solve the technical problem that the existing solar chasing power generation methods often adjust the position of the solar panels in real time according to the sun coordinates captured by the positioning system, and this fixed mode still adjusts the position of the solar panels according to the sun coordinates when there are obstructions in front of the solar panels or the weather conditions are bad, resulting in an inability to fully utilize daily sunlight and insufficient power generation, the present invention provides a solar chasing power generation method and device based on automatic compensation.
[0006] The technical solution provided by the embodiment of the present invention is as follows:
[0007] First aspect
[0008] A solar light chasing power generation method based on automatic compensation provided by an embodiment of the present invention is applied to a solar light chasing power generation system. The light chasing power generation system includes a horizontal control subsystem, an elevation control subsystem and a reset control board. The horizontal control subsystem and the elevation control subsystem are respectively connected to the reset control board. The horizontal control subsystem includes a power amplifier control chip and a first voltage-dividing resistor, a second voltage-dividing resistor, a first photoresistor, a second photoresistor, a solar panel, an energy storage battery and a first motor all connected to the power amplifier control chip. The elevation control subsystem includes an image processing module, an elevation controller and a second motor connected in sequence. The solar panel is tangent to the rotation axis of the second motor. The reset control board is connected to the camera. The method includes:
[0009] S1: Disconnect the photoresistor and the image processing module, and scan the surrounding environment of the solar panel by resetting the control board;
[0010] S2: During the scanning process, multiple environmental images around the solar panel are collected by the camera, and the collection coordinates of the environmental images are recorded;
[0011] S3: connecting the image processing module, transmitting the environment image to the image processing module, and performing ROI area screening on the environment image based on the target detection algorithm;
[0012] S4: combining gradient information and local maximum information to sequentially screen the brightest pixels in the screened ROI area in a progressive manner;
[0013] S5: Output the coordinates of the strongest light intensity corresponding to the brightest pixel;
[0014] S6: Input the coordinates of the strongest light intensity into the power amplifier control chip and the elevation angle controller, and control the first motor and the second motor to adjust the solar panel so that the line connecting the plane where the solar panel is located and the coordinates of the strongest light intensity is perpendicular to the plane where the solar panel is located;
[0015] S7: Turn on the photoresistor and obtain the differential voltage between the solar panels through the power amplifier control chip;
[0016] S8: fine-tune the solar panel with the goal of adjusting the absolute value of the differential voltage to a safety threshold;
[0017] S9: Based on the power generation rate change rate and time point of the solar panel, an event trigger mechanism including a reward function and a forward and reverse control function is set to determine the start time of resetting the control panel;
[0018] S10: Return to step S1 according to the start time to perform cyclic automatic compensation on the solar panel.
[0019] Second aspect
[0020] An embodiment of the present invention provides a solar tracking power generation device based on automatic compensation, comprising:
[0021] processor;
[0022] A memory having computer-readable instructions stored thereon, which, when executed by a processor, implements the solar tracking power generation method based on automatic compensation as in the first aspect.
[0023] The third aspect
[0024] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the solar tracking power generation method based on automatic compensation as in the first aspect is implemented.
[0025] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0026] The present invention adjusts the solar panel with multiple degrees of freedom through a horizontal control subsystem, an elevation control subsystem and a reset control panel, and uses the photosensitive characteristics of a photoresistor to achieve fine-tuning of the solar panel to avoid the problem of not being able to fully utilize the light due to adjusting the orientation angle of the solar panel based on the real-time coordinates of the sun. In the process of adjustment, the environmental graphics are collected in a simplified cyclic manner by resetting the control panel, and the ROI area including strong light is initially screened out by using a target detection algorithm, and then the ROI area is fine-grained at the pixel level in combination with gradient information and local maximum information to obtain the accurate strongest light position, which not only avoids a large amount of resource consumption and high equipment costs caused by processing a large number of images, but also can improve the adjustment efficiency of solar energy chasing power generation and the sensitivity to light intensity, can accurately obtain the strongest light point, and then adjust the solar panel to the corresponding position, make full use of the current light conditions, and improve the power generation efficiency of the solar panel. Afterwards, the differential voltage formed by the photoresistor is used to adjust the absolute value of the differential voltage to a safe threshold as the goal to fine-tune the solar panel, and fully capture the strongest light point under low resource consumption according to the different light intensities. During the entire cycle adjustment process, combined with the power change rate and time point of the solar panel power generation, an event trigger mechanism including a reward function and a forward and reverse control function is set to determine the start time of resetting the control panel. The cycle process is controlled in the form of an event trigger mechanism to avoid continuous adjustment affecting power generation efficiency, reduce wear of mechanical equipment, and increase the life of photovoltaic equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0028] Figure 1 A schematic diagram of a process flow of a solar chasing power generation method based on automatic compensation provided by an embodiment of the present invention;
[0029] Figure 2 A schematic diagram of the structure of a solar tracking power generation system provided by an embodiment of the present invention;
[0030] Figure 3 A schematic structural diagram of a solar tracking power generation device based on automatic compensation provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The technical solution of the present invention is described below in conjunction with the accompanying drawings.
[0032] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.
[0033] In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same.
[0034] In the embodiments of the present invention, sometimes a subscript such as W1 may be mistakenly written as a non-subscript such as W1. When the difference is not emphasized, the meanings to be expressed are consistent.
[0035] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0036] Reference Manual Attached Figure 1 , showing a schematic flow chart of a solar chasing power generation method based on automatic compensation provided in an embodiment of the present invention.
[0037] Reference Manual Attached Figure 2 , which shows a schematic structural diagram of a solar chasing power generation system provided by an embodiment of the present invention.
[0038] An embodiment of the present invention provides a solar light-chasing power generation method based on automatic compensation, which is applied to a solar light-chasing power generation system. The light-chasing power generation system includes a horizontal control subsystem, an elevation control subsystem and a reset control board. The horizontal control subsystem and the elevation control subsystem are respectively connected to the reset control board. The horizontal control subsystem includes a power amplifier control chip and a first voltage-dividing resistor, a second voltage-dividing resistor, a first photoresistor, a second photoresistor, a solar panel, a storage battery and a first motor all connected to the power amplifier control chip. The elevation control subsystem includes an image processing module, an elevation controller and a second motor connected in sequence. The solar panel is tangent to the rotation axis of the second motor, and the reset control board is connected to the camera.
[0039] For example, the power amplifier chip can be an 8-pin chip, 5-pin and 7-pin are connected, 6-pin and 8-pin are connected, the voltage divider resistor is two 10kΩ resistors, one is connected to 4-pin and 5-pin, and the other is connected to 2-pin and 5-pin, the first photoresistor is connected to the voltage divider resistor circuit of 8-pin and 2-pin, the second photoresistor is connected to 8-pin and 4-pin, the positive pole of the first motor is connected to 1-pin, the negative pole is connected to 3-pin, the positive pole of the energy storage battery is connected to 2-pin, the negative pole is connected to 4-pin, and the positive and negative poles of the solar panel are connected in parallel to the positive and negative poles of the energy storage battery. The above circuit is a specific implementation method of the horizontal control subsystem, which can automatically perform the light chasing function, and then the horizontal control subsystem and the elevation control subsystem are connected by resetting the control board to realize the linkage of the entire light chasing power generation system.
[0040] In a possible implementation manner, the first photoresistor and the second photoresistor are respectively arranged on two sides of the solar panel.
[0041] The purpose of this arrangement is to enable the photoresistor to sense different light conditions on different sides of the solar panel. With this arrangement, the system can more fully perceive the light conditions of the surrounding environment and more accurately determine the best solar panel adjustment position. This helps the system to fine-tune according to the light intensity on different sides to capture the most light energy and ensure that the solar panel is always facing the direction with the strongest light, thereby improving the efficiency of solar power generation.
[0042] In a possible implementation, it further includes: a rotating support base.
[0043] The shaft head of the first motor is fixedly connected to the rotating support base, and the side plate of the second motor is fixedly connected to the non-shaft head end of the first motor.
[0044] Through this arrangement, the system can achieve 180 degrees horizontal rotation and 360 degrees elevation rotation, thereby reducing the difficulty of controlling the solar panels and allowing the system to cover a wider range of illumination, thereby improving the flexibility and applicability of the solar power generation system.
[0045] Figure 2 The structural diagram of the solar light chasing power generation system is given in the figure. In the actual application process, the influence of the photoresistor and the image processing module on the system is first disconnected, and then the environmental image is collected with the goal of covering all viewing angles in the air. There are multiple environmental images collected, and then the collected environmental images are screened by the image processing module to screen out images with strong light intensity. This step is a fast target detection, and no pixel-level traversal is performed, which greatly reduces resource consumption and screening efficiency. After obtaining the ROI (Region of Interest), the accurate coordinate point identification of the strongest illumination point is performed again, so that the adjustment position of the solar panel can be effectively obtained, and the coordinates of the strongest illumination intensity are input into the power amplifier control chip and the elevation controller, and the first motor and the second motor are controlled to adjust the solar panel so that the line connecting the plane where the solar panel is located and the coordinates of the strongest illumination intensity is perpendicular to the plane where the solar panel is located. After the adjustment is completed, the photoresistor is turned on. The photoresistor has a photosensitive characteristic. The difference between the first photoresistor and the second photoresistor forms a differential voltage in the circuit. The power amplifier chip is used as a differential control chip to adjust the solar panel, so that the position of the solar panel is better, that is, the strongest illumination point is located at the center of the solar panel. At this time, the differential voltage formed is insufficient and cannot trigger the safety threshold. At this time, fine-tuning is completed, and solar chasing power generation based on automatic compensation is completed. This adjustment method can make full use of environmental conditions, not stick to the coordinates of the sun, and obtain the strongest illumination point in a way that meets environmental conditions to continuously complete power generation, which greatly improves the power generation efficiency.
[0046] The method can be implemented by a solar power generation device based on automatic compensation, and the solar power generation device based on automatic compensation can be a terminal or a server. The processing flow of the solar power generation method based on automatic compensation can include the following steps:
[0047] S1: Disconnect the photoresistor and the image processing module, and scan the surrounding environment of the solar panel by resetting the control board.
[0048] It should be noted that before scanning, the system will temporarily interrupt the connection with the photoresistor and the image processing module to prevent them from interfering with or affecting the environmental scanning process. Scan the surrounding environment of the solar panel using the reset control board: By resetting the control board, the system will scan the environment around the solar panel at a uniform speed to ensure that the system obtains comprehensive environmental information.
[0049] S2: During the scanning process, multiple environmental images around the solar panel are collected by the camera, and the collection coordinates of the environmental images are recorded.
[0050] It should be noted that the system obtains multiple environmental images and their acquisition coordinates through a comprehensive scan of the environment around the solar panel, providing necessary data support for subsequent image processing and light intensity calculation.
[0051] S3: Turn on the image processing module, transmit the environment image to the image processing module, and perform ROI area screening on the environment image based on the target detection algorithm.
[0052] Among them, the target detection algorithm is a computer vision technology that can accurately identify and locate the positions and categories of multiple targets in an image or video. Compared with traditional target recognition algorithms, the target detection algorithm can simultaneously detect multiple targets from an image with minimal computing resource consumption and accurately mark their positions and categories.
[0053] Specifically, first, the system connects to the image processing module and prepares to process the environmental image. The system transmits the environmental image collected by the camera to the image processing module. In the image processing module, the target detection algorithm is used to process the environmental image to quickly and accurately detect the objects in the image. The target detection algorithm identifies candidate areas in the environmental image that may contain regions of interest. Then, the system screens these candidate areas according to certain screening conditions, namely the bounding box confidence and category probability, and determines the final ROI area. Through the S3 step, the system can accurately identify areas in the environmental image that may contain high light intensity, providing accurate positioning information for subsequent light intensity calculations and solar panel adjustments.
[0054] It should be noted that by applying the target detection algorithm, objects and regions of interest in environmental images can be accurately identified, avoiding misjudgments or missed detections that may occur in traditional methods based on simple thresholds or rules. Computer vision technology is used to automatically process environmental images without human intervention, and automated regions of interest screening can be achieved. The target detection algorithm has a high processing speed and can analyze and screen environmental images in a short time, thereby quickly locating the region of interest. Moreover, the parameters can be flexibly adjusted according to the lighting conditions and target characteristics in the actual environment to meet the needs of solar tracking in different scenarios.
[0055] In a possible implementation, the target detection algorithm is a YOLO algorithm.
[0056] Among them, YOLO (You Only Look Once) is a popular target detection algorithm designed to quickly and accurately detect objects in images. Its main feature is that it completes the entire detection process in one go, rather than performing multiple detections through sliding windows or candidate regions. The YOLO algorithm is highly efficient and fast, and has achieved remarkable success in the field of target detection.
[0057] In a possible implementation, S3 specifically includes:
[0058] S301: Perform target detection on the environment image through the YOLO algorithm, and output the bounding box tensor T and the bounding box attributes of each bounding box, where the bounding box attributes include the bounding box center coordinates (x, y), the bounding box width w, the bounding box height h, the bounding box confidence conf and the bounding box category probability vector P:
[0059]
[0060] in, represents the prediction result of the environment image, S×S represents the number of grids the environment image is divided into, B represents the number of bounding boxes in each grid, C Represents the bounding box category.
[0061] S302: Traverse all bounding boxes, set the confidence threshold and category probability threshold to filter the ROI area based on the confidence of the bounding box:
[0062] P weighted =softmax(P)×sigmoid(conf)
[0063] conf=P obj ×IoU pred ×P class
[0064] conf>T obj
[0065] P max >T class
[0066] Among them, P weighted represents the bounding box category probability, conf represents the bounding box confidence, P max represents the maximum category probability in the connected box category probability vector P, T obj represents the confidence threshold, T class represents the category probability threshold, softmax and sigmoid both represent activation functions, P obj Indicates the probability of target existence, that is, the probability of maximum pixel existence, IoU predIt represents the intersection ratio of the bounding box and the actual bounding box, that is, the degree of overlap, expressed.
[0067] It should be noted that those skilled in the art can set the values of the confidence threshold and the category probability threshold according to actual needs, and the present invention does not limit this.
[0068] S303: retaining the bounding box corresponding to the bounding box category probability greater than the bounding box category probability threshold as a candidate region.
[0069] It should be noted that those skilled in the art can set the size of the bounding box category probability threshold according to actual needs, and the present invention is not limited here.
[0070] S304: Calculate the ROI area in each candidate area:
[0071]
[0072]
[0073] Among them, (x min ,y min ,x max ,y max ) represents the rectangular box corresponding to the ROI area.
[0074] Specifically, the YOLO algorithm is first used to detect the target of the environment image, and the bounding box tensor and the attributes of each bounding box are obtained, including the center coordinates, width, height, confidence and category probability vector of the bounding box. Then, all bounding boxes are traversed, and the confidence threshold and category probability threshold are set. The bounding boxes are screened based on the confidence, and the bounding boxes that meet the conditions are retained as candidate areas. Next, the bounding boxes whose category probability is greater than the threshold are retained as candidate areas, and the targetless images are removed. Finally, the ROI area of each candidate area is calculated, that is, the coordinate range of the rectangular box of the region of interest is determined. A large number of targetless images are removed, the amount of calculation for subsequent processing is reduced, computing resources are saved, and the efficiency and speed of the algorithm are improved. Through this target detection and screening method, the target area of interest can be quickly obtained, thereby speeding up the subsequent processing and enabling the system to respond and process faster.
[0075] S4: Combining the gradient information and the local maximum information, the brightest pixel points of the screened ROI area are screened progressively.
[0076] Among them, the gradient information represents the rate of change of pixel intensity in the image or the size of the gradient. The local maximum refers to the point with the largest pixel value in the local range of the image. In a gradient image, the local maximum usually corresponds to the maximum value of the gradient, which may indicate a bright spot or an area with high light intensity in the image. Searching for the local maximum point can help locate the location with the strongest light in the image. The brightest pixel point refers to the pixel point with the highest pixel value in a given area. In image processing, the brightest pixel point usually indicates the location with the strongest or brightest light in the image. The brightest pixel point can be found by calculating the maximum value of the pixel value in a given area and determining the corresponding pixel point coordinates. In a solar tracking power generation system, determining the location of the brightest pixel point can help adjust the direction of the solar panel to maximize the use of light energy. The ROI area obtained by the target detection algorithm is further fine-grained to obtain the brightest pixel point, thereby determining the location with the strongest light. By analyzing the gradient information of the image and searching for the local maximum point, the location with the strongest light in the image can be accurately determined, avoiding the errors that may exist in simple threshold or region division methods. This method is applicable to images under various lighting conditions and is not affected by light intensity and uneven light distribution. Even when the lighting changes greatly or is uneven, the location with the strongest lighting can still be effectively located. It also has high computational efficiency and can perform image processing and lighting point positioning in real time or near real time, meeting the needs of solar tracking power generation systems for rapid response. Due to the use of an image gradient-based method, this method has a certain degree of anti-interference ability for noise or interference in the image, improving the reliability and stability of lighting point positioning.
[0077] In a possible implementation, S4 specifically includes:
[0078] S401: Calculate the horizontal gradient and vertical gradient of the ROI area:
[0079]
[0080]
[0081] Among them, G x and G y They represent horizontal gradient and vertical gradient respectively, and I represents the ROI area.
[0082] S402: Convert the ROI region into a gradient image based on the horizontal gradient and the vertical gradient.
[0083] S403: Searching for local maximum points in the gradient image:
[0084]
[0085]
[0086] Among them, G(x,y) represents the gradient value at the coordinate (x,y) in the gradient image, and localMax(x,y) represents the local maximum point screening function.
[0087] S404: Calculate the pixel values of the pixels in the neighborhood of the local maximum point, and output the pixel with the largest pixel value as the brightest pixel.
[0088] Specifically, for the ROI area, first calculate its gradient in the horizontal and vertical directions, that is, the gradient value of each pixel in the gradient image. Convert the ROI area to a gradient image, that is, use the information of the horizontal and vertical gradients to construct a gradient image. Search for local maximum points in the gradient image. These points represent the locations where the gradient changes are large, which may correspond to areas with higher brightness in the image. For each local maximum point, calculate the pixel values of the pixels in its neighborhood, and select the pixel with the largest pixel value as the brightest pixel output. Through the first screening, the area of interest can be quickly located, avoiding the consumption of computing resources for pixel traversal of the entire image, and improving the screening speed. In the second screening, for the local maximum point, only the pixel values of the pixels in its neighborhood are calculated, avoiding pixel-level processing of the entire image, reducing the consumption of image data processing resources, and increasing the efficiency of finding the brightest pixel.
[0089] Two screenings: One screening quickly locates the region of interest, i.e., the ROI area, avoiding the consumption of computing resources and the screening speed caused by pixel traversal. Then, a secondary screening at the pixel level is performed to accurately locate the brightest pixel, reduce the consumption of image data processing resources, and increase the speed and accuracy of finding the brightest pixel.
[0090] S5: Output the coordinates of the strongest light intensity corresponding to the brightest pixel.
[0091] Among them, the coordinates of the strongest light intensity are the image coordinates in the corresponding environmental image. Since the acquisition coordinates of each environmental image are recorded during the acquisition process, the coordinates of the strongest light point can be accurately obtained. This coordinate is the adjustment target of the solar panel, that is, the solar panel is aligned with the coordinate to make full use of the light intensity and improve the power generation efficiency.
[0092] S6: Input the coordinates of the strongest light intensity into the power amplifier control chip and the elevation angle controller, and control the first motor and the second motor to adjust the solar panel so that the line connecting the plane where the solar panel is located and the coordinates of the strongest light intensity is perpendicular to the plane where the solar panel is located.
[0093] It should be noted that by controlling the two motors, the solar panel is oriented perpendicular to the line connecting the coordinates of the strongest light intensity, which can capture light to the greatest extent and improve the energy collection efficiency of the solar panel.
[0094] S7: Turn on the photoresistor and obtain the differential voltage between the solar panels through the power amplifier control chip.
[0095] Among them, the photoresistor is a special resistor whose resistance value changes with the change of light intensity. When the light intensity increases, the resistance value of the photoresistor decreases. Conversely, when the light intensity decreases, the resistance value of the photoresistor increases. This characteristic allows the photoresistor to be used as a light sensor to detect changes in light intensity. The differential voltage refers to the voltage difference between two circuit nodes. In this case, the photoresistor is connected to different positions of the solar panel, and the differential voltage between the solar panels can be obtained by measuring the voltage difference between these positions. The change in this differential voltage can reflect the state of the solar panel under different lighting conditions, which can be used for system regulation and control. In the solar chasing power generation system, the differential voltage between the solar panels is obtained by connecting the photoresistor and using the power amplifier control chip. The current state of the solar panel is obtained by measuring the differential voltage between the solar panels for fine-tuning and adjustment to maximize the power generation efficiency of the solar panel.
[0096] S8: Fine-tune the solar panel with the goal of adjusting the absolute value of the differential voltage to a safety threshold.
[0097] The safety threshold is a condition for fine-tuning. Fine-tuning is performed only when the differential voltage is greater than the safety threshold, so as to avoid system jitter caused by continuous mechanical adjustment due to the constant existence of the differential voltage.
[0098] It should be noted that those skilled in the art can adjust the size of the safety threshold according to actual needs, and the present invention is not limited thereto.
[0099] In a possible implementation, S8 specifically includes:
[0100] S801: Determine an objective function with the goal of adjusting the absolute value of the differential voltage to a safety threshold:
[0101] |u1-u2|≥u 阈值
[0102] Among them, u1 and u2 respectively represent the voltage of the circuit where the first photoresistor is located, and represents the voltage of the circuit where the second photoresistor is located. 阈值 Indicates the safety threshold.
[0103] S802: Fine-tune the solar panel through the power amplifier chip according to the objective function.
[0104] It should be noted that this setting method can avoid the jitter of the first motor during the fine-tuning process caused by no dead zone and no delay start. Specifically, the safety threshold can directly embed the control algorithm into the power amplifier control chip of the horizontal control subsystem, or add a diode or build an H-bridge in the circuit of the horizontal control subsystem to prevent the jitter of the fine-tuning motor from affecting the power generation efficiency, thereby improving the system reliability.
[0105] Among them, the diode is an electronic component with two ports, namely the anode and the cathode. It is mainly used to control the direction of current flow. When a forward voltage is applied to the anode, the current can flow through the diode, and when a reverse voltage is applied to the anode, the current cannot pass. This property makes the diode often used as a rectifier, switch and protective device in the circuit. The H-bridge is a circuit topology composed of four switching elements that can control the direction and size of the current. The H-bridge is usually used to drive a DC motor, which can realize forward and reverse rotation and speed regulation functions. By controlling the switching state in the H-bridge, the current can flow between different motor windings, thereby changing the direction and speed of the motor.
[0106] S9: Based on the power change rate and time point of the solar panel, an event trigger mechanism including a reward function and a forward and reverse control function is set to determine the start time of resetting the control panel.
[0107] Among them, the rate of change of solar panel power generation refers to the degree of change of the power generation of the solar panel per unit time, which is used to measure the current power generation efficiency and working state of the solar panel. Time points refer to different moments of the system on the time axis. The state of the system operation and the time when adjustments need to be made can be determined according to the changes in time points. The reward function is a function that calculates a reward value based on the current state and operation of the system to evaluate the performance and effect of the system. In the solar chasing power generation system, the reward function can determine whether the system is working in the best state and give the corresponding reward value according to the change rate of the power generation of the solar panel and the change of the time point, as well as the preset goal. The forward and reverse control function is a function that determines whether the system needs to be adjusted in the forward or reverse direction according to the current state and operation of the system. In the solar chasing power generation system, the forward and reverse control function can determine whether the current light-targeting state of the system has reached the best state according to the difference in power generation between the previous moment and the current moment, and decide whether forward or reverse adjustments are needed. The event trigger mechanism is a mechanism that determines when the system needs to be adjusted or optimized according to the operating state and preset conditions of the system. In the solar chasing power generation system, the event trigger mechanism can determine when to start resetting the control panel to adjust the solar panel based on the output results of the reward function and the forward and reverse control function, as well as the preset conditions.
[0108] It should be noted that by comprehensively considering multiple factors such as the rate of change of solar panel power generation, time point, reward function, forward and reverse control function, etc., by establishing an event trigger mechanism and determining the start time, the adjustment timing and direction of the system can be effectively controlled, thereby achieving precise adjustment and optimization of the solar panels. This mechanism enables the system to automatically make appropriate adjustments according to the real-time lighting conditions and the power generation status of the solar panels under different environmental conditions, so as to improve the efficiency and performance of the solar chasing power generation system.
[0109] In a possible implementation, S9 specifically includes:
[0110] S901: Combine the change rate of solar panel power generation and the change of time points to establish a reward function:
[0111] r total =r1+r2
[0112]
[0113]
[0114] Among them, r total represents the total reward value of the solar panel at the current time t, a represents the preset value of the generated power, b represents the preset rate of change of the generated power, A represents the amplitude parameter, sin represents the sine function, π represents the pi, r1 represents the power reward function value, r2 represents the time point reward function value, and ο represents the preset reward value.
[0115] It should be noted that when the power generation of the solar panel changes suddenly, that is, it suddenly exceeds the threshold a, it proves that the current light intensity changes dramatically. At this time, a positive feedback reward value is issued to increase the total reward value. If the power generation caused by the sudden change is less than a, the reward operation is not performed. On the one hand, it can avoid frequent system adjustments caused by slight power changes, thereby reducing the mechanical wear and adjustment energy consumption of the system. In addition, if the power generation is about to be lower than the threshold b, it means that the current power is insufficient. The positive feedback operation is performed, that is, the reward value is increased, and the reset control board is driven to start, so as to increase the power generation. The time is within the time range of the daytime, that is, the time period (6:00, 18:00), as the time gradually increases from 6 to 12 o'clock, the value of the sine function also gradually increases until it reaches its maximum value, which will be reached at 12 o'clock. From 12 to 18 o'clock, it continues to increase, but the function parameter gradually decreases, causing the function value to gradually decrease until it stops adjusting the reward at night, which is in line with the actual situation and can search for the best light point based on the actual situation. Increase the reward value to start the reset control panel. On the contrary, set the reward value to negative infinity directly during the night time period, that is, no matter how the time point changes, the reset control panel will not be started, that is, the system operation will be stopped.
[0116] It should be noted that those skilled in the art can set the preset value of the generated power and the preset rate of change of the generated power according to actual needs, and the present invention does not limit this herein.
[0117] S902: Establish forward and reverse control function:
[0118]
[0119] Among them, T step represents the forward and reverse control function, φ>0 represents the forward and reverse control function threshold, P last Represents the power generated at the previous moment, P current Indicates the power generated at the current moment.
[0120] It should be noted that in order to reasonably measure the single-step adjustment feedback value, the power generation difference between the previous moment and the current moment is used as the forward and reverse control function to drive the system to perform forward and reverse adjustments, that is, if the power generation difference between the previous moment and the current moment is negative, the forward and reverse control function value is negative, which proves that the light point at the current moment is better. At this time, forward rotation is performed to perform the search for the best light point in a continuous manner. If the power generation difference between the previous moment and the current moment is positive, the forward and reverse control function value is positive, which proves that the light point at the previous moment is better. At this time, reversal is performed to further control the system to move to the light point with higher power generation. The forward and reverse control function threshold φ is set so that the forward and reverse control will intervene in the control system only when the preset conditions are met, so as to avoid the light point search process falling into the local optimum.
[0121] It should be noted that those skilled in the art can set the size of the forward and reverse control function threshold according to actual needs, and the present invention does not limit this.
[0122] S903: Combine the reward function and the forward and reverse control function to create an event trigger mechanism.
[0123] S904: Determine a start time for resetting the control board according to the event trigger mechanism, wherein the start time is the same as the current time that satisfies the event trigger mechanism.
[0124] The event trigger mechanism can constrain the adjustment time and direction of the entire system according to the power generation capacity, and continuously determine the best light point during the search process, thus avoiding the problem of excessive mechanical wear and shortened life caused by long-term continuous adjustment of the mechanical structure caused by conventional adjustment methods, greatly increasing the durability of the entire system and reducing maintenance costs.
[0125] S10: Return to step S1 according to the start time to perform cyclic automatic compensation on the solar panel.
[0126] The loop mechanism allows the solar panels to adaptively follow the optimal layout point and can perform a comprehensive traversal of the optimal layout point, which can effectively avoid the problem that the solar panels cannot find the optimal point of back light intensity under abnormal conditions and improve the power generation efficiency of the solar panels.
[0127] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0128] The present invention adjusts the solar panel with multiple degrees of freedom through a horizontal control subsystem, an elevation control subsystem and a reset control panel, and uses the photosensitive characteristics of a photoresistor to achieve fine-tuning of the solar panel to avoid the problem of not being able to fully utilize the light due to adjusting the orientation angle of the solar panel based on the real-time coordinates of the sun. In the process of adjustment, the environmental graphics are collected in a simplified cyclic manner by resetting the control panel, and the ROI area including strong light is initially screened out by using a target detection algorithm, and then the ROI area is fine-grained at the pixel level in combination with gradient information and local maximum information to obtain the accurate strongest light position, which not only avoids a large amount of resource consumption and high equipment costs caused by processing a large number of images, but also can improve the adjustment efficiency of solar energy chasing power generation and the sensitivity to light intensity, can accurately obtain the strongest light point, and then adjust the solar panel to the corresponding position, make full use of the current light conditions, and improve the power generation efficiency of the solar panel. Afterwards, the differential voltage formed by the photoresistor is used to adjust the absolute value of the differential voltage to a safe threshold as the goal to fine-tune the solar panel, and fully capture the strongest light point under low resource consumption according to the different light intensities. During the entire cycle adjustment process, combined with the power change rate and time point of the solar panel power generation, an event trigger mechanism including a reward function and a forward and reverse control function is set to determine the start time of resetting the control panel. The cycle process is controlled in the form of an event trigger mechanism to avoid continuous adjustment affecting power generation efficiency, reduce wear of mechanical equipment, and increase the life of photovoltaic equipment.
[0129] Reference Manual Attached Figure 3 , showing a schematic structural diagram of a solar chasing power generation device based on automatic compensation provided by the present invention.
[0130] The present invention further provides a solar tracking power generation device 20 based on automatic compensation, which is applied to the above-mentioned solar tracking power generation method based on automatic compensation, comprising:
[0131] Processor 201.
[0132] The memory 202 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 201, the solar tracking power generation method based on automatic compensation as in the method embodiment is implemented.
[0133] The solar chasing power generation device 20 based on automatic compensation provided by the present invention can execute the above-mentioned solar chasing power generation method based on automatic compensation and achieve the same or similar technical effects. To avoid repetition, the present invention will not go into details.
[0134] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0135] The present invention adjusts the solar panel with multiple degrees of freedom through a horizontal control subsystem, an elevation control subsystem and a reset control panel, and uses the photosensitive characteristics of a photoresistor to achieve fine-tuning of the solar panel to avoid the problem of not being able to fully utilize the light due to adjusting the orientation angle of the solar panel based on the real-time coordinates of the sun. In the process of adjustment, the environmental graphics are collected in a simplified cyclic manner by resetting the control panel, and the ROI area including strong light is initially screened out by using a target detection algorithm, and then the ROI area is fine-grained at the pixel level in combination with gradient information and local maximum information to obtain the accurate strongest light position, which not only avoids a large amount of resource consumption and high equipment costs caused by processing a large number of images, but also can improve the adjustment efficiency of solar energy chasing power generation and the sensitivity to light intensity, can accurately obtain the strongest light point, and then adjust the solar panel to the corresponding position, make full use of the current light conditions, and improve the power generation efficiency of the solar panel. Afterwards, the differential voltage formed by the photoresistor is used to adjust the absolute value of the differential voltage to a safe threshold as the goal to fine-tune the solar panel, and fully capture the strongest light point under low resource consumption according to the different light intensities. During the entire cycle adjustment process, combined with the power change rate and time point of the solar panel power generation, an event trigger mechanism including a reward function and a forward and reverse control function is set to determine the start time of resetting the control panel. The cycle process is controlled in the form of an event trigger mechanism to avoid continuous adjustment affecting power generation efficiency, reduce wear of mechanical equipment, and increase the life of photovoltaic equipment.
[0136] It should be understood that the processor in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0137] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0138] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0139] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0140] In the present invention, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0141] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0142] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0143] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0144] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0145] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0146] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0147] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0148] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements a solar tracking power generation method based on automatic compensation as described in the method embodiment.
[0149] A computer-readable storage medium provided by the present invention can implement the steps and effects of the solar tracking power generation method based on automatic compensation of the above method embodiment. To avoid repetition, the present invention will not go into details.
[0150] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0151] The present invention adjusts the solar panel with multiple degrees of freedom through the horizontal control subsystem, the elevation control subsystem and the reset control panel, and uses the photosensitive characteristics of the photoresistor to realize the fine adjustment of the solar panel to avoid the problem of not being able to fully utilize the light due to adjusting the orientation angle of the solar panel based on the real-time coordinates of the sun. In the process of adjustment, the environmental graphics are collected in a simplified cyclic manner by resetting the control panel, and the ROI area including strong light is initially screened out by the target detection algorithm, and then the ROI area is combined with the gradient information and the local maximum information to perform pixel-level fine-grained screening to obtain the accurate strongest light position, which not only avoids the large amount of resource consumption and high equipment cost caused by processing a large number of images, but also can improve the adjustment efficiency of solar energy chasing power generation and the sensitivity to light intensity, can accurately obtain the strongest light point, and then adjust the solar panel to the corresponding position, make full use of the current light conditions, and improve the power generation efficiency of the solar panel. Afterwards, the differential voltage formed by the photoresistor is used to adjust the absolute value of the differential voltage to the safety threshold as the goal to fine-tune the solar panel, and fully capture the strongest light point under the condition of low resource consumption according to the different light intensities. During the entire cycle adjustment process, combined with the power change rate and time point of the solar panel power generation, an event trigger mechanism including a reward function and a forward and reverse control function is set to determine the start time of the reset control panel, and the cycle process is controlled in the form of an event trigger mechanism to avoid continuous adjustment affecting the power generation efficiency, reduce the wear of mechanical equipment, and increase the life of photovoltaic equipment.
[0152] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0153] There are a few points to note:
[0154] (1) The drawings of the embodiments of the present invention only relate to the structures related to the embodiments of the present invention, and other structures may refer to the general design.
[0155] (2) For the sake of clarity, in the drawings used to describe the embodiments of the present invention, the thickness of the layers or regions is exaggerated or reduced, that is, these drawings are not drawn according to the actual scale. It is understood that when an element such as a layer, film, region or substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element or there may be intermediate elements.
[0156] (3) In the absence of conflict, the embodiments of the present invention and the features therein may be combined with each other to obtain new embodiments.
[0157] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. The protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A solar tracking power generation method based on automatic compensation, characterized in that: Applied to a solar light chasing power generation system, the light chasing power generation system includes a horizontal control subsystem, an elevation control subsystem and a reset control board, the horizontal control subsystem and the elevation control subsystem are respectively connected to the reset control board, the horizontal control subsystem includes a power amplifier control chip and a first voltage-dividing resistor, a second voltage-dividing resistor, a first photoresistor, a second photoresistor, a solar panel, an energy storage battery and a first motor all connected to the power amplifier control chip, the elevation control subsystem includes an image processing module, an elevation controller and a second motor connected in sequence, the solar panel is tangent to the rotation axis of the second motor, the reset control board is connected to a camera, and the method includes: S1: disconnecting the photoresistor and the image processing module, and scanning the surrounding environment of the solar panel through the reset control board; S2: During the scanning process, a plurality of environment images around the solar panel are collected by the camera, and the collection coordinates of the environment images are recorded; S3: Turning on the image processing module, transmitting the environment image to the image processing module, and performing ROI area screening on the environment image based on a target detection algorithm; S4: combining gradient information and local maximum information to sequentially screen the brightest pixels in the screened ROI area in a progressive manner; S5: Outputting the coordinates of the strongest light intensity corresponding to the brightest pixel; S6: inputting the coordinates of the strongest light intensity into the power amplifier control chip and the elevation angle controller, and controlling the first motor and the second motor to adjust the solar panel so that the line connecting the plane where the solar panel is located and the coordinates of the strongest light intensity is perpendicular to the plane where the solar panel is located; S7: Turning on the photoresistor, and obtaining the differential voltage between the solar panels through the power amplifier control chip; S8: fine-tuning the solar panel with the goal of adjusting the absolute value of the differential voltage to a safety threshold; S9: combining the power generation rate change rate of the solar panel and the time point, setting an event trigger mechanism including a reward function and a forward and reverse control function to determine the start time of resetting the control panel; S10: according to the start time, return to step S1 to perform cyclic automatic compensation on the solar panel.
2. The solar chasing power generation method based on automatic compensation according to claim 1 is characterized in that: The first photoresistor and the second photoresistor are respectively arranged on two sides of the solar panel.
3. The solar chasing power generation method based on automatic compensation according to claim 1, characterized in that: Also includes: Rotating support base; The shaft head of the first motor is fixedly connected to the rotating support base, and the side plate of the second motor is fixedly connected to the non-shaft head end of the first motor.
4. The solar chasing power generation method based on automatic compensation according to claim 1, characterized in that: The target detection algorithm is the YOLO algorithm.
5. The solar chasing power generation method based on automatic compensation according to claim 4 is characterized in that: The S3 specifically includes: S301: Perform target detection on the environment image by using the YOLO algorithm, and output a bounding box tensor T and bounding box attributes of each bounding box, wherein the bounding box attributes include the bounding box center coordinates (x, y), the bounding box width w, the bounding box height h, the bounding box confidence conf, and the bounding box category probability vector P: in, represents the prediction result of the environment image, S×S represents the number of grids into which the environment image is divided, B represents the number of bounding boxes in each grid, C Represents the bounding box category; S302: Traverse all bounding boxes, set confidence thresholds and category probability thresholds to perform ROI area screening on the bounding boxes based on bounding box confidences: P weighted =softmax(P)×sigmoid(conf) conf=P obj ×IoU pred ×P class conf>T obj P max >T class Among them, P weighted represents the bounding box category probability, conf represents the bounding box confidence, P max represents the maximum category probability in the connection box category probability vector P, T obj represents the confidence threshold, T class represents the category probability threshold, softmax and sigmoid both represent activation functions, P obj Indicates the probability of target existence, that is, the probability of maximum pixel existence, IoU pred It represents the intersection-over-union ratio of the bounding box and the actual bounding box, that is, the degree of overlap; S303: retaining the bounding box corresponding to the bounding box category probability greater than the bounding box category probability threshold as a candidate region; S304: Calculate the ROI area in each candidate area: Among them, (x min ,y min ,x max ,y max ) represents the rectangular box corresponding to the ROI area.
6. The solar chasing power generation method based on automatic compensation according to claim 1, characterized in that: The S4 specifically includes: S401: Calculate the horizontal gradient and vertical gradient of the ROI area: Among them, G x and G y represent the horizontal gradient and the vertical gradient respectively, and I represents the ROI area; S402: Converting the ROI region into a gradient image based on the horizontal gradient and the vertical gradient; S403: Searching for a local maximum point in the gradient image: Wherein, G(x,y) represents the gradient value at the coordinate (x,y) in the gradient image, and localMax(x,y) represents the local maximum point screening function; S404: Calculate the pixel values of the pixels in the neighborhood of the local maximum point, and output the pixel with the largest pixel value as the brightest pixel.
7. The solar chasing power generation method based on automatic compensation according to claim 1, characterized in that: The S8 specifically includes: S801: Determine an objective function with the goal of adjusting the absolute value of the differential voltage to a safety threshold: u1-u2|≥u 阈值 Wherein, u1 and u2 respectively represent the voltage of the circuit where the first photoresistor is located, and represents the voltage of the circuit where the second photoresistor is located. 阈值 represents the safety threshold; S802: Fine-tune the solar panel by using the power amplifier chip according to the objective function.
8. The solar chasing power generation method based on automatic compensation according to claim 1, characterized in that: The S9 specifically includes: S901: Establish the reward function by combining the change rate of the solar panel power generation and the change at the time point: r total =r1+r2 Among them, r total represents the total reward value of the solar panel at the current time t, a represents the preset value of power generation, b represents the preset rate of change of power generation, A represents the amplitude parameter, sin represents the sine function, π represents the pi, r1 represents the power reward function value, r2 represents the time point reward function value, and ο represents the preset reward value; S902: Establish the forward and reverse control function: Among them, T step represents the forward and reverse control function, φ>0 represents the forward and reverse control function threshold, P last Represents the power generated at the previous moment, P current Indicates the power generated at the current moment. S903: Create an event trigger mechanism by combining the reward function and the forward and reverse control function; S904: Determine a start time of resetting the control board according to the event triggering mechanism, wherein the start time is the same as a current time that satisfies the event triggering mechanism.
9. A solar tracking power generation device based on automatic compensation, characterized in that: include: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the solar chasing power generation method based on automatic compensation as described in any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the solar tracking power generation method based on automatic compensation as described in any one of claims 1 to 8 is implemented.
