Sunteți pe pagina 1din 22

Balancing control of Bicyrobo by particle swarm optimization-based structure-specified H loop shaping control

Bui Trung Thanh, Manukid Parnichkun * School of Engineering and Technology, Asian Institute of Technology, P.O. Box 4, Klong Luang, Pathumthani 12120, Thailand * Corresponding author. Tel.: +66 2 524 5229; Fax: +66 2 524 5697 E-mail address: buitrungthanh@gmail.com, manukid@ait.ac.th Abstract In this paper, structure-specified H loop shaping control using particle swarm optimization (PSO) is proposed to control balancing of Bicyrobo, a bicycle robot with gyroscopic stabilizer. The structure-specified H loop shaping controller design normally generates a complex optimization problem. PSO is an efficient optimization method used to solve multi-objectives and non-convex optimizations. A model-based systematic procedure for designing particle swarm optimization-based structure-specified H loop shaping controller is presented in this paper. The controller obtained from this method is simple in structure but still robust. The proposed control algorithm is applied to balance the bicycle robot, which is unstable system involved with sources of uncertainties due to un-modeled dynamics, parameter variations and external disturbances. Simulation and experimental results show the robustness and efficiency of the controller in compared with the proportional plus derivative (PD) controller, and the conventional H loop shaping controller. Keywords: Bicycle robot; Structure-specified controller; H loop shaping control; Particle swarm optimization; Gyroscopic stabilizer. 1. Introduction Electrical bicycle is a good mean of transportation because of its advantages on environmental friendly, light weight, and capability of traveling in narrow roads. However, bicycle is unstable in nature. Without a proper control, it will easily fall down. Hence, development of a self-balancing bicycle is an interesting topic for many researchers. An exciting example of bicycle robots is Murata Boy robot developed in Japan in 2005 [1]. There are many methods used to control balancing of this system such as flywheel balancing by Beznos et al. in 1998 [2], Gallaspy in 1999 [3], and Suprapto in 2006 [4], mass balancing by Lee and Ham in 2002 [5], and steering balancing by Tanaka and Murakami in 2004 [6]. Among these methods, flywheel balancing method which uses a spinning wheel as a gyroscopic stabilizer is a good choice because the response time is short and the system can be stable even at stationary position. The balancing principle using flywheel can also be applied to many other systems which require dynamics balancing during movement, for example, balancing of a biped robot [7]. Various balancing

control algorithms have been proposed, such as nonlinear control by Beznos et al. in 1998 [2] and Lee and Ham in 2002 [5], a compensator design using root locus approach by Gallaspy in 1999 [3], and PD control by Suprapto in 2006 [4]. However, these control algorithms are not robust, the bicycles cannot carry loads with variable weights and cannot work in disturbance environments. Therefore, a robust control algorithm is necessary in real applications of bicycle robots. H loop shaping control is a well-known and effective method. It is a robust control technique suiting for systems with unstructured uncertainties. This approach was firstly developed by McFarlane and Glover in 1992 [8], and has been used successfully in many practical applications [9-12]. However, in the conventional H loop shaping control design, the obtained controllers are normally high order, and difficult to implement in reality. Basically, low order H loop shaping controllers can be synthesized by either order reduction design method or structure-specified design method. The former designs a full-order controller, and then approximates it by a lowerorder one as described by Ballois et al. in [10]. The latter determines parameters of a low order structure-specified controller such that the controller is admissible and the H norm from exogenous inputs to controlled outputs is minimized as presented in [12]. Because the latter is a kind of direct design approach, a better solution can be achieved. However, the structurespecified design method normally generates a complex and non-convex optimization problem, which is difficult to solve analytically. Many searching algorithms are employed to deal with this problem. However, most of the searching algorithms, the gradient-based searching algorithm, for instance, require the parameters space being differentiable. Evolutionary algorithm (EA) is a robust and optimization method that is able to find the solutions of ill-behaved problems. EA has been widely applied in many control systems as reviewed in [13]. A subset of EA, called genetic algorithm (GA), was previously proposed by Kaitwanidvilai and Parnichkun to design a fixed-structure H loop shaping controller for a pneumatic servosystem [12]. Even though GA is a well-defined technique for optimization problems, and widely used in controllers design, it still has limitations due to its stochastic searching characteristic and complex computation that make it slow convergence to global optimum. Particle swarm optimization (PSO) is one of the most recent developed evolutionary techniques initially proposed by Kennedy and Eberhart in 1995 [14]. PSO is based on a model of social interaction among independent particles. It uses social knowledge to find the global maximum or minimum of a generic function. It is fast and easy to implement because of its oriented searching and simple calculation [15,16]. PSO has recently been used to design advanced control algorithms. Mukherjee and Ghoshal used PSO to design a fuzzy PID controller for an automatic voltage regulator (AVR) system [15]. Kao et al. used PSO to design a self-tuning PID controller for a slider-crank mechanism [16]. Chang used PSO to design a PID controller for chaotic synchronization [17].

