Photovoltaic panel angle adjusting method and device and storage medium
By calculating the projection area and normal vector of the photovoltaic panel, adjusting the panel angle to avoid occlusion, the problem of mutual blocking between photovoltaic panels is solved and the power generation efficiency is improved.
Patent Information
- Application Number
- CN202310668084.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-07
- Publication Date
- 2024-12-10
AI Technical Summary
The existing angle adjustment method of photovoltaic panels ignores the problem of mutual blocking between panels, resulting in a decrease in power generation efficiency, especially when a panel cannot rotate, it causes occlusion to the surrounding panels.
By selecting a photovoltaic panel with a risk of occlusion at the target adjustment moment, determine its projection area on the horizontal plane and the projection area of other panels, combine the normal vector of the panel and the sun position vector, calculate the target angle so that the panel can adjust to this angle. The projected areas of the panel do not overlap each other, thereby avoiding occlusion.
The mutual avoidance of photovoltaic panels is achieved and the efficiency of photovoltaic power generation is improved.
Smart Images

Figure CN119105559A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of photovoltaic power generation technology, and in particular to a method, device and storage medium for adjusting the angle of a photovoltaic panel. Background Art
[0002] The power generation efficiency of photovoltaic panels directly depends on the amount of solar radiation received by the photovoltaic panels, so the photovoltaic panels need to obtain as much solar radiation as possible. Currently, the main method is to use a rotatable bracket to control the angle of the photovoltaic panel so that it faces the direction of the sun as much as possible to obtain the maximum amount of solar radiation, thereby improving the power generation efficiency of the photovoltaic panel.
[0003] However, this method ignores the situation where photovoltaic panels block each other. For example, when a photovoltaic panel fails and cannot rotate, it will block the surrounding photovoltaic arrays and affect their power generation efficiency. Summary of the invention
[0004] The present disclosure provides a method, device and storage medium for adjusting the angle of a photovoltaic panel, so as to at least solve the above technical problems existing in the prior art.
[0005] According to a first aspect of the present disclosure, a method for adjusting an angle of a photovoltaic panel is provided, the method comprising:
[0006] Selecting a target panel that has a risk of being shaded at a target adjustment moment from among all photovoltaic panels;
[0007] Determine a first projection area of the target panel on the horizontal plane and a second projection area of other non-target panels except the target panel on the horizontal plane at the target adjustment moment;
[0008] Determine the normal vector of the plane where the target panel is located at the target adjustment time and the position vector of the sun at the target adjustment time;
[0009] Determine a target angle of the target panel at the target adjustment time according to the first projection area, the second projection area, the normal vector of the plane where the target panel is located at the target adjustment time, and the position vector of the sun at the target adjustment time, so that when the target panel is adjusted to the target angle, there is no overlap between the projection areas of all photovoltaic panels;
[0010] At the target adjustment moment, the target panel is adjusted to the target angle.
[0011] In one possible implementation, the selecting of a target panel that has a risk of being blocked at a target adjustment moment from all photovoltaic panels includes: determining the cosine value of the angle between the normal vector of the plane where the photovoltaic panel is located at the current moment and the sun's position vector at the current moment; and determining a photovoltaic panel whose cosine value of the angle at the current moment is less than an angle threshold and which has not failed as the target panel.
[0012] In one possible implementation, determining the first projection area of the target panel on the horizontal plane at the target adjustment moment includes: determining the target coordinates of the vertices of the target panel at the target adjustment moment in the three-dimensional coordinate system; determining the coordinates of the projection point of the vertex on the horizontal plane at the target adjustment moment based on the target coordinates, and the horizontal plane is the XY plane in the three-dimensional coordinate system; determining the first projection area of the target panel on the horizontal plane at the target adjustment moment based on the coordinates of the projection point.
[0013] In one possible implementation, determining the target coordinates of the vertices of the target panel at the target adjustment moment in the three-dimensional coordinate system includes: obtaining the initial coordinates of the vertices in the three-dimensional coordinate system when the target panel is parallel to the horizontal plane; determining the rotation matrix corresponding to the target panel at the target adjustment moment; and determining the target coordinates of the vertex based on the rotation matrix and the initial coordinates.
[0014] In one possible implementation manner, determining a second projection area of the non-target panel on the horizontal plane includes: determining the real-time coordinates of the vertices of the non-target panel at the current moment in the three-dimensional coordinate system; determining the coordinates of the projection points of the vertices of the non-target panel on the horizontal plane at the target adjustment moment based on the real-time coordinates and the position coordinates of the sun at the target adjustment moment; determining the second projection area of the non-target panel on the horizontal plane at the target adjustment moment based on the coordinates of the projection points of the non-target panel.
[0015] In one possible implementation, determining the target angle of the target panel at the target adjustment time according to the first projection area, the second projection area, the normal vector of the plane where the target panel is located at the target adjustment time, and the position vector of the sun at the target adjustment time includes:
[0016] Determine, according to the expression of the first projection area, a first coefficient matrix and a first constant matrix corresponding to the target panel at the target adjustment time;
[0017] Determine, according to the expression of the second projection area, a second coefficient matrix and a second constant matrix corresponding to the non-target panel at the target adjustment time;
[0018] The target angle is determined according to the first coefficient matrix, the first constant matrix, the second coefficient matrix and the second constant matrix, the normal vector of the plane where the target panel is located at the target adjustment moment, and the position vector of the sun at the target adjustment moment.
[0019] According to a second aspect of the present disclosure, a photovoltaic panel angle adjustment device is provided, the device comprising:
[0020] A selection module is used to select a target panel having a risk of being blocked at a target adjustment moment from among all photovoltaic panels;
[0021] A determination module, used to determine a first projection area of the target panel on the horizontal plane and a second projection area of other non-target panels except the target panel on the horizontal plane at the target adjustment moment;
[0022] The determination module is further used to determine the normal vector of the plane where the target panel is located at the target adjustment time and the position vector of the sun at the target adjustment time;
[0023] The determination module is further used to determine the target angle of the target panel at the target adjustment time according to the first projection area, the second projection area, the normal vector of the plane where the target panel is located at the target adjustment time, and the position vector of the sun at the target adjustment time, so that when the target panel is adjusted to the target angle, there is no overlapping area between the projection areas of all photovoltaic panels;
[0024] The adjustment module is used to adjust the target panel to the target angle at the target adjustment moment.
[0025] In one embodiment, the selection module includes: a first determination submodule, used to determine the cosine value of the angle between the normal vector of the plane where the photovoltaic panel is located at the current moment and the position vector of the sun at the current moment; a second determination submodule, used to determine the photovoltaic panel whose cosine value of the angle at the current moment is less than the angle threshold and has not failed as the target panel.
[0026] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0027] at least one processor; and
[0028] a memory communicatively connected to the at least one processor; wherein,
[0029] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present disclosure.
[0030] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the present disclosure.
[0031] The present invention discloses a method, device and storage medium for adjusting the angle of a photovoltaic panel. The method first selects a target panel that has a risk of being blocked at a target adjustment moment, and then determines a target angle based on a first projection area of the target panel on a horizontal plane at the target adjustment moment, a second projection area of other non-target panels other than the target panel on the horizontal plane, a normal vector of the plane where the target panel is located at the target adjustment moment, and a position vector of the sun, so that when the target panel is adjusted to the target angle at the target adjustment moment, there is no overlapping area between the projection areas of all the photovoltaic panels, thereby achieving no blocking between the photovoltaic panels after adjustment and improving the power generation efficiency of the photovoltaic panels.
[0032] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0034] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0035] Figure 1 A schematic diagram of the implementation process of a method for adjusting the angle of a photovoltaic panel according to an embodiment of the present disclosure is shown;
[0036] Figure 2 A schematic diagram of an implementation scenario of a method for adjusting the angle of a photovoltaic panel according to an embodiment of the present disclosure is shown;
[0037] Figure 3 A schematic diagram showing the composition structure of a photovoltaic panel angle adjustment device according to an embodiment of the present disclosure is shown;
[0038] Figure 4 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0039] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0040] Figure 1 A schematic diagram of the implementation process of a photovoltaic panel angle adjustment method according to an embodiment of the present disclosure is shown. Figure 1 As shown, according to a first aspect of an embodiment of the present disclosure, a method for adjusting the angle of a photovoltaic panel is provided, and the method includes:
[0041] Step 101, selecting a target panel having a risk of being blocked at a target adjustment time from all photovoltaic panels;
[0042] The photovoltaic panel is an array panel composed of photovoltaic cells. In order to enable the photovoltaic panel to obtain as much solar radiation as possible, the angle of the photovoltaic panel needs to be adjusted every preset adjustment period. The preset adjustment period can be a preset period based on the geographical location of the photovoltaic panel and the design of the photovoltaic panel, for example, it can be 1-30 minutes.
[0043] The target adjustment time is the time when the angle of the target panel is adjusted next time. Assuming that the last time the target panel was adjusted was nine o'clock and the preset adjustment cycle is 30 minutes, the target adjustment time is nine thirty; the target panel is a photovoltaic panel that may be blocked by each other after its angle is adjusted at the target debugging time.
[0044] Step 102, determining a first projection area of a target panel on a horizontal plane and a second projection area of other non-target panels except the target panel on a horizontal plane at a target adjustment moment;
[0045] The first projection area is the area formed by the projection of the target panel on the horizontal plane at the target adjustment moment, and the second projection area is the area formed by the projection of other non-target panels except the target panel on the horizontal plane at the target adjustment moment; the first projection area is related to the angle between the target panel and the horizontal plane at the target adjustment moment and the position of the sun at the target adjustment moment, and the second projection area is related to the angle between the non-target panel and the horizontal plane at the current moment and the position of the sun at the target adjustment moment.
[0046] Step 103, determining the normal vector of the plane where the target panel is located at the target adjustment time and the position vector of the sun at the target adjustment time;
[0047] The normal vector of the plane where the target panel is located at the time of target adjustment can be determined by the following formulas (1), (2), and (3):
[0048]
[0049]
[0050]
[0051] in, Represents the normal vector of the plane where the target panel is located at the time of target adjustment, θ ’ Represents the target angle, which is the value to be solved; express The component on the x-axis, express The component on the y-axis, express The component on the z-axis, γ, is the angle between the central axis of the photovoltaic panel and the horizontal plane. The position of the central axis on the photovoltaic panel is as follows: Figure 2 Shown by the dashed line.
[0052] The position vector of the sun at the target adjustment time can be determined according to the altitude angle and azimuth angle of the sun at the target adjustment time, and can be determined by the following formulas (4), (5), and (6):
[0053]
[0054]
[0055]
[0056] in, Represents the position vector of the sun at the target adjustment time, express The component on the x-axis, express The component on the y-axis, express The component on the z-axis, e ’ The altitude angle of the sun at the target adjustment time, a ’ Adjust the sun's azimuth for the target at that moment.
[0057] Step 104, determining a target angle of the target panel at the target adjustment time according to the first projection area, the second projection area, the normal vector of the plane where the target panel is located at the target adjustment time, and the position vector of the sun at the target adjustment time, so that when the target panel is adjusted to the target angle, there is no overlap between the projection areas of all photovoltaic panels;
[0058] The target angle is the angle at which the target panel rotates relative to the horizontal plane after the angle of the target panel is adjusted at the target adjustment moment; based on the first projection area and the second projection area, the minimum value of the cosine value of the angle between the normal vector of the plane where the target panel is located and the sun's position vector at the target adjustment moment is determined under the condition that there is no overlapping area between the first projection area and the second projection area, thereby determining the value of the target angle in the normal vector of the plane where the target panel is located at the target adjustment moment.
[0059] Step 105: At the target adjustment moment, adjust the target panel to the target angle.
[0060] A method for adjusting the angle of a photovoltaic panel in the present embodiment first selects a target panel that has a risk of being blocked at a target adjustment moment, and then determines the target angle based on a first projection area of the target panel on the horizontal plane at the target adjustment moment, a second projection area of other non-target panels other than the target panel on the horizontal plane, a normal vector of the plane where the target panel is located at the target adjustment moment, and a position vector of the sun, so that when the target panel is adjusted to the target angle at the target adjustment moment, there is no overlapping area between the projection areas of all the photovoltaic panels, thereby achieving no blocking between the photovoltaic panels after adjustment and improving the power generation efficiency of the photovoltaic panels.
[0061] In one embodiment of the present disclosure, a target panel with a risk of shading at a target adjustment moment is selected from all photovoltaic panels, including: determining the cosine value of the angle between the normal vector of the plane where the photovoltaic panel is located at the current moment and the position vector of the sun at the current moment; and determining the photovoltaic panel whose cosine value of the angle at the current moment is less than the angle threshold and has not failed as the target panel.
[0062] The angle threshold is the cosine value of the angle between the normal vector of the plane where the photovoltaic plane is located and the position vector of the sun. The photovoltaic panels that are not faulty refer to the photovoltaic panels that can work normally at the current moment. Specifically, which photovoltaic panels are not faulty can be obtained through the control end of the photovoltaic panels.
[0063] Specifically, the normal vector of the plane where the photovoltaic panel is located at the current moment can be determined by the following formulas (7), (8), and (9):
[0064]
[0065]
[0066]
[0067] in, Represents the normal vector of the plane where the photovoltaic panel is located at the current moment, express The component on the x-axis, express The component on the y-axis, express The component on the z-axis, θ is the angle between the photovoltaic panel and the horizontal plane at the current moment, and γ is the angle between the central axis of the photovoltaic panel and the horizontal plane at the current moment.
[0068] The current position vector of the sun can be determined by the following formulas (10), (11), and (12):
[0069]
[0070]
[0071]
[0072] in, represents the sun's position vector at the current moment, express The component on the x-axis, express The component on the y-axis, express The component on the z-axis, e is the altitude angle of the sun at the current moment, and a is the azimuth angle of the sun at the current moment.
[0073] The cosine value of the angle between the normal vector of the plane where the photovoltaic panel is located and the position vector of the sun at the current moment can be determined by the following formula (13):
[0074]
[0075] in, Represents the normal vector of the plane where the photovoltaic panel is located at the current moment, represents the sun's position vector at the current moment, express and The product of express The model and The product of the modulos.
[0076] The cosine value obtained by the above formula (13) is compared with the angle threshold, and the photovoltaic panel whose cosine value is less than the angle threshold and has not failed is determined as the target panel.
[0077] In one embodiment of the present disclosure, determining a first projection area of a target panel on a horizontal plane at a target adjustment moment includes: determining target coordinates of vertices of the target panel at the target adjustment moment in a three-dimensional coordinate system; determining coordinates of projection points of the vertices on the horizontal plane at the target adjustment moment based on the target coordinates, where the horizontal plane is an XY plane in the three-dimensional coordinate system; determining the first projection area of the target panel on the horizontal plane at the target adjustment moment based on the coordinates of the projection point.
[0078] like Figure 2 As shown, a three-dimensional coordinate system is established with due east as the X-axis, due north as the Y-axis, and the Z-axis perpendicular to the ground. The horizontal plane is the XY plane in the three-dimensional coordinate system. The target coordinates are the coordinates of the vertices of the target panel in the three-dimensional coordinate system at the time of target adjustment. The target coordinates can be determined according to the coordinates when the target panel is parallel to the horizontal plane and the target angle.
[0079] The coordinates of the projection point of the vertex on the horizontal plane at the target adjustment time can be determined by the following formulas (14) and (15):
[0080]
[0081]
[0082] (x r ,y r 、z r ) is the coordinate of the sun at the target adjustment time, which can be determined according to the time of the target adjustment time and is a known quantity; x e ,y e They represent the horizontal and vertical coordinates of the projection point respectively. Since x, y, and z contain the target angle, x e ,y e Also an expression with a target angle.
[0083] According to the coordinates of the projection point, the linear equations of the four straight lines passing through the projection point can be determined, and the projection area can be determined according to the linear equations of the four straight lines. For example, Figure 2 As shown, the four vertices of the photovoltaic panel are A, B, C, and D. Assume that the projection points corresponding to vertices A, B, C, and D are A ′ , B ′ , C ′ and D ′ , A can be obtained from the above formula ′ , B ′ , C ′ and D ′ The coordinates are expressions with target angles, according to A ′ , B ′ , C ′ and D ′ The coordinates of A are determined by′ and B ′ , B ′ and C ′ , C ′ and D ′ , D ′ and A ′ The linear equations of the four determined straight lines can be used to determine the projection area corresponding to the photovoltaic panel.
[0084] In one embodiment of the present disclosure, the target coordinates of the vertices of the target panel at the target adjustment moment in the three-dimensional coordinate system are determined, including: obtaining the initial coordinates of the vertices in the three-dimensional coordinate system when the target panel is parallel to the horizontal plane; determining the rotation matrix corresponding to the target panel at the target adjustment moment; and determining the target coordinates of the vertices based on the rotation matrix and the initial coordinates.
[0085] The initial coordinates are the coordinates of the vertices of the target panel in the three-dimensional coordinate system when the target panel is parallel to the horizontal plane. The initial coordinates can be determined based on the central axis coordinates of the target panel and the size of the target panel. The rotation matrix can be determined by the target angle. Since the current target angle is unknown, the rotation matrix is an expression with the target angle.
[0086] Specifically, the target coordinates of the vertices of the target panel in the three-dimensional coordinate system at the target adjustment time can be determined by the following formula (16):
[0087]
[0088] Among them, (x, y, z) represents the coordinates of any vertex on the target panel at the target adjustment moment, (x0, y0, z0) represents the initial coordinates of the vertex when the target panel is parallel to the horizontal plane; R is the rotation matrix, which is determined according to the target angle. R contains the target angle, so x, y, z obtained by R also contain the target angle, and the target angle is the number to be determined.
[0089] In one embodiment of the present disclosure, determining a second projection area of a non-target panel on a horizontal plane includes: determining real-time coordinates of vertices of the non-target panel at a current moment in a three-dimensional coordinate system; determining coordinates of projection points of vertices of the non-target panel at the target adjustment moment on the horizontal plane based on the real-time coordinates and the position coordinates of the sun at the target adjustment moment; and determining a second projection area of the non-target panel on the horizontal plane at the target adjustment moment based on the coordinates of the projection points of the non-target panel.
[0090] The real-time coordinates are the coordinates of other non-target panels except the target panel at the current moment, which can be specifically determined by the central axis coordinates of the non-target panel at the current moment and the size of the non-target panel; the method for obtaining the coordinates of the projection point of the non-target panel at the target adjustment moment is similar to the method for obtaining the projection point of the target panel, and will not be repeated again; the position coordinates of the sun at the target adjustment moment are the coordinates of the sun at the target adjustment moment. Since the non-target panel is not adjusted at the target adjustment moment, the projection area of the non-target panel at the target adjustment moment, that is, the second projection area is determined by the current angle between the non-target panel and the horizontal plane and the position coordinates of the sun at the target adjustment moment.
[0091] In one embodiment of the present disclosure, determining a target angle of the target panel at the target adjustment time according to the first projection area, the second projection area, the normal vector of the plane where the target panel is located at the target adjustment time, and the position vector of the sun at the target adjustment time includes:
[0092] Determine a first coefficient matrix and a first constant matrix corresponding to the target panel at the target adjustment moment according to the expression of the first projection area;
[0093] According to the expression of the second projection area, determine the second coefficient matrix and the second constant matrix corresponding to the non-target panel at the target adjustment time;
[0094] The target angle is determined according to the first coefficient matrix, the first constant matrix, the second coefficient matrix and the second constant matrix, the normal vector of the plane where the target panel is located at the target adjustment moment, and the position vector of the sun at the target adjustment moment.
[0095] In the above embodiment, it is mentioned that the straight line equations of the four straight lines where the outline of the projection area is located can be determined by the projection point coordinates;
[0096] For example, the linear equations of the four straight lines corresponding to the first projection area are:
[0097] A1x-B1y-b1=0
[0098] A2x-B2y-B2=0
[0099] A3x-B3y-b3=0
[0100] A4x-B4y-B4=0
[0101] The area enclosed by these four straight lines, namely the first projection area, is expressed as:
[0102]
[0103] Among them, A1-A4, B1-B4, b1-b4 are expressions with target angles. is the first coefficient matrix, is the first constant matrix.
[0104] The method for determining the second coefficient matrix and the second constant matrix corresponding to the non-target panel at the target adjustment moment is the same as that for the second coefficient matrix and the second constant matrix, so it will not be repeated here.
[0105] After determining the first coefficient matrix, the first constant matrix, the second coefficient matrix and the second constant matrix, the target angle can be determined by combining the normal vector of the plane where the target panel is located at the target adjustment time and the position vector of the sun at the target adjustment time;
[0106] Specifically, the target angle can be determined by the following optimization function (17):
[0107]
[0108] in, is the objective function, st is the optimization condition, i represents the i-th target panel, j represents other photovoltaic panels except the i-th target panel, N represents the number of target panels, Represents the normal vector of the plane where the i-th target panel is located at the time of target adjustment, Represents the position vector of the sun at the target adjustment time, represents the transpose of the second matrix corresponding to the i-th target panel, represents the transpose of the second matrix of the photovoltaic panels other than the i-th target panel, represents the transpose of the first matrix corresponding to the i-th target panel, represents the transpose of the first matrix corresponding to the photovoltaic panels other than the i-th target panel, μ i represents the auxiliary variable corresponding to the i-th target panel, λ j Represents the auxiliary variables corresponding to other photovoltaic panels except the i-th target panel.
[0109] For example, photovoltaic panels 1, 2 and 4 among photovoltaic panels 1-4 are target panels that have a risk of being blocked at the target adjustment moment, and photovoltaic panels 1, 2 and 4 are target panel 1, target panel 2 and target panel 3 respectively.
[0110] at this time, Where N is 3, which represents the sum of the cosine values of the angles between the normal vectors of the planes where the target panels 1, 2, and 3 are located and the position vector of the sun at the target adjustment time; represents the minimum value of the sum of the cosine values of the angle, where is a known quantity, Contains the target angles corresponding to target panels 1, 2, and 3.
[0111] Take i as an example, To illustrate, the transpose b1 of the second matrix corresponding to the target panel 1 T Multiply by the auxiliary variable μ1, and then subtract the transpose of the second matrix corresponding to the photovoltaic panels 2-4 and multiply by the corresponding auxiliary variables. μ and λ are unknown numbers without practical significance introduced to solve the optimization conditions;
[0112] Correspondingly, the data corresponding to when i is 2 and 3 are successively brought into
[0113] Take i as 3 examples, for To illustrate, when i is 3, the target panel 3 is the photovoltaic panel 4, and its corresponding is the transpose of the first matrix corresponding to target panel 3 Multiply by the auxiliary variable μ3, and then subtract the transpose of the first matrix corresponding to photovoltaic panels 1, 2, and 3 multiplied by the corresponding auxiliary variables;
[0114] Correspondingly, the data corresponding to when i is 1 and 2 are sequentially brought into
[0115] At this time, the optimization conditions in the optimization function and the unknowns contained in the objective function are the target angles corresponding to the target panels 1, 2 and 3 respectively. By solving the optimization function, the values of the target angles corresponding to the target panels 1, 2 and 3 respectively can be obtained.
[0116] like Figure 3 As shown, the embodiment of the present disclosure provides a photovoltaic panel angle adjustment device, the device comprising:
[0117] A selection module 301 is used to select a target panel having a risk of being blocked at a target adjustment time from all photovoltaic panels;
[0118] A determination module 302, configured to determine a first projection area of the target panel on a horizontal plane and a second projection area of other non-target panels except the target panel on a horizontal plane at a target adjustment time;
[0119] The determination module 302 is further used to determine the normal vector of the plane where the target panel is located at the target adjustment time and the position vector of the sun at the target adjustment time;
[0120] The determination module 302 is further configured to determine a target angle of the target panel at the target adjustment time according to the first projection area, the second projection area, the normal vector of the plane where the target panel is located at the target adjustment time, and the position vector of the sun at the target adjustment time, so that when the target panel is adjusted to the target angle, there is no overlap between the projection areas of all photovoltaic panels;
[0121] The adjustment module 303 is used to adjust the target panel to the target angle at the target adjustment moment.
[0122] In one embodiment of the present disclosure, the selection module 301 includes: a first determination submodule 3011, used to determine the cosine value of the angle between the normal vector of the plane where the photovoltaic panel is located at the current moment and the position vector of the sun at the current moment; a second determination submodule 3012, used to determine the photovoltaic panel whose cosine value of the angle at the current moment is less than the angle threshold and has not failed as the target panel.
[0123] In one embodiment of the present disclosure, the determination module 302 includes: a first determination submodule 3021, used to determine the target coordinates of the vertices of the target panel in the three-dimensional coordinate system at the target adjustment moment; a second determination submodule 3022, used to determine the coordinates of the projection point of the vertex on the horizontal plane at the target adjustment moment based on the target coordinates, and the horizontal plane is the XY plane in the three-dimensional coordinate system; a third determination submodule 3023, used to determine the first projection area of the target panel on the horizontal plane at the target adjustment moment based on the coordinates of the projection point.
[0124] In one embodiment of the present disclosure, the first determination submodule 3021 includes: an acquisition unit 30211, used to acquire the initial coordinates of the vertex in the three-dimensional coordinate system when the target panel is parallel to the horizontal plane; a first determination unit 30212, used to determine the rotation matrix corresponding to the target panel at the target adjustment moment; a second determination unit 30213, used to determine the target coordinates of the vertex based on the rotation matrix and the initial coordinates.
[0125] In one embodiment of the present disclosure, the determination module 302 also includes: a fourth determination submodule 3024, which is used to intentionally determine the real-time coordinates of the vertices of the non-target panel in the three-dimensional coordinate system at the current moment; a fifth determination submodule 3025, which is used to determine the coordinates of the projection point of the vertex of the non-target panel on the horizontal plane at the target adjustment moment based on the real-time coordinates and the position coordinates of the sun at the target adjustment moment; and a sixth determination submodule 3026, which is used to determine the second projection area of the non-target panel on the horizontal plane at the target adjustment moment based on the coordinates of the projection point of the non-target panel.
[0126] In one embodiment of the present disclosure, the determination module 302 also includes: a seventh determination submodule 3027, used to determine the first coefficient matrix and the first constant matrix corresponding to the target panel at the target adjustment moment according to the expression of the first projection area; an eighth determination submodule 3028, used to determine the second coefficient matrix and the second constant matrix corresponding to the non-target panel at the target adjustment moment according to the expression of the second projection area; a ninth determination submodule 3029, used to determine the target angle according to the first coefficient matrix, the first constant matrix, the second coefficient matrix and the second constant matrix, the normal vector of the plane where the target panel is located at the target adjustment moment, and the position vector of the sun at the target adjustment moment.
[0127] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0128] Figure 4 A schematic block diagram of an example electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0129] like Figure 4 As shown, the device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0130] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0131] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above, such as a method for adjusting the angle of a photovoltaic panel. For example, in some embodiments, a method for adjusting the angle of a photovoltaic panel may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the method for adjusting the angle of a photovoltaic panel described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to execute a method for adjusting the angle of a photovoltaic panel in any other appropriate manner (for example, by means of firmware).
[0132] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0133] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0134] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0135] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0136] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0137] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0138] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0139] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0140] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for adjusting the angle of a photovoltaic panel, characterized in that: The method comprises: Selecting a target panel that has a risk of being shaded at a target adjustment moment from among all photovoltaic panels; Determine a first projection area of the target panel on the horizontal plane and a second projection area of other non-target panels except the target panel on the horizontal plane at the target adjustment moment; Determine the normal vector of the plane where the target panel is located at the target adjustment time and the position vector of the sun at the target adjustment time; Determine a target angle of the target panel at the target adjustment time according to the first projection area, the second projection area, the normal vector of the plane where the target panel is located at the target adjustment time, and the position vector of the sun at the target adjustment time, so that when the target panel is adjusted to the target angle, there is no overlap between the projection areas of all photovoltaic panels; At the target adjustment moment, the target panel is adjusted to the target angle.
2. The method according to claim 1, characterized in that The step of selecting a target panel having a risk of being blocked at a target adjustment time from all photovoltaic panels includes: Determine the cosine value of the angle between the normal vector of the plane where the photovoltaic panel is located at the current moment and the position vector of the sun at the current moment; The photovoltaic panel whose cosine value of the angle at the current moment is less than the angle threshold and has no fault is determined as the target panel.
3. The method according to claim 1, characterized in that The determining of a first projection area of the target panel on a horizontal plane at the target adjustment time comprises: Determine the target coordinates of the vertices of the target panel in the three-dimensional coordinate system at the target adjustment time; According to the target coordinates, determining the coordinates of the projection point of the vertex on the horizontal plane at the target adjustment time, the horizontal plane being the XY plane in the three-dimensional coordinate system; A first projection area of the target panel on the horizontal plane at a target adjustment time is determined according to the coordinates of the projection point.
4. The method according to claim 3, characterized in that The determining of target coordinates of vertices of the target panel in the three-dimensional coordinate system at the target adjustment time includes: Acquire the initial coordinates of the vertices in the three-dimensional coordinate system when the target panel is parallel to the horizontal plane; Determine the rotation matrix corresponding to the target panel at the target adjustment moment; The target coordinates of the vertex are determined according to the rotation matrix and the initial coordinates.
5. The method according to claim 1, characterized in that Determining a second projection area of the non-target panel on a horizontal plane includes: Determine the real-time coordinates of the vertices of the non-target panel in the three-dimensional coordinate system at the current moment; Determine the coordinates of the projection point of the vertex of the non-target panel on the horizontal plane at the target adjustment time according to the real-time coordinates and the position coordinates of the sun at the target adjustment time; According to the coordinates of the projection point of the non-target panel, a second projection area of the non-target panel on the horizontal plane at the target adjustment time is determined.
6. The method according to claim 1, characterized in that The determining a target angle of the target panel at the target adjustment time according to the first projection area, the second projection area, the normal vector of the plane where the target panel is located at the target adjustment time, and the position vector of the sun at the target adjustment time includes: Determine, according to the expression of the first projection area, a first coefficient matrix and a first constant matrix corresponding to the target panel at the target adjustment time; Determine, according to the expression of the second projection area, a second coefficient matrix and a second constant matrix corresponding to the non-target panel at the target adjustment time; The target angle is determined according to the first coefficient matrix, the first constant matrix, the second coefficient matrix and the second constant matrix, the normal vector of the plane where the target panel is located at the target adjustment moment, and the position vector of the sun at the target adjustment moment.
7. A photovoltaic panel angle adjustment device, characterized in that: The device comprises: A selection module is used to select a target panel having a risk of being blocked at a target adjustment moment from among all photovoltaic panels; A determination module, used to determine a first projection area of the target panel on the horizontal plane and a second projection area of other non-target panels except the target panel on the horizontal plane at the target adjustment moment; The determination module is further used to determine the normal vector of the plane where the target panel is located at the target adjustment time and the position vector of the sun at the target adjustment time; The determination module is further used to determine the target angle of the target panel at the target adjustment time according to the first projection area, the second projection area, the normal vector of the plane where the target panel is located at the target adjustment time, and the position vector of the sun at the target adjustment time, so that when the target panel is adjusted to the target angle, there is no overlapping area between the projection areas of all photovoltaic panels; The adjustment module is used to adjust the target panel to the target angle at the target adjustment moment.
8. The device according to claim 7, characterized in that The selection module comprises: A first determination submodule is used to determine the cosine value of the angle between the normal vector of the plane where the photovoltaic panel is located at the current moment and the position vector of the sun at the current moment; The second determination submodule is used to determine the photovoltaic panel whose cosine value of the angle at the current moment is less than the angle threshold and has no fault as the target panel.
9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to make a computer execute the method according to any one of claims 1-6.
