Posture monitoring and self-adaptive deviation correcting method for photovoltaic module cleaning robot
By using the motor current data and random forest model, combined with the sensor timestamp difference, real-time attitude monitoring and adaptive correction of the photovoltaic cleaning robot are realized, which solves the problems of inaccurate attitude judgment and poor correction effect in the existing technology, and improves Improve the robot's stability and adaptability in complex environments.
Patent Information
- Application Number
- CN202410602070.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-08-27
AI Technical Summary
Existing photovoltaic panel cleaning robots have inaccurate posture judgment and poor correction effects when encountering tilting phenomena, resulting in insufficient operational stability and reliability.
By combining the current motor current data of the intelligent photovoltaic cleaning robot with the random forest model, the robot's operating status is monitored and identified in real time, such as climbing, descending, running gently or crossing obstacles, and the correction strategy is adjusted according to the status, and the sensor is used to detect the photovoltaic panel. The time stamp difference of the gap is used to determine the deflection situation, and the running wheel speed is dynamically adjusted to achieve attitude correction.
It realizes the stable and reliable operation of the photovoltaic cleaning robot in complex environments, avoids unnecessary corrective actions, reduces the risk of getting stuck or detached from the photovoltaic bracket, and improves the adaptability and flexibility of attitude correction.
Smart Images