In this paper, PSO is used to search for parameters of a structure-specified H loop shaping controller. In the method, a nominal model of the system is firstly shaped by a pre-compensator and a post-compensator to achieve a desired open loop shape. A structure-specified controller is then defined. Finally, PSO is used to search for parameters of the controller so that the controller is admissible and the H norm from exogenous inputs to controlled outputs is minimized. The proposed algorithm is practically applied to the balancing control of Bicyrobo, a bicycle robot with gyroscopic stabilizer. By neglecting forces generated from moving forward and steering, a simplified dynamics model of Bicyrobo is derived using Lagrange method. The un-modeled dynamics, parameter variations, and external disturbances make the system complicate and require a robust controller. The simulation and experimental results show robustness and efficiency of the designed controllers in compared with the PD, and the conventional H loop shaping controllers. The remainder of this paper is organized as follows. In Section 2, a prototype of Bicyrobo which is used as a platform to test control algorithm is described. Section 3 explains a systematic procedure for designing the proposed controller. Simulation and experimental results are presented in Section 4 and Section 5. Section 6 finally concludes the paper. 2. Configuration and dynamics model of Bicyrobo 2.1 Configuration of Bicyrobo A bicycle robot, Bicyrobo, has been developed at Mechatronics Laboratory, Asian Institute of Technology (AIT), as a platform to test performance of the proposed control algorithm. The system is modified from a regular size bicycle. Fig. 1 shows a photograph of Bicyrobo. The robot is designed so that it can carry loads, go forward, and turn left or right without falling down.

Fig. 1. Photograph of Bicyrobo Bicyrobo is equipped with the following components: a flywheel with weight of 8.1kg and diameter of 380mm for creating precession torque; a 48V-200W-3600rpm DC servo motor for rotating the flywheel around its spinning axis; a 48V-200W-3600rpm DC servo motor with 5:1 3

chain transmission system for controlling the flywheel control axis; a 12V-15W-10rpm gear box DC motor for steering Bicyrobo to turn left or right; a 12V-35 W-100rpm gear box DC motor for driving Bicyrobo to move forward; a PCM-3350 embedded PC running at 300MHz as a central controller with extended A/D and D/A boards; a VG400CC vertical-gyro sensor for measuring the lean angle of Bicyrobo; an EB6-CWZ encoder for measuring angular position of the flywheel control axis; and signal conditioning circuits. The dimension of Bicyrobo is about 1.65m in length, 0.43m in width, and 1.14m in height. Its total weight is 51.2kg.

Fig. 2. Hardware configuration of balancing control system The hardware configuration of the system is shown in Fig. 2. Program for implementing control algorithms is written in C and run on PC/104 under DOS to ensure real time control. 2.2 Dynamics model of Bicyrobo A complete dynamics model of a bicycle as derived by Sharp in 1971 [18] is complicated since the system has many degrees of freedom, and not suitable for control purpose. Dynamics model of a bicycle is basically based on equilibrium of gravity forces and centrifugal forces. In this paper, a simplified dynamics model of the bicycle for balancing control purpose is derived using Lagrange method by neglecting forces generated from moving forward and steering of the bicycle. This model is based on the one proposed by Gallaspy in [3]. Several assumptions are made to simplify the system as follows: The system is simplified to two rigid body links. The first link is the bicycle frame that has one degree of freedom (DOF) on leaning angle only, rotation around Z axis. The second link is the flywheel which has three DOFs including rotations around X1, Y1, and Z axes (Fig. 3). The flywheel is assumed to have constant speed . Center of gravity of the flywheel is fixed relative to the bicycle frame.

