1. Introduction
Nowadays, there is a wide range of applications and processes that demand increasingly advanced automatic systems capable of providing movement with high precision while being subjected to various unwanted and unknown external disturbances in multiple operating scenarios. A large part of these automatic systems depends on the proper control of actuation subsystems that provides to the main system the ability to perform specific regulation and trajectory tracking tasks. Direct current (DC) electric motors are ideal for a multitude of industrial and service applications where high torque and variable speed are required [
1,
2]. These range of applications stand from the construction of educational prototypes to the development of advanced systems where precise movements are required, such as in robots [
3,
4].
The development of DC motor control systems remains an active and multifaceted research field driven by several motivations. Researchers persistently endeavour to enhance the efficiency, performance, and reliability of these systems by refining control algorithms, sensor technologies, power electronics, and overall system integration to achieve heightened energy efficiency and responsiveness. Constant advancements in control theory lead to the discovery and exploration of novel techniques, such as predictive, adaptive, model-based, and optimal control, aimed at achieving superior precision and robustness in DC motor control. Simultaneously, the mitigation of noise and vibration, often undesirable in motor systems, prompting research into control algorithms and mechanical enhancements to diminish these effects, particularly crucial in noise-sensitive applications like medical equipment and precision machinery. Additionally, researchers delve into sensorless control methods, reducing reliance on external sensors and bolstering cost-efficiency and system dependability.
The synergy between DC motor control systems and renewable energy sources like solar panels and wind turbines becomes a focal point, necessitating the optimization of control strategies to harness variable and intermittent energy inputs efficiently. Innovation in sustainable energy sources is crucial for ensuring the availability of clean and dependable energy, with electric motors playing a pivotal role in this endeavor [
5]. The ever-evolving landscape of applications, encompassing robotics, drones, electric vehicles, and automation, compels researchers to tailor and innovate control systems to meet specific requirements. In tandem, the development of robust fault detection and tolerance mechanisms assumes paramount importance, particularly in critical applications, as researchers work on enhancing the systems’ ability to detect and respond to faults or anomalies.
Hardware innovations, driven by advances in power electronics and semiconductor technology, lead to the exploration of novel materials, designs, and manufacturing techniques to engender more efficient and reliable motor control hardware. Lastly, in scenarios necessitating coordinated efforts of multiple motors, real-time and distributed control systems take precedence, with researchers concentrating on developing algorithms and architectures facilitating seamless coordination and communication among multiple DC motor control units.
Important velocity and position control approaches for the DC electric machine have been proposed in the literature for improving the closed-loop performance of this electromechanical system. The authors of [
6,
7,
8] propose different robust controllers and parameter estimation schemes for suitably integration of output tracking controllers, where considerably perturbed case studies are evaluated by simulation and experimental set-ups. In the same breath, in [
9] an adaptive backstepping approach is proposed for the speed control of a separately excited DC motor. Comparison results regarding a conventional Proportional Integral (PI) controller demonstrate an improved response of the overall system by using the adaptive backstepping controller. In the meantime, an observer-based Active Disturbance Rejection Controller for robust tracking performance is proposed for a separately excited DC motor in [
10]. The introduced control scheme concentrates disturbance estimation to feed it back in the control loop, achieving a robust and stable performance. Despite several important contributions having been made, the DC motor control design is an open research area due to its complexity, interdisciplinary nature, diverse applications, adaptability to uncertainty, and the constant emergence of new technologies and ethical considerations. Researchers are continually pushing the boundaries of our understanding of motor control and its practical applications.
On the other hand, optimization is a keystone of engineering, playing a pivotal role in ensuring that the systems, processes, and designs we create are efficient, cost-effective, and sustainable. By fine-tuning and enhancing various parameters and variables, engineers strive to find the best possible solutions, maximizing performance, minimizing waste, and ultimately shaping a more innovative and resource-conscious daily world. The reader can find more detailed information about these kinds of optimization applications in [
11,
12,
13,
14] and references therein. Simultaneously, bio-inspired computation is a broader field that encompasses various computational techniques inspired by biology, while bio-inspired optimization algorithms are a specific subset of these techniques tailored for solving optimization problems. Both fields use biological metaphors and principles to develop algorithms that can solve complex real-world problems in diverse domains, such as engineering, finance, biology, among others. In this context, interesting approaches have been proposed in specialized literature for improving the performance of several types of electric machines by an optimal selection of control design parameters. The parameter tuning problem addresses the issue for finding an appropriate parameter settings of algorithms such a way performance can be optimized [
15]. The authors of [
16] use a metaheuristic technique based on genetic algorithms to adjust the parameters of a Proportional Integral Derivative (PID) controller to attain the optimal behavior of a DC motor. On the other hand, in [
17] an optimal gain selection scheme is presented for the tuning of a PI speed controller of a Permanent Magnet Synchronous Motor. Here, the performances of the Bat Algorithm, Biogeography-Based Optimization, the Cuckoo Search Algorithm and the Flower Pollination Algorithm, which are nature inspired algorithms, are suitably evaluated during the optimization process.
At the same time, the authors of [
18] proposed a PID controller for the speed control of a DC motor by using different metaheuristic techniques such as Genetic Algorithms, Particle Swarm Optimization (PSO), and a simulated annealing algorithm, which was inspired by the crystal formation process when solids are cooled down from a high temperature. Similarly, in [
19], an Ant Colony Optimization (ACO) outline is employed for tuning the parameters of PID controllers. An interesting comparative of the yielded results in contrast with a classic approach based on the Ziegler–Nichols methodology and a metaheuristic approach based on the genetic algorithms is also presented. Moreover, from a different perspective, an adaptive control strategy is introduced in [
20], which is rooted in a bioinspired optimization methodology for the speed regulation of a DC motor, wherein an online optimization problem is formulated and subsequently solved through the implementation of a modified differential evolution optimizer. All the previously research aims to include intelligent algorithms to further improve the system’s performance.
The present research explores the capabilities of backstepping and differential flatness theories to handle the tracking velocity and position control problem of electric direct current machines. Moreover, it discusses the implementation of ACO and PSO algorithms for the purposes of enhancing the system’s closed-loop performance by optimizing both the tracking error and the control signal effort. A demonstration of the effectiveness and efficiency of DC electric motors’ control for the tracking of reference trajectories is assessed by numerical simulation scenarios. Addtionally, smoothly transitioning from initial to desired operating points is properly addressed by introducing Bézier polynomial reference profiles. Finally, the performance of an adaptive integral backstepping control scheme based on the B-spline neural networks is evaluated where the gains tuning process is constantly performed online. It is worth mentioning that, to the best knowledge of the authors, there are no previous reports on this control design approach for electric DC motors in the specialized literature.
The organization of this paper is as follows: in the first section, a brief introduction to the state-of-the-art of the optimization of DC motor output tracking control is presented.
Section 2 introduces the mathematical modelling of the DC machine, where position and velocity representations are derived. Subsequently, a control design scheme is formulated based on the backstepping as well as differential flatness theories. Moreover, the analysis of the system and subsystems stability is properly addressed by implementing Lyapunov functions. Finally, intelligent algorithms are utilized for enhancing the system output tracking performance based on the error and the control input effort. Several simulation scenarios are introduced to outcomes to delineate the operational efficiency of the control approach outlined in this paper, presenting it as a viable alternative for effectively managing the angular position and velocity control in direct current electric motors.
2. Direct Current Electric Machine Modelling
A frequently employed actuator, grounded in the principles of motors, generators, and control systems, is the direct current motor. A DC generator is a device that transforms mechanical energy into DC electrical power, while when it is employed to convert DC electrical power into mechanical energy, it is referred to as a DC motor [
21]. Its purpose is to generate rotary motion. The magnets employed can either be electromagnets or, in the context of compact motors, permanent magnets [
22]. Permanently-magnetic DC machines are commonly encountered in a diverse range of low-power applications, featuring a simplified construction where the field winding is substituted with a permanent magnet [
23]. The following set of differential equations constitutes the elemental mathematical model of the system which has been vastly examined by the scientific and engineering community [
22]:
where
is the rotor angular position and
stands for the rotor inertia moment. The electrical parameters of the armature circuit,
and
, quantify the inductance and resistance. Additionally, we employ the symbol
to represent the motor torque constant, while
is utilized to denote the back electromotive force constant. The previous model can be further extended for a representation of the dynamic model of a DC motor actuator with a gearhead,
with the inertia moment of the gearhead denoted by
, the viscous damping as
, and
n signifies the speed reduction ratio intrinsic to the gearhead. Common applications of electric motors with gearhead mechanisms include robotics, conveyor systems, automotive systems, industrial machinery, and household appliances. In these cases, the combination of an electric motor and a gearhead enhances the motor’s performance and makes it better suited to the specific demands of the application. Moreover, the load torque can be considered, for purposes of control design and system performance evaluation, in expression (
2) as follows:
Additionally, the system mathematical model can be expressed by considering a generalized inertia moment
and an equivalent viscous damping as
; therefore, the system (
2) can be rewritten as follows:
with
and
. Observe that, by performing a variable change as
, the second order position model given by equations in (
4) can be implemented for velocity control design,
Notice that if the inductance value
is depreciated in Equation (
4), the following simplified model can be used for purposes of position control design:
Then, by using the state variables
and
, the mathematical model in Equation (
6) can be expressed as follows:
with
Despite the exhibited dynamic behaviour being linear, mismatching load torque disturbance
in (
3) might affect the system’s performance. Dealing with rejecting mismatched disturbances poses a greater challenge. These discrepancies in disturbances are prevalent in various real-world systems, such as missile roll autopilots, electric motors, and flight control systems, which are susceptible to such disparities. Unlike matched disturbances, these mismatched disturbances cannot be effectively converted into input channels that act upon the system, making their direct elimination through inputs infeasible.
As a result, regardless of the chosen control strategy, completely eradicating the impact of mismatched disturbances on the system’s state remains unattainable. Consequently, a pragmatic approach involves mitigating the effects of mismatched disturbances in specific variables of interest that describe the controlled state. Backstepping control can efficiently deal with mismatching disturbances by using virtual controllers.
Differential Flatness Modelling
Differential flatness is a structural property of a wide class of dynamical systems in which the system variables can be expressed in terms of a set of flat outputs and a finite number of their time derivatives [
24,
25]. In a differentially flat system, the state variables and control input can be described as formulae in terms of flat or linearizing outputs and their time derivatives. The integration of any differential equation is not required in the differential parameterizations of the system variables. Thus, systems that exhibit this property have outputs that are easily controllable and allow for the generation of feasible control inputs. Essentially, it is a property of certain systems that can simplify control design by allow for the transformation of the system into a linear or simpler form. This property is particularly useful when dealing with complex systems because it easily enables the design of controllers for them. The structural property of differential flatness has been exploited to derive solutions to robust and efficient tracking control problems of desired motion profiles and simultaneous active vibration suppression in linear and nonlinear, disturbed vibrating systems [
26]. A flat output of the system model (
5) is given by the angular velocity
. Time derivatives of the flat output are functions of system variables as well. Then for purposes of control design the system in (
5) can be expressed as
Therefore, from expression (
8), the differential parametrization yields
The flat output
then satisfies the following perturbed input–output differential equation:
with
It is worth noting that the previous model can be employed for control design purposes. In doing so, we can leverage its capabilities to achieve the control goals. In the next sections, the derived dynamic models will be used for both position and velocity in the output backstepping tracking control design.
Table 1 summarizes the system parameters used for the numeric simulation experiments.
3. Direct Current Electric Machine Control
3.1. Bio-Inspired Algorithms for Control Design
Bio-inspired optimization, also known as nature-inspired optimization, draws its inspiration from the principles and behaviors observed in the natural world (please refer to [
27,
28,
29,
30] and references therein for further detailed information on optimization algorithms). This approach has gained significant attention and popularity in various fields, including automatic control design. Some of the more significant benefits of incorporating bio-inspired optimization techniques in the realm of automatic control are improved performance, adaptability, enhanced robustness, reduced development time, handling complex nonlinearities, and reduced dependency on prior knowledge and energy efficiency. Utilizing bio-inspired optimization in automatic control design offers a multitude of advantages.
These techniques enhance control system performance, adaptability, and robustness by mimicking nature’s processes, making them particularly effective in handling dynamic and uncertain environments. They succeed in multi-objective optimization scenarios, reducing development time and mitigating the need for extensive prior knowledge. Bio-inspired methods also excel in managing complex nonlinearities, and can be scaled for systems of various sizes, promote sustainability, and enhance energy efficiency. Overall, these nature-inspired approaches represent a versatile and promising avenue for creating more efficient, resilient, and adaptive control systems in diverse applications within automation and control engineering.
Particle Swarm Optimization [
31] and Ant Colony Optimization [
32] are valuable tools for control design due to their abilities to handle nonlinear and complex systems, design robust controllers, optimize for complex objectives, adapt to changing conditions, and explore diverse control strategies. They excel in multimodal optimization, online adaptation, and parameter tuning, making them suitable for a wide range of control challenges. Their versatility, speed of convergence, and nature-inspired foundations also offer advantages in control applications, particularly in cases where accurate system modelling is difficult or where innovative control strategies are required.
ACO is a probabilistic optimization method designed for scenarios where the objective is to find the optimal path within a graph. This technique draws its inspiration from the foraging behavior of ants as they search for the most efficient route between their colony and a food source. In contrast, PSO draws inspiration from the collective behavior seen in bird flocks and fish schools, emphasizing information sharing and social interactions. It serves as a global optimization algorithm, which is especially effective when tackling problems involving multidimensional parameter spaces (real-valued optimization). In the realm of computational science, PSO stands as a computational approach aimed at enhancing a candidate solution iteratively in pursuit of improving its quality as measured against a predefined criterion [
33]. The inspiration from these natural analogies, such as schooling and flocking, is reflected in the fact that agents, represented as particles, possess not only a position but also a velocity, enabling them to explore and navigate within the search space [
34,
35].
The following steps summarize how ACO works:
Initialization: a set of artificial ants is created, each representing a potential solution to the optimization problem. A pheromone matrix is initialized, typically with small values, to represent the desirability of different paths or solutions. Pheromones are used to communicate between ants.
Ant movement: each ant explores the problem space by iteratively making decisions based on a combination of pheromone levels and a heuristic function. The heuristic function guides ants towards potentially better solutions. Ants construct solutions incrementally by selecting one element (e.g., a path or a solution component) at a time.
Pheromone update: after all ants have constructed their solutions, the pheromone levels are updated. Ants deposit pheromone on the components of their solutions based on the quality of their solutions. Better solutions receive more pheromone. Pheromone levels also decay over time to simulate the natural evaporation of pheromones.
Solution evaluation: the quality of the solutions constructed by the ants is evaluated based on the objective function of the optimization problem.
Global information exchange: ants communicate indirectly through the pheromone matrix. Good solutions result in higher pheromone levels on the components used in those solutions. This indirect communication guides other ants towards exploring similar paths or solutions.
Iteration: steps 2 to 5 are repeated for a certain number of iterations or until a termination condition is met.
Termination: the algorithm finishes when a stopping criterion is reached, such as a maximum number of iterations or when no significant improvement is observed.
Output: the best solution found by the algorithm is returned as the output.
ACO is particularly useful for solving optimization problems with a large search space and complex constraints, such as the travelling salesman problem (TSP) or the vehicle routing problem (VRP). By simulating the way ants explore and communicate in nature, ACO can efficiently find high-quality solutions to these problems. In this work, we propose a control design scheme where the ACO and PSO algorithms are used for tuning of the control parameters.
Figure 1 portrays a graph representing how the ACO is implemented. Here,
to
stands for a finite number of control parameters to be selected.
The algorithm explores paths concerning the numbers of columns i, or control parameters, and rows, associated with the possibly j number of values than each parameter can adopt, and which is selected based on the experience of the designer (e.g., for ensuring stability). Line colours represents different combinations or paths chosen for each ant. Notice that for each iteration k a set of individuals or ants are tasked to probe a specific and different path or combination that minimizes the objective function .
From
Figure 2 a hypothetical case can be observed in which the
l-th individual from the colony has selected the best path (highlighted in green) based on information from previous iterations. No other element repeats the same path which helps with the algorithm convergence and its objective function record is properly stored for future comparisons.
On the other hand, the step summary of how PSO works is presented below:
Initialization: PSO starts by initializing a population of particles. Each particle represents a potential solution to the optimization problem. Each particle has a position and a velocity, which are randomly assigned at the beginning.
Objective function evaluation: the objective function of the optimization problem is evaluated for each particle, and the fitness or quality of each particle’s solution is determined.
Particle movement: each particle adjusts its velocity and position based on its own best-known solution (individual best or “pBest”) and the best-known solution of the entire population (global best or “gBest”). The velocity of each particle is updated by considering its current velocity, its distance from its pBest, and its distance from gBest. This update encourages particles to move towards better solutions. The particle’s position is updated based on its updated velocity.
Updating pBest and gBest: after the position update, each particle compares its new solution to its pBest. If the new solution is better, it updates its pBest. The algorithm also updates the gBest by comparing the pBests of all particles in the population.
Termination: the algorithm continues to iterate through steps 3 and 4 for a specified number of iterations or until a termination condition is met (e.g., a target fitness level is achieved).
Output: the best solution found by any particle in the population, typically the gBest, is returned as the final output.
PSO is known for its ability to efficiently explore solution spaces and find optimal or near-optimal solutions in a wide range of optimization problems. It is particularly useful for continuous and high-dimensional search spaces. PSO’s strength lies in its ability to balance exploration (searching broadly) and exploitation (focusing on promising areas), making it a popular choice for optimization in various fields, including engineering, machine learning, and economics.
Figure 3 represents the main search space used in this work (as a result of a combination of parameter values
) for the PSO. Here, each sphere represents a possible solution and could be evaluated by a particle in some iteration. As observed in
Figure 4, each particle, represented by a dark sphere, will seek the better solution based on the previous iterations knowledge. Initially, they are located randomly and will move towards the best solution. The algorithm will carry the particles, after each iteration, towards the fitness solution, represented by the gold particle in the diagrams, see
Figure 5.
In this research, the ACO is utilized for tuning of the position control parameters and the PSO for velocity control design. Simultaneously, in this study, data from the output tracking error and the control input magnitude are used as design parameters of the following objective function:
where the coefficients
and
are weighting factors that penalize the error and the magnitude of the voltage control input. Additionally, the ITAE index (Integral Time Absolute Error) is given by
Here
is the output tracking error and
t is the time variable. Additionally, the ISCI term stands for the Integral Squared Control Input index introduced in Equation (
13) and which is associated with the voltage control input.
3.2. Backstepping-Based Position Control
In the field of control theory, backstepping [
36] is a control technique introduced around 1990 by Petar V. Kokotovic and his colleagues. It is employed to design stabilizing controllers for a particular class of dynamical systems. These systems consist of interconnected subsystems, with one core subsystem that can be stabilized using an alternative method. Due to this recursive arrangement, the controller designer initiates the design process from the already stable core subsystem and systematically goes backward to develop new controllers that progressively stabilize each successive outer subsystem. The procedure concludes when the ultimate external control layer is established. As a result, this method is properly named backstepping [
37].
In this section, a backstepping based control is introduced for the DC electric motor machine with a planetary gearhead. The objective is to find a control law such that the system output tracks the reference trajectory. This method guarantees asymptotic stability for the system and offers the advantage of easy applicability to dynamic systems, providing flexibility in the design of feedback control laws [
38].
Considering the system in (
7), it is possible to design an output tracking controller by using backstepping control theory. The intention is to track a reference trajectory given with acceptable level of tracking error. Then, for purposes of control design, lets consider the following representation of the model as follows:
with
where
is the system output variable to be controlled.
represents the tracking error of the desired angular position reference trajectory
. Then, for the previous extended 3D linear system, a backstepping control design is introduced as follows:
System 1: from Equation (
14a)
can be seen as a virtual controller as follows:
For the stability analysis of expression (
16), let us consider the next candidate Lyapunov function,
It is evident that
is quadratic and positive definite and its derivative
therefore, the virtual control input
is proposed in such a manner to ensure the negative definitiveness of
,
with
. Thus, by Lyapunov stability theory [
39], the following closed-loop system matches the globally asymptotically stable condition
In order for the state
to be globally asymptotically stable the state
. In this regard, let us introduce the following error variable,
where
then, Equation (
14a) can be rewritten as
while
by substituting expression in (
23) it yields
Then, the original system can be expressed as follows:
System 2: Notice from expression (
26b) that the state variable
can be adopted as a virtual control input for the subsystem. Then, let us work with the following set of expressions:
and introduce the following Lyapunov function and its time derivative:
after elemental mathematical manipulation and by substituting Equation (35a,b) it yields
where, in order to
be negative definite, the virtual controller
is proposed as follows:
with
, and utilizing (
30) in (
29) it results in
Therefore, the linear system (35a,b) is globally asymptotically stable by the virtual controller effect. Similarly, as in the previous system, the state
. Let us introduce the following tracking error:
then
and
and by substituting (
33) in (
34) in the (26a–c), the system can be expressed by the following set of first order differential equations:
and after mathematical manipulations
Therefore, by considering the above expression, it is possible to propose an integrator backstepping control law
u given by
and after substituting all the design variables, the real control input voltage is as follows:
Hence, by Lyapunov stability theory, it is corroborated that the linear system in (31) is globally asymptotically stable.
Notice the control design intention for including an integral action in the system closed-loop error dynamics as an extended system. Integral action helps the controller to deal with the disturbances existing in the motion control and to improve the system’s transient and steady state performance [
40,
41].
3.3. Backstepping-Based Velocity Control
The differentially flat electric motor system model (
10) can be used for velocity reference trajectory tracking control design. A state space representation of the flat output dynamics is then given by
The state variables are denoted as
and
. For derivation of some backstepping control law based on differential flatness, the following state space description for the extended velocity trajectory tracking error dynamics,
, is considered:
The velocity reference trajectory is here represented by
. The error state variables are thus defined as follows:
Similarly to the above described procedure, an angular velocity trajectory tracking controller from a backstepping approach results in
with
Tuning a backstepping controller efficiently can be a challenging task, especially for complex systems with nonlinear dynamics and uncertainties. There are various methods and algorithms that can be used to tune the controller parameters effectively. Two popular optimization algorithms for controller tuning are the PSO and ACO optimization algorithms.
On the other hand, differential flatness and backstepping are two distinct theory concepts, but they can be related in some control system scenarios and utilized satisfactory in control design, especially when dealing with complex systems. Recently, the authors of [
42] introduce an interesting approach for controlling a mechanical system where trajectory planning and backstepping is proposed for the antisway problem of an underactuated overhead cranes. Here, the planned trajectory is obtained by solving for the optimal parameters of the selected flat output. Different from that proposal, in this paper, the DC electric motor differential flatness property is properly used as a starting point for the design of a backstepping controller. The flat output of the system serves as intermediate virtual control inputs in the backstepping design process. This simplifies the design of control laws for several complex systems. The flatness property helps for selecting suitable virtual control inputs that, combined with the backstepping approach, ease the closed-loop control design.