You are on page 1of 4

Proceedings of the 2017 IEEE International Conference on Applied System Innovation

IEEE-ICASI 2017 - Meen, Prior & Lam (Eds)

Electric unicycle control


Chih-Hui Chiu a and Ya-Fu Peng b
a Department of Communications, Navigation and Control Engineering, National Taiwan Ocean
University No. 2, Beining Rd., Jhongjheng District, Keelung City, 20224, Taiwan, R.O.C.
E-mail: chchiu@ntou.edu.tw
bDepartment of Electrical Engineering, Chien-Hsin University,
Chung-Li, Tao-Yuan, 320, Taiwan, R.O.C.

Abstract—In this paper, an electric unicycle system is articulation controller (CMAC) is proposed. The major
constructed. Moreover, a model-free adaptive fuzzy control advantages of CMAC are simple computation and easier
method is proposed for an electric unicycle system real time hardware implementation. However, the drawback of CMAC is
control. By the control scheme, the electric unicycle system is that they are static networks.
controlled without accurate system information. The parameters
of fuzzy membership functions are adjusted online using the The fuzzy theory is arisen from the desire of linguistic
dynamic gradient descent method. In the end, the experimental description for complex system and it can be utilized to
results are used to verify the effectiveness of the electric unicycle formulate and translate the human experience to appropriately
system control. automatic control strategies. This kind of human intelligence
is easily represented by the fuzzy logic control structure.
Keywords—adaptive control; model-free fuzzy control; electric Fuzzy logic control is a complete difference approach that
unicycle; real world control.
does not require a precise mathematical model of system. This
control method is based on human experience to understand
I. INTRODUCTION the behavior of system. Thus, control design is simple than
In the field of control, the tracking control of uncertain using traditional control method. There have been many
systems is an important topic. Obviously, control system researches [12]-[15] that use the fuzzy controller to control
performance is almost realized using rotary motors with nonlinear system. However, fuzzy rules and membership
mechanical parts. These mechanical parts will reduce the linear functions are usually designed by users using a trial and error
speed and system response. Moreover, it will also generate procedure. Moreover, the suitable parameters of a fuzzy
chatting and friction. Many authors have proposed various controller are always determined based on the designers’ own
control techniques for control system tracking problems, which experience, as is the case for the Mamdani-type fuzzy control
consist of fuzzy neural cerebellar model articulation network technique. This will cause the fuzzy models can hardly be
[1], smooth time-invariant control method [2], neural network utilized to design controllers for control of the physical
[3], etc. Moreover, the authors [4] use an in-wheel motor and a
systems.
reaction wheel pendulum to control the unicycle robot’s roll
In this paper, an electric unicycle system is constructed
and pitch. In [5], a novel motion control method is investigated
firstly. Such a platform is driven by a single wheel. Single-
for wheeled inverted pendulum control. In [6], the authors
wheel platforms are simple in their mechanical frames than
proposed an approach to compensate the external disturbances
multi-wheel platforms. Moreover, a simple algorithm based on
and the model uncertainties to improve the system performance.
model free techniques is developed systematically to solve the
Traditional control methods such as proportional integral fuzzy tracking control design for an electric unicycle system.
derivative control, variable structure control, and linear Therefore, the proposed tracking control design is suitable for
quadratic control always need a good information and correct practical applications. Moreover, the parameters of the
system model to obtain a required performance. However, it is membership functions can be automatically adjusted
always difficult to obtain the exact system dynamic model, or according to some adaptation laws for the purpose to track a
the mathematical model is complex to achieve in a real world wanted trajectory. Finally, experimental results demonstrate
control. It is not easy for an engineer to design a controller that the proposed adaptive fuzzy control system can obtain a
using traditional method if the dynamics of the consider system good tracking performance.
is unknown.
On the control view, intelligent control methods (e.g., II. THE STRUCTURE OF ELECTRIC UNICYCLE
genetic control, fuzzy logic, neural network, or expert system) Figure 1 shows the simply diagram of electric unicycle.
[7]-[11] provide a way for the nonlinear system controllers
design with unknown or uncertain system dynamics. Neural
networks (NNs) are always considered as powerful building
blocks for a wide class of complex nonlinear system control
strategies when model information is absent. However, in NNs,
the learning is slow, as all system parameters are updated
during each learning cycle. Recently, the cerebellar model