The principle for balancing using flywheel is explained as follows: When the flywheel rotates with a constant speed around Y1 axis, if we control angular position of the flywheel around X1 4

axis, angular momentum on Z1 axis will generate a torque. This torque is called precession torque generated by gyroscopic effect, and it is used to keep Bicyrobo balance.

Fig. 3. Diagram of reference coordinates of Bicyrobo: (a) side view; (b) front view Diagram of the simplified reference coordinates is shown in Fig. 3, where B and F denote bicycle and flywheel centers of gravity, respectively. The lean angle of the bicycle around Z axis is defined as , and the angular position of the control axis of the flywheel around X1 axis is defined & as . The angular velocity of the bicycle around Z axis is defined as , and the angular velocity

& of the flywheel around its control axis (X1 axis) is defined as . Since the flywheel center of
gravity does not move related to the bicycle center of gravity, absolute velocities of B and F are given by
& vb = hb

(1) (2)

& v f = hf

where hb, hf are the height of bicycle center of gravity, and the height of flywheel center of gravity, respectively. To derive the dynamics model of the system, Lagrange equation in [19] is used
d T T V + = Qi & dt qi qi qi

(3)

where T is system total kinetic energy, V is system total potential energy, Qi is external forces, and qi is generalized coordinate. V and T are determined, and represented by the following equations.

V = mb ghb cos + m f gh f cos


T= 1 1 1 & 1 & & mb ( vb ) 2 + m f ( v f ) 2 + I b 2 + I r 2 + I p ( sin ) 2 + I r ( cos ) 2 & 2 2 2 2

(4)

T=

1 1 1 & 1 & & & & & mb ( 2 hb2 ) + m f ( 2 h 2 ) + I b 2 + I r 2 + I p ( sin ) 2 + I r ( cos ) 2 f 2 2 2 2

(5)

where Ip is flywheel polar moment of inertia and Ir is flywheel radial moment of inertia. mg and mf are bicycle and flywheel masses, respectively. Ib is bicycle moment of inertia.

Fig. 4. Moments of inertia assignment for flywheel: (a) side view; (b) front view For qi = , the Lagrange equation becomes
d T T V + = Q & dt

(6)

Using equations (4)-(6), the following equation is derived.


&& && mb hb2 + m f h 2 + I b + I p sin 2 + I r cos 2 + 2sin cos ( I p I r ) f & g (mb hb + m f h f ) sin = I p cos

(7)

For qi = , the Lagrange equation becomes


d T T V + = Q & dt

(8)

Using equations (4), (5), and (8), the following equation is derived.
&& & I r & 2 ( I p I r ) sin cos = Tm I p&cos Bm

(9)

where Bm is DC motor viscosity coefficient. The dynamics of DC motor with a 5:1 ratio chain transmission system follows the equations.
Tm = 5K mi U =L di & + Ri + K e dt

(10) (11)

where Km, Ke are torque and back emf constants of the motor, respectively. R and L are resistance and inductance of the motor, respectively. Tm is torque generated by the motor. By substitution of

equation (10) into equation (9), and linearization (7) and (9) around the equilibrium point, the following equations are obtained.

&& & mb hb2 + m f h 2 + I b + I r g (mb hb + m f h f ) I p = 0 f


&& & I r I p& + Bm 5 K mi = 0

(12) (13)

& & Define x = [ ]' , y = , and u = U . The dynamics model of the system in state-space representation by combining (11), (12), and (13) is shown by the following equation. & x = Ax + Bu y = Cx + Du where 0 g (m h + m h ) b b f f 2 2 mb hb + m f h f + I b + I r A= 0 0
'

(14)

1 0
I p Ir

0
I p mb hb2 + m f h 2 + I b + I r f Bm Ir Ke L

