Hardware-in-the-loop simulation and implementation of a fuzzy logic controller with FPGA: case study of a magnetic levitation system

Akbatı O., Uzgun H. D., Akkaya S.

TRANSACTIONS OF THE INSTITUTE OF MEASUREMENT AND CONTROL, vol.41, pp.2150-2159, 2019 (SCI-Expanded) identifier identifier

  • Publication Type: Article / Article
  • Volume: 41
  • Publication Date: 2019
  • Doi Number: 10.1177/0142331218813425
  • Journal Indexes: Science Citation Index Expanded (SCI-EXPANDED), Scopus
  • Page Numbers: pp.2150-2159
  • Keywords: FPGA, VHDL, FPGA-in-the-loop, look-up table, fuzzy logic, ANFIS, magnetic levitation, PERFORMANCE, FEEDBACK
  • Yıldız Technical University Affiliated: Yes


This paper presents the design and implementation of a fuzzy logic controller using Very High Speed Integrated Circuit Hardware Description Language (VHDL) on a field programmable gate array (FPGA). First, a Sugeno-type fuzzy logic controller with five triangular and trapezoidal membership functions for two inputs and with nine singleton membership functions for one output is examined. The proposed structure is tested with second- and third-order system model using FPGA-in-the-loop simulation via a MATLAB/Simulink environment. Then, for different kinds of fuzzy logic controllers, a new look-up table (LUT) and interpolation-based controller implementation is proposed to eliminate the computational complexity of the primarily designed structure. As a case study, a magnetic levitation system is controlled with an adaptive neuro-fuzzy inference system (ANFIS) trained fuzzy logic controller, then it is simulated and implemented using a LUT-based controller. Finally, we provide a comparison of results.