1546 - ISBN 978-1-5090-4897-7


Proceedings of the 2017 IEEE International Conference on Applied System Innovation
IEEE-ICASI 2017 - Meen, Prior & Lam (Eds)

∑ D C ( z )C ( z )…C
i
i
1 1
i
2 2
i
m ( zm )
(2)
F= i =1
n

∑ C1i ( z1 )C2i ( z2 )…Cni ( zm )


i =1

where Di is the output singleton consequent.


Here, the accurate mathematical model of the unicycle is
unknown but the acceleration of the output of the rim motor is
proportional to input. Define the system error as
em yd ( t ) − y ( t ) where yd ( t ) is the desired trajectory and y is
=
Fig. 1. The structure of electric unicycle.
In Fig.1, φ is the slant angle of the unicycle, l is the length the output of the unicycle and change-of-error= eɺm yɺ d ( t ) − yɺ ( t ) ;
of the unicycle body, h is the horizontal force on the wheel, U the output is the control signal F.
is the vertical force on the wheel, f is the force applied on The inputs membership function of fuzzy controller which
unicycle, x is the unicycle moving distance. the linguistic values are NB, NS, ZO, PS and PB shows as
Fig.3. (a), (b), and output membership function which the
Fig. 2 is the electric unicycle experimental system. The
linguistic values are NB, NS, ZO, PS and PB shows as Fig.3.
vehicle is composed of one tire, one motor, batteries, motor
(c). The fuzzy rules base for fuzzy controller design in Table 1.
driver circuits with pulse-width-modulation (PWM), one
The proposed control system is shown in Fig. 4.
control circuit with microprocessor, one gyroscope sensor, one
tilt sensor, and one digital signal processor (DSP) as the control
center. The motor driver is used to deliver the PWM signal to
NB NS ZO PS PB NB NS ZO PS PB
drive the rim motor. The angle and the angle rate are measured 1 1
by sensors. In order to maintain unicycle’s balance, the DSP
controller receives the signals from the sensors and sends
suitable command to control the unicycle.
-6 -3 0 3 6 deg -15 -7 0 7 15 deg/s
(a) (b)
Control
NB NS ZO PS PB
Batteries circuit with 1
microprocess
or

Motor driver
-45 -20 0 20 45 N
circuit
Rim (c)
motor Fig.3. Membership functions of fuzzy controller

Fig. 2. Electric unicycle. Table 1


Rule base for the fuzzy balance controller
III. ADAPTIVE FUZZY CONTROL STRATEGY em
eɺm NB NS ZO PS PB
First, a fuzzy system control strategy is reviewed. Let the
fuzzy input parameters be z j , j = 1,… , m , where m is the NB NB NS NM NM ZO
dimension of the input of the fuzzy controller. Then the output NS NS NM NS ZO PM
parameter of the fuzzy controller is w. The universe of the
ZO NM NS ZO PS PM
input parameter z j is partitioned into fuzzy sets C1 ,…, Cm
PS NS ZO PS PM PS
and the output parameter wi is partitioned into fuzzy singletons
D1 ,… , Dn . Then, the fuzzy rule R i , i = 1,…, n where n is the PB ZO PS PM PS PB
total number of the fuzzy rules has the form

R i : If z1 is C1i ,… , and zm is Cmi , then wi is Di (1)

Moreover, the fuzzy defuzzification mechanism is


center of gravity defuzzification method with the product as
fuzzy AND operation and the sum as the fuzzy OR operation.
Then, the crisp output F is derived in

ISBN 978-1-5090-4897-7 - 1547


Proceedings of the 2017 IEEE International Conference on Applied System Innovation
IEEE-ICASI 2017 - Meen, Prior & Lam (Eds)

( Di − F ) m 2( z j − mij ) (7)
yd + em
i
∆m=
j α m (em + eɺm ) ∏C (z ) i
j j
n m
(σ ij ) 2
Fuzzy F ∑∏ C ij ( z j ) j =1