0 0 5K m Ir R L

(15)

B = [ 0 0 0 1/ L ] , C = [1 0 0 0] , and D = [0].
3. Particle swarm optimization-based structure-specified H loop shaping control

(16)

3.1 H loop shaping control


H loop shaping control method is an effective approach for designing a robust controller. It is based on the configuration shown in Fig. 5. Let define the nominal model of a system as P, and the shaped plant with a pre-compensator, W1, and a post-compensator, W2, as Ps, thus,

% % A Ps = W2 PW1 = M 1 N = s Cs

Bs Ds

(17)

% where As , Bs , Cs , and Ds are matrices of the shaped plant in state-space representation, M and % N are the normalized left coprime factors of Ps. By assuming that the shaped plant is perturbed
by unstructured uncertainties M and N , the perturbed plant, P , thus becomes

% % P = ( M + M ) 1 ( N + N )

(18)

It is proved from the small gain theorem that the shaped plant, Ps, is stable with all unknown but bound uncertainties such that
Tzw I 1 % = ( I + Ps K ) M 1 K = 1/

[ M

N ] < if and only if there exists an admissible controller, K,

(19)

Fig. 5. Robust stabilization with respect to coprime factor uncertainties Minimization of (maximization of ) results in maximization of robustness of the system. A procedure called H loop shaping controller design proposed by McFarlane and Glover [8] and further developed by Tang et al. [20] is summarized as followings. Step1: The nominal plant, P, is shaped using a pre-compensator, W1, and a post-compensator, W2, to achieve a desired open loop shape. W1 is used to achieve tracking performance and disturbance attenuation and W2 is used to attenuate sensor noise. W1 and W2 are selected so that Ps contains no hidden modes, and has the following properties: To achieve good tracking performance and good disturbance rejection, large open loop gain at a low frequency range is required. To achieve good robust stability and sensor noise rejection, small open loop gain at a high frequency range is required.

When W1 and W2 are selected, the value of opt is evaluated using equation (20) where max is the maximum eigenvalue.

opt = [1 + max ( ZX )]

1/ 2

(20)

where Z and X are the solutions of the two following Riccati equations ( As Bs S 1 DsT Cs ) Z + Z ( As Bs S 1 DsT Cs )T ZCsT R 1Cs Z + Bs S 1 BsT = 0 (21)

( As Bs S 1 DsT Cs )T X + X ( As Bs S 1 DsT Cs )T XBs S 1 BsT X + CsT R 1Cs = 0

(22)

where R = I + Ds DsT and S = I + DsT Ds

(23)

W1 and W2 are adjusted until a satisfied opt is achieved. If opt is too large ( opt > 4), W1 and W2

are incompatible and should be adjusted.


1 Step 2: Select < opt = opt , and then synthesize a sub-optimal controller, K, that satisfies (19).

A sub-optimal controller which satisfies this condition is


A + Bs F + 2 (QT ) 1 ZCsT (Cs + Ds F ) 2 (QT ) 1 ZCsT K = s BsT X DsT

(24) (25)

where F = S 1 ( DsT Cs + BsT X ) and Q = (1 2 ) I + XZ


Step 3: The final controller is K = W1 K W2

(26)

Fig. 6. Block diagram of H loop shaping control The procedure for designing H loop shaping controller is straightforward, and easy to follow. It is a very useful procedure for systems with unstructured uncertainties. However, the final controller obtained by using this method is high order, which is difficult to implement in practical applications. A procedure for designing a lower order but robust controller using PSO is proposed.
3.2 Particle swarm optimization algorithm

PSO is one of the most recent evolutionary techniques. The method was developed by simulation of simplified social model, where each population is called a swarm. In PSO, multiple solutions are together and collaborate simultaneously. Each candidate, called a particle, flies through problem space to look for the optimal position, similar to food searching of bird swarm. A particle adapts its position based on its own knowledge, and knowledge of neighboring particles.

The algorithm is initialized with a population of random particles. It searches for the optimal solution by updating particles in generations. Fig. 7 shows the flowchart of PSO algorithm.

