Advanced control algorithms are of great interest in control engineering, they make it possible to guarantee the correct operation of complex systems and improve their performance under adverse operating conditions, thanks to negative output feedback. In this work, two adaptive control algorithms are shown: controllers based on Gain Scheduling and Direct Self-Tuning Regulators, using them to control the velocity of an electromagnetic accelerator and comparing their results with those obtained by a classic PID regulator when the system is operated under adverse operating conditions (setpoint changes, load changes and noise resistance). lt shows how this type of regulators can exceed the performance of classical control algorithms, making them a very attractive alternative for digital systems based on microcontrollers, whose high processing capacity allows them to be easily implemented in a wide variety of processes, including nonlinear dynamical systems.