Controller Unicycle i =1 j =1
y - d/dt eɺm
The means of the Gaussian membership functions can now be
em updated according to the following equation:
Online
Learning
Mechanism mij ( N=
+ 1) mij ( N ) + ∆mij ( N ) (8)
d/dt eɺm

Fig. 4. The fuzzy control system.


where N denotes the number of iteration. By the same way,
the variances of the Gaussian membership functions also can
be adjusted in the following equation to increase the learning
capability
IV. ONLINE LEARNING ALGORITHM
The central part of the learning algorithm of this system ∂E ∂E ∂F (9)
concerns how to recursively obtain a gradient value in which ∆σ ij =
−ασ −ασ
=
∂σ ij ∂F ∂σ ij
each element in the learning algorithm is defined as the
derivative of an energy function with respect to a parameter of
the system. This is done by means of the chain rule, and the where ασ is the learning-rate parameter for all
method is generally referred to as the backpropagation learning σ i
j = 1, 2… m . Substituting (2) and (6) into (9), then
rule. To describe the online learning algorithm of the proposed j

method using the gradient descent method, the energy function


E is defined as ( Di − F ) m 2( z j − mij ) 2 (10)
∆σ=
i
j ασ (em + eɺm ) n m ∏C (z ) i
j j
(σ ij )3
∑∏ C ij ( z j ) j =1

1 1 2 (3) i =1 j =1
E= ( yd − y ) 2 = em
2 2 The variances can be updated according to the following
equation.
Gaussian membership function can be represented as
σ ij ( N=
+ 1) σ ij ( N ) + ∆σ ij ( N ) (11)
−( z − mij ) 2 (4)
=C ij ( z ) exp(
= ) for j 1… m
(σ ij ) 2 where N denotes the number of iteration.

With the energy function, the learning algorithm based on V. EXPERIMENTAL EXAMPLES
backpropagation method for means, m ij j = 1, 2… m , can be In the section, the proposed adaptive fuzzy control method
derived as is used to control an electric unicycle. Fig. 5 shows the angle of
electric unicycle. Fig. 6 shows the angle velocity of electric
∂E ∂E ∂F
unicycle. Fig. 7 is the photograph of sequence experiments.
−α m
∆mij = −α m
= (5) The high effectiveness of the proposed control strategy is
∂mij ∂F ∂mij
conformed.

where α m is the learning-rate parameter for all


10

8
Angle of Electric Unicycle(deg)

i
m j j = 1, 2… m . In (5), this term, ∂E ∂F , cannot not be 4

determined due to the unknown dynamics of the system. To


0

-2

overcome this problem, an adaptation propagation law is -4

-6

adopted as follow [7] -8

-10
2 4 6 8 10 12 14 16 18 20
time(s)

∂E (6)
Fig. 5. The angle of electric unicycle.
= em + eɺm
Angular Velocity of Electric Unicycle(deg/sec)

∂F
30

20

The means can be adjusted based on the following 10

equation. Substituting (2) and (6) into (5), then 0

-10

-20

-30
2 4 6 8 10 12 14 16 18 20
time(s)

Fig. 6. The angle velocity of electric unicycle.

1548 - ISBN 978-1-5090-4897-7


Proceedings of the 2017 IEEE International Conference on Applied System Innovation
IEEE-ICASI 2017 - Meen, Prior & Lam (Eds)

ACKNOWLEDGMENT
This work is supported by the Ministry of Science and
Technology of Taiwan, R.O.C. under the Grant MOST 105-
2221-E-155 -052.

REFERENCES