Fig. 7. Flowchart of PSO Let the search space be N-dimensional, then the particle i is represented by an N-dimensional position vector, xi = ( xi1 , xi 2 ,..., xiN ) . The velocity is represented also by an N-dimensional velocity vector, vi = (vi1 , vi 2 ,..., viN ) . The fitness of particles is evaluated by the objective function of the optimization problem. The best previously visited position of particle i is noted as its individual best position, Pi = ( pi1 , pi 2 ,..., piN ) . The position of the best individual of the whole swarm is noted as the global best position, G = ( g1 , g 2 ,..., g N ) . At each step of searching process, the velocity of particle and its new position are updated according to the following two equations [21].
vi (k + 1) = w.vi (k ) + c1.r1.( Pi (k ) xi (k )) + c2 .r2 .(G (k ) xi (k )) xi (k + 1) = xi (k ) + vi (k )

(27) (28)

where w, called inertia weight, controls the impact of previous velocity of the particle. r1 , r2 are random variables in the range of [0,1]. c1 , c2 are positive constant parameters called acceleration coefficients. The value of each component in v is limited to the range [vmax , vmax ] to control excessive roaming of particles outside the search space.
3.3 Structure-specified H loop shaping controller design

10

In this part, we propose a new method using PSO to design a structure-specified H loop shaping controller for a single-input single-output (SISO) system. However, the algorithm can be extended to multiple-input multiple-output (MIMO) systems. The procedure for control algorithm design is described below.
3.3.1 Weighting functions selection

Since the algorithm is based on H loop shaping method, the plant is firstly shaped by using precompensator and post-compensator. In this paper, lead/lag type compensators are used for weighting functions.
W1 = K1 W2 = K 2 s + 1 s + 1 s + 2 s + 2

(29)

(30)

The shaped plant, thus, becomes


Ps = W2 PW1 3.3.2 Structure-specified controller definition

(31)

The structure-specified controller, K(s), is defined as follows.


K ( s) = N k ( s ) am s m + am 1s m 1 + ... + a0 = Dk ( s ) s n + bn 1s n 1 + ... + b0

(32)

The structure-specified controller can be in any forms such as PID, first order, second order controllers, etc., by selecting suitable values of m and n.
3.3.3 Objective function definition

The structure-specified H loop shaping controller design problem can be defined as the problem of finding the parameters of all admissible controllers represented by equation (32) such that the H norm presented by equation (19), Tzw , is minimized. Since K ( s) = W1 K W2 , therefore K = W11 K ( s )W21 . Then
Tzw I % = ( I + Ps K ) 1 M 1 K I = ( I + Ps K ) 1 [ I K Ps ]

J cos t = Tzw

I ( I + PW11 K ( s )W21 ) 1 [ I = 1 s 1 W1 K ( s )W2

Ps ]

(33)

11

The equation (33) is defined as the objective function of the optimization problem and it can be easily evaluated using robust control toolbox in MATLAB. 3.3.4 Particle swarm optimization-based design Once an objective function and a structure of the controller are defined, the procedure, using PSO to solve this optimization problem, is described as followings: Step 1: Set particle i to xi = ( xi1 , xi 2 ,..., xiN ) = (a0 , a1 ,..., b0 , b1 ,..) , the number of parameters of the controller in equation (32) is the dimension of particle, N = m + n + 1. Define maximum number of iterations as GenMax. Step 2: Initialize a random swarm of H particles as [ x1 to H. Step 3: For each generation, evaluate objective function for each particle using the objective function shown by equation (33), and determine individual best, Pi (k ) , and global best, G (k ) . Step 4: Update the velocity of particle and its new position using equations (27) and (28). Step 5: When the maximum number of iterations is arrived, stop the algorithm. Otherwise go to step 3.
4. Simulation results
x2 ... xH ] , when the swarm size is set

The proposed algorithm is applied to design controllers to balance Bicyrobo, the bicycle robot which has the analytical dynamics model as described in Section 2. The algorithm is programmed, and run using MATLAB. The obtained controllers are simulated using MATLAB Simulink. Parameters of Bicyrobo are identified as shown in Table 1.

