Subscribe Now Subscribe Today
Research Article
 

Control of a Ball on Sphere System with Adaptive Neural Network Method for Regulation Purpose



Seyed Alireza Moezi, Ehsan Zakeri, Yousef Bazargan-Lari and Mohammad Tavallaeinejad
 
Facebook Twitter Digg Reddit Linkedin StumbleUpon E-mail
ABSTRACT

Over the past decades, numerous control laboratory experimental setups, such as the inverted pendulum, ball and beam, ball and plate, ball and wheel and ball and sphere, have been developed for control education and research. Several attempts have been made to control a system which contains a ball on a body such as using feedback linearization and sliding mode control which couldn’t regulate the angle position of ball in present of random disturbance. In this study, adaptive neural network position control of a class of Multi-Input Multi-Output (MIMO) nonlinear systems called “system of ball on a sphere” in present of random disturbance is considered. The system’s dynamic is described and the equations are illustrated. Controlling simulation is in consideration of disturbance, to show exactness of the adaptive neural network controlling method. These simulation results show the propriety and accuracy of the controller’s performance.

Services
Related Articles in ASCI
Similar Articles in this Journal
Search in Google Scholar
View Citation
Report Citation

 
  How to cite this article:

Seyed Alireza Moezi, Ehsan Zakeri, Yousef Bazargan-Lari and Mohammad Tavallaeinejad, 2014. Control of a Ball on Sphere System with Adaptive Neural Network Method for Regulation Purpose. Journal of Applied Sciences, 14: 1984-1989.

DOI: 10.3923/jas.2014.1984.1989

URL: https://scialert.net/abstract/?doi=jas.2014.1984.1989
 
Received: December 13, 2013; Accepted: March 07, 2014; Published: April 19, 2014



INTRODUCTION

Recently, several attempts have been made to analyze the dynamic and control a system which is contains a ball on a body and its stability. Although, the system of ball on a sphere is particularly a nonlinear system, it can be considered linear around the equilibrium point (Ho et al., 2009). The system of ball on a sphere can be seen in Fig. 1. Past researches have shown that artificial neural networks are effective soft-computing techniques to model and control a broad category of complex nonlinear systems, especially to those systems whose mathematical models are extremely difficult to obtain (Hu and Hwang, 2001). Artificial neural networks have traditionally been used for classification and prediction tasks (Hourfar and Salahshoor, 2009; El-Emam and Yousif, 2009). Attractive features of neural networks are that they can be trained easily by using past data records from systems under study. They are readily applicable to multivariable systems (Bazargan-Lari et al., 2012; Coban, 2004; Mahi and Izabatene, 2011; Rashid et al., 2012; Hourfar and Salahshoor, 2009; Aliasghary et al., 2008). These facts suggest that neural networks, in conjunction with a suitable control strategy such as model-based control and neural control can be used to control non-linear systems as an adaptive sub system (Hourfar and Salahshoor, 2009; Qiu et al., 2011; Halbaoui et al., 2012).

Fig. 1:A ball on a sphere system, system of ball on a sphere such an inherently nonlinear, unstable and under actuated system

The solution is given for the regulation case.

In this study, In particular, the nonlinear nature of neural networks and the ability of neural networks to learn from their environments in supervised as well as unsupervised ways, make them highly suited for solving difficult larger class of these nonlinear systems is proposed.

DYNAMIC AND MODELING

In the present study, a ball on a sphere system with arbitrary desires is controlled by the adaptive neural network controller. For this purpose, a model for the ball on a sphere system has been opted and then, its dynamical equations have been derived (Liu et al., 2011; Ho et al., 2009). Although, these dynamical equations are extremely non-linear and their parameters are interdependent in various directions, they have been considered linear around the equilibrium point, since in that point, the parameters are assumed independent in all directions. In this work, like a ball and wheel system, the system of ball on sphere is considered to be tow dimensional in all directions is shown in Fig. 2.

The generalized coordinates of system are θx, βx which respectively denote the ball and the spheres angles with respect to the x direction, θy, βy which denotes the ball and the spheres angles with respect to the Y direction. The parameters of system are IB and Ib which are moments of inertia of the sphere and ball, respectively and m as the mass of ball. There is also R and r which already denote the sphere and balls’ radiuses, respectively.

Then, by using the Euler-Lagrange formulation, the systems equation will be derived:

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

Fig. 2:
2-D schema of the system, system of ball on a sphere can considered truly as two independent ball and wheel systems around its equilibrium point

