Thursday , June 21 2018

Design and Simulation of a Fuzzy-Supervised PID Controller
for a Magnetic Levitation System

Bemidji State University,
Bemidji, MN 56601 USA

Sinai University, Arish, Egypt
(Corresponding author) E-mail:

Abstract: In this paper, we present the design and simulation of a new fuzzy logic supervisory control approach that is designed to improve the performance of a PID controlled magnetic levitation system, such systems are inherently unstable and require means of control to stabilize their operation; the fuzzy logic controller continuously monitors system variables (error signal, and its derivative) and modifies the parameters of the PID controller to better introduce better system response. Using magnetic levitation eliminates metal friction, and the problems associated with heat dissipation and enables higher speeds, which, in industrial systems, can increase the production rate. The controller is kept as simple as possible so that it can be easily implemented on a low-cost microcontroller chip in the future. A Simulink® model of the magnetic levitation system with the controller is used to simulate and examine the system performance. A noticeable improvement in the performance has been recorded with the integrated controller over the PID alone.

Keywords: Fuzzy supervisory control, Magnetic Levitation, Fuzzy Control, PID Control, Fuzzy Tuning.

>>Full text
Faissal ABDEL-HADY, Sherif ABUELENIN, Design and Simulation of a Fuzzy-Supervised PID Controller for a Magnetic Levitation System, Studies in Informatics and Control, ISSN 1220-1766, vol. 17 (3), pp. 315-328, 2008.

1. Introduction

Magnetic levitation systems are systems in which a rotor or a stationary object is suspended in magnetic field. Magnetic levitation of a rotating disk typically incorporates four or more electromagnets to levitate a ferromagnetic disk without contact with the surroundings, where levitation is accomplished through automatic control of the electromagnet coils currents. Position sensors are required to sense the position of the disk, and a controller uses position sensor outputs to apply stiffness and damping forces to the rotor to achieve a desired dynamic response.

Active magnetic levitation systems are being increasingly used in industrial applications where minimum friction is desired or in harsh environments where traditional bearings and their associated lubrication systems are considered unacceptable, as discussed in [6, 10]. Such systems are inherently open-loop unstable, and require means of control to stabilize their operation; this is generally done by creating a closed loop system through using feedback control. The requirement of controllers brings flexibility into the dynamic response of the systems, which can also be designed to compensate for noises and vibrations that would affect the operation. Also, these systems are highly nonlinear, and in order to obtain a transfer function to describe them, number of approximations has to be made; hence, the design of linear controllers can produce the desired dynamic response only for the region in which the linear model was created. Many non-linear control algorithms were introduced in earlier research [7, 8, 9, 10, 11], and a comparison between using linear and non-linear methods of controlling magnetic levitation systems was discussed in [4].

In this paper we introduce the design and simulation of a new supervisory control strategy for magnetic levitation systems that incorporates a fuzzy controller to tune the gains of a discrete PID controller.

Supervisory control is a type of adaptive control since it seeks to observe the current behavior of the control system and modify the controller to improve the performance. It is a multilayer (hierarchical) controller with the supervisory at the highest level; the supervisor controller can use any available data from the control system to characterize the system’s current behavior and generate outputs that are not direct command inputs to the plant. Rather, they dictate changes to another controller that generates these command inputs [17]. Over 90% of the controllers in operation today are PID controllers. This is because PID controllers are easy to understand, easy to explain to others, and easy to implement. Because PID controllers are often not properly tuned (e.g., due to plant parameter variations or operating condition changes), there is a significant need to develop methods for the automatic tuning of PID controllers. The supervisor is trying to recognize when the controller is not properly tuned and then seeks to adjust the PID gains to obtain improved performance. When there is heuristic knowledge available on how to tune PID controllers while in operation, there is the opportunity to utilize fuzzy control methods as the supervisor that tunes or coordinates the application of conventional controllers, this approach shouldn’t be confused with Fuzzy-PID controllers, which are PID controllers realized by fuzzy control methods [16].

Overall, fuzzy PID auto-tuners tend to be very application dependent and it is difficult to present a general approach to on-line fuzzy PID auto-tuning that will work for a wide variety of applications [17].

There are different configurations that incorporating fuzzy controllers with PID controllers, examples are: replacing PID with fuzzy controller, using fuzzy controller to adjust PID parameters, and using fuzzy controller to add to PID output [5, 8, 12, 13, 15, 18].

In the method presented here, we use a PID controller to create a stable equilibrium point of the position of a magnetically levitated rotor, and a fuzzy controller to adjust gains of the PID controller based on the operating conditions to improve the performance of the system. Two sets of this controller are used, one for each axis of freedom in the X-Y plane.