12

Table 1 Parameters of Bicyrobo Parameters mf mb hf hb Ib Ip Ir L R Bm Km Ke g Value 8.1 43.1 0.86 0.8 27.584 0.215926 0.112304 157.08 0.0006 0.41 0.000253 0.119 0.1184 9.81 Unit kg kg m m kg.m2 kg.m2 kg.m2 rad/s H kg.m2/s Nm/A V.s m/s2

By substitution of these parameters into equations (14) (16), the nominal transfer function of Bicyrobo is described as P=

( s)
U (s)

4887 s + 683.3s + 1208s 2 + 109700s 6949


4 3

(34)

where U is input voltage to the DC motor that controls flywheel control axis, is output lean angle of Bicyrobo. The weighting function, W1, is selected by some trials for shaping the plant. W2 is selected as identity matrix with an assumption that sensor noise is negligible. W1 and W2 are shown by the following equations. W1 = 40.6 s + 0.09 and W2 = 1 s + 0.085 (35)

By substitution of W1 and W2 into equation (17), and using equations (20) (23), finally

opt =1.5216 is obtained. The stability margin is opt = 0.6572. We select = 0.6363 < opt . Using
equation (24) (26), the full order controller is obtained as K ( s) = 1275s 5 + 8.695e5s 4 + 5.151e5s 3 + 1.359e8s 2 + 2.435e7 s + 1.091e6 s 6 + 715.7 s 5 + 2.355e4s 4 + 2.789e5s 3 + 3.802e6 s 2 + 6.591e5s + 2.872e4 (36)

The full order controller represented by equation (36) is sixth order, which is difficult to implement in reality. 13

4.1 First order controller design A first order controller is selected as a structure-specified controller of the following form K1 ( s ) = a0 s + b0

(37)

The following parameters are selected: Swarm size = 20, the dimension of each particle in the first order controller is two ( a0 , b0 ), c1 = c2 = 2 , GenMax = 100. PSO is used to search for parameters of the controller ( a0 , b0 ). In the PSO algorithm, the weight, w, is automatically changed so that the algorithm converges slowly to the optimal solution at the end of searching progress to avoid premature convergence. The initial weight is set to w = 0.95, and the final weight is set to w = 0.4. Velocity limit [vmax , vmax ] is set to [-100,100]. The algorithm is run on ten trials, and in all cases the same value of cost function J cos t = opt = 1.8365 ( opt = 0.5445) is obtained. The obtained controller is shown by equation (38). Fig. 8(a) shows the convergence of the algorithm of three simulations. Fig. 8(b) shows the step response of the closed loop system using the obtained controller.
K1 ( s ) =

135.2 s + 4.63

(38)

Fig. 8. (a) Cost function value versus generation number, (b) Step response of first order controller
4.2 Second order controller design

A second order controller is selected as


K 2 (s) = a1s + a0 s + b1s + b0
2

(39)

14

The dimension of each particle in the second order controller is four ( a0 , a1 , b0 , b1 ). PSO is used to search for parameters of the controller ( a0 , a1 , b0 , b1 ). The same parameters of PSO as defined in the first order controller are used. The algorithm is run on ten trials, and the controller as shown by equation (40) with J cos t = opt = 1.798 ( opt = 0.55617) is obtained. Fig. 9(a) shows the convergence of the algorithm of three simulations. Fig. 9(b) shows the step response of the closed loop system using the obtained controller.

K 2 (s) =

129.7 s + 499.6 s + 6.835s + 16.183


2

(40)

Fig. 9. (a) Cost function value versus generation number, (b) Step response of second order controller

4.3 Comparison
Step responses of the closed loop system using PD, first order, second order, and full order H loop shaping controllers are compared in this Section. By tuning parameters KP and KD of PD controller, a satisfied step response with the about same response time as the proposed structurespecified controllers is obtained. This PD controller is expressed by

K PD ( s ) =

30s + 2.5 s

(41)

The comparison is shown in Fig. 10. These simulations show that step responses of the system using conventional H loop shaping controller and the proposed structure-specified H loop shaping controllers are similar. They are both better than the system using PD controller.

