Control method of single-wheel programming robot
Through the one-wheel programming robot control method based on PID control, the status index and gyroscope data are used to adjust the rotation direction and rotation acceleration of the momentum wheel, which solves the problems of attitude deviation and drive system failure of the one-wheel robot, and achieves stable and safe operation. .
Patent Information
- Application Number
- CN202411166282.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-23
AI Technical Summary
The existing one-wheel programming robot control system cannot fully return to the vertical state when the robot posture deviates, and may cause system oscillation and drive system failure when external disturbances are frequent.
Using a method based on PID control idea, the state index is generated by real-time monitoring of the driving system operating data, the tilt angle error is obtained by combining the gyroscope and accelerometer, the control output of the proportional, integral and differential parts is calculated, and the rotation direction and rotation acceleration of the momentum wheel are determined. , and adjust the rotational acceleration according to the drive system status.
It achieves rapid and stable adjustment of the posture of the one-wheeled robot, ensures the reliability of the drive system, and improves the stability and safety of the robot's operation.
Smart Images

Figure CN118789554A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of robot control, and in particular to a control method for a one-wheeled programming robot. Background Art
[0002] A unicycle robot usually has only one wheel and uses a gyroscope and sensors to maintain balance. It has a compact structure and is suitable for moving in a small space. The development of unicycle robots has benefited from the improvement of robotics technology, sensor technology and computing power. From the initial simple model to the current highly intelligent and autonomous robot, unicycle robots have made significant progress in both hardware and software.
[0003] The prior art has the following defects:
[0004] 1. The existing control system of the one-wheeled programming robot cannot eliminate the steady-state error when the robot posture deviates, resulting in a small posture deviation of the robot for a long time and the inability to fully restore to the vertical state. Especially when external disturbances are frequent, overly simple or imperfect control methods may cause system oscillation and fail to stably maintain the balance of the one-wheeled programming robot;
[0005] 2. The existing control method usually controls the rotation acceleration of the momentum wheel in combination with the tilt state of the unicycle encoding robot, that is, the greater the tilt angle of the unicycle encoding robot, the greater the rotation acceleration of the momentum wheel (so that the unicycle encoding robot can quickly return to the vertical state). However, in practical applications, if there is an abnormality in the driving system of the momentum wheel, a larger output power is still adopted (the greater the output power, the greater the rotation acceleration of the momentum wheel), which may cause a failure of the driving system, thereby causing the unicycle encoding robot to completely lose balance and tip over;
[0006] Based on this, the present invention proposes a control method for a unicycle programming robot, which confirms the rotation direction and rotation acceleration of the momentum wheel based on the PID control concept, and then adjusts the rotation acceleration of the momentum wheel in combination with the operating status of the drive system. This method can not only quickly and stably adjust the posture of the unicycle robot, but also ensure the reliability of the use of the drive system, thereby improving the stability of the operation of the unicycle coding robot. Summary of the invention
[0007] The purpose of the present invention is to provide a control method for a one-wheeled programmable robot to solve the shortcomings of the background technology.
[0008] In order to achieve the above object, the present invention provides the following technical solution: a control method for a one-wheeled programming robot, the control method comprising the following steps:
[0009] The control system monitors the operation data of the unicycle encoder robot drive system in real time, generates a state index for the drive system based on the operation data, and determines whether the drive system supports operation based on the comparison result between the state index and the index threshold;
[0010] If it is determined that the operation is supported, the current tilt angle of the unicycle encoder robot is obtained through the gyroscope and accelerometer, and the error between the target tilt angle and the current tilt angle is calculated;
[0011] The control output of the proportional part is calculated according to the proportional gain and the error, the control output of the integral part is calculated according to the integral term of the error and the integral time constant, the control output of the differential part is calculated according to the derivative term of the error and the differential time constant, and the control outputs of the proportional part, the integral part and the differential part are added to obtain the correction torque;
[0012] Determine the rotation direction of the driving system driving the momentum wheel according to the positive and negative results of the correction torque value;
[0013] The absolute value of the correction torque is taken as the torque index, and the adjustment coefficient is generated by combining the torque index and the state index. The rotation acceleration of the momentum wheel is adjusted according to the adjustment coefficient.
[0014] In a preferred embodiment, generating a state index for the drive system in combination with the operating data comprises the following steps:
[0015] The control system monitors the operating data of the unicycle encoder robot drive system in real time, including the temperature rise rate, current deviation and power efficiency ratio of the motor;
[0016] The temperature rise rate, current deviation and power efficiency ratio are normalized so that their value ranges are mapped to [0,1], and the normalized value of the temperature rise rate, the normalized value of the current deviation and the normalized value of the power efficiency ratio are obtained. According to the positive and negative proportional relationship between the normalized value of the temperature rise rate, the normalized value of the current deviation and the normalized value of the power efficiency ratio and the state index, the normalized value of the temperature rise rate, the normalized value of the current deviation and the normalized value of the power efficiency ratio are weighted to obtain the state index.
[0017] In a preferred embodiment, judging whether the drive system supports operation according to the comparison result between the state index and the index threshold value includes the following steps:
[0018] The obtained state index is compared with the index threshold. The index threshold is used to determine whether the drive system supports operation. If the state index is greater than the index threshold, it is determined that the overall performance of the drive system is poor and does not support operation.
[0019] In a preferred embodiment, the error between the target tilt angle and the current tilt angle is calculated using the expression:
[0020] error=target_angle-current_angle, where target_angle is the target tilt angle, current_angle is the current tilt angle, and error is the error.
[0021] In a preferred embodiment, the control outputs of the proportional part, the integral part and the differential part are added to obtain the correction torque, comprising the following steps:
[0022] The calculation expression of the correction torque is: T = P + I out +D, where T is the correction torque, P is the proportional control output, I out represents the integral control output, and D represents the differential control output.
[0023] In a preferred embodiment, the rotation direction of the driving system driving the momentum wheel is confirmed according to the positive and negative results of the correction torque value, including the following steps:
[0024] After obtaining the correction torque, compare the correction torque with the value 0;
[0025] If T>0, it means that the unicycle robot is currently tilted to the right, and a left torque needs to be applied to suppress the right tilt. Taking the rear of the unicycle programming robot as a reference, the drive system drives the momentum wheel to rotate counterclockwise;
[0026] If T<0, it means that the unicycle robot is currently in a state of tilting to the left, and a rightward torque needs to be applied to suppress the left tilt. Taking the rear of the unicycle programming robot as a reference, the drive system drives the momentum wheel to rotate clockwise.
[0027] In a preferred embodiment, the absolute value of the correction torque is taken as the torque index, and the adjustment coefficient is generated by combining the torque index and the state index, including the following steps:
[0028] Take the absolute value of the correction torque as the torque index, the expression is: Z moment =|T|, where T is the correction torque, Z moment is the torque index;
[0029] The adjustment coefficient is generated by combining the torque index and the state index. The expression is:
[0030] TJ x =α*Z moment -β*Z state , where TJ x is the adjustment coefficient, Z moment is the moment index, Z state is the state index, α and β are the proportional coefficients of the torque index and the state index respectively, and both α and β are greater than 0.
[0031] In a preferred embodiment, adjusting the rotational acceleration of the momentum wheel according to the adjustment coefficient comprises the following steps:
[0032] After obtaining the adjustment coefficient, the adjustment coefficient is compared with the preset coefficient threshold to determine whether the current rotation acceleration of the momentum wheel needs to be increased or decreased. The adjustment algorithm is:
[0033] In the formula, SD new is the adjusted rotational acceleration, SD old is the rotation acceleration before adjustment, TJ x is the adjustment coefficient, TJ z is the coefficient threshold.
[0034] In a preferred embodiment, the control output of the proportional part is calculated according to the proportional gain and the error, comprising the following steps:
[0035] Substitute the calculated error into the proportional control formula to obtain the proportional control output, the expression is:
[0036] P=K p *error, where P is the proportional control output, K p is the proportional gain, error is the error;
[0037] The control output of the integral part is calculated according to the integral term of the error and the integral time constant, including the following steps:
[0038] Perform an integral operation on the calculated error. The integral operation requires the accumulation of historical errors. The expression is: In the formula, I is the integral term, t represents the current time, Indicates at time The error of time;
[0039] The integral control output is calculated using the integral gain and the integral term. The expression is: out =K i *I, where I is the integral term, K i is the integral gain, I out Indicates the integral control output;
[0040] The control output of the differential part is calculated according to the derivative term of the error and the differential time constant, including the following steps:
[0041] The error change rate is calculated by the current error and the previous error as the error derivative, and the expression is: Where error_derivative is the error derivative term, error k is the current error, errork-1 is the last error, Δt is the sampling time interval, and the differential control output is calculated based on the differential gain and the error derivative term. The expression is:
[0042] D=K d *error_derivative, where D is the differential control output, K d is the differential gain, and error_derivative is the error derivative term.
[0043] In a preferred embodiment, the acquisition logic of the temperature rise rate is: obtain the temperature value of the motor at the current moment and the temperature value at the previous moment, obtain the temperature difference by subtracting the temperature value at the previous moment from the temperature value at the current moment, obtain the monitoring time by subtracting the current moment from the previous moment, and obtain the temperature rise rate by dividing the temperature difference by the monitoring time;
[0044] The logic for obtaining the current deviation is: obtain the real-time current value of the motor, and subtract the standard current value from the real-time current value to obtain the current deviation:
[0045] The logic for obtaining the power efficiency ratio is: obtaining the output power and input power of the motor, and obtaining the power efficiency ratio by dividing the output power by the input power.
[0046] In the above technical solution, the technical effects and advantages provided by the present invention are:
[0047] 1. The present invention obtains the correction torque by adding the control outputs of the proportional part, the integral part and the differential part, confirms the rotation direction of the momentum wheel driven by the drive system according to the positive and negative results of the correction torque value, takes the absolute value of the correction torque as the torque index, generates the adjustment coefficient in combination with the torque index and the state index, and adjusts the rotation acceleration of the momentum wheel according to the adjustment coefficient. The control system confirms the rotation direction and rotation acceleration of the momentum wheel based on the PID control concept, and then adjusts the rotation acceleration of the momentum wheel in combination with the operating state of the drive system. It can not only quickly and stably adjust the posture of the unicycle robot, but also ensure the reliability of the use of the drive system, thereby improving the stability of the operation of the unicycle encoding robot;
[0048] 2. The present invention monitors the operation data of the driving system of the unicycle encoding robot in real time, generates a state index for the driving system in combination with the operation data, and judges whether the driving system supports operation based on the comparison result between the state index and the index threshold. The control system can comprehensively analyze the operation state of the driving system, thereby judging whether the driving system can support the operation of the unicycle encoding robot, and further ensuring the stability of the operation of the unicycle encoding robot;
[0049] 3. The driving system of the unicycle encoding robot of the present invention adopts a preset momentum wheel rotation acceleration, which is usually input manually based on experience. The momentum wheel rotation acceleration can be adjusted up or down. For example, when the torque index is large and the state index is small, it indicates that the unicycle encoding robot is currently tilted more and the performance of the driving system is better. Therefore, it is necessary to speed up the momentum wheel rotation acceleration to make the unicycle encoding robot return to the vertical state more quickly. When the torque index is small and the state index is large, it indicates that the unicycle encoding robot is currently tilted less and the performance of the driving system is poor. Therefore, it is necessary to slow down the momentum wheel rotation acceleration to restore the unicycle encoding robot to the vertical state to avoid failure of the driving system due to excessive output power. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0051] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] Example 1: Please refer to Figure 1 As shown, the control method of a one-wheeled programming robot described in this embodiment includes the following steps:
[0054] The control system monitors the operation data of the unicycle encoder robot drive system in real time, generates a state index for the drive system in combination with the operation data, and determines whether the drive system supports operation based on the comparison result between the state index and the index threshold. If it is determined that the operation is supported, the current tilt angle of the unicycle encoder robot is obtained through the gyroscope and the accelerometer, and the error between the target tilt angle and the current tilt angle is calculated. The control output of the proportional part is calculated according to the proportional gain and the error. The proportional part mainly generates a control output according to the current error size for rapid response. The control output of the integral part is calculated according to the integral term of the error and the integral time constant. The integral part is used to eliminate steady-state errors and process long-term deviations. The control output of the differential part is calculated according to the derivative term of the error and the differential time constant. The differential part is used to predict future error change trends and suppress oscillations. The control outputs of the proportional part, the integral part and the differential part are added to obtain a correction torque. The rotation direction of the momentum wheel driven by the drive system is confirmed based on the positive and negative results of the correction torque value. The absolute value of the correction torque is taken as the torque index. The adjustment coefficient is generated in combination with the torque index and the state index. The rotation acceleration of the momentum wheel is adjusted according to the adjustment coefficient.
[0055] The present application obtains a correction torque by adding the control outputs of the proportional part, the integral part and the differential part, confirms the rotation direction of the momentum wheel driven by the drive system according to the positive and negative results of the correction torque value, takes the absolute value of the correction torque as the torque index, generates an adjustment coefficient in combination with the torque index and the state index, and adjusts the rotation acceleration of the momentum wheel according to the adjustment coefficient. The control system confirms the rotation direction and rotation acceleration of the momentum wheel based on the PID control concept, and then adjusts the rotation acceleration of the momentum wheel in combination with the operating state of the drive system. It can not only quickly and stably adjust the posture of the unicycle robot, but also ensure the reliability of the use of the drive system, thereby improving the stability of the operation of the unicycle encoding robot.
[0056] The present application monitors the operating data of the unicycle encoding robot drive system in real time, generates a state index for the drive system based on the operating data, and determines whether the drive system supports operation based on the comparison result between the state index and the index threshold. The control system can comprehensively analyze the operating state of the drive system, thereby determining whether the drive system can support the operation of the unicycle encoding robot, and further ensuring the stability of the operation of the unicycle encoding robot.
[0057] The control system includes a drive system monitoring module, an attitude error generation module, an output calculation module, a direction confirmation module, and a speed adjustment module;
[0058] Drive system monitoring module: monitors the operation data of the unicycle encoder robot drive system in real time, generates a state index for the drive system based on the operation data, and judges whether the drive system supports operation based on the comparison result between the state index and the index threshold. The judgment result is sent to the attitude error generation module, and the state index is sent to the speed adjustment module;
[0059] Attitude error generation module: If it is determined that the operation is supported, the current tilt angle of the unicycle encoder robot is obtained through the gyroscope and accelerometer, and the error between the target tilt angle and the current tilt angle is calculated, and the error is sent to the output calculation module;
[0060] Output calculation module: calculate the control output of the proportional part according to the proportional gain and error. The proportional part mainly generates the control output according to the current error size for fast response. The control output of the integral part is calculated according to the integral term of the error and the integral time constant. The integral part is used to eliminate steady-state errors and deal with long-term deviations. The control output of the differential part is calculated according to the derivative term of the error and the differential time constant. The differential part is used to predict the future error change trend and suppress oscillation. The control outputs of the proportional part, the integral part and the differential part are added to obtain the correction torque, which is sent to the direction confirmation module and the speed adjustment module;
[0061] Direction confirmation module: confirms the rotation direction of the driving system driving the momentum wheel according to the positive and negative results of the correction torque value;
[0062] Speed adjustment module: take the absolute value of the correction torque as the torque index, combine the torque index and the state index to generate the adjustment coefficient, and adjust the rotation acceleration of the momentum wheel according to the adjustment coefficient.
[0063] Embodiment 2: The control system monitors the operating data of the driving system of the unicycle encoder robot in real time, and generates a state index for the driving system in combination with the operating data, including the following steps:
[0064] The control system monitors the operating data of the unicycle encoder robot drive system in real time, including the temperature rise rate, current deviation and power efficiency ratio of the motor;
[0065] The temperature rise rate, current deviation and power efficiency ratio are normalized so that the value ranges of the temperature rise rate, current deviation and power efficiency ratio are mapped to [0,1], and the normalized value of the temperature rise rate, the normalized value of the current deviation and the normalized value of the power efficiency ratio are obtained. According to the positive and negative proportional relationship between the normalized value of the temperature rise rate, the normalized value of the current deviation and the normalized value of the power efficiency ratio and the state index, the normalized value of the temperature rise rate, the normalized value of the current deviation and the normalized value of the power efficiency ratio are weighted to obtain the state index. The expression is:
[0066] In the formula, Zstate is the state index, μ is the normalized value of temperature rise rate, τ is the normalized value of current deviation, σ is the normalized value of power efficiency ratio, ω 1 ,ω 2 ,ω 3 are the weight coefficients of the normalized value of temperature rise rate, the normalized value of current deviation, and the normalized value of power efficiency ratio, and ω 1 +ω 2 +ω 3 =1.
[0067] The logic for obtaining the temperature rise rate is as follows: obtain the temperature value of the motor at the current moment and the temperature value at the previous moment, obtain the temperature difference by subtracting the temperature value at the previous moment from the temperature value at the current moment, obtain the monitoring time by subtracting the temperature difference from the previous moment, and obtain the temperature rise rate by dividing the temperature difference by the monitoring time. The greater the temperature rise rate, the more likely the motor of the drive system may have the following abnormalities that may cause failures:
[0068] The motor is overloaded for a long time, resulting in excessive internal current and increased heat. Overheating of the motor may cause aging of the insulation layer, burning of the motor or degradation of performance. Failure or poor design of the heat dissipation system (such as fans or heat sinks) may result in the inability to effectively dissipate heat. The accumulated heat cannot be dissipated in time, causing the motor temperature to rise rapidly, damaging the motor and drive system. Damage to the insulation of the motor winding or other internal faults may lead to short circuits. Short circuits cause a sharp increase in current, a significant increase in heat, and rapid temperature rise, which may cause the motor to burn.
[0069] The motor bearings are poorly lubricated or severely worn, resulting in increased friction, which generates heat and causes the motor temperature to rise. Long-term operation may cause the bearings to get stuck or the motor to be damaged. Long-term operation of the motor coil may cause the insulation layer to age or be damaged, and the coil may short-circuit or leak, which increases the heat generation and causes the temperature to rise rapidly, shortening the motor life. The power supply voltage fluctuates too much or is unstable, causing the motor to work abnormally. The motor current fluctuates, causing increased heat and a rapid temperature rise, affecting the motor performance and life. The load mechanical parts are stuck or worn, resulting in an increase in the motor load. The motor needs to output more power to overcome the mechanical resistance, which causes an increase in heat generation and a rapid temperature rise.
[0070] The logic of obtaining the current deviation is: obtain the real-time current value of the motor, subtract the standard current value from the real-time current value to obtain the current deviation. The larger the current deviation, the more likely the motor is to have overcurrent, which may cause the following faults:
[0071] Overcurrent may damage the insulation layer in the motor winding, causing the winding to short-circuit. The short circuit will further increase the current, causing more serious overheating and motor damage, which may cause the motor to fail. Continuous overcurrent causes the coil to overheat, the coil insulation material to decompose and burn, and the coil burnout will cause the motor to fail completely and need to be replaced or repaired. Overcurrent causes the current density between the brushes and commutator to be too high, which increases the wear. The wear of the brushes and commutator will affect the normal operation of the motor, generate sparks and arcs, and further damage the motor.
[0072] Overcurrent causes the motor to run unsteadily, increase vibration, uneven load, and increased bearing wear, which may lead to bearing failure and affect the smooth operation of the motor. Overcurrent may exceed the design range of the motor controller, causing the controller to overload, the electronic components in the controller to overheat or burn, and the control system to fail. Overcurrent causes increased internal losses in the motor, reduced motor efficiency, and reduced energy conversion efficiency, resulting in more energy loss as heat, affecting the overall system performance. Overcurrent increases the resistance loss of cables and connectors. Overheating of cables and connectors may cause damage to the insulation layer, resulting in electrical failures and safety hazards.
[0073] The logic for obtaining the power efficiency ratio is as follows: obtain the output power and input power of the motor, and divide the output power by the input power to obtain the power efficiency ratio. The smaller the power efficiency ratio, the more likely the motor may have the following faults:
[0074] Damage to the insulation layer of the motor windings causes the windings to short-circuit, causing some windings to fail, increasing current loss and reducing the motor's output power and efficiency. Long-term use of the motor windings causes insulation aging, increased winding resistance, increased energy loss, and reduced motor efficiency. Poor bearing lubrication or severe wear increases mechanical friction loss and reduces the motor's mechanical efficiency. Poor contact or severe wear between the brush and commutator increases the contact resistance between the brush and commutator, resulting in more power loss and reducing motor efficiency.
[0075] The motor runs for a long time under conditions exceeding the design load. The overload causes the current to increase, the heat to increase, and the power conversion efficiency to decrease. The cooling system fails or the ambient temperature is too high, resulting in poor heat dissipation of the motor, the internal temperature of the motor rises, the electric energy is converted into heat energy loss, and the efficiency is reduced. The power supply voltage is unstable or the frequency fluctuates greatly, the motor cannot work normally, the efficiency is reduced, and the motor may even be damaged. Abnormal mechanical load or transmission system failure increases additional mechanical losses and reduces the overall efficiency.
[0076] Judging whether the drive system supports operation according to the comparison result between the state index and the index threshold includes the following steps:
[0077] After obtaining the status index, the larger the status index, the worse the overall performance of the drive system, and the more likely it is that a fault will occur if the system continues to run. Therefore, the obtained status index is compared with the index threshold. The index threshold is used to determine whether the drive system supports operation. If the status index is greater than the index threshold, it is determined that the overall performance of the drive system is poor and does not support operation.
[0078] If it is determined that the operation is supported, the current tilt angle of the unicycle encoder robot is obtained through the gyroscope and accelerometer, and the error between the target tilt angle and the current tilt angle is calculated, including the following steps:
[0079] Calculate the error between the target tilt angle and the current tilt angle. The expression is:
[0080] error=target_angl-current_angle, where target_angl is the target tilt angle, current_angle is the current tilt angle, and error is the error.
[0081] Embodiment 3: The control output of the proportional part is calculated according to the proportional gain and the error. The proportional part mainly generates the control output according to the current error size for fast response, including the following steps:
[0082] Substitute the calculated error into the proportional control formula to obtain the proportional control output, the expression is:
[0083] P=K p *error, where P is the proportional control output, K p is the proportional gain, and error is the error.
[0084] The control output of the integral part is calculated according to the integral term of the error and the integral time constant. The integral part is used to eliminate the steady-state error and process the long-term deviation, including the following steps:
[0085] Perform an integral operation on the calculated error. The integral operation requires the accumulation of historical errors. The expression is: In the formula, I is the integral term, t represents the current time, Indicates at time The error of time;
[0086] The integral control output is calculated using the integral gain and the integral term. The expression is: out =K i *I, where I is the integral term, K i is the integral gain, I out Indicates the integral control output.
[0087] The control output of the differential part is calculated according to the derivative term of the error and the differential time constant. The differential part is used to predict the future error change trend and suppress oscillation, including the following steps:
[0088] The error change rate is calculated by the current error and the previous error as the error derivative, and the expression is: Where error_derivative is the error derivative term, error k is the current error, error k-1 is the last error, Δt is the sampling time interval, and the differential control output is calculated based on the differential gain and the error derivative term. The expression is:
[0089] D=K d *error_derivative, where D is the differential control output, K d is the differential gain, and error_derivative is the error derivative term.
[0090] The control outputs of the proportional part, the integral part and the differential part are added to obtain the correction torque, including the following steps:
[0091] The calculation expression of the correction torque is:
[0092] T=P+I out +D
[0093] , where T is the correction torque, P is the proportional control output, I out represents the integral control output, and D represents the differential control output.
[0094] The rotation direction of the driving system driving the momentum wheel is confirmed according to the positive and negative results of the correction torque value, including the following steps:
[0095] After obtaining the correction torque, compare the correction torque with the value 0. If T>0, it means that the unicycle robot is currently in a state of tilting to the right, and a left torque needs to be applied to suppress the right tilt. Taking the rear of the unicycle programming robot as a reference, the drive system drives the momentum wheel to rotate counterclockwise. If T<0, it means that the unicycle robot is currently in a state of tilting to the left, and a right torque needs to be applied to suppress the left tilt. Taking the rear of the unicycle programming robot as a reference, the drive system drives the momentum wheel to rotate clockwise.
[0096] The absolute value of the correction torque is taken as the torque index, and the adjustment coefficient is generated by combining the torque index and the state index. The rotation acceleration of the momentum wheel is adjusted according to the adjustment coefficient, including the following steps:
[0097] Take the absolute value of the correction torque as the torque index, the expression is: Z moment =|T|, where T is the correction torque, Z moment为Torque index;
[0098] The adjustment coefficient is generated by combining the torque index and the state index. The expression is:
[0099] TJ x =α*Z moment -β*Z state , where TJ x is the adjustment coefficient, Z moment is the moment index, Z state is the state index, α and β are the proportional coefficients of the torque index and the state index respectively, and both α and β are greater than 0.
[0100] In the present application, the driving system of the unicycle encoding robot adopts a preset momentum wheel rotation acceleration, which is usually manually input based on experience. The momentum wheel rotation acceleration can be adjusted up or down. For example, when the torque index is large and the state index is small, it indicates that the unicycle encoding robot is currently tilted more and the performance of the driving system is better. Therefore, it is necessary to speed up the momentum wheel rotation acceleration to restore the unicycle encoding robot to a vertical state more quickly. When the torque index is small and the state index is large, it indicates that the unicycle encoding robot is currently tilted less and the performance of the driving system is poor. Therefore, it is necessary to slow down the momentum wheel rotation acceleration to restore the unicycle encoding robot to a vertical state to avoid failure of the driving system due to excessive output power.
[0101] Based on this, after obtaining the adjustment coefficient, the adjustment coefficient is compared with the preset coefficient threshold to determine whether the current rotation acceleration of the momentum wheel needs to be increased or decreased. The adjustment algorithm is as follows: In the formula, SD new is the adjusted rotational acceleration, SD old is the rotation acceleration before adjustment, TJ x is the adjustment coefficient, TJ z is the coefficient threshold;
[0102] It can be seen from the adjustment algorithm that the current overall condition of the unicycle encoding robot is judged based on the comparison result between the adjustment coefficient and the coefficient threshold, so as to choose to increase or decrease the rotation acceleration of the momentum wheel.
[0103] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0104] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0105] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A control method for a one-wheeled programming robot, characterized in that: The control method comprises the following steps: The control system monitors the operation data of the unicycle encoder robot drive system in real time, generates a state index for the drive system based on the operation data, and determines whether the drive system supports operation based on the comparison result between the state index and the index threshold; If it is determined that the operation is supported, the current tilt angle of the unicycle encoder robot is obtained through the gyroscope and accelerometer, and the error between the target tilt angle and the current tilt angle is calculated; The control output of the proportional part is calculated according to the proportional gain and the error, the control output of the integral part is calculated according to the integral term of the error and the integral time constant, the control output of the differential part is calculated according to the derivative term of the error and the differential time constant, and the control outputs of the proportional part, the integral part and the differential part are added to obtain the correction torque; Determine the rotation direction of the driving system driving the momentum wheel according to the positive and negative results of the correction torque value; The absolute value of the correction torque is taken as the torque index, and the adjustment coefficient is generated by combining the torque index and the state index. The rotation acceleration of the momentum wheel is adjusted according to the adjustment coefficient.
2. The control method of a one-wheeled programming robot according to claim 1, characterized in that: Generating a status index for the drive system in combination with the operating data includes the following steps: The control system monitors the operating data of the unicycle encoder robot drive system in real time, including the temperature rise rate, current deviation and power efficiency ratio of the motor; The temperature rise rate, current deviation and power efficiency ratio are normalized so that their value ranges are mapped to [0,1], and the normalized value of the temperature rise rate, the normalized value of the current deviation and the normalized value of the power efficiency ratio are obtained. According to the positive and negative proportional relationship between the normalized value of the temperature rise rate, the normalized value of the current deviation and the normalized value of the power efficiency ratio and the state index, the normalized value of the temperature rise rate, the normalized value of the current deviation and the normalized value of the power efficiency ratio are weighted to obtain the state index.
3. The control method of a one-wheeled programming robot according to claim 2, characterized in that: Judging whether the drive system supports operation according to the comparison result between the state index and the index threshold includes the following steps: The obtained state index is compared with the index threshold. The index threshold is used to determine whether the drive system supports operation. If the state index is greater than the index threshold, it is determined that the overall performance of the drive system is poor and does not support operation.
4. The control method of a one-wheeled programming robot according to claim 3, characterized in that: Calculate the error between the target tilt angle and the current tilt angle. The expression is: error=target_angle-current_angle, where target_angle is the target tilt angle, current_angle is the current tilt angle, and error is the error.
5. The control method of a one-wheeled programming robot according to claim 4, characterized in that: The control outputs of the proportional part, the integral part and the differential part are added to obtain the correction torque, including the following steps: The calculation expression of the correction torque is: T = P + I out +D, where T is the correction torque, P is the proportional control output, I out represents the integral control output, and D represents the differential control output.
6. The control method of a one-wheeled programmable robot according to claim 5, characterized in that: The rotation direction of the driving system driving the momentum wheel is confirmed according to the positive and negative results of the correction torque value, including the following steps: After obtaining the correction torque, compare the correction torque with the value 0; If T>0, it means that the unicycle robot is currently tilted to the right, and a left torque needs to be applied to suppress the right tilt. Taking the rear of the unicycle programming robot as a reference, the drive system drives the momentum wheel to rotate counterclockwise; If T<0, it means that the unicycle robot is currently in a state of tilting to the left, and a rightward torque needs to be applied to suppress the left tilt. Taking the rear of the unicycle programming robot as a reference, the drive system drives the momentum wheel to rotate clockwise.
7. The control method of a one-wheeled programmable robot according to claim 6, characterized in that: The absolute value of the correction torque is taken as the torque index, and the adjustment coefficient is generated by combining the torque index and the state index, including the following steps: Take the absolute value of the correction torque as the torque index, the expression is: Z moment =|T|, where T is the correction torque, Z moment is the torque index; The adjustment coefficient is generated by combining the torque index and the state index. The expression is: TJ x =α*Z moment -β*Z state , where TJ x is the adjustment coefficient, Z moment is the moment index, Z state is the state index, α and β are the proportional coefficients of the torque index and the state index respectively, and both α and β are greater than 0.
8. The control method of a one-wheeled programming robot according to claim 7, characterized in that: Adjusting the rotational acceleration of the momentum wheel according to the adjustment coefficient includes the following steps: After obtaining the adjustment coefficient, the adjustment coefficient is compared with the preset coefficient threshold to determine whether the current rotation acceleration of the momentum wheel needs to be increased or decreased. The adjustment algorithm is: In the formula, SD new is the adjusted rotational acceleration, SD old is the rotation acceleration before adjustment, TJ x is the adjustment coefficient, TJ z is the coefficient threshold.
9. The control method of a one-wheeled programmable robot according to claim 5, characterized in that: The control output of the proportional part is calculated based on the proportional gain and the error, including the following steps: Substitute the calculated error into the proportional control formula to obtain the proportional control output, the expression is: P=K p *error, where P is the proportional control output, K p is the proportional gain, error is the error; The control output of the integral part is calculated according to the integral term of the error and the integral time constant, including the following steps: Perform an integral operation on the calculated error. The integral operation requires the accumulation of historical errors. The expression is: In the formula, I is the integral term, t represents the current time, Indicates at time The error of time; The integral control output is calculated using the integral gain and the integral term. The expression is: out =K i *I, where I is the integral term, K i is the integral gain, I out Indicates the integral control output; The control output of the differential part is calculated according to the derivative term of the error and the differential time constant, including the following steps: The error change rate is calculated by the current error and the previous error as the error derivative, and the expression is: Where error_derivative is the error derivative term, error k is the current error, error k -1 is the last error, Δt is the sampling time interval, and the differential control output is calculated based on the differential gain and the error derivative term. The expression is: D=K d *error_derivative, where D is the differential control output, K d is the differential gain, and error_derivative is the error derivative term.
10. The control method of a one-wheeled programmable robot according to claim 2, characterized in that: The acquisition logic of the temperature rise rate is as follows: obtain the temperature value of the motor at the current moment and the temperature value at the previous moment, obtain the temperature difference by subtracting the temperature value at the previous moment from the temperature value at the current moment, obtain the monitoring time by subtracting the current moment from the previous moment, and obtain the temperature rise rate by dividing the temperature difference by the monitoring time; The logic for obtaining the current deviation is: obtain the real-time current value of the motor, and subtract the standard current value from the real-time current value to obtain the current deviation: The logic for obtaining the power efficiency ratio is: obtaining the output power and input power of the motor, and obtaining the power efficiency ratio by dividing the output power by the input power.
Citation Information
Patent Citations
Single-wheel robot system and control method thereof
CN101590323A
Control method of self-balancing man-riding electric unicycle
CN104477052A
Combined dynamic self-adaptive variable gain control method for AGV (Automatic Guided Vehicle) heavy-load mobile robot
CN116859926A
Motor drive control method and device
CN117559354A
Motor intelligent compensation control method and system and medium
CN118282278A
Cited By
High-precision driving control method and system for dexterous hand
CN121535763A
High-precision driving control method and system for dexterous hand
CN121535763B
