A flippable cube robot and its modeling method and control method
By designing a reversible cube robot and a modeling method based on fuzzy neural networks, combined with the control method of parallel compensation method, the problems of a single movement mode and low modeling accuracy of the cube robot were solved, autonomous rolling and stable control were achieved, and the system was improved. Robustness and anti-interference ability.
Patent Information
- Application Number
- CN202110727670.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-29
- Publication Date
- 2024-09-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The cube robot has a single movement method and complex movement control. The traditional modeling method is nonlinear and low-precision, making it difficult to achieve effective control.
A reversible cube robot is designed. It adopts the modeling method based on fuzzy neural network and the control method of parallel compensation method. It learns a large number of data samples through fuzzy neural network to reduce errors and improve model accuracy. It is also designed using the parallel distribution compensation method. Controller to achieve stable control of nonlinear systems.
The autonomous rolling function of the cube robot is realized, the integrity and anti-interference ability of the system are improved, the robustness and accuracy of the control system are enhanced, and the problems of model inaccuracy and uncertainty in traditional methods are solved.
Smart Images

Figure CN113547507B
Abstract
Description
Technical Field
[0001] The invention relates to the field of intelligent robots, and in particular to a flippable cubic robot and a modeling method thereof based on a fuzzy neural network, and a control method based on a parallel compensation method. Background Art
[0002] The cube robot is a new self-balancing mobile robot with a cubic appearance. Its kinematic model is approximately equivalent to an inverted pendulum model in a multi-degree-of-freedom space. It has the characteristics of high order, nonlinearity, multivariable, strong coupling, etc. It integrates mechanical, electronic, computer, automatic control and artificial intelligence disciplines, and is an ideal platform for research. Compared with traditional wheeled, legged, tracked and other mobile robots, the cube robot has a unique structure and movement mode, and is flexible in movement. After self-assembly, multiple cube robots can be used in bridge repair, space exploration and other fields, which has important theoretical value and broad development prospects.
[0003] At present, the research on cube robots mainly focuses on: first, based on the design of single-sided or single-point self-balancing cube structure, less involved in the structural design of cube robots in mobile mode; second, mainly based on the classic control theory method to establish the cube mechanism model, and then design the cube controller on this basis, less involved in the intelligent modeling and control system based on the cube robot. However, the cube robot is a nonlinear, strongly coupled, multi-variable complex system. The cube control system based on the conventional linear mechanism model is difficult to obtain an accurate cube robot mechanism model, and when the cube robot is disturbed by the outside world, the characteristic parameters or structure of the system are prone to change, resulting in the classic controller that relies on the model accuracy. It is difficult to guarantee the effective control effect of the cube system. Summary of the invention
[0004] The technical problem to be solved by the present invention is: in view of the characteristics of the current cube robot, which has a single motion mode and complex motion control, to provide a flippable cube robot; at the same time, on this basis, in view of the characteristics of the current traditional cube robot modeling method, which is nonlinear, low in precision and difficult to control, to provide a flippable cube robot and its modeling method based on fuzzy neural network, as well as a control method based on parallel compensation method.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0006] A flippable cubic robot comprises a cubic frame, wherein all components including an electric control panel, a battery box, a motor and an inertia wheel are fixed inside the cubic frame, and the robot is characterized in that a brake pad is fixed on the upper side of the inertia wheel, one end of the brake pad is sleeved on the upper side of the inertia wheel, and the other end is connected to a steering gear.
[0007] Furthermore, all components of the robot are fixed inside the cube frame and are positioned as follows:
[0008] The motor is suspended and fixed in the middle of the front end face of the cube frame through a motor bracket, the inertia wheel is fixed on the shaft of the motor through a flange coupling, and the inertia wheel is parallel to the front end face of the cube frame, the brake pads and the servo are both fixed on the upper edge of the front end face of the cube frame, the battery box is fixed on the right end face of the cube frame, and the electric control board is fixed on the upper end face of the cube frame and is connected to the battery box, the motor and the servo.
[0009] Furthermore, the motor adopts a DC brushed motor with an encoder, the electronic control board is an integrated board, which integrates a posture sensor, a single-chip control board and a DC motor servo driver, and the posture sensor is composed of a gyroscope and an accelerometer.
[0010] A modeling method of a flippable cube robot based on a fuzzy neural network, characterized by comprising the following steps:
[0011] S1, collecting the body parameters of the cube robot at adjacent moments as discrete original input and output data, and determining the domain of the input and output data, wherein the body parameters include the body angle, the body angular velocity, and the angular velocity of the flywheel;
[0012] S2, perform fuzzy mean clustering calculation on the input and output data, obtain the number of fuzzy inference rules, and determine the center vector of the fuzzy membership function and the initial value of the Gaussian basis function;
[0013] S3, firstly, the fuzzy membership of the input data is calculated by the fuzzification layer through the fuzzy membership function, then the membership function values of the input data are multiplied in the rule strength layer to calculate the applicability of each rule, then the weight of the reasoning result of each rule is calculated in the normalization layer, and finally the output result of each fuzzy rule is calculated in the fuzzy rule output layer, and the output result of the entire fuzzy system is obtained in the defuzzification layer;
[0014] S4, calculates the errors of each layer through the gradient descent method, gradually improves the center and width of each membership function and the parameters of the connection weight of the consequent network, and continuously reduces the error and improves the model accuracy by comparing the predicted output with the actual output, thus establishing a flippable cube robot model based on fuzzy neural network.
[0015] Furthermore, in step S3, the fuzzy membership function adopts a Gaussian function, and the fuzzy rule output layer and the defuzzification layer sum the product of the output weight and the subsequent network output to obtain the network output.
[0016] A control method for a reversible cubic robot based on a parallel compensation method, characterized by comprising the following steps:
[0017] S1, according to Lyapunov stability theory and based on linear matrix inequality, a compensator is designed for each subsystem obtained by the rule of the cubic system model based on fuzzy neural network using parallel decentralized compensation method, so that the controller and the antecedent network of the controlled object are exactly the same;
[0018] S2, the data read by the gyroscope and the accelerometer are calculated to obtain the initial static attitude angle of the cube body and the real-time attitude angle of the cube body, and the real-time attitude angle of the cube and the body angle value obtained by the gyroscope are subjected to second-order Kalman complementary fusion filtering to obtain accurate attitude angle information;
[0019] S3, remove and modify the erroneous data in the inertia wheel angular velocity value collected by the motor encoder, and then send the modified inertia wheel angular velocity value into the queue for recursive average filtering processing to obtain accurate inertia wheel angular velocity data.
[0020] Furthermore, in step S2, within a short measurement cycle, the weight of the data measured by the gyroscope during the attitude angle calculation process is increased by 5% to 10%, and the data measured by the accelerometer is regularly averaged to correct the data obtained by the gyroscope; within a long measurement cycle, the weight of the data measured by the accelerometer during the attitude angle calculation process is increased by 5% to 10%.
[0021] Furthermore, in step S3, the principle of the recursive average filtering process is: set a queue of length N, put the inertia wheel angular velocity value after each modification into the queue, put the newly put data at the end of the queue, and discard the head data at the same time to ensure that the N data in the queue are the latest data; then calculate the arithmetic mean of the N data in the queue as the accurate inertia wheel angular velocity data.
[0022] Furthermore, the control method based on the parallel compensation method is characterized by: first, the system clock is initialized, the module is initialized, and finally the timing interrupt is initialized and turned on to complete the system initialization setting, and then the angular velocity and angular acceleration of the attitude sensor are collected in the timing interrupt, and the second-order Kalman complementary fusion filter attitude angle fusion is completed to obtain the body angle value of the flippable cube robot, and the inertial wheel angular velocity limiting average filtering is performed, and finally the stable control and rolling of the flippable cube robot are achieved.
[0023] Compared with the prior art, the present invention has the following main advantages:
[0024] 1. A servo and brake pad are added to the inside of the flippable cube robot, so that it can brake the high-speed rotating flywheel. When the inertia wheel rotates at high speed, the servo suddenly pulls the brake pad to make the inertia wheel stop. Through the law of conservation of energy, the kinetic energy of the inertia wheel is completely converted into the potential energy of the flippable cube robot as a whole, so that the cube robot can realize the autonomous rolling function.
[0025] 2. The motor in the flip cube robot uses a DC brush motor with encoder. The DC brush motor can reduce the motor usage cost of the robot, and the encoder can improve the accuracy of motor control.
[0026] 3. All components of the flippable cube robot system are located inside the cube frame. The brake servo and brake pads are added to improve the integrity of the system and effectively reduce the interference of external factors on the system during actual operation. It is conducive to the movement and secondary development of the cube robot.
[0027] 4. A modeling method based on fuzzy neural network for a flippable cube robot is proposed. Without the need to fully know the cube model structure and parameters, a large number of data samples are learned through fuzzy neural network, and the predicted output is compared with the actual output, the error is continuously reduced, the model accuracy is improved, and a fuzzy neural network model is established. This can effectively deal with problems such as model inaccuracy and uncertainty of complex systems, so that the cube robot has certain self-learning and adaptive capabilities, and solves the problems of nonlinearity, low accuracy and difficult control of traditional modeling methods.
[0028] 5. A control method based on parallel compensation for a flippable cube robot is proposed. According to Lyapunov stability theory and based on linear matrix inequality, a controller is designed using the parallel distributed compensation method, and sufficient conditions for realizing the nonlinear system control of the flippable cube robot are given. The parallel distributed compensation control uses measured state variable feedback to improve the control system's ability to suppress unmeasured interference and improve the robustness of the control system. The method is simple and easy to implement to meet the requirements for the setting of the inertial wheel angular velocity and the body angle parameters. The control algorithm is simple, stable, and fast in response, and is easy to operate online on the air.
[0029] 6. The second-order Kalman complementary fusion filtering method is used to perform second-order Kalman complementary fusion filtering on the calculated attitude angle of the flippable cube robot and the gyroscope data to obtain attitude angle information with higher accuracy.
[0030] 7. The recursive average filtering method is used to perform limited average filtering on the inertial wheel angular velocity value collected by the motor encoder of the flippable cube robot. Compared with the traditional limiting filtering method, it can better suppress periodic interference, has higher smoothness, and is more adaptable to high-frequency oscillation systems, thereby obtaining accurate inertial wheel angular velocity data. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a schematic diagram of the mechanical structure of the flippable cube robot of the present invention;
[0032] Figure 2 This is a diagram showing the arrangement of components of the flippable cube robot of the present invention;
[0033] Figure 3 A schematic diagram of the flippable cube robot of the present invention rolling over;
[0034] Figure 4 The modeling and control flow chart of the flippable cube robot based on fuzzy neural network of the present invention;
[0035] Figure 5 It is a schematic diagram of the structure of the fuzzy neural network algorithm of the present invention;
[0036] Figure 6 This is a simulation diagram of the mean square error of the fuzzy neural network of the flippable cube robot of the present invention;
[0037] Figure 7 A schematic diagram showing the comparison between the output of the fuzzy neural network model of the present invention and the output of the original model;
[0038] Figure 8 The cube angle value following curve of the flip cube robot in the initial state of the present invention;
[0039] Fig. 9 The cube angular velocity value following curve of the flip cube robot of the present invention in the initial state;
[0040] Fig.10 The inertia wheel angle value following curve of the flip cube robot of the present invention in the initial state;
[0041] Fig.11 The output curve of the cube angle value when the flip cube robot of the present invention is in stable operation;
[0042] Fig.12 The output curve of the cube angular velocity value when the flip cube robot of the present invention is in stable operation;
[0043] Fig.13 The output curve of the angular velocity value of the inertia wheel when the flippable cube robot of the present invention is in stable operation;
[0044] Fig.14 It is the anti-disturbance output curve of the cube angle value under instantaneous disturbance of the flip cube robot of the present invention;
[0045] Fig.15 It is the anti-disturbance output curve of the cube angular velocity value under instantaneous disturbance of the flippable cube robot of the present invention;
[0046] Fig.16 It is the anti-disturbance output curve of the angular velocity value of the inertia wheel under instantaneous disturbance of the flippable cube robot of the present invention;
[0047] Fig.17 It is the output curve of the cube angle value when the parameters of the flip cube robot system of the present invention change;
[0048] Fig.18 It is the output curve of the cube angular velocity value when the parameters of the flip cube robot system of the present invention change;
[0049] Fig.19 This is the output curve of the angular velocity value of the inertia wheel when the system parameters of the flippable cube robot of the present invention change. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the following Figures 1 to 18 The present invention is further described in detail with reference to the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. In addition, the technical features involved in each embodiment of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0051] It should be pointed out that, according to the needs of implementation, the various steps / components described in this application can be split into more steps / components, and two or more steps / components or partial operations of steps / components can be combined into new steps / components to achieve the purpose of the present invention.
[0052] A reversible cube robot according to the present invention is as follows Figure 1 As shown in the figure: 1 is an electric control board, 2 is a DC brush motor with encoder, 3 is a steering gear, 4 is a battery box, 5 is a cube frame, 6 is a brake pad, 7 is a motor bracket, 8 is a flange coupling, and 9 is an inertia wheel. All components of the robot are fixed inside the cube frame, which can improve the integrity of the robot system and effectively reduce the interference of external factors on the system during actual operation. The motor adopts a DC brush motor with encoder. The DC brush motor can reduce the motor use cost of the robot, and the encoder can improve the accuracy of motor control.
[0053] like Figure 2As shown, the motor is suspended and fixed in the middle of the front end face of the cube frame through a motor bracket, the inertia wheel is fixed on the shaft of the motor through a flange coupling, and the inertia wheel is parallel to the front end face of the cube frame, the brake pad and the steering gear are fixed on the upper edge of the front end face of the cube frame, the battery box is fixed on the right end face of the cube frame, and the electric control board is fixed on the upper end face of the cube frame and is connected to the battery box, the motor, and the steering gear. The electric control board is highly integrated, and is equipped with a posture sensor, a single-chip control board, and a DC motor servo driver.
[0054] like Figure 3 As shown, when the inertia wheel rotates at high speed, the servo suddenly pulls the brake pad to make the inertia wheel stop. Through the law of conservation of energy, the kinetic energy of the inertia wheel is completely converted into the potential energy of the entire flippable cube robot, thereby enabling the flippable cube robot to achieve autonomous rolling function.
[0055] The dynamic model established by the traditional modeling method based on the Lagrangian method is a nonlinear model. There are strong nonlinear terms in the model, which leads to the inability to completely and accurately linearize the flip cube robot system model, making it difficult to directly use it in control system design, and it is difficult to obtain a good control effect through linear control laws. Therefore, a modeling method based on fuzzy neural networks for flip cube robots is proposed. Through the learning of a large number of data samples by fuzzy neural networks, the predicted output is compared with the actual output, the error is continuously reduced, the model accuracy is improved, and the fuzzy neural network model is established. It can effectively deal with the problems of model inaccuracy and uncertainty of complex systems.
[0056] A modeling method of a reversible and flippable cube robot based on fuzzy neural network, such as Figure 4 As shown, the following steps are included:
[0057] S1: Collect cube body input and output data.
[0058] The effective data derived from the cube object are the body angle α and the body angular velocity Angular velocity of the flywheel The present invention uses the body angle α and the body angular velocity at time t as Angular velocity of the flywheel As the input of the system. Due to the body angle α and the angular velocity of the body at time t+1 Angular velocity of the flywheel Basically depends on the body angle α and the angular velocity of the body at time t Angular velocity of the flywheel So the body angle α and the body angular velocity at time t+1 are Angular velocity of the flywheel As the output of the system. Create a data set The collected data group is a discrete data group with a sampling period of 5ms.
[0059] S2: Data fuzzy mean clustering.
[0060] Considering the fuzzy neural network model of the flippable cube robot, the membership function in the fuzzy reasoning of the present invention is a Gaussian function. Therefore, the number of fuzzy reasoning rules is obtained by clustering the input and output data, and the initial value of the fuzzy membership function center vector and the Gaussian basis function is determined.
[0061] Since the multivariable system can be viewed as a set of multiple input single output (MISO) models coupled, each MISO subsystem has a set of IF-THEN rules, and each rule represents a linear subsystem. Therefore, the three-input and three-output data set of the flippable cube robot can be divided into three MISO subsystems coupled. Therefore, 1000 sets of raw data are collected, of which the first 800 sets are used as sample data and the last 200 sets are used as test data, and the sampling period is 5ms.
[0062] After fuzzy clustering of input and output data, the rule form of the fuzzy neural network model is obtained as follows:
[0063]
[0064]
[0065] j=1,2,3 . . . , 27
[0066] The rule consequence f is a zero-order or first-order linear function that can be obtained through sample training. The domain of the variable They are [-10,10], [-100,100], and [-5000,+5000] respectively.
[0067] S3: Construction of fuzzy neural network.
[0068] Let's take α(t) as an example. The definition of is similar to the network structure of α(t), and its fuzzy domain is defined as [-10,10] and the fuzzy subset is defined as {N, Z, P}.
[0069] Then build a fuzzy neural network for the flip cube robot, where the input is the body angle α and the angular velocity of the flip cube robot. Angular velocity of the flywheel There are 800 sets of data samples in total. Figure 5As shown, the general structure of the model is divided into five layers: calculating the fuzzy membership of the input. The applicability of each rule, the normalization of the applicability, the output of each rule, and the output of the entire fuzzy system. The input layer directly sends the input value to the next layer. The output of the fuzzification layer is a membership function, which corresponds to the basic fuzzy state in the premise of fuzzy reasoning. The fuzzy reasoning layer is connected to the premise and conclusion of fuzzy reasoning. The defuzzification layer gives a definite output for the system to execute. The connection weight coefficients between each layer are adaptively adjusted through the given sample data, so that the obtained structure can well reflect the model of the flippable cube robot. The entire network structure is described in detail as follows:
[0070] The first layer is the fuzzy layer, which transforms the body angle α and the angular velocity of the flippable cube robot Angular velocity of the flywheel Fuzzy. i , B i , C i is a fuzzy set. The fuzzy membership function uses a Gaussian function.
[0071]
[0072] Among them C ij and σ ij are the center and width of the Gaussian membership function, It's A i The membership function value of α(t) indicates that α(t) belongs to A i degree.
[0073] The second layer is the regular intensity layer, which converts the body angle α, the body angular velocity Angular velocity of the flywheel Multiply the membership function values of to calculate the applicability of each rule
[0074]
[0075] i=1,2,3 j=1,2,...,27
[0076] The third layer is the normalization layer for all rule strengths, and the output is the weight of each fuzzy rule reasoning. The jth node calculates the normalization of the jth rule.
[0077]
[0078] The fourth layer is the fuzzy rule output layer; this layer calculates the output of the fuzzy rule, where each node is an adaptive node. The jth node has the output:
[0079]
[0080] The fifth layer is the defuzzification layer, which has only one circular node. Its output is the sum of all input signals, that is, the result of fuzzy reasoning:
[0081] M=∑ j Z j j=1,2,…,27 (6)
[0082] S4: Fuzzy neural network algorithm learning and outputting flippable cube robot model.
[0083] Since the network structure has been determined, the neural network is mainly used to learn parameters related to the membership function, such as the center C ij , width σ ij The neural network is used to correct the error parameters, and α d is the prediction output of the fuzzy neural network, α dk The actual output of the fuzzy neural network, K represents the number of groups of data taken, represents the error between the expected value and the actual value in the fifth layer. The error cost function is
[0084]
[0085]
[0086]
[0087] i=1, 2, 3 j=1, 2,...27, k=1, 2, 3
[0088] The final learning algorithm is (β>0 is the learning rate):
[0089]
[0090] When the error parameter is less than the set threshold, the neural network learning ends. At this time, the total output of the cubic fuzzy neural network model can be expressed as:
[0091]
[0092] A control method for a flippable cubic robot based on a parallel compensation method comprises the following steps:
[0093] S1: Design controller using parallel distributed compensation method
[0094] According to Lyapunov stability theory and based on Linear Matrix Inequality (LMI), a compensator is designed for each subsystem obtained by each rule of the fuzzy neural network model of the present invention using the Parallel Distributed Compensation (PDC), that is, the controller and the antecedent network of the controlled object are exactly the same. In this way, each rule can be designed using linear system theory, and the final nonlinear fuzzy controller is a mixture of a single local linear controller.
[0095] The fuzzy rules obtained by fuzzy clustering of input and output data in the present invention are:
[0096]
[0097]
[0098] For each fuzzy neural network subsystem, 27 fuzzy control rules can be designed by using the state feedback method:
[0099]
[0100] For the continuous nonlinear system, after defuzzification using the center of gravity method, the controller output u(x) of the flippable cube robot based on the TS fuzzy model is:
[0101]
[0102] S2: Perform second-order Kalman complementary fusion filtering on the cube's real-time attitude angle and gyroscope data.
[0103] The attitude angle sensor of the flippable cube robot uses the MPU6050 attitude sensor, which consists of a gyroscope and an accelerometer. The gyroscope is an angular velocity sensor that detects changes in angular velocity. Assume that the angular velocity of the body measured by the gyroscope is Then the tilt angle θ of the flippable cube robot can be calculated by formula (13).
[0104]
[0105] The body angle obtained by formula (13) has a large error accumulation as time goes by due to the integral drift of the gyroscope and the temperature drift. However, the angle value obtained in a short period is consistent with the actual value.
[0106] The accelerometer is very sensitive to the change of the angular acceleration of the flip cube robot. Since the angular acceleration of the flip cube robot is only affected by the acceleration of gravity, it is assumed that the components of the tilt angular acceleration measured by the accelerometer on the X-axis and Y-axis are A and x and A y , then the tilt angle θ of the flippable cube robot can be calculated by formula (14).
[0107]
[0108] However, if the instantaneous value of the accelerometer is read directly, the error calculated as the inclination angle will be relatively large, and precise control cannot be performed. However, in the long term, the accelerometer is more accurate than the gyroscope.
[0109] Therefore, in the present invention, the data read by the gyroscope and the accelerometer are calculated to obtain the initial static attitude angle of the cube body and the real-time attitude angle of the cube body, and the real-time attitude angle of the cube is subjected to second-order Kalman complementary fusion filtering with the gyroscope data to obtain attitude angle information with relatively high accuracy.
[0110] According to actual engineering experience, in a short measurement cycle, the weight of the body angle obtained by the gyroscope integration is increased, and the acceleration values sampled from the acceleration are averaged regularly to correct the angle obtained by the gyroscope; in a long measurement cycle, the weight of the body angle obtained by the accelerometer is increased.
[0111] The principle of the recursive average filtering process is as follows: a queue of length N is set, each modified inertia wheel angular velocity value is put into the queue, the newly put data is put at the end of the queue, and the head data is discarded to ensure that the N data in the queue are the latest data; then the arithmetic mean of the N data in the queue is calculated as the accurate inertia wheel angular velocity data.
[0112] S3: Inertia wheel angular velocity limiting average filtering.
[0113] The flip inertia wheel speed encoder is installed on the motor to sample the motor speed. Since the motor drives the inertia wheel to rotate, the speed of the inertia wheel is equal to the motor speed, so the sampling value of the motor speed encoder is the angular velocity value of the inertia wheel. During the encoder sampling process, random sampling values will jump over a large range. It is necessary to remove and modify the erroneous data in the sampling value, and then send the sampling value to the queue for recursive average filtering.
[0114] Feasibility verification:
[0115] 1. Output comparison test
[0116] Taking the angle value of the flip cube robot in the test sample data as an example, the output accuracy of the fuzzy neural network model of the flip cube robot is tested. By training the input and output data errors, the following is obtained: Figure 6 The mean square error simulation curve of the fuzzy neural network of the flippable cube robot shown in the figure shows that after ten weight updates, the mean square error of the fuzzy neural network model has dropped to 1×10 -20 Next, we take 200 sets of data from the test sample to test the output of the fuzzy neural network model. Figure 7 As shown, the cube angle value data output error of the fuzzy neural network model is small and the accuracy is high. It can follow the original output data well and achieve the purpose of modeling.
[0117] 2. Comparative test between fuzzy neural network model and conventional mechanism model of cube robot
[0118] By simulating the cube fuzzy neural network model and the conventional mechanism simulation model, we can get the following Figures 8 to 10 As shown, the initial state of the cube robot is set to [5 0 0] T After simulation, the initial state response simulation curve of the cube robot is as follows. Through the simulation curves of the cube angle value, cube angular velocity value, and inertia wheel angular velocity, it can be seen that the output of the cube fuzzy neural network has a faster response time, a smaller overshoot, and higher stability than the conventional mechanism model of the cube.
[0119] 3. Cube physical operation experiment
[0120] The fuzzy neural network is applied to the real object. After experimental debugging, the sampling period is set to 5ms and the initial value of the cube robot angle is 0°.
[0121] The response waveform of the cube robot when it is stable is as follows Figures 11 to 13 As shown in the figure, it can be seen that when the cube robot is stable, the cube body angle value fluctuates around 0°, and the inertia wheel angular velocity value fluctuates slightly around the set value.
[0122] When the cube robot is in the process of static stability, a momentary disturbance is given to the cube robot, causing its body angle value to change. The anti-disturbance output response of the system is as follows: Figures 14 to 16 As shown in the figure, it can be seen that for sudden external interference during the stabilization process of the cube robot, the cube robot system can respond quickly and adjust to stabilize to the balance point, and has a certain anti-interference ability.
[0123] In the original steady-state process of the cube robot, a weight of about 10g is added to its cube frame to change the mass of the cube frame and interrupt the original angle balance. It can be seen that the original balance angle of the cube robot is around 0°. When the weight is added, the angle of the cube robot changes and quickly returns to a steady state around 1.4°. The angular velocity of the inertia wheel starts at around 0°, increases with the increase of the body angle, and finally returns to around 0°. The output response of the system is as follows: Figures 17 to 19 As shown in the figure, it can be seen that the fuzzy neural network model of the cube robot still has good adaptability to the balance control of the system when the system parameters change, which verifies that the fuzzy neural network model has good robustness when the system parameters change.
[0124] This patent mainly focuses on the establishment of a model of a flippable cube robot system. It proposes a flippable cube robot and its modeling method based on fuzzy neural network, as well as a control method based on parallel compensation method. Simulation verification and physical testing are carried out to achieve the fast and stable control objectives and rolling function of the flippable cube robot, while improving the system's anti-interference ability. Experiments have verified the feasibility and effectiveness of this method, and it has a wide range of promotion value.
[0125] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A reversible cubic robot, comprising a cubic frame, wherein all components including an electric control panel, a battery box, a motor and an inertia wheel are fixed inside the cubic frame, characterized in that: A brake pad is fixed on the upper side of the inertia wheel, one end of the brake pad is sleeved on the upper side of the inertia wheel, and the other end is connected to the steering gear; All parts of the robot are fixed inside the cube frame and are positioned as follows: The motor is suspended and fixed in the middle of the front end face of the cube frame through a motor bracket, the inertia wheel is fixed on the shaft of the motor through a flange coupling, and the inertia wheel is parallel to the front end face of the cube frame, the brake pad and the steering gear are both fixed to the upper edge of the front end face of the cube frame, the battery box is fixed to the right end face of the cube frame, and the electric control board is fixed to the upper end face of the cube frame and is connected to the battery box, the motor, and the steering gear; The motor adopts a DC brushed motor with an encoder, and the electric control board is an integrated board, which integrates a posture sensor, a single-chip control board and a DC motor servo driver, and the posture sensor is composed of a gyroscope and an accelerometer; The attitude sensor is composed of a gyroscope and an accelerometer. The gyroscope is used to measure the body angular velocity: The accelerometer is used to measure the components of the body's tilt angular acceleration on the X-axis and Y-axis of the accelerometer, respectively. x and A y ; The data read by the gyroscope and accelerometer are calculated to obtain the initial static attitude angle of the cube body and the real-time attitude angle of the cube body, and the real-time attitude angle of the cube is subjected to second-order Kalman complementary fusion filtering with the gyroscope data to obtain the body attitude angle information; At the same time, in a short measurement cycle, the weight of the body angle obtained by the gyroscope integration is increased, and the acceleration values sampled from the acceleration are averaged regularly to correct the angle obtained by the gyroscope; in a long measurement cycle, the weight of the body angle obtained by the accelerometer is increased.
