You are on page 1of 5

Modular Fuzzy Control with Input Shaping

Technique for Transformation of Two-Wheeled


Wheelchair to Four-Wheeled Mode
Salmiah Ahmad M. O. Tokhi N. H. Siddique
Dept. of Mechatronics, Automatic Control & Systems School of Computing &
International Islamic University Engineering, University of Intelligent System,
Malaysia (IIUM) Sheffield, University of Ulster,
Kuala Lumpur, Malaysia Sheffield, U.K Northern Ireland, U.K
salmiah@iium.edu.my o.tokhi@sheffield.ac.uk Nh.siddique@ulster.ac.uk

Abstract—This paper presents a mechanism for wheelchair wheelchair. The research work presented by Takahashi et
transformation from two-wheeled upright position to four- al. [2], aims to help the elderly in self-climbing a step up
wheeled position using a modular fuzzy logic control (MFC) to about 10cm while the wheelchair is in the inverted
approach. A wheelchair model that can be operated in four- pendulum condition. They have carried out extensive
wheeled and two-wheeled modes has been developed within work with various schemes. These studies have used PI
the Visual Nastran environment and integrated with control, [3-5].
Simulink for control purposes. A multi-input multi-output In this paper, due to the highly nonlinear and multi-
modular fuzzy logic control configuration is designed and input multi-output (MIMO) nature of the system, fuzzy
implemented on the wheelchair model. To improve the logic control (FLC) approach is adopted. Modular fuzzy
system performance, an input shaping technique is
control, has been used by the authors for lifting and
augmented inside the feedback loop. It is shown that the
stabilizing control, [1] linear motion control, [6] and
shaped signals have improved the system performance with
steering motion control, [7] of the wheelchair system.
promising results.
This paper, presents an automatic transformation
Keywords — Wheelchair; Double inverted pendulum; mechanism for the wheelchair from two-wheeled mode
Nonlinear system; Two-wheeled wheelchair; Fuzzy logic back to normal four-wheeled mode using a modular fuzzy
control ; Input shaping; Modular fuzzy control control (MFC) approach. The transformation mechanism
provides flexibility for the wheelchair to be used in both
I. INTRODUCTION two-wheeled and four-wheeled configurations. To reduce
vibration and the amount of torque produced by the MFC,
A two-wheeled wheelchair has a unique characteristic the obtained signals from the MFC are then shaped using
that may help disabled and elderly people who are using 2-impulse input shaping with delays to improve the
the wheelchair as the main means of transport to reach system performance.
certain heights such that they may be able to pick and
place things on the shelves, cupboard, etc. With good II. SYSTEM MODEL, DESCRIPTION AND CONTROL
control strategy the front wheels (casters) can be lifted up
and stabilized as an inverted pendulum, [1], thus A. Wheelchair and Humanoid Model
increasing the level of height achievable while in the Wheelchair on two wheels is a very complex, highly
upright position. Similarly, when this upright position is nonlinear system that has several complicated features to
no longer needed it may be transformed back into its be modelled and controlled. The two-wheeled wheelchair
normal four-wheeled position. is modelled with double links to mimic a double inverted
Research has shown noticeable evolution in wheelchair pendulum scenario, comprising Link1, Link2 and payload
features and functions. Many extra new features have (approximated human weight, 75kg). The mathematical
been incorporated to provide greater flexibility for model of the wheelchair is based on the three independent
wheelchair users in their daily life. Wheelchair users are actuators, namely left and right wheels and Link2 as
able and encouraged to do most of the daily routine on shown in Fig. 1. The corresponding control torques are τL,
their own since they are not totally vain while using the τR and τ2. The angular positions of Link1 and Link2,
wheelchair. A common activity for people in everyday denoted as δ1 and δ2 respectively, will determine the
life is to pick and place things on shelves and also have system performance. There are three subsystems
conversation with other people. It is psychologically considered to derive mathematical equations for the whole
good for wheelchair users to have eye-to-eye level system. These involve the wheels, Link1 and Link2.
conversation with other people. Thus two-wheeled
wheelchair with added advantage may help them to have
eye-to-eye conversation with normal people effectively.
There is not much research on two-wheeled
δ2
Approximated
δ1 human weight

Link2

τ2
Link2
R and τ L Link1
each wheel
τ2

τ R and τ L Link1
Two-wheeled position For-wheeled position
on each wheel
Fig. 3. Transformation mechanism

C. Modular Fuzzy Control