15

Fig. 10. (a) Step responses using PD, first order, and full order H loop shaping controllers, (b) Step responses using PD, second order, and full order H loop shaping controllers

4.4 Robustness
Robustness of the proposed first order controller and PD controller is compared in this Section. The nominal model expressed in equation (34) is obtained at a nominal mass of Bicyrobo including flywheel at 51.2kg, and a nominal flywheel speed at 157.08rad/s. To test the robustness of the proposed first order controller, varied load is applied on the bicycle, and the flywheel speed is varied. The following cases are tested.

Case 1: The load is added with an additional 10kg, and the flywheel speed is reduced to 104.72rad/s. The system model thus becomes P1 =
2696 s + 683.3s + 1102s 2 + 37550s 6857
4 3

(42)

Case 2: The load is added with an additional 20kg, and the flywheel speed is reduced to 104.72rad/s. The system model thus becomes P 2 =
2299 s + 683.3s + 1093s 2 + 31400 s 6793
4 3

(43)

Step responses of the closed loop system using the PD, and the proposed first order controllers from case one and case two are shown in Fig. 11(a) and Fig. 11(b), respectively. These simulations show that the proposed controller is robust to the parameter variations in both cases while the system becomes unstable by using PD controller.

16

Fig. 11. Step responses from PD, and proposed first order controllers with parameters variation: (a) Case 1; (b) Case 2
5. Experimental Results

The experiments are conducted on Bicyrobo with the hardware setup as explained in Section 2. The diagram for implementing the controllers on Bicyrobo is shown in Fig. 12. The program is coded in C and implemented on PC/104, a 300MHz CPU embedded computer, with sampling time of 12.5ms. The lean angle of Bicyrobo is read from vertical gyro-sensor VG400CC via an A/D extended board. The calculated output voltage from a D/A extended board is sent to an external PWM and Driver circuit to control DC motor of the flywheel control axis. The angular position of the flywheel control axis () is also read from an E6B-CWZ encoder. In case that the measured lean angle is zero but Bicyrobo is not at the balancing position, the reference must be changed to eliminate continuous rotation in one direction of the flywheel.

Fig. 12. Diagram for implementing controllers Various experiments are conducted to evaluate balancing performance and robustness of the proposed controllers. The first set of the experiments is tested on the system using the PD and the proposed first order controllers at a zero forward speed of Bicyrobo without applied masses. The controllers in equations (38) and (41) are converted to discrete forms (C(z)) and then coded in C

17

on the embedded PC for testing. The lean angles of the system are saved in a file while program is running. Fig. 13 depicts balancing performance from the lean angle of Bicyrobo. The results show that the proposed controller has better balancing performance than the conventional PD controller.

Fig. 13. Balancing performance

Fig. 14. Balancing performance with load variations In order to show that the proposed controllers is robust to parameter variations, iron masses of 4kg and 8kg are applied on the system at a zero forward speed of Bicyrobo. The experiments on Bicyrobo using the proposed first order controller are tested. The experimental results are shown in Fig. 14. In both cases, the system is stable against these parameter variations. Photographs of Bicyrobo taken during the experiments with 8kg applied mass are shown in Fig. 15.

18

Fig. 15. Photographs during experiments with 8kg of applied mass: (a) left view; (b) right view; (c) front view; (d) back view
6. Conclusion

This paper proposed a PSO-based structure-specified H loop shaping controller design method to control balancing of Bicyrobo. By using the proposed method, the first order and second order controllers were designed with the stability margins, opt, of 0.5445 and 0.55617, respectively. These stability margins are quite closed to stability margin of the sixth order controller (opt = 0.6363) designed using the conventional H loop shaping method. The simulation results shown that performance of the closed loop system using the proposed controllers and full order controller were similar, they are both better than performance of the closed loop system using PD controller. The simulation results also shown that the closed loop system was robustly stable to parameter variations using the proposed controllers, while it was unstable using the PD controller. The experimental results on Bicyrobo proved that the proposed first order controller achieved better balancing performance with lean angle less than 0.5 degree in compared to the PD controller with maximum lean angle about 1 degree. Experimental results on applying masses of 4kg and 8kg on the system using the proposed first order controller shown that the system had good balancing performance and robustness with lean angle less than 1 degree against the load variation. In conclusion, the proposed controllers achieved two important requirements: simple in structure and good robust performance against uncertainties. The design method is straightforward, 19

