CN103010360B - Movement control method of self-balancing two-wheel vehicle - Google Patents

Movement control method of self-balancing two-wheel vehicle Download PDF

Info

Publication number
CN103010360B
CN103010360B CN201110287319.3A CN201110287319A CN103010360B CN 103010360 B CN103010360 B CN 103010360B CN 201110287319 A CN201110287319 A CN 201110287319A CN 103010360 B CN103010360 B CN 103010360B
Authority
CN
China
Prior art keywords
output
acceleration
speed
wheel
car
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
Application number
CN201110287319.3A
Other languages
Chinese (zh)
Other versions
CN103010360A (en
Inventor
郭盖华
涂超
周伟
Original Assignee
DONGGUAN ROBSTEP ROBOT Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by DONGGUAN ROBSTEP ROBOT Co Ltd filed Critical DONGGUAN ROBSTEP ROBOT Co Ltd
Priority to CN201110287319.3A priority Critical patent/CN103010360B/en
Publication of CN103010360A publication Critical patent/CN103010360A/en
Application granted granted Critical
Publication of CN103010360B publication Critical patent/CN103010360B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a movement control method of a self-balancing two-wheel vehicle, which comprises a gyroscope sensor, an acceleration sensor, an acceleration PID (proportion-integration-differential) controller and a speed PID controller, wherein the gyroscope sensor, the acceleration sensor, the acceleration PID controller and the speed PID controller are arranged on the two-wheel vehicle; gyroscope angular speed value data output by the gyroscope sensor and wheel acceleration data output by the acceleration sensor are processed, and then an output fusion angle value is calculated; an output acceleration of wheels is calculated by a control system of the two-wheel vehicle by utilizing the fusion angle value and a gyroscope angular speed value, and then the output acceleration is fine-tuned by the acceleration PID controller by utilizing a PID fuzzy control parameter table; the current output speed is collected by the control system of the two-wheel vehicle, and the target speed is obtained; and the PID algorithm regulation is performed by the speed PID controller, so as to control the current output speed to the target speed. According to the movement control method of the self-balancing two-wheel vehicle, smooth running of the two-wheel vehicle is realized through the acceleration PID controller and the speed PID controller.

Description

A kind of motion control method of balanced car with two wheels
Technical field
The present invention relates to automatic control technology field, especially relate to a kind of motion control method of balanced car with two wheels.
Background technology
Inverted pendulum is a kind of complexity, nonlinear, unsettled system, and it is typical scientific research or the instructional device of modern control theory and application.Due to irregular ground situation, the load of wheel has larger variation, therefore, the range of movement of existing inverted pendulum is all very limited, controlling quantity is can not Jia get Tai large, otherwise will exceed its restriction, some algorithms cannot be realized on these reversible pendulum systems, can not effectively control the balance of car body.Therefore, the present invention proposes the method for directly acceleration/accel of car body being controlled.
Existing technology is seldom mentioned the fusion method of sensor and in the protection on control policy, because balanced car with two wheels itself is exactly a time-dependent system, in practical application, inevitably will be run into some surprisingly to car body.
Summary of the invention
The defect that the present invention be directed to the existence of above-mentioned background technology provides a kind of motion control method of balanced car with two wheels, ensures controllability and the traveling comfort of two-wheel car.
For achieving the above object, the invention discloses a kind of motion control method of balanced car with two wheels, comprise the following steps:
(1) on two-wheel car, be fixed with gyro sensor and acceleration pick-up, gyro sensor gathers angular velocity signal on two-wheel car, and acceleration pick-up gathers corresponding acceleration signal on two-wheel car;
(2) the wheel acceleration/accel of the gyroscope magnitude of angular velocity of the output of gyro sensor and the output of acceleration pick-up is converted into digital quantity after reading by the inner A/D converter of two-wheel car control system, the data obtained is processed to the fusion angle value that calculates output through kalman filter;
(3) described two-wheel car control system inside is provided with acceleration/accel PID controller, two-wheel car control system utilizes the fusion angle value of sensor output and the gyroscope magnitude of angular velocity of gyro sensor output to calculate the output acceleration/accel of wheel, and described acceleration/accel PID controller utilizes PID fuzzy control parameter table that the output acceleration/accel of wheel is finely tuned;
(4) described two-wheel car control system inside is provided with speed by PID controller, described two-wheel car control system collects the current output speed of two-wheel car, described two-wheel car control system utilizes current output speed to coordinate the output acceleration/accel of wheel to obtain the target velocity of two-wheel car, and described speed by PID controller carries out pid algorithm adjusting current output speed is controlled to target velocity.
Further, the formula that the data that described gyro sensor and acceleration pick-up gather calculate fusion angle value is:
fused_angle=(1-kg)*(fused_angle+ anglerate*dt)+kg*A* arcsin(acc)
Wherein fused_angle is the output of merging angle value, and anglerate is gyrostatic output, and acc is for adding
The output of speed sensor, A is system parameter, and A* arcsin (acc) is inverted pendulum angle of inclination, and kg is for logical
Cross the adjustment factor that kalman filter calculates;
Further, the difference of described target velocity and current output speed obtains tolerance speed, and the tolerance speed obtaining is carried out pid algorithm adjusting by described speed by PID controller;
Further, the computing formula of the output acceleration/accel of described wheel:
acc_speed=P*fused_angle +I* fused_angle*dt+D*anglerate
Wherein fused_angle is the output of merging angle value, and anglerate is gyrostatic output, the output acceleration/accel that acc_speed is wheel;
Further, the parameter P of described PID fuzzy control parameter table, parameter I, parameter D span are 4~50;
Further, the state of kinematic motion of two-wheel car is divided into 4 quadrants by the gyroscope magnitude of angular velocity of the fusion angle value of described sensor output and gyro sensor output, and the parameter P of described PID fuzzy control parameter table, parameter I, the parameter D setting value requirement when setting value during with third quadrant requires from two-wheel car car body in the second quadrant and fourth quadrant in first quartile at two-wheel car car body is different.
In sum, the motion control method of a kind of balanced car with two wheels of the present invention carries out data processing by kalman filter by the wheel acceleration/accel of the output of the gyroscope magnitude of angular velocity of the output of gyro sensor and acceleration pick-up and obtains the fusion angle value that sensor is exported, two-wheel car control system utilizes the fusion angle value of described sensor output and gyroscope magnitude of angular velocity to calculate the output acceleration/accel of wheel, acceleration/accel PID controller utilizes PID fuzzy control parameter table the output acceleration/accel of wheel to be finely tuned to ensure controllability and the traveling comfort of two-wheel car, two-wheel car control system collects the current output speed of two-wheel car and coordinates the output acceleration/accel of wheel to obtain the target velocity of two-wheel car simultaneously, thereby regulate and allow current output speed reach fast target velocity to realize the smooth running of two-wheel car through pid algorithm.
Brief description of the drawings
Fig. 1 is the motion control method functional block diagram of a kind of balanced car with two wheels of the present invention.
Fig. 2 is the motion schematic diagram that leans forward of balanced car with two wheels shown in Fig. 1.
Fig. 3 is the layback of balanced car with two wheels shown in Fig. 1 motion schematic diagram.
Fig. 4 is the system of axes figure that the fusion angle value of the output of balanced car with two wheels sensor shown in Fig. 1 and the gyroscope magnitude of angular velocity of gyro sensor output combine.
Detailed description of the invention
For further understanding feature of the present invention, technological means and the specific purposes that reach, function, below in conjunction with accompanying drawing and detailed description of the invention, the present invention is described in further detail.
As shown in Figures 1 to 4, the motion control method of a kind of balanced car with two wheels of the present invention, realize as follows:
(1) on two-wheel car, be fixed with gyro sensor and acceleration pick-up, gyro sensor gathers angular velocity signal on two-wheel car, and acceleration pick-up gathers corresponding acceleration signal on two-wheel car;
(2) the wheel acceleration/accel acc of the gyroscope magnitude of angular velocity anglerate of the output of gyro sensor and the output of acceleration pick-up is converted into digital quantity after reading by the inner A/D converter of two-wheel car control system (ADC), after necessary data processing, can calculate the fusion angle value fused_angle of sensor output:
fused_angle=(1-kg)*(fused_angle+ anglerate *dt)+kg*A* arcsin(acc)
Wherein A is system parameter, and in the present embodiment, its setting value is that 57.29, kg adjusts the factor, is the kalman gain calculating by kalman filter;
(3) described two-wheel car control system inside is provided with acceleration/accel PID controller, and the gyroscope magnitude of angular velocity anglerate of the fusion angle value fused_angle of sensor output and gyro sensor output is used following formula by two-wheel car control system:
acc_speed=P*fused_angle +I* fused_angle*dt+D*anglerate
Calculate the output acceleration/accel acc_speed of wheel.The output acceleration/accel acc_speed of described acceleration/accel PID controller control wheel, described parameter P, parameter I, parameter D have formed the PID fuzzy control parameter table of acceleration/accel PID controller, described parameter P, parameter I, parameter D span are 4~50, and described parameter P, parameter I, parameter D setting value can finely tune to ensure to the output acceleration/accel acc_speed of wheel controllability and the traveling comfort of two-wheel car.
(4) described two-wheel car control system inside is provided with speed by PID controller, described two-wheel car control system collects the current output speed cur_speed of two-wheel car, described two-wheel car control system utilizes current output speed cur_speed to coordinate the output acceleration/accel acc_speed of wheel to obtain the target velocity aim_speed of two-wheel car, utilize the difference of target velocity aim_speed and current output speed cur_speed to obtain tolerance speed err_speed, the tolerance speed err_speed obtaining is carried out pid algorithm adjusting by described speed by PID controller:
Kp*err_speed+Ki* err_speed*dt+Kd*
Wherein, described Kp span is 100~1000, Ki span is that 10~500, Kd value is 0~50, realizes the smooth running of two-wheel car thereby the setting value of described parameter K p, parameter K i, parameter K d can allow current output speed cur_speed reach fast target velocity aim_speed.
(5) state of kinematic motion of two-wheel car is divided into 4 quadrants by the gyroscope magnitude of angular velocity anglerate of the fusion angle value fused_angle of described sensor output and gyro sensor output, first quartile represents two-wheeled vehicle bench over and to preacceleration, the second quadrant represents two-wheeled vehicle trunk bending backwards and accelerates backward, third quadrant represents two-wheeled vehicle trunk bending backwards and slows down backward, and fourth quadrant represents two-wheeled vehicle bench over and to front reduction gear.Described parameter P, parameter I, the parameter D setting value requirement when setting value during with third quadrant requires from two-wheel car car body in the second quadrant and fourth quadrant in first quartile at two-wheel car car body is different, speed of response at first quartile and third quadrant two-wheel car car body is eager to excel than the speed of response at the second quadrant and fourth quadrant two-wheel car car body, to improve two-wheel car controllability and traveling comfort.
In sum, the motion control method of a kind of balanced car with two wheels of the present invention carries out data processing by kalman filter by the wheel acceleration/accel of the output of the gyroscope magnitude of angular velocity of the output of gyro sensor and acceleration pick-up and obtains the fusion angle value that sensor is exported, two-wheel car control system utilizes the fusion angle value of described sensor output and gyroscope magnitude of angular velocity to calculate the output acceleration/accel of wheel, acceleration/accel PID controller utilizes PID fuzzy control parameter table the output acceleration/accel of wheel to be finely tuned to ensure controllability and the traveling comfort of two-wheel car, two-wheel car control system collects the current output speed of two-wheel car and coordinates the output acceleration/accel of wheel to obtain the target velocity of two-wheel car simultaneously, thereby regulate and allow current output speed reach fast target velocity to realize the smooth running of two-wheel car through pid algorithm.
The above embodiment has only expressed one embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as limitation of the scope of the invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with claims.

Claims (4)

1. a motion control method for balanced car with two wheels, is characterized in that, comprises the following steps:
(1) on two-wheel car, be fixed with gyro sensor and acceleration pick-up, gyro sensor gathers angular velocity signal on two-wheel car, and acceleration pick-up gathers corresponding acceleration signal on two-wheel car;
(2) the wheel acceleration/accel of the gyroscope magnitude of angular velocity of the output of gyro sensor and the output of acceleration pick-up is converted into digital quantity after reading by the inner A/D converter of two-wheel car control system, the data obtained is processed to the fusion angle value that calculates output through kalman filter;
Wherein, the formula that the data that described gyro sensor and acceleration pick-up gather calculate fusion angle value is:
fused_angle=(1-kg)*(fused_angle+∫anglerate*dt)+kg*A*arcsin(acc)
Wherein fused_angle is the output of merging angle value, anglerate is gyrostatic output, the output that acc is acceleration pick-up, and A is system parameter, A*arcsin (acc) is inverted pendulum angle of inclination, and kg is the adjustment factor calculating by kalman filter;
(3) described two-wheel car control system inside is provided with acceleration/accel PID controller, two-wheel car control system utilizes the fusion angle value of sensor output and the gyroscope magnitude of angular velocity of gyro sensor output to calculate the output acceleration/accel of wheel, and described acceleration/accel PID controller utilizes PID fuzzy control parameter table that the output acceleration/accel of wheel is finely tuned;
Wherein, the computing formula of the output acceleration/accel of described wheel:
acc_speed=P*fused_angle+I*∫fused_angle*dt+D*anglerate
Wherein fused_angle is the output of merging angle value, and anglerate is gyrostatic output, the output acceleration/accel that acc_speed is wheel;
(4) described two-wheel car control system inside is provided with speed by PID controller, described two-wheel car control system collects the current output speed of two-wheel car, described two-wheel car control system utilizes current output speed to coordinate the output acceleration/accel of wheel to obtain the target velocity of two-wheel car, and described speed by PID controller carries out pid algorithm adjusting current output speed is controlled to target velocity.
2. the motion control method of a kind of balanced car with two wheels according to claim 1, is characterized in that: the difference of described target velocity and current output speed obtains tolerance speed, and the tolerance speed obtaining is carried out pid algorithm adjusting by described speed by PID controller.
3. the motion control method of a kind of balanced car with two wheels according to claim 1, is characterized in that: the parameter P of described PID fuzzy control parameter table, parameter I, parameter D span are 4~50.
4. the motion control method of a kind of balanced car with two wheels according to claim 1, it is characterized in that: the state of kinematic motion of two-wheel car is divided into 4 quadrants by the gyroscope magnitude of angular velocity of the fusion angle value of described sensor output and gyro sensor output, the parameter P of described PID fuzzy control parameter table, parameter I, the parameter D setting value requirement when setting value during with third quadrant requires from two-wheel car car body in the second quadrant and fourth quadrant in first quartile at two-wheel car car body is different.
CN201110287319.3A 2011-09-26 2011-09-26 Movement control method of self-balancing two-wheel vehicle Active CN103010360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110287319.3A CN103010360B (en) 2011-09-26 2011-09-26 Movement control method of self-balancing two-wheel vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110287319.3A CN103010360B (en) 2011-09-26 2011-09-26 Movement control method of self-balancing two-wheel vehicle

Publications (2)

Publication Number Publication Date
CN103010360A CN103010360A (en) 2013-04-03
CN103010360B true CN103010360B (en) 2014-08-20

Family

ID=47959600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110287319.3A Active CN103010360B (en) 2011-09-26 2011-09-26 Movement control method of self-balancing two-wheel vehicle

Country Status (1)

Country Link
CN (1) CN103010360B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108501768A (en) * 2018-03-29 2018-09-07 南京航空航天大学 A kind of two-wheeled method for control speed based on Z axis gyroscope and difference in wheel

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103529850B (en) * 2013-10-28 2016-11-16 华南理工大学广州学院 Double-wheel self-balancing car control method
CN103676650A (en) * 2013-11-29 2014-03-26 上海交通大学 Method for PID (proportion integration differentiation) optimization control with dead zone for two-wheeled self-balancing intelligent vehicle
CN103792946B (en) * 2014-02-14 2016-08-24 上海创绘机器人科技有限公司 The signal processing method of motor type reversible pendulum system control and Intelligent self-balancing car whistle control system
CN103753557B (en) * 2014-02-14 2015-06-17 上海创绘机器人科技有限公司 Self-balance control method of movable type inverted pendulum system and self-balance vehicle intelligent control system
CN104298113A (en) * 2014-10-22 2015-01-21 五邑大学 Self-adaptive fuzzy balance controller for two-wheeled robot
CN104999925B (en) * 2015-07-23 2018-01-05 北京锐安科技有限公司 The control method and device of balance car
CN105068543B (en) * 2015-08-11 2017-07-28 浙江工业大学 It is a kind of that type AGV two-wheeled synchronous method is born based on PID control
CN105807689A (en) * 2016-04-29 2016-07-27 上海海洋大学 Two-wheel self-balance car control system
CN107562063A (en) * 2016-06-30 2018-01-09 沈阳新松机器人自动化股份有限公司 A kind of self-balance robot attitude control method and system
CN106379478B (en) * 2016-09-05 2021-07-30 深圳市周武科技有限公司 Scooter speed control system based on gyroscope and implementation method
CN106802663B (en) * 2017-03-30 2019-09-06 桂林理工大学 Flying wheel control method and device
CN109202883A (en) * 2017-06-29 2019-01-15 沈阳新松机器人自动化股份有限公司 A kind of position control method of self-balance robot
CN108594637B (en) * 2018-05-30 2020-09-25 大连理工大学 Two-wheeled self-balancing vehicle plane point-to-point autonomous motion control method
CN109407689B (en) * 2018-12-19 2020-02-21 四川大学 Fuzzy control method and device for balance robot and balance robot
CN110119146A (en) * 2019-04-30 2019-08-13 西安工程大学 A kind of control system and method following balancing trolley certainly
CN110147042B (en) * 2019-05-28 2020-06-16 金力 Vertical AGV body control method based on fuzzy control and PID control
CN110941281A (en) * 2019-12-16 2020-03-31 华南理工大学广州学院 Laser tracking balance car control system
CN110941280A (en) * 2019-12-16 2020-03-31 华南理工大学广州学院 Laser tracking balance car control method
CN111273542B (en) * 2020-01-20 2023-03-10 武汉科技大学 Cubic robot, control system and method, and design method
CN112051842A (en) * 2020-07-29 2020-12-08 浙江工业大学 Obstacle crossing motion control method of two-wheeled self-balancing mobile robot

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201009984Y (en) * 2006-06-30 2008-01-23 宁波Gqy视讯股份有限公司 Dual-purpose of standing and sitting type self-blancing two-wheeled vehicle
CN201228037Y (en) * 2008-06-16 2009-04-29 周惠兴 Two-wheel self balancing electric motor vehicle

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201009984Y (en) * 2006-06-30 2008-01-23 宁波Gqy视讯股份有限公司 Dual-purpose of standing and sitting type self-blancing two-wheeled vehicle
CN201228037Y (en) * 2008-06-16 2009-04-29 周惠兴 Two-wheel self balancing electric motor vehicle

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
单轴双轮自平衡代步车的研究与设计;张吉昌;《中国优秀硕士论文全文数据库》;20091115(第11期);第7-38页 *
张吉昌.单轴双轮自平衡代步车的研究与设计.《中国优秀硕士论文全文数据库》.2009,(第11期),第7-38页.

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108501768A (en) * 2018-03-29 2018-09-07 南京航空航天大学 A kind of two-wheeled method for control speed based on Z axis gyroscope and difference in wheel
CN108501768B (en) * 2018-03-29 2021-05-07 南京航空航天大学 Two-wheel speed control method based on Z-axis gyroscope and wheel speed difference

Also Published As

Publication number Publication date
CN103010360A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN103010360B (en) Movement control method of self-balancing two-wheel vehicle
JP6634512B2 (en) Method, apparatus and unmanned aerial vehicle for terrain following flight of an unmanned aerial vehicle
US9902229B2 (en) Methods and systems for optimizing vehicle ride using road preview
CN107992069B (en) Guidance law design method for unmanned aerial vehicle path tracking control
CN108153145A (en) A kind of train speed autocontrol method based on PID and filtering algorithm
AU2020102015A4 (en) A vehicle lateral stability control method based on the heuristic algorithm
US10399229B2 (en) Method of tracking target object
CN107943071A (en) The formation of unmanned vehicle keeps control method and system
KR102648181B1 (en) Active vehicle height controll method
CN111240187A (en) Vehicle track tracking control algorithm based on vehicle error model
CN104085539B (en) The attitude control method of imaging calibration
CN109367532A (en) A kind of automobile lateral stability control method relied on based on speed
NZ752013A (en) Method for controlling stability of rubber-tired train at high speed
CN112606843A (en) Intelligent vehicle path tracking control method based on Lyapunov-MPC technology
CN104960606B (en) A kind of double-wheel self-balancing car of forward looking self-adapting adjustment
CN104252177A (en) Ground target staring anti-saturation tracking control method of microsatellite
CN103019246B (en) A kind of attitude control method of two wheeler
CN105404310A (en) Unmanned plane flying control method and unmanned plane flying control device
Jin et al. Path following control for skid steering vehicles with vehicle speed adaption
CN208384428U (en) Stable turntable system based on reversed bit shift compensation
CN103019093B (en) The preparation method of two-wheel vehicle used sensor fusion angle
CN106166960A (en) The side slip angle control method of four motorized wheels electric automobile
Lamon et al. Inertial and 3d-odometry fusion in rough terrain-towards real 3d navigation
CN104102224A (en) Double loop satellite attitude tracking control device and method
CN205263653U (en) SD type AGV gesture angle controlling means that backs a car based on control of two closed loop PID

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Movement control method of self-balancing two-wheel vehicle

Effective date of registration: 20150610

Granted publication date: 20140820

Pledgee: China Co truction Bank Corp Dongguan branch

Pledgor: Dongguan Robstep Robot Co., Ltd.

Registration number: 2015990000461

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20170424

Granted publication date: 20140820

Pledgee: China Co truction Bank Corp Dongguan branch

Pledgor: Dongguan Robstep Robot Co., Ltd.

Registration number: 2015990000461

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191227

Address after: 333124 Lin Hu Xiang Mu Li Xin Cun 110, Poyang County, Shangrao City, Jiangxi Province

Patentee after: Zhang Mingming

Address before: Science and technology Songshan Lake Science and Technology Industrial Park in Guangdong province Dongguan City nine road 523808 No. 1

Patentee before: Dongguan Robstep Robot Co., Ltd.