(9)

(10)

(11)

(12)

(13)

M13 = 0

M14 = 0

M23 = 0

M24 = 0

M31 = 0

M32 = 0

M41 = 0

M42 = 0

(14)

(15)

And finally as a result, the dynamic model of the system is stated in the form of matrices as shown in Eq. 16:

(16)

where, that matrices M (q), G (q) and vector τf represent the inertia, gravity term and disturbance, respectively.

ADAPTIVE NEURAL NETWORK CONTROL

In order to present an adaptive neural network control method for a (robotic) system, one may begin with an adaptive algorithm to make it robust with respect to some uncertainty and disturbances. To achieve this goal, a radial basis network that is a feed-forward neural network using the radial basis activation function is designed. In this study, the radial basis function of choice is the Gaussian radial basis function:

where, μi∈Rn the center is vector and σ2 is the variance. Each Gaussian RBF network includes three layers: the input layer, the hidden layer and the output layer. The output of the network f (W, y) can be given by:

where, α (y) [α1 (y) α1 (y)…αn (y)]T is generally positive for commonly used radial basis functions.

Define:

where, Λ is a positive definite matrix. Static neural networks are adequate to model D (q) and G (q) since that both of them are functions of q only. Assume that dkj (q) and gk (q) can be define as:

where, ξ (q), η (q)∈R are the Gaussian activation basis functions, θ , β∈R are the weight vectors of the neural networks and ∈dki (q), ∈gk (q)∈R are the modeling errors of dkj (q), gk (q), respectively, which are assumed to be bounded.

From above and according to Eq. 16, the control law can be found as:

The last term in the control law is added to repress the modeling errors of the neural networks. It can be proved for some values K and Ks if parameters update by:



Fig. 3:
Adaptive neural network algorithm, the control structure of proposed approach q, , are the desired joint angle, the desired joint angular velocity and the desired joint angular acceleration, respectively

Regulation error and it’s time derivative converge to zero when large enough time (Wei et al., 2005).

The control law is shown in Fig. 3.

RESULTS AND DISCUSSION

The desired values of ball angles in order to have a regulation control at its unstable equilibrium point is considered at θx = 0 and θy = 0.

The physical properties of the ball and the sphere, which already described in the modeling section, are:

m = 0.06 kg
r = 0.0125 m
R = 0.15 m
Ib = 3.75x10-6 kg m-2
IB = 0.99 kg m2
g = 9.81 m sec-2

The desired values for the initial condition are also should be specified. Initial position angle of the ball is considered around its equilibrium point at θx0 = 0.07 and θy0 = 0.07. Also, the initial angular velocities of the ball are . The initial position and velocity of sphere in both X and Y directions are βx0 = 0, = 0 and = 0, respectively.

For each element of D (q) and G (q), a 100-node for hidden layer of neural network is used. The values of ì and σ2 are considered 0.0 and 10.0, respectively.

Fig. 4:Disturbance, the controlling simulation has been done due to the disturbance

Fig. 5:Time evolution of θ in X direction in present of disturbance after 10 sec ball angle in X direction becomes stable in 0.1 sec

Fig. 6:Regulated θ in Y direction in 10 sec. It is stable in presented disturbance after 0.1 sec

To show the potential of the adaptive neural network controlling method, a complex random term in which denotes the disturbance of the system has been applied in X-direction. The disturbance is shown in Fig. 4.

The controlling simulation has been done due to the disturbance given in Fig. 4. These simulation results are summarized in Fig. 5-12. In Fig. 5 it can be observed ball angle in X direction become regulated in 0.1 seconds in present of disturbance and the error tends to zero after 0.1 sec. It can be also observed the same in Y direction in Fig. 6 which shows regulation after 0.1 sec.

Fig. 7:Time evolution of β in X direction in present of disturbance after 10 sec

Fig. 8:β in Y direction is plotted vs. time in 10 sec, the angle of ball related to Y direction

Fig. 9:Error of angel θ is X direction the error tends to 0 after 0.1 sec

The time evolution of beta in X and Y directions in present of disturbance after 10 seconds is shown in the Fig. 7 and 8, respectively. In the Fig. 9, the error of angel theta in X direction can be observed. The error of angle theta in Y direction is shown in Fig. 10. The error tends to zero after 0.1 sec. The torque required is applied to the sphere in X direction to control the position of the ball in present of disturbance is shown in Fig. 11. Also, simulation result of the Y-axis control input response of the motor is shown in Fig. 12.