Fig. 1. Schematic diagram of wheelchair with three under actuated The MFC is also known as hierarchical fuzzy control
joints (HFC). These two different terms are used
A wheelchair system was modelled using MSC Visual interchangeably. The goal of the control is to produce the
Nastran 4D (VN) environment, as shown in Fig. 2. It required torques, namely, τR, τL and τ2, for acting at three
comprises a standard wheelchair system that is closely different locations on the wheelchair for the two-wheeled
approximated from the actual wheelchair system, and to four-wheeled transformation mechanism. τR and τL
incorporated with a humanoid model, which is adopted represent the input torque to the right and left wheels
from [8]. It was modelled in a basic form comprising two respectively, and τ2 represents the torque between Link1
wheels, two casters, frames and axes connected to the and Link2. Angular positions of Link1 and Link2, δ1 and
seat. The VN software environment can provide a δ2 respectively, are measured using sensors attached to
visualization showing the lifting, stabilizing and other the wheelchair in VN. The system is thus characterized as
functional features. It was used to model the standard a highly nonlinear MIMO system. Fuzzy logic control is
wheelchair and this was integrated with Matlab-Simulink therefore very appropriate to use in this case and has been
for control purposes. The wheelchair model developed is used with the two-wheeled wheelchair. To achieve the
used for designing and testing control strategies before normal four-wheeled position, Link1 needs to be
development of the actual system either at laboratory transformed back to 90° from the upright 0° position,
level or manufacturing level, thus saving time, energy while maintaining Link2 at 0° position. The goal may be
and financial cost. treated as a single control system objective, i.e., having
Link1 and Link2 at the 90° and 0° respectively by using a
single controller. This will lead to a huge fuzzy rule-base.
Conventional fuzzy control has significant drawback in
terms of computational complexity, due to increase in the
dimension of the system variables, and the number of
rules increases exponentially as the number of system
variables increases. Therefore to achieve the target within
a short time with a consideration of the robustness and
capability of the complete system, an MFC method is
used, [9].
Previously a similar structure of MFC has been used in
lifting and stabilizing control of Link1 and Link2 and has
given promising system performance, [10]. Thus in the
current transformation case, where the inverse
mechanism of lifting and stabilizing is considered, the
Fig. 2. Complete wheelchair model
reference point for Link1 is different, 90°. Two-input and
two-output FLC is realized for control of each link. The
B. Transformation Mechanism angular position of Link1 is such that it finally reaches
The transformation mechanism is depicted in Fig. 3. 90° after the wheelchair is fully transformed from upright
Although it is the inverse of lifting mechanism, the input position. The inputs to the motor actuator in the
torques used in lifting are not appropriate to be used for wheelchair model comprise the right and left wheel
reverse transformation due to the unusual location of torques (τR, τL) for Link1 while the torque input, τ2 from
centre of mass of the system during the transformation a separate controller is used for stabilizing control for
from two-wheeled to four-wheeled mechanism. However, Link2. The output from the wheelchair model is the
similar actuators and meters are used for control and angular position of Link1, δ1 and Link2, δ2 (degree). The
measurement purposes. The difference is on the target model in VN environment was integrated with Matlab-
position, where the reference of Link1 is 90°. Simulink, as shown in Fig. 4.
Simulink rules. Similarly for the output torque, five levels of
Angular Position of Link 1 Visual Nastran membership function are used. The five membership
levels used are Negative Big (NB), Negative Small (NS),
-
Δeδ1 Fuzzy δ1
Zero (Z), Positive Small (PS) and Positive Big (PB).
τR
+ eδ1 Controller 1
90° (FLC1) τL
eδ2
0° Fuzzy
δ2
III. INPUT SHAPER IMPLEMENTATION
Δeδ2 Controller 2 τ2
+
- (FLC2) Input (command) shaping is a well known technique
and used extensively in vibration control applications
Angular Position of Link 2 [11]. flexible manipulators [12-14] and for crane systems
[15-17]. It can be implemented by developing a
convolution process with a delayed sequence of impulses
Fig. 4. Matlab/Simulink integrated with VN with certain gains to produce a shaped command to drive
the system. The input shaper characteristics mimic the
The FLC rules are given in Table I and Table II. The function of filter for unwanted high frequency signals.
shaded row in Table I represents the output torque for left There are two common types of input shaping techniques;
wheel, τL. feed-forward (open-loop) [12, 13] and feedback (closed-
loop) [18, 19] input command shaping. In this work, the
TABLE I. FUZZY RULES FOR WHEEL TORQUES, ΤR, ΤL
input shaper is realized in the feedback closed-loop
∆E cobfiguration as shown in Fig. 5. The proposed input
NB NS Z PS PB shaping method is shown in Fig. 6, where a 2-impulse
E input shaper is used inside the feedback control loop. The
implementation of the task is to determine the amplitude
PB PB PB PS Z of the impulse (gain) and the time location of the impulse
NB (delay). The unshaped signal is sent through multiple
PB PB PB PS Z delay units, ∆i, (i=1,2,..n) and multiplied with gain
PB PB PS Z NS factors, Ki, (i=1,2,..n). The summation of all delayed
NS commands will produce a new shaped signal to use. In the
PB PB PS Z NS figure, the first impulse is placed at Δ1 = 0 to avoid
response delay. For Input Shaper_1, the values of K1 and
PB PS Z NS NB K2 were determined as 0.3 and 0.1 respectively, while K1
Z
PB PS Z NS NB and K2 in Input Shaper_2 were obtained as 0.8 and 0.01
respectively. In this work, the output torques from lifting
PS Z NS NB NB and stabilizing controller of Link1 and Link2 are passed
PS through the input shaper to obtain new shaped signals
PS Z NS NB NB before they are used.
Z NS NB NB NB
PB
Z NS NB NB NB IV. SIMULATION RESULTS
The two-wheeled back to four-wheeled transformation
TABLE II. FUZZY RULES FOR TORQUE BETWEEN LINK1 AND mechanism was incorporated into the wheelchair model
LINK2, Τ2 and tested with the MFC developed in Matlab-Simulink.
∆E The input shapers were implemented at two different
locations in order to improve the output torques for the
NB NS Z PS PB three actuators before they are fed into the system. Results
E show that the transformation using the shaped signals was
NB PB PB PB PS Z successfully accomplished with improved system
NS PB PB PS Z NS performance.
Z PB PS Z NS NB
PS PS Z NS NB NB
τR
PB Z NS NB NB NB 90°
+ FLC1
Controller
Input
Shaper 1 τL

For the first fuzzy controller (FLC1), the controller


Two-Wheeled
inputs are the angular position error of Link1 (eδ1) and the Angular position of Link1, δ1 WC system
change in angular position error in Link1 (∆eδ1). For the
second fuzzy controller (FLC2), the two controller inputs +
FLC2 Input τ2
are the angular position error in Link2 (eδ2) and the 0° Controller Shaper 2

change in the angular position error in Link2 (∆eδ2). The -

fuzzy inputs are normalized so that they can be


generalized and then processed using the fuzzy rules. Angular position of Link2, δ2
Gaussian (bell shaped) type membership functions are
used, as they give smooth and steady response of the
system. These comprise, for eδ1 and ∆eδ1 in FLC1, for Fig. 5. Input shaping implementation inside the feedback loop
instance, five levels of membership resulting in 5×5 = 25
control," presented at IEEE International Conference on Industrial
Technology (ICIT'05), 2005.
Δ1 K1 Output
Input Torque [6] S. Ahmad and M. O. Tokhi, "State space model and control of a
(shaped)
Torque
Σ System wheelchair for mobility on two wheels," presented at Multiphysics
(unshaped) Output
Manchester, 2007.
Δ2 K
[7] S. Ahmad, M. O. Tokhi, and K. M. K. Goher, "Steering control of
wheelchair on two wheels," presented at 11th International
Conference on Climbing and Walking Robots and the Support
Technologies for Mobile Machines (CLAWAR'08), Coimbra,
Fig. 6. 2-impulse input shaping with delays 2008.
[8] D. A. Winter, Biomechanics and motor control of human movement.
Fig. 7 shows the performance that resulted from the New York: Wiley-Interscience, 1990.
MFC with and without input shaping. Lifting and [9] R. Langari, "Integration of fuzzy control within hierarchical
stabilizing are done at the beginning of the simulation structured control systems," in Computational Intelligence:
time and the transformation was executed at t = 4s. For the Imitating Life, J.M. Zurada, R.J. Marks and C.J. Robinson ed.
transformation, the system took less than 2s to settle. The New York: IEEE Press, 1994, pp. 293-303.
dotted lines represent the shaped signals. As the input [10] S. Ahmad, N. H. Siddique, and M. O. Tokhi, "A modular fuzzy
shaper is introduced inside the forward path in the loop, control approach for two-wheeled wheelchair," Journal of
the main concern is to reduce the vibration caused by the Intelligent and Robotic Systems, In Peer Review, 2009.
variation in the torques produced. Therefore the input [11] N. C. Singer and W. P. Seering, "Preshaping command inputs to
reduce system vibration," Trans ASME: Journal of Dynamic
shaper plays its role in reducing the vibration and the Systems, Measurement and Control, vol. 112, pp. 76-82, 1990.
amount of torque produced by the MFC. It can be seen [12] M. S. Alam and M. O. Tokhi, "Designing feedforward command
that although both Link1 and Link2 do not differ, a shapers with multi-objective genetic optimisation for vibration
significant reduction of the torques was obtained using control of a single-link flexible manipulator," Engineering
input shaper. The shaped wheel torques, τR and τL settled Applications of Artificial Intelligence, vol. 21, pp. 229-246, 2008.
at lower value -5Nm/5Nm (shaped) respectively as [13] F. M. Aldebrez, M. S. Alam, and M. O. Tokhi, "Input-Shaping
compared with the unshaped signals -13Nm/13Nm with GA-Tuned PID for Target Tracking and Vibration
(unshaped) respectively without disturbing the system Reduction," presented at IEEE International Symposium on
Mediterrean Conference on Control and Automation Limassol
output, δ1 and δ2. The angular position of Link1, δ1 and 2005.
the angular position of Link2, δ2 settled at the target
[14] Z. Mohamed and M. O. Tokhi, "Command shaping techniques for
values, 90° and 0° after the transformation. It is noted in vibration control of a flexible robot manipulator," Mechatronics,
Fig. 8 that the impulse force between casters and the vol. 14, pp. 69-90, 2004.
ground were slightly reduced with the input shaper. The [15] M. Kenison and W. Singhose, "Input shaper design for double-
angular velocities of Link1 and Link2 were slightly pendulum planar gantry crane," presented at IEEE International
reduced with input shaper. This shows that the Conference on Control Applications 1999.
transformation using the MFC with input shaping [16] D. Liu, J. Yi, D. Zhao, and W. Wang, "Swing-free transporting of
technique was significantly improved. two-dimensional overhead crane using sliding mode fuzzy
control," presented at American Control Conference, 2004.
V. CONCLUSION [17] J. Vaughan, A. Yano, and W. Singhose, "Performance comparison
of robust input shapers," presented at IEEE International
A mechanism of two-wheeled to four-wheeled Conference on Control and Automation, 2007.
wheelchair transformation has been presented. Modular [18] J. R. Huey and W. Singhose, "Experimental verification of stability
fuzzy control has been used for the transformation analysis of closed-loop signal shaping controllers," presented at
IEEE/ASME International Conference on Advanced Intelligent
mechanism where Link1 and Link2 are controlled Mechatronics, California, 2005.
independently. An input shaper has been introduced in [19] O. A. A. Shaebi, "Modelling and control of single and multiple
the controller of each link. A significant reduction in the overhead crane system," Automatic Control and System
amount of torque oscillation, thus improved system Engineering, Ph.D. Thesis, University of Sheffield, 2008.
performance, has been achieved with input shaper.
REFERENCES
[1] S. Ahmad and M. O. Tokhi, "Fuzzy Logic Control of a Wheelchair
on Two Wheels," presented at 27th IASTED International
Conference on Modelling, Identification and Control (MIC 08),
Innsbruck, 2008.
[2] Y. Takahashi, S. Ogawa, and S. Machida, "Front wheel raising and
inverse pendulum control of power assist wheel chair robot,"
presented at The 25th Annual Conference of the IEEE Industrial
Electronics Society, 1999.
[3] Y. Takahashi, N. Ishikawa, and T. Hagiwara, "Inverse pendulum
controlled two wheel drive system," presented at 40th SICE
Annual Conference, 2001.
[4] Y. Takahashi, N. Ishikawa, and T. Hagiwara, "Soft raising and
lowering of front wheels for inverse pendulum control wheel chair
robot," presented at IEEE/RSJ International Conference on
Intelligent Robots and Systems (IROS'03), 2003.

[5] Y. Takahashi and M. Kohda, "Human riding experiments on soft


front wheel raising of robotic wheelchair with inverse pendulum
100 50

of Link2 (degree)
of Link1 (degree)

Angular position
Angular position 0 0

-100 -50
0 5 10 0 5 10
Time (s) Time (s)

20 20
torque (Nm)

torque (Nm)
Right wheel

Left wheel
0 0

-20 -20
0 5 10 0 5 10
Time (s) Time (s)
Torque between Link1

100
and Link2 (Nm)

Legend
0 without I.S with I.S

-100
0 5 10
Time (s)

Fig. 7. Comparison of the system performance with and without input shaper adaptation

500
30
400
of Link2 (degree/s)
Angular velocity of
Link1 (degree/s)

Angular velocity

20
300
10
200

100 0

0 -10
0 5 10 3 4 5 6
Time (s) Time (s)

80 40
caster and ground (kg m/s)

caster and ground (kg m/s)


Impulse between right

30
Impulse between left

60

40 20

10
20
0
0
-10
0 5 10 0 5 Time (s) 10
Time (s) w ithout I.S w ith I.S
Legend

Fig. 8. Angular Velocity of Link1 and Link2 and impulse between casters and ground comparison with and without input shaper adaptation

You might also like