(a) (b)
[1] F.J. Lin, K.J. Yang, I.F. Sun, and J.K. Chang, “Intelligent position
control of permanent magnet synchronous motor using recurrent fuzzy
neural cerebellar model articulation network,” IET Electr. Power Appl.,
vol. 9, no. 3, pp. 248–264, 2015.
[2] V. Muralidharan and A.D. Mahindrakar, “Position stabilization and
waypoint tracking control of mobile inverted pendulum robot,” IEEE
Trans. Control Syst. Technol., vol. 22, no. 6, pp. 2360–2367, Nov. 2014.
[3] C. Yang, Z. Li, R. Cui, and B. Xu, “Neural network-based motion
control of underactuated wheeled inverted pendulum models,” IEEE
Trans. Neural Netw. Learn. Syst., vol. 25, no. 11, pp. 2004–2016, Nov.
(c) (d)
2014.
[4] S.I. Han and; J.M. Lee, “Balancing and velocity control of a unicycle
robot based on the dynamic model,” IEEE Trans. Ind. Electron., vol. 62,
no.1, pp.450-413, Jan. 2015.
[5] C. Yang, Z. Li, R. Cui, and B. Xu, “Neural network-based motion
control of underactuated wheeled inverted pendulum models,” IEEE
Trans. Neural Netw. Learn. Syst., vol. 25, no. 11, pp. 2004–2016, Nov.
2014.
[6] J. Huang, S. Ri, L. Liu, Y. Wang, J. Kim, and G. Pak “Nonlinear
(e) (f) disturbance observer-based dynamic surface control of mobile wheeled
inverted pendulum,” IEEE Trans. Control Syst. Technol., vol. 23, no. 6,
pp. 2400–2407, Nov. 2015.
[7] C.M. Lin and H.Y Li, “Intelligent control using the wavelet fuzzy
CMAC backstepping control system for two-axis linear piezoelectric
ceramic motor drive systems,” IEEE Trans. Fuzzy Syst., vol. 22, no. 4,
pp. 791–802, Aug. 2014.
[8] R. Liu, Y.X. Wang, and L. Zhang, “An FDES-based shared control
method for asynchronous brain-actuated robot,” IEEE Trans. Cybern.,
vol. 46, no. 6, pp. 329–341, June 2016.
(g) (h) [9] C.H. Lee, F.Y. Chang, and C.M. Lin, “An efficient interval type-2 fuzzy
CMAC for chaos time-series prediction and synchronization,” IEEE
Trans. Cybern., vol. 44, no. 3, pp. 329–341, Mar. 2014.
[10] C.F. Juang, M.G. Lai, and W.T. Zeng, “Evolutionary fuzzy control and
navigation for two wheeled robots cooperatively carrying an object in
unknown environments.” IEEE Trans. Cybern., vol. 45, no. 9, pp. 1731–
1743, Sep. 2015.
[11] S.I. Han and J.M. Lee, “Fuzzy echo state neural networks and funnel
dynamic surface control for prescribed performance of a nonlinear
dynamic system” IEEE Trans. Ind. Electron., vol. 61, no. 2, pp. 1099–
(i) (j) 1112, Feb. 2014.
Fig. 7. The sequence of experiments.
[12] R. Shahnazi and G. Langholz,”PI Adaptive Fuzzy Control With Large
and Fast Disturbance Rejection for a Class of Uncertain Nonlinear
Systems”, IEEE Trans. Fuzzy Systt., vol. 16, no.1, pp. 187-197, Feb.
VI. CONCLUSIONS 2008.
[13] M. Humar, R. Stoll and N. Stoll, “Deterministic Approach to Robust
In this study, a model free adaptive fuzzy tracking control Adaptive Learning of Fuzzy Models” IEEE Trans. Syst. Man Cybern.
strategy has been proposed. The variables of the membership Par B-Cybern., vol. 36, no.4, pp. 767–780, Aug. 2006.
functions can be automatically adjusted according to some [14] Z. G. Hou, A.-M. Zou, L. Cheng and M. Tan, ”Adaptive Control of an
adaptation laws for the purpose to track a wanted trajectory. Electrically Driven Nonholonomic Mobile Robot via Backstepping and
The major contributions of this paper are: 1) the development Fuzzy Approach”, IEEE Trans .Control System Technology, vol.17, PP.
803-815, 2009.
of an online training methodology for the proposed adaptive
[15] J. P. Hwang and E. kim, ”Robust Tracking Control of an Electrically
fuzzy control system; and 2) the successful application of the Driven Robot: Adaptive Fuzzy Logic Approach”, IEEE Trans. Fuzzy
fuzzy control methodology to control an electric unicycle Syst., vol. 14, no.2, pp. 232-247, Apr.2006.
system. Finally, the effectiveness of the proposed control
system is verified by the experimental results.

ISBN 978-1-5090-4897-7 - 1549

You might also like