CN107728635B - Automatic balancing device and method for motorcycle type robot - Google Patents
Automatic balancing device and method for motorcycle type robot Download PDFInfo
- Publication number
- CN107728635B CN107728635B CN201711115160.0A CN201711115160A CN107728635B CN 107728635 B CN107728635 B CN 107728635B CN 201711115160 A CN201711115160 A CN 201711115160A CN 107728635 B CN107728635 B CN 107728635B
- Authority
- CN
- China
- Prior art keywords
- vehicle body
- motor
- attitude
- momentum wheel
- inclination angle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000001133 acceleration Effects 0.000 claims description 28
- 238000005259 measurement Methods 0.000 claims description 13
- 230000003044 adaptive effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 4
- 238000013178 mathematical model Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/08—Control of attitude, i.e. control of roll, pitch, or yaw
- G05D1/0891—Control of attitude, i.e. control of roll, pitch, or yaw specially adapted for land vehicles
Landscapes
- Engineering & Computer Science (AREA)
- Aviation & Aerospace Engineering (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Motorcycle And Bicycle Frame (AREA)
- Manipulator (AREA)
Abstract
The invention discloses an automatic balancing device and a method of a motorcycle type robot, wherein the self-balancing device is applied to the motorcycle type robot, the motorcycle type robot and the self-balancing device form a single-dimensional inverted pendulum structure with two-point support, and the upright self-balancing of the motorcycle type robot is realized according to the momentum conservation law by utilizing the momentum exchange principle in the inverted pendulum principle; the self-balancing device comprises an attitude collector for detecting attitude data of the left and right inclinations of the motorcycle body, a momentum wheel, a motor for driving the momentum wheel to rotate, and a motorcycle body controller respectively connected with the attitude collector and the motor, wherein the motorcycle body controller obtains the attitude data and the rotation data of the momentum wheel, and controls the motor to output the motor rotation data corresponding to the attitude data and the rotation data by using a control algorithm, so that the momentum wheel is controlled to rotate, and the vertical self-balancing of the motorcycle type robot is realized.
Description
Technical Field
The invention relates to the technical field of intelligent robots, in particular to an automatic balancing device and method of a motorcycle type robot.
Background
The traditional wheeled robot at least comprises one driving wheel and two supporting wheels which are not in the same straight line with the driving wheel, so that the size of the robot in the width direction is larger, the robot is difficult to move and advance in a narrow environment, and the functions of correspondingly searching or detecting the narrow environment are influenced. For a motorcycle or a bicycle with two parallel wheel axes, the width square size is smaller, but the motorcycle or the bicycle controls the vertical balance of the motorcycle or the bicycle in a narrow space through a human, and for a robot with the similar shape, a corresponding automatic balancing means is not provided to ensure the vertical balance, so that how to solve the problem that the robot has a self-balancing function in a narrow environment is urgent in the field.
Disclosure of Invention
The invention aims to provide an automatic balancing device and method of a motorcycle type robot, so that the motorcycle type robot has a self-balancing function in a narrow environment.
In order to achieve the above object, the present invention provides an automatic balancing apparatus of a motorcycle type robot, the automatic balancing apparatus being applied to a motorcycle type robot, the motorcycle type robot including a front wheel, a rear wheel, and a vehicle body provided between the front wheel and the rear wheel; the self-balancing device is fixedly arranged on the vehicle body, the motorcycle type robot and the self-balancing device form a single-dimensional inverted pendulum structure with two-point support, and the upright self-balancing of the motorcycle type robot is realized according to the momentum conservation law by utilizing the momentum exchange principle in the inverted pendulum principle; wherein, self-balancing unit includes:
the attitude collector is arranged on the vehicle body and used for detecting attitude data of left and right inclination of the vehicle body;
the axial direction of a rotating shaft of the momentum wheel is parallel to the advancing direction or the retreating direction of the motorcycle type robot, and the rotating direction of the momentum wheel is perpendicular to the advancing direction or the retreating direction of the motorcycle type robot;
the output shaft of the motor is connected with the rotating shaft of the momentum wheel to drive the momentum wheel to rotate;
and the vehicle body controller is respectively connected with the attitude collector and the motor, acquires the attitude data collected by the attitude collector and the rotation data of the momentum wheel, and controls the motor to output motor rotation data corresponding to the attitude data and the rotation data by using a control algorithm, so that the motor is controlled to drive the momentum wheel to rotate, and the vertical self-balance of the motorcycle type robot is realized.
Optionally, the self-balancing device further includes a motor driver, a momentum wheel controller, and a power supply, the motor driver, the momentum wheel controller, and the power supply are respectively electrically connected to a stator of the motor, and the rotor of the electronic is connected to the momentum wheel; the motor driver, the momentum wheel controller, the attitude collector and the vehicle body controller are integrated on a circuit board, and the circuit board is fixedly arranged on the vehicle body; the vehicle body controller transmits a control instruction to the momentum wheel controller, the momentum wheel controller controls the motor driver to drive the rotor of the motor to rotate, and the rotor of the motor drives the output shaft of the motor to rotate so as to drive the momentum wheel to rotate.
Optionally, the attitude collector includes two sets of three-axis accelerometers for detecting six sets of accelerations when the vehicle body tilts.
Optionally, the attitude collector includes two sets of triaxial accelerometers and two sets of triaxial gyroscopes, two sets of triaxial accelerometers are used for detecting six sets of acceleration when the automobile body inclines, two sets of triaxial gyroscopes are used for detecting six sets of angular acceleration when the automobile body inclines.
The invention also provides an automatic balancing method of the motorcycle type robot, which is realized by the automatic balancing device and comprises the following steps:
acquiring the posture data of the inclination of the motorcycle type robot body;
calculating the inclination angle and the inclination angle speed of the vehicle body by utilizing an attitude measurement model according to the attitude data;
acquiring the current angular velocity of the momentum wheel;
determining a motor target torque by using a control algorithm according to the vehicle body inclination angle, the vehicle body inclination angle speed and the current angular speed;
controlling a motor to rotate according to the target torque of the motor, and simultaneously driving the momentum wheel to rotate by the motor to obtain corrected attitude data after the vehicle body is adjusted;
judging whether the corrected attitude data is equal to the upright self-balancing attitude data of the vehicle body or not to obtain a judgment result;
when the judgment result shows that the vehicle body is in the vertical self-balancing state, determining that the vehicle body is in the vertical self-balancing state;
and returning to the step of acquiring the attitude data of the body inclination of the motorcycle type robot when the judgment result indicates no.
Optionally, the attitude measurement model in the step of calculating the vehicle body inclination angle and the vehicle body inclination angle velocity by using the attitude measurement model according to the attitude data includes a vehicle body attitude motion equation and a momentum wheel rotation equation, and the step specifically includes:
calculating the inclination angle of the vehicle body by utilizing the vehicle body attitude motion equation according to the acceleration in the attitude data;
and solving the first derivative of the vehicle body inclination angle to obtain the vehicle body inclination angle speed.
Optionally, the attitude measurement model in the step of calculating the vehicle body inclination angle and the vehicle body inclination angle velocity by using the attitude measurement model according to the attitude data includes a vehicle body attitude motion equation and a momentum wheel rotation equation, and the step specifically includes:
calculating the inclination angle of the vehicle body by utilizing the vehicle body attitude motion equation according to the acceleration in the attitude data;
and acquiring the vehicle body inclination angle and speed measured by a gyroscope.
Optionally, the control algorithm includes any one of a PID control algorithm, a fuzzy control algorithm, an adaptive control algorithm, a robust control algorithm, and an active disturbance rejection control algorithm.
Optionally, the vehicle body attitude motion equation isWherein, thetabTo the vehicle body inclination angle, A1,A2,A3,A4,A5,A6Six sets of accelerations detected for a three-axis accelerometer, where A1=0,A4=0;r1,r2The distances from the mass center of the two groups of the three-axis accelerometers to the fulcrum of the vehicle body are respectively.
Optionally, the control algorithm is a PID control algorithm, and determining the target torque of the motor by using the control algorithm according to the vehicle body inclination angle, the vehicle body inclination angle speed, and the current angular speed specifically includes:
utilizing control equations in the PID control algorithmCalculating the motor target torque; wherein, Tm(t) is the motor target torque, K1、K2、K3Are all the control coefficients of the electric motor,θbd、respectively a reference angle of the vehicle body, a reference angular velocity of the vehicle body, and a reference angular velocity of the momentum wheel, theta being theta in the adjustment control of the vehicle body in an upright self-balancing statebd、Are both 0; thetabIn order to set the angle of inclination of the vehicle body,is the vehicle body tilt angular velocity, thetawIs the current angular velocity of the momentum wheel.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects: the self-balancing device and the self-balancing method provided by the invention are applied to a motorcycle type robot, the self-balancing device is fixedly arranged on a vehicle body, the motorcycle type robot and the self-balancing device form a single-dimensional inverted pendulum structure with two-point support, the rotation data of a momentum wheel is determined by detecting the toppling attitude data of the motorcycle type robot according to a control algorithm by utilizing a momentum exchange principle in the inverted pendulum principle and a momentum conservation law, and the toppling attitude of the motorcycle type robot is balanced by utilizing the rotating speed and the rotating direction of the momentum wheel, so that the vertical self-balancing of the motorcycle type robot is realized. The motorcycle type robot can vertically move in a narrow space under the vertical self-balancing state, and is beneficial to realizing the functions of corresponding searching or detecting and the like in the narrow space.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a schematic view of a motorcycle type robot;
fig. 2 is a schematic structural diagram of an automatic balancing apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic view showing the construction of an inverted pendulum model formed by a motorcycle type robot and an automatic balancing device according to the present invention;
FIG. 4 is a flow chart of an automatic balancing method provided by an embodiment of the present invention;
FIG. 5 is a diagram of an equivalent inverted pendulum structure with two sets of three-axis accelerometers arranged in position in a motorcycle-type robot;
FIG. 6 is a control schematic diagram of the present invention utilizing an active disturbance rejection control algorithm to achieve automatic balancing.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention aims to provide an automatic balancing device and method of a motorcycle type robot, so that the motorcycle type robot has a self-balancing function in a narrow environment.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
As shown in fig. 1, the motorcycle type robot comprises a front wheel 1, a rear wheel 8 and a vehicle body arranged between the front wheel 1 and the rear wheel 8, wherein the vehicle body comprises a front wheel shaft fork 2, a steering handle 3, a steering shaft sleeve 4, a steering connecting rod 5, a steering gear 6, a rear shaft 9, a vehicle frame 10, a rear wheel driving mechanism 11 and a support steering gear 12; the front wheel 1 is connected with the front wheel shaft fork 2 through a bearing, so that the front wheel 1 can roll along the tangential direction; the front wheel fork 2 is fixed to the steering handle 3 by bolts (not shown); the steering handle 3 is connected with the steering shaft sleeve 4 through a bearing, so that the steering handle 3 can rotate along the center of a rotating shaft of the steering shaft sleeve 4; the steering shaft sleeve 4 is fixed on the frame 10; the steering handle 3 is connected with the steering connecting rod 5 through a hinge; the other end of the steering connecting rod 5 is connected with a turntable of the steering engine 6 through a hinge, and an output shaft of the steering engine 6 rotates to correspondingly drive the steering connecting rod 5 to rotate, so that the steering handle 3 rotates, and the steering function of the robot is realized; the steering engine 6 is fixed on the frame 10; a support steering engine 12 is fixed on the frame 10, and a rotating shaft of the support steering engine 12 can drive the support to rotate; the rear wheel driving mechanism 11 is fixed on the frame 10, and the rear wheel driving mechanism 11 is meshed with the rear wheel 8 through a gear to drive the rear wheel 8 to axially rotate along the rear shaft 9; the rear axle 9 is fixed to the frame 10. The frame 10 is also fixed, by means of a support, with a battery 13 for powering the electrical equipment of the motorcycle-type robot.
As shown in fig. 2, a self-balancing device 7 provided in the embodiment of the present invention is fixed between frames 10 of a vehicle body, and the self-balancing device 7 includes a posture collector (not shown), a momentum wheel 15, a motor 14, and a vehicle body controller (not shown). The attitude collector is arranged on the vehicle body and used for detecting attitude data of left and right inclination of the vehicle body. The axis direction of the rotation shaft 16 of the momentum wheel 15 is parallel to the advancing direction or the retreating direction of the motorcycle type robot, and the rotation direction of the momentum wheel 15 is perpendicular to the advancing direction or the retreating direction of the motorcycle type robot. An output shaft of the motor 14 is connected to a rotating shaft 16 of the momentum wheel 15 to rotate the momentum wheel 15. The vehicle body controller is respectively connected with the attitude collector and the motor 14, acquires attitude data collected by the attitude collector and rotation data of the momentum wheel 15, and controls the motor 14 to output motor rotation data corresponding to the attitude data and the rotation data by using a control algorithm, so that the motor 14 is controlled to drive the momentum wheel 15 to rotate, and the vertical self-balance of the motorcycle type robot is realized.
The automatic balancing device 7 of the motorcycle type robot according to the present invention and the motorcycle type robot constitute a single-dimensional inverted pendulum structure having two-point support, as shown in fig. 3. In fig. 3, 17 is a momentum wheel connected to a rotor of the motor, 18 is a support bracket connected to a stator of the motor, 19 is a bracket rotating shaft, 20 is a fixed plane, and 21 is a momentum wheel rotating shaft. The momentum wheel 17 and the support bracket 18 are connected through a momentum wheel rotating shaft 21; the support bracket 18 and the fixed plane 20 are connected by a bracket rotating shaft 19. Considering 17, 18 and 21 as a whole a, 19 and 20 constitute an inverted pendulum system.
The momentum exchange principle of the inverted pendulum system is as follows: when the clockwise rotation speed of the momentum wheel 17 is increased, the clockwise rotation momentum of the momentum wheel 17 is increased, and the support bracket 18 increases the counterclockwise rotation momentum according to the momentum conservation principle. Since the support bracket 18 and the bracket rotation shaft 19 are connected together and the bracket rotation shaft 19 is not movable, the bracket rotation shaft 19 generates a clockwise rotation momentum to the support bracket 18, so that the support bracket 18 rotates clockwise relative to the bracket rotation shaft 19. Similarly, when the counterclockwise rotation speed of the momentum wheel 17 is increased, the support bracket 18 rotates counterclockwise with respect to the bracket rotation shaft 19. The support bracket 18 may be balanced by continuously adjusting the output momentum of the momentum wheel. In the automatic balancing apparatus and the motorcycle type robot according to the present invention, the momentum wheel 17 in fig. 3 corresponds to the momentum wheel 15 connected to the output shaft of the motor 14 in fig. 1 and 2, the support frame 18 corresponds to the body of the motorcycle type robot, the frame rotation shaft 19 corresponds to the contact point of the front wheel 1 and the rear wheel 8 with the ground in fig. 1, the fixed plane 20 corresponds to the ground in fig. 1, and the fixed plane 5 corresponds to the rotation shaft 16 of the momentum wheel in fig. 1 and 2. The automatic balancing device 7 of the motorcycle type robot and the motorcycle type robot provided by the invention realize the vertical self-balance of the motorcycle type robot according to the momentum conservation law by utilizing the momentum exchange principle in the inverted pendulum principle.
The principle of the automatic upright balance in the inclined static state of the motorcycle type robot having the automatic balance device 7 of the present invention will be described in detail below in conjunction with the inverted pendulum structure.
The coordinate system O-XYZ in the mathematical model of the self-balancing system formed by the inverted pendulum structure is shown in FIG. 3, and the dynamic model of the self-balancing system posture is
Wherein, thetab、θwThe rotation angles of the support bracket 18 and the momentum wheel 17 are respectively;the angular velocities of rotation of the support bracket 18 and the momentum wheel 17, respectively;the angular acceleration of the rotation of the support bracket 18 and the momentum wheel 17, respectively; lb、lwThe distances from the support bracket 18 and the momentum wheel 17 to the central point of the bracket rotating shaft 19 respectively; m isb、mwThe mass of the support bracket 18 and the momentum wheel 17, respectively; i isb、IwThe moment of inertia of the support bracket 18 and the momentum wheel 17 relative to the mass axis; cb、CwThe rotational friction coefficients of the support bracket 18 and the momentum wheel 17; g (═ 9.81 m/s)2) Acceleration of gravity at earth level, TmThe torque output by the motor.
the relationship among the angle, the angular velocity and the angular acceleration of the vehicle body, the angular velocity and the angular acceleration of the momentum wheel and the output torque of the motor is given in the self-balancing system mathematical model, so that the output torque of the motor can be solved by acquiring the angle, the angular velocity and the angular acceleration of the vehicle body, and the angular velocity and the angular acceleration of the momentum wheel, so that the control of the motor on the rotation state of the momentum wheel is realized, and the self-balancing of the inverted pendulum structure can be realized. Based on the principle, the vertical self-balance of the motorcycle type robot can be realized.
In practical application, the self-balancing device further comprises a motor driver, a momentum wheel controller and a power supply, wherein the motor driver, the momentum wheel controller and the power supply are respectively electrically connected with a stator of the motor, and a rotor of the electronic is connected with the momentum wheel; the motor driver, the momentum wheel controller, the attitude collector and the vehicle body controller are integrated on a circuit board, and the circuit board is fixedly arranged on the vehicle body; the vehicle body controller transmits a control instruction to the momentum wheel controller, the momentum wheel controller controls the motor driver to drive the rotor of the motor to rotate, and the rotor of the motor drives the output shaft of the motor to rotate so as to drive the momentum wheel to rotate.
The attitude collector can be two groups of three-axis accelerometers and is used for detecting six groups of accelerations when the vehicle body inclines. The vehicle body controller can utilize the self-balancing system mathematical model to calculate the output torque of the motor according to the corresponding control algorithm by acquiring the six groups of accelerated speeds, so that the momentum wheel is driven to rotate by the motor to realize the vertical self-balancing of the motorcycle type robot.
Or, the attitude collector can also be two sets of triaxial accelerometers and two sets of triaxial gyroscopes, the two sets of triaxial accelerometers are used for detecting six sets of acceleration during the vehicle body inclination, and the two sets of triaxial gyroscopes are used for detecting six sets of angular acceleration during the vehicle body inclination. The vehicle body controller can utilize the self-balancing system mathematical model to calculate the output torque of the motor according to the corresponding control algorithm by acquiring the six groups of accelerated speeds and the six groups of angular accelerated speeds, so that the momentum wheel is driven to rotate by the motor to realize the vertical self-balancing of the motorcycle type robot.
Based on the automatic balancing principle of the automatic balancing device, the invention also provides an automatic balancing method of the motorcycle type robot, as shown in fig. 4, the method comprises the following steps:
step 401: acquiring the posture data of the inclination of the motorcycle type robot body;
step 402: calculating the inclination angle and the inclination angle speed of the vehicle body by utilizing an attitude measurement model according to the attitude data;
step 403: acquiring the current angular velocity of the momentum wheel;
step 404: determining a motor target torque by using a control algorithm according to the vehicle body inclination angle, the vehicle body inclination angle speed and the current angular speed;
step 405: controlling a motor to rotate according to the target torque of the motor, and simultaneously driving the momentum wheel to rotate by the motor to obtain corrected attitude data after the vehicle body is adjusted;
step 406: judging whether the corrected attitude data is equal to the upright self-balancing attitude data of the vehicle body or not to obtain a judgment result;
when the judgment result shows that the vehicle body is in the vertical self-balancing state, determining that the vehicle body is in the vertical self-balancing state;
and returning to the step of acquiring the attitude data of the body inclination of the motorcycle type robot when the judgment result indicates no.
Wherein, the step 402 can be realized by the following steps:
calculating the inclination angle of the vehicle body by utilizing the vehicle body attitude motion equation according to the acceleration in the attitude data;
and solving the first derivative of the vehicle body inclination angle to obtain the vehicle body inclination angle speed.
The implementation method comprises the steps that when the attitude acquisition device is used for timing two groups of three-axis accelerations, six groups of accelerations when the vehicle body inclines are detected according to the accelerations, as shown in figure 5, figure 5 is an equivalent inverted pendulum structure diagram of the positions of the two groups of three-axis accelerometers arranged in the motorcycle type robot, the detection positions of the two groups of three-axis accelerometers are respectively marked by 1, 2, 3, 4, 5 and 6 in the figure, and the reading of the 6 groups of accelerations is A1,A2,A3,A4,A5,A6Then A is1,A2,A3,A4,A5,A6The relationship among the angle, angular velocity, and angular acceleration with the vehicle body is as follows:
A1=0
A4=0
wherein r is1、r2The distances from the mass centers of the two groups of three-axis accelerometers to the pivot point of the car body (namely the central point of the support rotating shaft 19) are respectively.
The vehicle body attitude motion equation can be determined according to the relation, and the angle of the inclined attitude of the vehicle body is obtained by solving the following steps:
and solving the first derivative of the angle of the inclined attitude of the vehicle body to obtain the angular velocity of the inclined attitude of the vehicle body. Therefore, the output torque of the motor can be calculated according to the self-balancing system attitude dynamics model, and the control of the momentum wheel is realized.
Alternatively, the step 402 may be implemented by:
calculating the inclination angle of the vehicle body by utilizing the vehicle body attitude motion equation according to the acceleration in the attitude data;
and acquiring the vehicle body inclination angle and speed measured by a gyroscope.
The method is realized in such a way that when the attitude collector comprises two groups of three-axis accelerometers and two groups of three-axis gyroscopes, the two groups of three-axis accelerometers are used for detecting six groups of accelerated speeds when the vehicle body inclines, and the two groups of three-axis gyroscopes are used for detecting six groups of angular accelerated speeds when the vehicle body inclines.
The angle of the tilted attitude of the vehicle body is the same as the above-described implementation method, and the angular velocity for the tilted attitude of the vehicle bodyThe readings of the two groups of three-axis gyroscopes in the X-axis direction can be directly obtained, namely:
wherein, ω is1x、ω2xThe readings of the measured angular velocities of the two groups of three-axis gyroscopes in the X-axis direction are respectively obtained.
According to the implementation method, the output torque of the motor can be calculated according to the attitude dynamics model of the self-balancing system, so that the control of the momentum wheel is realized.
It should be noted that the control algorithm in the automatic balancing method includes any one of a PID control algorithm, a fuzzy control algorithm, an adaptive control algorithm, a robust control algorithm, and an active disturbance rejection control algorithm, that is, all control algorithms included in the classical and modern control theories can be applied to the automatic balancing method.
When the control algorithm in the automatic balancing method of the present invention is a PID control algorithm, the step of determining the target torque of the motor by using the PID control algorithm according to the vehicle body inclination angle, the vehicle body inclination angular velocity, and the current angular velocity specifically includes:
utilizing control equations in the PID control algorithmCalculating the motor target torque; wherein, Tm(t) is the motor target torque, K1、K2、K3Are all control coefficients, θbd、Respectively a reference angle of the vehicle body, a reference angular velocity of the vehicle body andthe reference angular velocity of the momentum wheel is theta in the adjustment control of the vehicle body in the vertical self-balancing statebd、Are both 0; thetabIn order to set the angle of inclination of the vehicle body,is the vehicle body tilt angular velocity, thetawIs the current angular velocity of the momentum wheel.
When the control algorithm in the automatic balancing method is an active disturbance rejection control algorithm, the control of the motor can be realized according to the active disturbance rejection control algorithm so as to realize the control of the momentum wheel and realize the vertical self-balancing of the motorcycle type robot. The control principle of the controller of the active disturbance rejection control algorithm is shown in fig. 6. The active disturbance rejection control algorithm uses the reference angle theta of the vehicle bodybdReference angular velocity of vehicle bodyAnd reference angular velocity of momentum wheelInputting a reference value as the input of a control algorithm into a tracking differentiator to obtain processed input data; the vehicle body inclination angle, the vehicle body inclination angle speed and the current angular speed of the momentum wheel which are acquired by the attitude acquisition device are adjusted by the parameter b through the extended state observer and the system0And obtaining adjusted measurement attitude data after adjustment, and carrying out nonlinear combination on the processed data and the adjusted measurement attitude data to obtain control parameters of the motor, so as to realize the control of the rotation of the motor and further realize the vertical self-balance of the motorcycle type robot.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.
Claims (9)
1. An automatic balancing device of a motorcycle type robot is characterized in that the automatic balancing device is applied to the motorcycle type robot, and the motorcycle type robot comprises a front wheel, a rear wheel and a vehicle body arranged between the front wheel and the rear wheel; the automatic balancing device is fixedly arranged on the vehicle body, the motorcycle type robot and the automatic balancing device form a single-dimensional inverted pendulum structure with two-point support, and the vertical self-balance of the motorcycle type robot is realized according to the momentum conservation law by utilizing the momentum exchange principle in the inverted pendulum principle; wherein the automatic balancing apparatus comprises:
the attitude collector is arranged on the vehicle body and used for detecting attitude data of left and right inclination of the vehicle body;
the axial direction of a rotating shaft of the momentum wheel is parallel to the advancing direction or the retreating direction of the motorcycle type robot, and the rotating direction of the momentum wheel is perpendicular to the advancing direction or the retreating direction of the motorcycle type robot;
the output shaft of the motor is connected with the rotating shaft of the momentum wheel to drive the momentum wheel to rotate;
the vehicle body controller is respectively connected with the attitude collector and the motor, acquires attitude data collected by the attitude collector and rotation data of the momentum wheel, and controls the motor to output motor rotation data corresponding to the attitude data and the rotation data by using a control algorithm so as to control the motor to drive the momentum wheel to rotate and realize the vertical self-balance of the motorcycle type robot, and the specific method comprises the following steps:
acquiring the posture data of the inclination of the motorcycle type robot body;
calculating the inclination angle and the inclination angle speed of the vehicle body by utilizing an attitude measurement model according to the attitude data;
acquiring the current angular velocity of the momentum wheel;
determining a motor target torque by using a control algorithm according to the vehicle body inclination angle, the vehicle body inclination angle speed and the current angular speed;
controlling a motor to rotate according to the target torque of the motor, and simultaneously driving the momentum wheel to rotate by the motor to obtain corrected attitude data after the vehicle body is adjusted;
judging whether the corrected attitude data is equal to the upright self-balancing attitude data of the vehicle body or not to obtain a judgment result;
when the judgment result shows that the vehicle body is in the vertical self-balancing state, determining that the vehicle body is in the vertical self-balancing state;
and returning to the step of acquiring the attitude data of the body inclination of the motorcycle type robot when the judgment result indicates no.
2. The automatic balancing device of claim 1, further comprising a motor driver, a momentum wheel controller and a power source, wherein the motor driver, the momentum wheel controller and the power source are electrically connected to a stator of the motor, respectively, and a rotor of the motor is connected to the momentum wheel; the motor driver, the momentum wheel controller, the attitude collector and the vehicle body controller are integrated on a circuit board, and the circuit board is fixedly arranged on the vehicle body; the vehicle body controller transmits a control instruction to the momentum wheel controller, the momentum wheel controller controls the motor driver to drive the rotor of the motor to rotate, and the rotor of the motor drives the output shaft of the motor to rotate so as to drive the momentum wheel to rotate.
3. The automatic balancing device of claim 2, wherein the attitude collector comprises two sets of three-axis accelerometers for detecting six sets of accelerations when the vehicle body is tilted.
4. The automatic balancing device of claim 2, wherein the attitude collector comprises two sets of three-axis accelerometers and two sets of three-axis gyroscopes, the two sets of three-axis accelerometers being used for detecting six sets of accelerations when the vehicle body is tilted, and the two sets of three-axis gyroscopes being used for detecting six sets of angular accelerations when the vehicle body is tilted.
5. An automatic balancing method of a motorcycle type robot, characterized in that the automatic balancing method is realized by the automatic balancing apparatus according to claims 1 to 4, the method comprising:
acquiring the posture data of the inclination of the motorcycle type robot body;
calculating the inclination angle and the inclination angle speed of the vehicle body by utilizing an attitude measurement model according to the attitude data, wherein the attitude measurement model comprises a vehicle body attitude motion equation and a momentum wheel rotation equation, and the vehicle body attitude motion equation isWherein, thetabTo the vehicle body inclination angle, A1,A2,A3,A4,A5,A6Six sets of accelerations detected for a three-axis accelerometer, where A1=0,A4=0;r1,r2The distances from the mass centers of the two groups of the three-axis accelerometers to the supporting points of the car body are respectively;
acquiring the current angular velocity of the momentum wheel;
determining a motor target torque by using a control algorithm according to the vehicle body inclination angle, the vehicle body inclination angle speed and the current angular speed;
controlling a motor to rotate according to the target torque of the motor, and simultaneously driving the momentum wheel to rotate by the motor to obtain corrected attitude data after the vehicle body is adjusted;
judging whether the corrected attitude data is equal to the upright self-balancing attitude data of the vehicle body or not to obtain a judgment result;
when the judgment result shows that the vehicle body is in the vertical self-balancing state, determining that the vehicle body is in the vertical self-balancing state;
and returning to the step of acquiring the attitude data of the body inclination of the motorcycle type robot when the judgment result indicates no.
6. The automatic balancing method according to claim 5, wherein the step of calculating a vehicle body inclination angle and a vehicle body inclination angle velocity from the attitude data using an attitude measurement model including a vehicle body attitude motion equation and a momentum wheel rotation equation specifically includes:
calculating the inclination angle of the vehicle body by utilizing the vehicle body attitude motion equation according to the acceleration in the attitude data;
and solving the first derivative of the vehicle body inclination angle to obtain the vehicle body inclination angle speed.
7. The automatic balancing method according to claim 5, wherein the step of calculating a vehicle body inclination angle and a vehicle body inclination angle velocity from the attitude data using an attitude measurement model including a vehicle body attitude motion equation and a momentum wheel rotation equation specifically includes:
calculating the inclination angle of the vehicle body by utilizing the vehicle body attitude motion equation according to the acceleration in the attitude data;
and acquiring the vehicle body inclination angle and speed measured by a gyroscope.
8. The automatic balancing method of claim 5, wherein the control algorithm comprises any one of a PID control algorithm, a fuzzy control algorithm, an adaptive control algorithm, a robust control algorithm, and an active disturbance rejection control algorithm.
9. The automatic balancing method according to claim 5, wherein the control algorithm is a PID control algorithm, and the determining of the motor target torque using the control algorithm based on the vehicle body inclination angle, the vehicle body inclination angle speed, and the current angular speed specifically includes:
utilizing control equations in the PID control algorithmCalculating the motor target torque; wherein, Tm(t) is the motor target torque, K1、K2、K3Are all control coefficients, θbd、 Respectively a reference angle of the vehicle body, a reference angular velocity of the vehicle body, and a reference angular velocity of the momentum wheel, theta being theta in the adjustment control of the vehicle body in an upright self-balancing statebd、Are both 0; thetabIn order to set the angle of inclination of the vehicle body,as the vehicle body tilt angular velocity,is the current angular velocity of the momentum wheel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711115160.0A CN107728635B (en) | 2017-11-13 | 2017-11-13 | Automatic balancing device and method for motorcycle type robot |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711115160.0A CN107728635B (en) | 2017-11-13 | 2017-11-13 | Automatic balancing device and method for motorcycle type robot |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107728635A CN107728635A (en) | 2018-02-23 |
CN107728635B true CN107728635B (en) | 2020-10-09 |
Family
ID=61214494
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711115160.0A Active CN107728635B (en) | 2017-11-13 | 2017-11-13 | Automatic balancing device and method for motorcycle type robot |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107728635B (en) |
Families Citing this family (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110884602A (en) * | 2018-08-20 | 2020-03-17 | 南京林业大学 | A two-wheeled self-balancing vehicle with different axles |
CN109375627A (en) * | 2018-11-26 | 2019-02-22 | 清华大学 | Center of gravity adjustment device and method |
CN111439329B (en) * | 2018-12-28 | 2021-11-09 | 上海太昂科技有限公司 | Operable mobile balancing device with self-adjusting posture, method, terminal and medium |
CN110001839A (en) * | 2019-03-01 | 2019-07-12 | 广东工业大学 | A kind of self-balancing mobile robot |
CN110275530B (en) * | 2019-06-17 | 2022-03-01 | 深圳市瑞源祥橡塑制品有限公司 | Combined vehicle construction method and device and application thereof |
CN110929351B (en) * | 2019-11-25 | 2020-12-01 | 腾讯科技(深圳)有限公司 | Self-balancing equipment and momentum wheel installation position determining method, device and equipment thereof |
CN110888393B (en) * | 2019-11-29 | 2021-03-23 | 腾讯科技(深圳)有限公司 | Balancing device control method, device, equipment and medium |
CN110887606B (en) * | 2019-11-29 | 2021-02-19 | 腾讯科技(深圳)有限公司 | Balancing device attitude simulation method, device, equipment and medium |
CN110888444B (en) * | 2019-12-04 | 2021-03-09 | 腾讯科技(深圳)有限公司 | Self-balancing running device and control method thereof |
CN111268011B (en) * | 2020-02-03 | 2021-03-16 | 腾讯科技(深圳)有限公司 | Self-balancing vehicle and static balance control method, device, medium and equipment thereof |
CN111309016B (en) * | 2020-02-26 | 2021-11-05 | 腾讯科技(深圳)有限公司 | Self-balancing robot control system, self-balancing robot control method, self-balancing robot and medium |
CN111381491B (en) * | 2020-03-20 | 2022-04-08 | 西南科技大学 | Spherical robot control system and its design method and linear motion control method |
CN111547176B (en) * | 2020-05-19 | 2021-09-14 | 腾讯科技(深圳)有限公司 | Self-balancing robot control method and system, self-balancing robot and medium |
CN111634356B (en) * | 2020-06-09 | 2023-04-25 | 腾讯科技(深圳)有限公司 | Self-balancing robot control method, system, self-balancing robot and medium |
CN112519943A (en) * | 2020-12-09 | 2021-03-19 | 上海交通大学 | Self-balancing autonomous driving two-wheel vehicle and balance control method |
CN113021300A (en) * | 2021-04-20 | 2021-06-25 | 李星 | Modular self-balancing double-wheel quadruped robot |
CN113978589A (en) * | 2021-12-15 | 2022-01-28 | 山东陀螺电子科技股份有限公司 | Self-balancing unmanned bicycle |
CN116038700A (en) * | 2022-12-30 | 2023-05-02 | 杭州程天科技发展有限公司 | A control method, control system and storage medium of a three-axis momentum wheel self-balancing robot |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2592496Y (en) * | 2002-11-20 | 2003-12-17 | 中国科学技术大学 | Self-balancing two-wheel electric cycle |
CN102079348A (en) * | 2010-12-03 | 2011-06-01 | 北京工业大学 | Self-balance manned monocycle system and control method thereof |
CN102121828A (en) * | 2010-12-21 | 2011-07-13 | 浙江大学 | Method for estimating body posture angle of humanoid robot in real time |
CN102141814A (en) * | 2010-12-09 | 2011-08-03 | 北京理工大学 | Balance control method, balance control device and robot |
JP5064779B2 (en) * | 2006-12-12 | 2012-10-31 | 義大 須田 | Attitude control device |
CN102815357A (en) * | 2012-06-27 | 2012-12-12 | 北京工业大学 | Self-balancing manned solowheel based on inertia balance wheel |
CN103738427A (en) * | 2014-01-10 | 2014-04-23 | 桂林电子科技大学 | Continuous hopping robot with single leg and adjustable overhead postures |
CN104192223A (en) * | 2014-09-12 | 2014-12-10 | 哈尔滨恒誉名翔科技有限公司 | Mega16-based miniature two-wheeled motorcycle |
CN104670359A (en) * | 2013-11-27 | 2015-06-03 | 哈尔滨功成科技创业投资有限公司 | Double-wheel mini type motorcycle |
CN106041934A (en) * | 2016-06-30 | 2016-10-26 | 杭州电子科技大学 | Slip form self-adaption control method of two-wheel self-balance robot |
CN106919177A (en) * | 2017-03-31 | 2017-07-04 | 深圳市靖洲科技有限公司 | A kind of unmanned balance of bicycle control method based on rate gyroscope |
-
2017
- 2017-11-13 CN CN201711115160.0A patent/CN107728635B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2592496Y (en) * | 2002-11-20 | 2003-12-17 | 中国科学技术大学 | Self-balancing two-wheel electric cycle |
JP5064779B2 (en) * | 2006-12-12 | 2012-10-31 | 義大 須田 | Attitude control device |
CN102079348A (en) * | 2010-12-03 | 2011-06-01 | 北京工业大学 | Self-balance manned monocycle system and control method thereof |
CN102141814A (en) * | 2010-12-09 | 2011-08-03 | 北京理工大学 | Balance control method, balance control device and robot |
CN102121828A (en) * | 2010-12-21 | 2011-07-13 | 浙江大学 | Method for estimating body posture angle of humanoid robot in real time |
CN102815357A (en) * | 2012-06-27 | 2012-12-12 | 北京工业大学 | Self-balancing manned solowheel based on inertia balance wheel |
CN104670359A (en) * | 2013-11-27 | 2015-06-03 | 哈尔滨功成科技创业投资有限公司 | Double-wheel mini type motorcycle |
CN103738427A (en) * | 2014-01-10 | 2014-04-23 | 桂林电子科技大学 | Continuous hopping robot with single leg and adjustable overhead postures |
CN104192223A (en) * | 2014-09-12 | 2014-12-10 | 哈尔滨恒誉名翔科技有限公司 | Mega16-based miniature two-wheeled motorcycle |
CN106041934A (en) * | 2016-06-30 | 2016-10-26 | 杭州电子科技大学 | Slip form self-adaption control method of two-wheel self-balance robot |
CN106919177A (en) * | 2017-03-31 | 2017-07-04 | 深圳市靖洲科技有限公司 | A kind of unmanned balance of bicycle control method based on rate gyroscope |
Non-Patent Citations (1)
Title |
---|
基于LQR算法两轮自平衡小车的系统设计与研究;李洋;《中国优秀硕士学位论文全文数据库信息科技辑》;20110815(第08(2011)期);第I140-149页 * |
Also Published As
Publication number | Publication date |
---|---|
CN107728635A (en) | 2018-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107728635B (en) | Automatic balancing device and method for motorcycle type robot | |
CN104648497B (en) | A kind of horizontal self balancing device and method based on gyroscopic effect | |
CN106882341B (en) | A kind of Self-Balancing vehicle device waterborne | |
JP5208906B2 (en) | Inverted pendulum type vehicle | |
JP4743212B2 (en) | Overturn prevention control device for motorcycles | |
CN110109354B (en) | Self-adaptive sliding mode control method for counteractive wheel balance bicycle robot | |
CN202201103U (en) | Electric two-wheeled balance car | |
CN104122098B (en) | Unmanned function of bicycle testing experimental system | |
CN105302148B (en) | The gyroscope type single wheel car robot system of self-balancing can be achieved | |
CN201856757U (en) | Inertial wheel two-wheeled robot stabilizing device | |
CN106882300B (en) | Double-wheel self-balancing vehicle adjusted by spherical gyroscope | |
CN202806968U (en) | Self-balance electric manned monocycle | |
JP7366281B2 (en) | motorcycle | |
CN111361681B (en) | Device and method capable of realizing self-balancing of bicycle and bicycle | |
CN106873645B (en) | Spherical gyro mechanism capable of omnidirectional precession and control method | |
WO2019179472A1 (en) | Front-and-rear wheel balance scooter using inertia flywheel structure | |
JP5330200B2 (en) | Control device for inverted pendulum type vehicle | |
CN107651075A (en) | A kind of gyrocontrol two, which is taken turns, does not move backward | |
CN107856762B (en) | Motorcycle type robot | |
CN206594522U (en) | A kind of tranquilizer, two axle tranquilizers and wheelbarrow | |
JP5907037B2 (en) | Moving body | |
CN101537615A (en) | Two-wheeled vertical type self balancing robot based on infrared posture detection and control method thereof | |
JP5355348B2 (en) | Control device for omnidirectional vehicle | |
JP7328628B2 (en) | vehicle | |
JP2004338507A (en) | Motorcycle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |