Technical Paper Volume 5 Issue 1
Deportment of Electrical and Electronics Engineering, University of Tripoli, Libya
Correspondence: Ahmed J Abougarair, Deportment of Electrical and Electronics Engineering, University of Tripoli, Libya
Received: April 06, 2018 | Published: February 25, 2019
Citation: Abougarair AJ. Controllers comparison to balancing and trajectory tracking a two wheeled mobile robot. Int Rob Auto J. 2019;5(1):28-31. DOI: 10.15406/iratj.2019.05.00168
This paper presents an optimal controller design using three different algorithms for trajectory tracking of Two Wheeled Balancing Mobile Robot (TWBMR). All the proposed algorithms have been investigated through simulations under the influence of different inputs tracking and exogenous disturbance. This attempts to validate the significance of these algorithms in balance regulation and tracking trajectory. These algorithms are represented by PID-PID based parallel dual feed-back, serial dual feed-back and hybrid optimal control using Feed-forward PID and Feed-back LQR. Simulation results are provided to demonstrate that, the hybrid controller can achieve a better robust performance in comparing to the other two design algorithms. The graphical user interface (GUI) software has been used to show the simulation results in more convenient way.
Keywords: trajectory tracking, self balancing, pid controller, lqr controller, two wheeled balancing mobil robot
property, therefore, the robot has become an essential and classical experiment facility to prove various kinds of control theory and control method.1,2 In addition it has some other advantages for autonomous mobile, small size, simple structure and flexibility of action, so it can suitable for some jobs in narrow space or dangerous work. Many similar systems, such as JOE, nBot have been studied by researchers.3,4 Modeling and control of TWBMR have been widely studied by several researches. Proposed pole placement controller for TWBMR, but did not deal with trajectory tracking. Ha and Yuta5 presented the trajectory tracking system for navigation of the inverse pendulum type self-contained mobile robot, but this method was limited to simple straight line motion and simple turning. In spite of the previous literature, in this paper both balancing and tracking are controlled simultaneously by using of the mentioned algorithms. Where in the first algorithm, the parallel PID-PID parameters are tuned by LQR, the serial PID-PID parameters are adjusted by sequential quadratic programming (SQP) and in hybrid controller the PID-LQR is applied. The work of this paper can be arranged as follows, section 2 the dynamic model of the TWBMR is provided, section 3 presents the open loop analysis of the nonlinear and linearized model of the considered system, the controllers implementation is considered in section 4, the GUI simulation for the system with the hybrid controller algorithm is used to show the simulation results in convenience way.
In order to develop the control system, the mathematical model is established to predict the behavior. The dynamic performance of a balancing robot depends on the efficiency of the control algorithms and the dynamic model of the system.6 The wheel and the pendulum are analyzed separately and the related nonlinear equations of the system are obtained by the Newton model.7 In order to simplify the model, some assumptions should be considered without affecting the premise of the robot model such as the geometrical parameters of the wheels are identical and the wheels are considered as rigid bodies.8 The set of equations describing the plant has been developed. Based on the definition of parameters listed below, the simulation of the nonlinear model given by equation (1) and equation (2) is carried out using the simulink model shown by Figure 1.
(1)
(2)
Where
Mp: Body mass
Ip: Body inertia
Ke: Back EMF
Mw: Wheel mass
Iw: Wheel inertia
Km: Motor torque
R : Resistance
L: Dist. from COG
R: Wheel radius
Va: Applied voltage
g: Gravity
F: disturbance force
Z: Location of disturbance
The linearized and nonlinear models of the considered robot system are simulated to show the open loop response behaviour in each model. The obtained results are shown in Figure 2, which indicates that the system is unstable and a rapid increase in output due to small input signal variation is observed. To address this stability problem the following three algorithms with different controllers are presented.
The most important advantage of feedback control system is that it makes the control insensitive to external disturbances and variation of parameters of system. The main objective is to control the angular displacement (θ) of the robot body for returning the body back to the upright position after a change caused due to disturbance force and keeping the vehicle wheels within a specified linear position (x) from as specific reference position.
Parallel two loop PID algorithm
Based LQR
This section presents a Parallel Dual Feed-Back (PDFB) for TWBMR which combines the negative position feedback control and negative angle feedback control. The double loops work cooperatively to endow the system with strong anti-interference ability. The simulink model for the nonlinear TWBMR system with PDFB controller is implemented as shown in Figure 3, where the system with and without input disturbance is considered. The gain parameters of PID controllers are determined via the LQR approach. In order to test the controller’s trajectory tracking capability, three test cases such as step (Ref1), sinusoidal (Ref2) and multi level signal (Ref3) are applied independently. And the output states are shown for each input type as shown in Figure 4, the robot stood initially semi upright, and leaned to the right after the robot began to move. The robot recovered the balance because of the negative angle feedback of the angle controller. It is seen that, the controller successful to force the robot position x and balance angle to follow the of Ref1and Ref3 inputs with overshoot in transient and zero steady state error at steady state time. And in case of Ref2 where the sinusoidal input signal is applied, the robot position tracking and robot balancing can be accomplished.
Series two loop pid algorithm
Based SQP
This control system comprised of a Serial Dual Feed-Back (SDFB) based SQP. The outer loop has been implemented to take the robot position as feedback and the inner loop is the balancing control loop .This controller inserted in the closed loop of the system as shown by the simulink diagram in Figure 5 where the nonlinear control design (NCD) block to the outputs (x, θ) is connected. The NCD block automatically converts time-domain constraints into a constrained optimization problem and then solves the problem using SQP to find the gain parameters of PID controllers.
Parameters of PID controllers
In the same fashion, the three types of inputs are applied to test the system performance. Figure 6 shows the response of the robot position and balance angle under the effect of these inputs, where it is observed that, the SDFB controller can achieve the position tracking with minimum overshoot and fails to achieve the balancing in case of three types of the inputs. Consequently, the seeking of the controller that can demonstrate an accurate tracking and balancing of the considered robot is the main goal of this work. The following section introduces the hybrid control strategy to improve the system performance.
Hybrid control design
An optimal control technique to make the optimal control decisions has been implemented here to control this system. Where, hybrid Controller (HC) is the combination method of PID and LQR () is considered to control of TWBMR. The closed loop system with such type of control strategy is implemented by the simulink as shown in Figure 7. In this design strategy, the LQR controller maintain the system around stable position which is upright position, and then simultaneously the PID controller can be added to controls a certain state to let the robot have different behaviour. The simulation results for PID-LQR are shown in Figure 8. According to the results PID-LOR is effective and suitable for improving the time domain characteristics of system response, such as settling time, overshoots and zero steady-state error. And in comparing to the other two control design strategies mentioned in the previous two sub-sections, a better position tracking and balancing have been detected in case of a hybrid control algorithm. Where, a zero overshoot and a lower settling time are obtained. Figure 9 show the snapshot of performance of proposed PID-LQR control method for mobile robot. The darkest line represents the most current state each snapshot, while the grey lines represent previous positions. The control algorithm combined by LQR and PID can achieve a good balance effect and has a good anti-disturbance effects, can restore dynamic fast.
In this paper, the mathematical model linear and nonlinear of the TWIPMR is presented. The balance and tracking control of the two wheeled mobile robot has been studied and analyzed. The numerical simulation to test the effectiveness of each type of the controllers is carried out. Three types of control strategies, PID-PID based parallel dual feed-back, serial dual feed-back and hybrid optimal control using Feed-forward PID and Feed-back LQR have been designed. Different input reference signals have been applied to test the effectiveness of these controllers and it is demonstrated that an acceptable tracking accuracy can be achieved. It is concluded that for different set points, the hybrid controller can achieve a better performance of robot position tracking and balancing with very high accuracy. The disturbance is considered by different types and it have been seen that still the hybrid controller satisfy a better robust performance and reject effect of uncertainty. The hybrid control strategy candidates as preferred control design method for an optimal control design to demonstrate the desired characteristics (rise time, settling time, over shoot and steady state error) of the complex nonlinear dynamic systems.
None.
Author declares there are no conflicts of interest.
©2019 Abougarair. This is an open access article distributed under the terms of the, which permits unrestricted use, distribution, and build upon your work non-commercially.