Figure CN118550310A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of robot intelligent control, and in particular to a posture monitoring and self-adaptive deviation correction method for a photovoltaic component cleaning robot. Background Art
[0002] Existing photovoltaic panel cleaning robots usually include a housing with driving wheels for controlling the robot's forward path on the upper and lower sides, and a limiting wheel perpendicular to the driving wheel and in contact with the side of the outer frame of the photovoltaic panel is set on the outside of the housing. However, during walking, the robot may deviate due to factors such as inconsistent driving speeds of the driving wheels on both sides, installation defects of the photovoltaic panels, or slipping of the walking wheels caused by rainy and snowy weather. The current photovoltaic cleaning robot's correction strategy is too rigid and cannot accurately identify the deflection, and cannot be adjusted in real time according to the current state of the photovoltaic cleaning robot, thereby failing to ensure the robot's stability and reliability during the correction process.
[0003] Posture recognition and correction method of existing photovoltaic panel cleaning robot
[0004] Generally speaking, existing photovoltaic panel cleaning robots detect the robot's deflection angle by installing a gyroscope, and then adjust the rotation speed of the upper and lower drive motors to achieve the robot's deviation correction. However, the inventors found that the gyroscope, as a technology for monitoring the robot's operating status, has shortcomings such as cumulative errors, being affected by vibration and temperature changes, high cost and complexity, which results in the gyroscope being not accurate enough to judge whether the photovoltaic robot is deflected. In addition, the on-site environment of the photovoltaic power station is relatively complex, and the misalignment between photovoltaic panels and the need for bridging frames due to uneven ground are common. Therefore, the robot can ensure the reliability of the robot's operation by correcting the deviation at the appropriate state and time.
[0005] Therefore, it is necessary to provide a photovoltaic module cleaning robot posture monitoring and adaptive deviation correction method to solve the problems existing in the above-mentioned prior art. Summary of the invention
[0006] Purpose of the invention: A method for posture monitoring and adaptive deviation correction of a photovoltaic module cleaning robot is proposed, aiming to solve the problems of inaccurate posture judgment and poor correction effect of existing photovoltaic cleaning robots when encountering tilt phenomena. The robot's deflection condition is judged by combining sensor perception data with the robot's walking wheel speed, and the current data is obtained to judge the robot's real-time operating status. Finally, the intelligent control algorithm is applied to accurately control the robot. The photovoltaic cleaning robot can quickly and accurately identify its posture when encountering abnormal situations, and automatically adjust its posture when the robot is running smoothly. This technology ensures the stability and reliability of the robot in various working environments, enabling it to continuously and efficiently clean photovoltaic panels.
[0007] Technical solution: Through the current motor current of the intelligent photovoltaic cleaning robot, the present invention determines the operating state of the robot, including but not limited to judging whether the robot is climbing, descending, running smoothly or crossing an obstacle.
[0008] By understanding the robot's operating status in real time, especially when climbing, descending, running smoothly or encountering obstacles, the correction strategy is adjusted in real time according to the current state of the photovoltaic cleaning robot. The present invention ensures that the photovoltaic cleaning robot maintains a more stable and reliable state during the correction process. The advantage of this real-time status monitoring is that it allows the robot to avoid unnecessary correction actions at critical moments, such as climbing, crossing obstacles and descending, thereby effectively preventing the risk of the robot getting stuck or detaching from the photovoltaic support.
[0009] S1: Data Collection
[0010] By collecting the operating data of the existing intelligent photovoltaic cleaning robot, including the motor current of the robot, data collection can use appropriate sensors or devices to ensure that the sampling frequency and data accuracy meet the requirements.
[0011] S2: Add labels to the data according to the actual state of the motor current
[0012] According to the actual state of the motor current, labels are added to the data set, such as "climbing", "crossing obstacles", "downhill", and "smooth operation". This process can be determined based on the characteristics of the motor current through specific algorithms or rules, with the characteristic data as the input variable and the actual motor state label as the output variable.
[0013] S3: Building a Random Forest Model
[0014] A random forest model is constructed using the training set of the original motor current dataset. The model consists of a decision tree and a classifier and is validated using the test set of the original motor current dataset. The reasons for choosing the random forest model include its ability to handle feature importance and its adaptability to complex data relationships.
[0015] S4: Data Processing
[0016] This includes importing data, processing, data feature screening, dividing training sets and test sets, model parameter setting, etc. When importing data, importing RandomForestClassifier and other related functions from the scikit-learn library in Python can help simplify the steps of model building and improve model building efficiency.
[0017] Step S5: Data input model for classification and recognition
[0018] In practical applications, the motor current data of the intelligent photovoltaic cleaning robot is collected at the current moment, and this data set is input into the random forest model that has been tested. Through the results output by the model, the operating status of the photovoltaic cleaning robot can be classified and identified in real time.
[0019] Model parameter settings
[0020] In step S3, the performance of the random forest model is directly affected by the model parameters. The preferred model parameter settings include the number of trees (n_estimators), the maximum depth of each tree (max_depth), and the minimum number of samples required for node splitting (min_samples_split). These parameters can be adjusted through methods such as cross-validation to ensure that the model can achieve good prediction performance or generalization ability on both the training set and the test set.
[0021] Data feature screening
[0022] In step S4, for the random forest model, the contribution of each feature to the model performance can be obtained through feature importance analysis. Furthermore, the most important features for running posture judgment can be retained to improve the training efficiency and generalization ability of the model.
[0023] Motor current actual status tag
[0024] In step S2, the actual state labels are added to the motor current data in order to establish a training set for supervised learning. The actual state labels should be accurately determined based on the motion state and environmental conditions to ensure that the training set is representative.
[0025] Importing Data
[0026] In the S4 step, during the data import process, importing related functions such as RandomForestClassifier from the scikit-learn library in Python helps simplify the model building steps and improve development efficiency.
[0027] Data processing
[0028] In step S4, the imported intelligent photovoltaic cleaning robot motor current data is preliminarily cleaned, including deleting missing data, etc., to ensure the quality of the training data.
[0029] Divide the training set and test set
[0030] In step S4, the train_test_split() function is used to randomly divide the training set and the test set, and the ratio of 8:2 is used to divide the training set and the cross-validation set. Of course, this ratio can also be adjusted according to specific needs.
[0031] The original motor current data set to be tested refers to the motor current data of the photovoltaic cleaning robot at the current moment. In step S5, by inputting this data set into the random forest model that has been tested, the system can classify and identify the real-time operating status of the intelligent photovoltaic cleaning robot based on the model training algorithm and known label information. This step realizes real-time monitoring and identification and classification of the robot's operating status, providing accurate input data support for the subsequent photovoltaic cleaning robot's adaptive deviation correction.
[0032] The second aspect of the present application provides a method for detecting and correcting the running posture of a photovoltaic cleaning robot, comprising:
[0033] The two sensors installed on the photovoltaic cleaning robot detect the gap of the photovoltaic panel to obtain two timestamps. The order of the timestamps and the time difference are combined with the speed of the photovoltaic cleaning robot's walking wheels to determine the deflection of the photovoltaic cleaning robot through a formula and make corrections in time. At the same time, combined with the operating status of the photovoltaic cleaning robot, the robot makes corrections at the appropriate time to ensure the stable operation of the photovoltaic cleaning robot.
[0034] Among them, the state identification of the photovoltaic cleaning robot is determined by the photovoltaic cleaning robot operation state judgment method provided in the first aspect of this application.
[0035] Technical solution: A photovoltaic panel cleaning robot is provided, comprising: an upper driving wheel, namely an upper walking wheel, a lower driving wheel, namely a lower walking wheel, and a first sensor and a second sensor placed vertically along the frame of the photovoltaic robot. The first sensor and the second sensor are placed vertically above and below the frame of the photovoltaic robot, the first sensor is located on the same side of the upper driving wheel of the photovoltaic robot, that is, on the upper side of the photovoltaic robot, and the second sensor is located on the same side of the lower driving wheel of the photovoltaic robot, that is, on the lower side of the photovoltaic robot. The upper walking wheel and the first sensor are located on one side of the photovoltaic robot, and the lower walking wheel is located on the other side of the photovoltaic robot. The photovoltaic robot posture control method includes:
[0036] Acquire a first detection parameter T1 of the first sensor and a second detection parameter T2 of the second sensor;
[0037] Optionally, the sensor is a photoelectric sensor or a Hall sensor, and the sensor signal is a rising edge signal or a falling edge signal. The sensor signal is sent by the sensor when the cleaning robot passes through a gap between two adjacent photovoltaic modules;
[0038] When the deviation distance between the two sensors meets the posture correction condition, the upper walking wheel or the lower walking wheel is controlled to adjust the rotation speed in the direction of restoring the normal posture of the cleaning robot.
[0039] Optionally, the first detection parameter T1 refers to the timestamp of the reflection signal received by the first sensor, and the second detection parameter T2 refers to the timestamp of the reflection signal received by the second sensor. These timestamps record the reception time of the reflection signal, which is used to determine the time difference between the photovoltaic cleaning robot passing through the two sensors for subsequent analysis and calculation.
[0040] The present invention provides a high-efficiency gear-driven walking mechanism in a photovoltaic cleaning robot, comprising a motor driving gear, a reduction gear, a driving gear, a transmission gear set and a walking wheel. The motor driving gear meshes with the reduction gear, the reduction gear and the driving gear are coaxially arranged, the driving gear meshes with the transmission gear in the transmission gear set, the transmission gears in the transmission gear set are connected by meshing, and finally the walking wheel is driven by the last transmission gear in the transmission gear set to walk.
[0041] The gear-driven walking mechanism of the photovoltaic cleaning robot includes: the motor gear speed is known to be N1, the reduction ratio between the motor and the reduction gear is R1, the reduction gear and the driving gear 2 are coaxially driven, the reduction ratio is R2, the reduction ratio between the driving gear 2 and the transmission gear 1 is R3, and the reduction ratio between the transmission gear 1 and the transmission gear 2 is R4;
[0042] The photovoltaic cleaning robot is driven and controlled by dual motors, and the upper and lower motors adopt a cross-coupling synchronous control strategy. When the robot is running normally and smoothly, the speed of the upper and lower motors remains synchronized.
[0043] N=N2=N3
[0044] Then we can know that the speed of the upper and lower walking wheels is:
[0045] N=N1*R1*R2*R3*R4
[0046] It is known that the diameter of the running wheel is d, then the distance the running wheel travels in one circle is πd.
[0047] It can be seen that the offset distance between the upper and lower sensors of the photovoltaic cleaning robot is
[0048]
[0049] When the offset distance satisfies the posture correction condition, the upper running wheel or the lower running wheel is controlled to adjust the rotation speed in the direction of restoring the normal posture.
[0050] Optionally, the posture correction condition includes a first correction condition, the first correction condition including: the first detection parameter receives a timestamp before the second detection parameter, and the offset distance between the two sensors is greater than a set first threshold, that is,
[0051] T1>T2
[0052]
[0053] Then it is determined that the tilt direction of the photovoltaic cleaning robot's current running posture is: the upper running wheel is ahead of the lower running wheel;
[0054] When the photovoltaic cleaning robot meets the posture correction condition, controlling the upper walking wheel or the lower walking wheel of the robot to adjust the rotation speed in the direction of restoring the normal posture includes:
[0055] The upper walking wheel is controlled to reduce the rotation speed or the lower walking wheel is controlled to increase the rotation speed until the first detection parameter and the second detection parameter meet the exit posture adjustment condition.
[0056]
[0057] Optionally, the posture correction condition includes a second correction condition, and the second correction condition includes: the second detection parameter T2 receives a timestamp before the first detection parameter T1, and the offset distance between the two sensors is greater than a set second threshold.
[0058] T1<T2
[0059]
[0060] Then it is determined that the tilt direction of the photovoltaic cleaning robot's current running posture is: the upper running wheel lags behind the lower running wheel;
[0061] When the photovoltaic cleaning robot meets the posture correction condition, controlling the upper walking wheel or the lower walking wheel to adjust the rotation speed in the direction of restoring the normal posture includes:
[0062] When the first detection parameter and the second detection parameter meet the second correction condition, the upper walking wheel is controlled to increase the rotation speed or the lower walking wheel is controlled to reduce the rotation speed until the first detection parameter and the second detection parameter meet the exit posture adjustment condition.
[0063]
[0064] Re-acquiring the first detection parameter and the second detection parameter of the sensor and the motor gear speed;
[0065] When the reacquired first detection parameter and second detection parameter of the sensor and the deflection distance between the two sensors meet the first correction condition, controlling the upper walking wheel to reduce the rotation speed or controlling the lower walking wheel to increase the rotation speed;
[0066] The first correction condition includes: the first detection parameter precedes the second detection parameter, and the deflection distance between the two sensors is greater than a first threshold.
[0067] The second correction condition includes: the first detection parameter lags behind the second detection parameter, and the deflection distance between the two sensors is greater than a second threshold.
[0068] Optionally, the exit posture adjustment condition includes: the deflection distance between the two sensors is less than or equal to the first and second thresholds.
[0069] The present invention discloses a photovoltaic module cleaning robot posture monitoring and adaptive deviation correction method, which has the following beneficial effects:
[0070] 1. From the above technical solution, it can be seen that this application provides a method for posture monitoring and adaptive deviation correction of a photovoltaic module cleaning robot. By making full use of the current motor current data of the robot and combining it with the random forest model, accurate judgment of the robot's operating status is achieved, including climbing, descending, smooth operation and crossing obstacles.
[0071] 2. By monitoring the operating status of the intelligent photovoltaic cleaning robot in real time, especially at critical moments such as climbing, descending, running smoothly or encountering obstacles, it ensures that the robot remains more stable and reliable during the correction process. This helps to avoid abnormal movements of the robot under special circumstances, thereby reducing the risk of the robot getting stuck or detaching from the photovoltaic bracket.
[0072] 3. Using the random forest model, based on the current motor current data of the intelligent photovoltaic cleaning robot, the robot's operating status can be accurately identified, such as climbing, descending, running smoothly or crossing obstacles. This real-time monitoring and classification recognition capability helps the robot adjust its action strategy according to different situations and improves the robot's adaptability in complex environments.
[0073] 4. The present application also provides a method for detecting and correcting the running posture of a photovoltaic cleaning robot. Among them, the running posture judgment method of the intelligent photovoltaic cleaning robot provided by the present application calculates the difference and sequence of the timestamps fed back by the two sensor units according to the preset comparison rules, and uses the formula to determine the robot's walking wheel speed from the motor speed, and combines the walking wheel speed and the time value to determine the deflection distance and form of the photovoltaic cleaning robot. By judging the sequence of the upper and lower timestamps and whether the deflection distance of the photovoltaic cleaning robot is greater than the preset first judgment threshold, if the relative comparison result is greater than the preset first judgment threshold, it is determined that the intelligent photovoltaic cleaning robot is tilted, if the upper sensor timestamp is sensed before the lower sensor timestamp, it is determined that the photovoltaic cleaning robot deflects as the upper end before the lower end, if the upper sensor timestamp is scanned behind the lower sensor timestamp, and the deflection distance of the photovoltaic cleaning robot is greater than the second threshold, it is determined that the photovoltaic cleaning robot deflects as the lower end before the upper end. And combined with the photovoltaic cleaning robot state judgment method, the robot can be corrected in a stable state to ensure the stable operation of the photovoltaic cleaning robot. Compared with the prior art, the running posture judgment method of the intelligent photovoltaic cleaning robot determines whether the intelligent photovoltaic cleaning robot is tilted by judging the relationship between the relative comparison result and the preset judgment threshold. For various photovoltaic panel cleaning robots, it is not limited by the specific robot structure and model, and has strong versatility and flexibility. In addition, a dynamic adjustment strategy based on the timestamp difference and the speed is adopted, making the posture correction method more flexible and adaptable. By judging the information feedback from the two sensors in real time and combining it with the speed of the walking wheels, the robot can quickly make adjustments and correct deviations under different working conditions. Avoid the problem of getting stuck: When it is detected that the posture correction conditions are met, the rotation speed is adjusted in the direction of restoring the normal posture by controlling the upper drive wheel or the lower drive wheel, which effectively prevents the robot from being unable to correct its posture in a tilted or stuck state, and ensures the stable operation of the photovoltaic cleaning robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 A flow chart of an implementation method of a method for adjusting the running posture of an intelligent photovoltaic cleaning robot provided in an embodiment of the present application;
[0075] Figure 2 This is an overall flow chart of the photovoltaic cleaning robot state judgment based on the random forest classifier in the embodiment of the present application;
[0076] Figure 3 This is a schematic diagram of the structure of this embodiment;
[0077] Figure 4 It is a schematic diagram of the structure of this embodiment tilted to the left;
[0078] Figure 5It is a schematic diagram of the structure of this embodiment tilted to the right;
[0079] In the figure: 10 - photovoltaic cleaning robot, 11 - first sensor, 12 - second sensor, 13 - photovoltaic component, 14 - upper walking wheel, 15 - lower walking wheel, 16 - main support of photovoltaic cleaning robot. DETAILED DESCRIPTION
[0080] S300 Another embodiment of the present application provides an implementation method for detecting the running state of an intelligent photovoltaic cleaning robot, which collects the motor current information of the cleaning robot at the current moment and then determines the posture of the cleaning robot at the current moment, including the following steps:
[0081] Step S1: Data collection
[0082] The motor current sensor on the intelligent photovoltaic cleaning robot collects data with an appropriate sampling frequency and high precision. The collected data includes the changes in the motor current during the operation of the robot.
[0083] Step S2: Tag adding
[0084] Based on the actual state of the motor current, labels are added to the collected data. These labels include four states: "climbing", "crossing obstacles", "downhill", and "smooth operation". Using specific algorithms or rules, the actual state is determined by the characteristics of the motor current and used as the output variable of supervised learning.
[0085] Step S3: Random Forest Model Construction
[0086] Use the labeled dataset in step S2 to build a random forest model. The model building process includes the establishment of decision trees and classifiers, and the performance and generalization ability of the model are ensured through verification of training and test sets.
[0087] Step S4: Data processing
[0088] Import the collected raw data of motor current and process the data by using RandomForestClassifier and other related functions in the sklearn library in Python. This includes data cleaning, feature screening, and dividing training sets and test sets.
[0089] Model parameter settings:
[0090] Number of trees (n_estimators): Choose an appropriate number to improve robustness.
[0091] Maximum depth of each tree (max_depth): Limit the depth to prevent overfitting.
[0092] Minimum number of samples required for node splitting (min_samples_split): controls the conditions for node splitting.
[0093] Data feature screening: Through feature importance analysis, determine the most important features for running posture judgment to improve model training efficiency and generalization ability.
[0094] Step S5: Data input model for classification and recognition
[0095] In practical applications, the motor current data of the intelligent photovoltaic cleaning robot is collected at the current moment, and this data set is input into the random forest model that has been tested. Through the results output by the model, the operating status of the photovoltaic cleaning robot can be classified and identified in real time.
[0096] Advantages and effects
[0097] By understanding the robot's operating status in real time, especially at critical moments, the present invention ensures that the photovoltaic cleaning robot remains more stable and reliable during the correction process. The advantage of monitoring the operating status is that the robot can avoid unnecessary correction actions at critical moments such as climbing, overcoming obstacles and going downhill, effectively preventing the risk of the robot getting stuck or detaching from the photovoltaic support.
[0098] 1. Application of decision tree in planning: A decision tree is a special tree structure used to create plans and assist in decision making. It consists of a decision graph and possible outcomes, including resource costs and risks. By building a tree structure, the system can make a series of decisions based on input data and ultimately achieve the goal. Each node represents a decision point, while each branch represents a possible decision outcome. Decision trees have a wide range of applications in decision-making strategies, project planning, and risk analysis.
[0099] 2.Bagging technology reduces generalization error: Bagging (Bootstrap Aggregating) is a technology that reduces generalization error by combining multiple models. The main idea is to train multiple different models separately, and then let all models vote on the test samples through voting or averaging, and finally output. This helps to reduce the overfitting problem of a single model and improve the performance and stability of the overall model. In planning and decision-making, Bagging technology can be applied to the integration of multiple decision tree models to improve the accuracy and robustness of the overall decision.
[0100] 3. Application of Python language in planning and decision-making: Python is a widely used interpreted, high-level and general-purpose programming language. Its efficient high-level data structure and simple and effective object-oriented programming make it the preferred language for writing scripts and rapidly developing applications on most platforms. In the field of planning and decision-making, Python can be used for data analysis, decision tree modeling, and integration of various decision support tools. Its dynamic typing and interpreted language nature make it more flexible and convenient in practical applications.
[0101] 4. Application of sklearn library in machine learning: scikit-learn (sklearn) library is a machine learning library in Python, built on the basis of data science packages such as NumPy, SciPy, Matplotlib, etc. The library provides a wealth of machine learning functions, including sample data, data preprocessing, model validation, feature selection, classification, regression, clustering, dimensionality reduction, and almost all other aspects. In planning and decision-making, sklearn can be used to build decision tree models, implement bagging technology, and perform data analysis and model evaluation.
[0102] In summary, decision trees, bagging technology, Python language, and sklearn library form a powerful tool chain in planning and decision-making, providing decision makers with a variety of flexible, efficient, and accurate methods to plan and make decisions.
[0103] In order to solve the problem that the existing technology has large errors in judging the running posture of the intelligent photovoltaic cleaning robot, the embodiment of the present application also provides an automatic deviation correction method for the intelligent photovoltaic cleaning robot.
[0104] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0105] Combination Figures 1 to 5 As shown, an embodiment of the present invention provides a photovoltaic robot posture control method, the photovoltaic robot 10 includes an upper walking wheel, a lower walking wheel, and a first sensor 11 and a second sensor 12 suitable for installation along the photovoltaic robot main body bracket 16, the first sensor 11 and the second sensor 12 are arranged from top to bottom in the same vertical direction of the photovoltaic robot 10, and are located on the same side of the photovoltaic robot 10, and the upper walking wheel and the first sensor 11 are located on one side of the photovoltaic robot 10, and the lower walking wheel is located on the other side of the photovoltaic robot 10, the photovoltaic robot posture control method includes the following steps:
[0106] S100, obtaining a first detection parameter T1 of the first sensor 11 and a second detection parameter T2 of the second sensor 12;
[0107] When the first detection parameter and the second detection parameter are not equal, and the subtraction has a difference, that is,
[0108] |T1-T2|>0
[0109] It can be determined that the photovoltaic cleaning robot has a certain deflection, but it may be relatively slight and will not affect the normal operation of the robot. Therefore, it is necessary to combine the speed of the walking wheels to determine whether the deflection angle of the photovoltaic cleaning robot is too large and needs to be corrected.
[0110] The motor gear speed is known to be N1, the reduction ratio between the motor and the reduction gear is R1, the reduction gear and the driving gear 2 are coaxially driven, the reduction ratio is R2, the reduction ratio between the driving gear 2 and the transmission gear 1 is R3, and the reduction ratio between the transmission gear 1 and the transmission gear 2 is R4;
[0111] The photovoltaic cleaning robot is driven and controlled by dual motors, with the upper and lower walking wheels N2 and N3 respectively. Since the upper and lower motors adopt the cross-coupling synchronous control strategy, the upper and lower motor speeds of the robot remain synchronized when the robot is running normally and smoothly.
[0112] N=N2=N3
[0113] Then we can know that the speed of the upper and lower walking wheels is:
[0114] N=N1*R1*R2*R3*R4
[0115] It is known that the diameter of the running wheel is d, then the distance the running wheel travels in one circle is πd.
[0116] It can be seen that the offset distance between the upper and lower sensors of the photovoltaic cleaning robot is
[0117]
[0118] In combination with the time signals collected by the two sensors, when the offset distance meets the posture correction condition, the upper walking wheel or the lower walking wheel is controlled to adjust the rotation speed in the direction of restoring the normal posture.
[0119] Specifically, the photovoltaic robot 10 tilts, and when the photovoltaic robot tilts, the photovoltaic robot may get stuck. When the photovoltaic robot 10 walks along the photovoltaic module 13, the first sensor 11 and the second sensor 12 can detect the photovoltaic module gap feedback signal and other related detection parameter values. When the feedback values detected by the two sensors are in a different order, the up and down deflection distance of the photovoltaic cleaning robot is obtained in combination with the rotation speed of the photovoltaic cleaning robot's walking wheels. The tilt state of the photovoltaic robot can be determined. In other words, the above relationship can intuitively reflect the running posture of the photovoltaic robot 10.
[0120] Therefore, in the present embodiment, by acquiring the first detection parameter of the first sensor 11 and the second detection parameter of the second sensor 12, and when the robot meets the posture correction condition, the upper walking wheel 14 or the lower walking wheel 15 is controlled to adjust the rotation speed in the direction of restoring the normal posture, so that the photovoltaic robot 10 can maintain posture balance during operation, thereby ensuring the continuous operation of the photovoltaic robot 10; compared with the prior art of realizing posture correction of the photovoltaic robot 10 through angle sensors and ranging sensors, the photovoltaic robot posture control method executing the present embodiment is simpler, less costly, and more stable.
[0121] S200 Optionally, the posture correction condition includes a first correction condition, which includes: the first detection sensor detects before the second sensor, that is, T1>T2, and the vertical offset distance of the photovoltaic cleaning robot is greater than the first threshold, that is,
[0122]
[0123] Optionally, the posture correction condition includes a second correction condition, which includes: the first detection sensor lags behind the second sensor, that is, T1<T2, and the up and down offset distance of the photovoltaic cleaning robot is greater than the second threshold, that is,
[0124]
[0125] S500 Further, since the travel wheel is driven by a motor, when adjusting the rotation speed of the travel wheel, the rotation speed of the motor corresponding to the travel wheel is actually adjusted.
[0126] S400 specifically includes: when the photovoltaic cleaning robot meets the first correction condition, controlling the upper walking wheel to reduce the rotation speed or controlling the lower walking wheel to increase the rotation speed until the first detection parameter and the second detection parameter meet the exit posture adjustment condition.
[0127] S400 specifically includes: when the photovoltaic cleaning robot meets the second correction condition, controlling the upper walking wheel to increase the rotation speed or controlling the lower walking wheel to reduce the rotation speed until the first detection parameter and the second detection parameter meet the exit posture adjustment condition.
[0128] S600 Optionally, when the robot does not deflect and does not meet the deviation correction condition, it indicates that the robot is in good operating condition at the moment, and the robot walks normally.
[0129] When the photovoltaic cleaning robot is correcting its deviation, it is also necessary to combine the current operating status of the photovoltaic cleaning robot. Specifically, when the photovoltaic cleaning robot is performing the correction action, in addition to satisfying the first correction condition and the second correction condition, it is also necessary to satisfy the third correction condition.
[0130] The third correction condition includes that the photovoltaic cleaning robot is in a suitable operating state, that is, in a stable operation. According to the motor current information, the operating state of the cleaning robot is known. When the robot is in an unstable state, that is, climbing a slope, descending a slope, or crossing an obstacle, no correction is performed.
[0131] It should be noted that by adjusting the intelligent photovoltaic cleaning robot in real time according to its current operating posture, the intelligent photovoltaic cleaning robot can be prevented from getting stuck on the photovoltaic module due to tilt, affecting the power generation of the photovoltaic module or causing damage to itself.
[0132] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and the description in the specification are only for illustrating the principles of the present invention. The present invention may undergo various changes and improvements without departing from the spirit and scope of the present invention. These changes and improvements are all included in the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A method for posture monitoring and adaptive deviation correction of a photovoltaic module cleaning robot. include: The motor current is classified by the random forest method to identify the operating status of the photovoltaic cleaning robot, and the robot's operating status is divided into climbing, downhill, obstacle crossing, and stable operation; the robot's up and down deflection displacement is calculated based on the sensors installed on the upper and lower sides of the robot, combined with the detection time difference and the robot's walking wheel speed; when the deflection distance reaches a certain threshold, the current state of the cleaning robot is identified and the appropriate state is selected for correction operation.
2. The photovoltaic cleaning robot state recognition method according to claim 1 include: Data collection: Install sensors to collect current data from the motor of the photovoltaic cleaning robot. This requires selecting appropriate sensors and connecting them to the robot's motor to collect current data in real time. Data preprocessing: The collected current data is preprocessed, including removing noise, smoothing data, processing outliers, etc. This can ensure the quality of the data and make model training more reliable. Feature extraction: Features are extracted from the current data, such as statistical features (average value, standard deviation, etc.), frequency domain features (Fourier transform), and time domain features (sliding window, time delay, etc.). These features can reflect the different states of the robot motor operation. Data Tags: The collected current data is marked, that is, the operation state of the robot corresponding to each data point is determined. Manual marking or data from other sensors (such as tilt sensors and speed sensors) can be used to assist in marking. Build a random forest model: The labeled current dataset is used as the training set, and the classification model is constructed using the random forest algorithm. In this process, the current features are used as input and the robot's operating status is used as the output label. Model training and validation: Divide the dataset into a training set and a test set, use the training set to train the random forest model, and use the test set to verify the performance of the model. Techniques such as cross-validation can be used to evaluate the generalization ability of the model. Model optimization and parameter adjustment: The performance of the model can be optimized by adjusting the parameters of the random forest model (such as the number of trees, maximum depth, minimum number of samples for node splitting, etc.). You can also try other feature extraction methods or algorithms to improve the model. Model Application: The trained random forest model is applied to the actual robot to classify the current data in real time, thereby identifying the robot's operating status. According to the identified status, the corresponding control strategy can be adopted to ensure the normal operation of the robot.
3. The current data according to claim 2, Features include: The data set is labeled by the actual state of the motor current, and the actual state of the motor current is determined using a specific algorithm or rule. The labels include "climbing", "crossing obstacles", "downhill", and "smooth operation". The current is the current data of the driving motors at the upper and lower ends of the photovoltaic cleaning robot. By inputting this data set into the tested random forest model, the classification and recognition results of the operating status of the intelligent photovoltaic cleaning robot can be obtained.
4. According to claim 2, the data processing step include: Import data and use related functions in the scikit-learn library in Python to simplify the steps of model building; Perform data processing, including preliminary cleaning and deletion of missing data, to ensure the quality of training data; Data feature screening: Through feature importance analysis, the most important features for running posture judgment are selected to improve the training efficiency and generalization ability of the model. Model parameter settings include: - Adjustment of random forest model parameters, such as the number of trees (n_estimators), the maximum depth of each tree (max_depth), and the minimum number of samples required for node splitting (min_samples_split), to ensure that the model performs well on the training set and test set; - Adjustment of model parameters through methods such as cross-validation to improve the performance of the model. The original motor current data set to be tested is the motor current data of the photovoltaic cleaning robot at the current moment. By inputting it into the tested random forest model, the classification and recognition results of the operating status of the intelligent photovoltaic cleaning robot can be obtained.
5. The photovoltaic robot posture control method according to claim 1 include: Obtain the first detection parameter T of the first sensor 1 and a second detection parameter T of the second sensor 2 And the speed N of the upper and lower wheels of the photovoltaic cleaning robot 2 、N 3 . The driving mechanism between the motor and the walking wheel of the photovoltaic cleaning robot described in the present invention is gear driven, wherein the gear transmission mechanism comprises a motor driving gear 1, a driving gear 2, a reduction gear, a transmission gear 1, and a transmission gear 2. The motor driving gear 1 is meshed with the reduction gear, the reduction gear is coaxially arranged with the driving gear 2, the driving gear 2 is meshed with the transmission gear 1, the transmission gear 1 and the transmission gear 2 are connected by meshing, and finally the walking wheel is driven by the transmission gear 2 to walk. The motor gear speed is known to be N 1 , the reduction ratio between the motor and the reduction gear is R 1 , the reduction gear is coaxially driven with the driving gear 2, and the reduction ratio is R 2 , the reduction ratio of driving gear 2 and transmission gear 1 is R 3 , the reduction ratio of transmission gear 1 and transmission gear 2 is R 4 ; The photovoltaic cleaning robot is driven and controlled by dual motors, and the upper and lower motors adopt a cross-coupling synchronous control strategy. When the robot is running normally and smoothly, the speed of the upper and lower motors remains synchronized. N=N 2 =N 3 Then we can know that the speed of the upper and lower walking wheels is: N=N 1 *R 1 *R 2 *R 3 *R 4 It is known that the diameter of the running wheel is d, then the distance the running wheel travels in one circle is πd. It can be seen that the offset distance between the upper and lower sensors of the photovoltaic cleaning robot is When the offset distance satisfies the posture correction condition, the upper running wheel or the lower running wheel is controlled to adjust the rotation speed in the direction of restoring the normal posture.
6. The photovoltaic robot posture control method according to claim 5, It is characterized in that The first sensor and the second sensor may be photoelectric sensors or Hall sensors. The first detection parameter refers to the timestamp of the photovoltaic panel gap reflection signal received by the first sensor, and the second detection parameter refers to the timestamp of the photovoltaic panel gap reflection signal received by the second sensor.
7. According to claim 6, the sensor signal can be a rising edge signal or a falling edge signal. in, The sensor signal is sent when the photovoltaic robot passes through the gap between two adjacent photovoltaic panels.
8. The photovoltaic robot posture control method according to claim 5, It is characterized in that The first calibration condition includes: the offset value between the two sensors is greater than a set first threshold value; 1 , and the first detection parameter receives the timestamp before the second detection parameter, that is, T 1 >T 2 Determine that the tilt direction of the photovoltaic cleaning robot's current running posture is that the upper running wheel is ahead of the lower running wheel; When the offset value between the two sensors satisfies the first posture correction condition, controlling the first walking wheel or the second walking wheel to adjust the rotation speed in the direction of restoring the normal posture comprises: The first running wheel is controlled to reduce the rotation speed or the second running wheel is controlled to increase the rotation speed until the offset value between the two sensors meets the exit posture adjustment condition.
9. The photovoltaic cleaning robot posture control method according to claim 5, It is characterized in that The second calibration condition includes: the offset value between the two sensors is greater than a set second threshold value; 2 , and the second detection parameter receives the timestamp before the first detection parameter, that is, T 1 <T 2 It is determined that the tilt direction of the photovoltaic cleaning robot's current running posture is that the upper running wheel lags behind the lower running wheel. When the offset value between the two sensors meets the posture correction condition, controlling the first walking wheel or the second walking wheel to adjust the rotation speed in the direction of restoring the normal posture comprises: The first running wheel is controlled to increase the rotation speed or the second running wheel is controlled to reduce the rotation speed until the offset value between the two sensors meets the exit posture adjustment condition.