According to the results, it can be realized that the ball is regulated in both X and Y directions in less than 0.1 sec, much faster than previous works.

Fig. 10:θ error in Y-direction, Error of angel θ in Y direction reaches its desired value. The error tends to zero after 0.1 sec

Fig. 11:
Torque in X-direction, torque is applied to the sphere in the X direction to control the position of the ball in present of disturbance by means of changing β in X direction

Fig. 12:
Torque in Y-direction, torque is applied to the sphere in the Y direction to control the position of the ball in present of disturbance by means of changing β in Y direction

Also, from figures it is obvious that the errors tends to zero quickly with smoother maximum over shoots thanks to adaptive neural network control approach.

CONCLUSION

The purpose of this article was to control a system of “ball on a sphere”. At first, a dynamical model that had been constructed for this special system had been utilized. By choosing a proper controller called adaptive neural network method, as can be shown in the simulation results and figures, an appropriate regulation control has been achieved. As can be observed from results, adaptive neural controller was able to lead the system to the desired position in consideration of undesirable disturbances. The great accuracy of the diagrams represents the propriety and accuracy of used controller which can continue doing its task well in the presence of disturbance.

REFERENCES
Aliasghary, M., M. Teshnehlab, A. Jalilvand, M. Aliyari Shoorehdeli and M.A. Nekoui, 2008. Hybrid control of magnetic levitation system based-on new intelligent sliding mode control. J. Applied Sci., 8: 2561-2568.
CrossRef  |  Direct Link  |  

Bazargan-Lari, Y., M. Eghtesad, A. Ghahramani, E. Zakeri and K.B. Lari, 2012. A neural network control for 3-D overhead gantry crane system with uncertain load disturbance. Proceedings of the 20th Annual International Conference on Mechanical Engineering, May 16-18, 2012, Shiraz, Iran -.

Coban, H., 2004. Application of an Artificial Neural Network (ANN) for the identification of grapevine (Vitis vinifera L.) genotypes. Asian J. Plant Sci., 3: 340-343.
CrossRef  |  Direct Link  |  

El-Emam, N.N. and N.Y. Yousif, 2009. Computing of compressible flow using neural network based-on dual-level clustering. J. Applied Sci., 9: 2501-2518.
CrossRef  |  Direct Link  |  

Halbaoui, K., T. Sai, D. Boukhetala and F. Boudjema, 2012. An indirect adaptive controller to regulate UTSG water level in pressurized water nuclear reactor. J. Applied Sci., 12: 381-386.
CrossRef  |  

Ho, M.T., W.Y. Tu and H.S. Lin, 2009. Controlling a ball and wheel system using full-state-feedback linearization [Focus on Education]. IEEE Control Syst., 29: 93-101.
CrossRef  |  

Hourfar, F. and K. Salahshoor, 2009. Adaptive feedback linearization control of nonlinear processes using neural network based approaches. J. Applied Sci., 9: 3219-3235.
CrossRef  |  Direct Link  |  

Hu, Y.H. and J.N. Hwang, 2001. Handbook of Neural Network Signal Processing. 1st Edn., CRC Press, ISBN 0-8493-2359-2,2001, USA.

Liu, S.Y., Y. Rizal and M.T. Ho, 2011. Stabilization of a ball and sphere system using feedback linearization and sliding mode control. Proceedings of the 8th Asian Control Conference, May 15-18, 2011, Kaohsiung, pp: 1334-1339.

Mahi, H. and H.F. Izabatene, 2011. Segmentation of satellite imagery using RBF neural network and genetic algorithm. Asian J. Applied Sci., 4: 186-194.
CrossRef  |  Direct Link  |  

Qiu, D., Q. Wang and J. Yang, 2011. Tracking control for the underactuated overhead crane system based on dynamic equilibrium state theory. Inform. Technol. J., 10: 2399-2405.
CrossRef  |  

Rashid, M.M., Hizbullah, N. Mohammad and M.J.H. Khan, 2012. Advanced control technique for substrate feed rate regulation of a fed batch fermentation. Asian J. Biochem., 7: 1-15.
CrossRef  |  Direct Link  |  

Wei, L.X., L. Yang and H.R. Wang, 2005. Adaptive neural network position/force control of robot manipulators with model uncertainties. Proceedings of the International Conference on Neural Networks and Brain, Volume 3, October 13-15, 2005, Beijing, China, pp: 1825-1830.

©  2020 Science Alert. All Rights Reserved