Control of the magnetic levitation using a PID controller with adaptation based on linear interpolation logic and genetic algorithm

Main Article Content

DOI

Dominik Fila

dominikfila01@gmail.com

https://orcid.org/0009-0001-9554-1840
Andrzej Neumann

endrju.neu@gmail.com

https://orcid.org/0009-0009-1814-5738
Bartosz Olesik

bolesik9@gmail.com

https://orcid.org/0009-0006-5680-5504
Jakub Pawelec

j.pawelec01@outlook.com

https://orcid.org/0009-0006-5909-8796
Kamil Przybylak

przybylak.kamill@gmail.com

https://orcid.org/0009-0004-8631-5405
Mateusz Ungier

mateusz.un@outlook.com

Dawid Wajnert

d.wajnert@po.edu.pl

https://orcid.org/0000-0001-9025-4327

Abstract

This paper presents a magnetic levitation system in which the position of a steel ball is obtained at a desired level by controlling the coil current. The object's behavior was approximated using a mathematical model, considering the inductance's dependence on the ball's position. Then, simulations were carried out in the MATLAB/Simulink environment, and the results were compared with data obtained from a physical bench, confirming the accuracy of the simulation model. As part of the work, two variants of the control system were realized: a classic PID controller and an adaptive version, in which the PID parameters are determined using a genetic algorithm. In addition, linear interpolation logic was introduced, enabling smooth adaptation of the settings depending on the current operating conditions. Experimental tests carried out for step and sinusoidal excitation showed a significant improvement in control quality, reduced rise time, and reduced overshoot in the system using the genetic algorithm and linear interpolation logic compared to a classically tuned PID.

Keywords:

electromagnetism, magnetic levitation, PID control, generic algorithms, fuzzy logic

References

Article Details

Fila, D., Neumann, A., Olesik, B., Pawelec, J., Przybylak, K., Ungier, M., & Wajnert, D. (2025). Control of the magnetic levitation using a PID controller with adaptation based on linear interpolation logic and genetic algorithm. Informatyka, Automatyka, Pomiary W Gospodarce I Ochronie Środowiska, 15(4), 5–9. https://doi.org/10.35784/iapgos.7841