This method was introduced as part of research effort started by designing a new magnetic levitation system intended to increase the production rate of yarn spinning machines, the new system replaces the traditional ring-spinning mechanism that dictates a continuous ring-traveler contact. In the traditional system, higher traveler speed will result in traveler burning out because of the frictional heat initiated during traveler rotation. The new magnetic levitation mechanism, named magnetic-ring spinning, would not have friction, enabling higher production speeds. The concept was introduced in [1, 2, 3], see Figure 1 for illustration. Because the new system is intended to be used in large scale in industry, one of the goals of the research was to be able to implement the designed controller in a low-cost single microcontroller chip.

The controller is simulated using SIMULINK®, and the performance of the PID controller alone is compared to the performance of the hybrid controller.


  1. Abdel-Hady, F., Abuelenin S., Numerical simulation of magnetic ring spinning process. In: Proceedings of the 5th AUTEX Conference, Portorož, Slovenia. 2005; pp. 872-877.
  2. Abdel-Hady, F., El-Mogahzy Y., Abuelenin S, Abdel-Kader, R., Innovative approach to high-speed spinning using magnetically-elevated spinning ring AUTEX Res J, 2006; 6:113-121.
  3. Abuelenin, S., Developing a magnetically suspended disc system for industrial applications, with application on ring spinning. Dissertation, Auburn University Alabama 2002.
  4. Charara, A, Caron B., Magnetic bearing: comparison between linear and nonlinear functioning. In: Proceedings of the third international symposium on magnetic bearings, Alexandria Virginia. 1992; pp. 451-460.
  5. Copeland, R.P., Rattan K.S., A Fuzzy Logic Supervisor for PID Control of Unknown Systems. In: Proceedings of IEEE international Symposium of Intelligent Control, Ohio, USA. 1994; pp. 22-26.
  6. De Queiroz, M.S., Dawson D.M., Nonlinear control of active magnetic bearings: a backstepping approach, IEEE Trans Control Sys Tech, 1996; 4:545-552.
  7. Dhar, D, Barrett L.E., Knospe C. R., Optimum design of decentralized magnetic bearings for rotor systems. In: Proceedings of the third international symposium on magnetic bearings, Alexandria Virginia. 1992; pp. 47-59.
  8. Garcia-Benitez, E., Yurkovich S, Passino K.M., Rule-based supervisory control of a two-link flexible manipulator. Journal of Intelligent and Robotic Systems 1993; 7(2):195–213.
  9. Herzog, R., A comparison between passively and actively controlled magnetic bearings. In: Proceedings of the third international symposium on magnetic bearings, Alexandria Virginia. 1992; pp. 223-231.
  10. Hung, J.Y., Magnetic bearing control using fuzzy logic. IEEE Trans Indus Appl 1995; 31: 1492-1497.
  11. Ibrahim, D., Microcontroller Based Applied Digital Control. John Wiley & Sons Ltd. 2006, ISBN: 0-470-86335-8.
  12. Jantzen, J., Fuzzy Supervisory Control, Technical University of Denmark, Denmark. Tech. report no 98-H-875 (proc), Nov. 1998.
  13. Jian, L., Yong K, Jian C., Fuzzy-Tuning PID Control of an Inverter with Rectifier-Type Nonlinear Loads. In: Proceedings of The Third International Power Electronics and Motion Control Conference, Beijing, China. 2000; v1:381-384.
  14. Li, L., Shinshi T, Shimokohbe A., State feedback control for active magnetic bearings based on current change rate alone. IEEE Trans Magnetics 2004; 40:3512-3517.
  15. Lou, K.N., Kuo CY, Sheu L.T., A Novel Method for Fuzzy Self-Tuning PID Controllers. In: Proceedings of the Asian Fuzzy Systems Symposium ‘Soft Computing in Intelligent Systems and Information Processing’. Kenting, Taiwan, 1996; pp. 194-199.
  16. Mizumoto, M., Realization of PID controls by fuzzy control methods. ELSEVIER Fuzzy Sets and Systems 1995; 70:171-182.
  17. Passino, K.M., Stephen Y., Fuzzy Control, Book; Addison Wesley Longman, Inc. 1997 ISBN 0-201-18074-X.
  18. Song, S., Liu W., Fuzzy Parameters Self-Tuning PID Control of Switched Reluctance Motor based on Simulink/NCD. In: Proceedings of International Conference on Computational Intelligence for Modelling, Control and Automation, 2006 and International Conference on Intelligent Agents, Web Technologies and Internet Commerce. 2006; pp. 73 – 73.