systematic, and simple by using PSO algorithm. Therefore, it is easy to apply to other systems. The algorithm was demonstrated on a SISO unstable system. But it can be extended to MIMO systems.

20

Reference

[1] Murata Boy Robot. Available from http://www.murataboy.com/en/index.html [2] Beznos AV, Formalsky AM, Gurfinkel EV, Jicharev DN, Lensky AV, Savitsky K V, et al. Control of autonomous motion of two-wheel bicycle with gyroscopic stabilization. In: Proceedings of the IEEE international conference on robotics and automation, 1998, p. 2670-5. [3] Gallaspy JM. Gyroscopic stabilization of an unmanned bicycle, M.S. Thesis, Auburn University, 1999. [4] Suprapto S. Development of a gyroscopic unmanned bicycle. M.Eng. Thesis, Asian Institute of Technology, Thailand, 2006. [5] Lee S, Ham W. Self-stabilizing strategy in tracking control of unmanned electric bicycle with mass balance. IEEE international conference on intelligent robots and systems, 2002, p. 2200-5. [6] Tanaka Y, Murakami T. Self sustaining bicycle robot with steering controller. In: Proceedings of international workshop on advanced motion control, 2004, p. 193-7. [7] Wong Terence CF, Hung YS. Stabilization of biped dynamic walking using gyroscopic couple. IEEE international joint symposia on intelligent and systems, 1996, p. 102-8. [8] McFarlane D, Glover K. A loop shaping design procedure using H synthesis. IEEE Trans Automat Contr 1992; 37(6): 759-69. [9] Chu YC, Glover K, Dowling AP. Control of combustion oscillations via H loop shaping, -analysis and integral quadratic constraints. Automatica 2003; 39(2): 219-31. [10] Ballois SL, Duc G. H control of a satellite axis: Loop shaping, controller reduction, and -analysis. Contr Eng Practice 1996; 4 (7): 1001-7. [11] Jayender J, Patel RV, Nikumb S, Ostojic M. H loop shaping controller for shaped memory alloy actuators. In: Proceedings of the IEEE conference on decision and control, 2005, p. 653-8. [12] Kaitwanidvilai S, Parnichkun M. Genetic algorithm-based fixed-structure robust H loop shaping control of a pneumatic servo system. J Robot Mechatron 2004; 16 (4): 362-73. [13] Fleming PJ, Purshouse RC. Evolutionary algorithms in control systems engineering: a survey. Contr Eng Practice 2002; 10(9): 1223-41. [14] Kennedy J, Eberhart R. Particle swarm optimization. In: Proceedings of the IEEE international conference on neural networks, 1995, p. 1942-8.

21

[15] Mukherjee V, Ghoshal SP. Intelligent particle swarm optimized fuzzy PID controller for AVR system. Electr Power Syst Research 2007; 77(12): 1689-98. [16] Kao CC, Chuang CW, Fung RF. The self-turning PID control in a slider-crank mechanism system by applying particle swarm optimization approach. Mechatronics 2006; 16(8): 513-22. [17] Chang WD. PID control for chaotic synchronization using particle swarm optimization. Chaos Solitons & Fractals, In Press, Corrected Proof, Available online 8 April 2007. [18] Sharp RS. The stability and control of motorcycles. J Mechnical Eng Sci 1971; 13(5): 316-29. [19] Wolfram S. Analytical robotics and mechatronics. New York: McGraw-Hill, 1995. [20] Tang KS, Man KF, Gu DW. Structured genetic algorithm for robust H control systems design. IEEE Trans Industrial Electronics 1996; 43(5): 575-82. [21] Jang Y, et al. An improved particle swarm optimization algorithm. Appl Math Comput, In Press, Corrected Proof, Available online 27 March 2007.

22

S-ar putea să vă placă și