Next Article in Journal
Tailored Morphology and Phase Evolution of Magnesium Whitlockite Granules via a Dissolution–Precipitation Approach
Next Article in Special Issue
A Collaborative Navigation Model Based on Multi-Sensor Fusion of Beidou and Binocular Vision for Complex Environments
Previous Article in Journal
A Continuous Music Recommendation Method Considering Emotional Change
Previous Article in Special Issue
Design and Development of Hugging Mechanism for Capturing Chest and Back Auscultatory Sounds
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Energy-Efficient Hybrid PID Control with Exponential Trajectories for Smooth Setpoint Transitions: Applications in Robotics and Aeronautics

by
Jesús Alberto Meda-Campaña
1,*,†,
Israel Isaías Lizardo-Parra
1,†,
Juan Carlos García-Hernández
1,†,
Jonathan Omega Escobedo-Alva
2,†,
Luis Alberto Páramo-Carranza
3,† and
Ricardo Tapia-Herrera
4,†
1
SEPI-ESIME Zacatenco, Instituto Politécnico Nacional, Ciudad de México 07738, Mexico
2
SEPI-ESIME Ticomán, Instituto Politécnico Nacional, Ciudad de México 07340, Mexico
3
ESIME Zacatenco, Instituto Politécnico Nacional, Ciudad de México 07738, Mexico
4
SECIHTI-SEPI-ESIME Zacatenco, Instituto Politécnico Nacional, Ciudad de México 07738, Mexico
*
Author to whom correspondence should be addressed.
All authors contributed equally to this work.
Appl. Sci. 2025, 15(13), 7223; https://doi.org/10.3390/app15137223
Submission received: 16 May 2025 / Revised: 16 June 2025 / Accepted: 24 June 2025 / Published: 26 June 2025
(This article belongs to the Special Issue Advanced Robotics, Mechatronics, and Automation)

Abstract

In this paper, a modification of the classical PID controller scheme for position control is presented. The resulting controller incorporates an exponential trajectory that smoothly guides the system towards the setpoint and a hybrid mechanism to dynamically reset the exponential signal, allowing an adaptive response to discontinuous reference signals. This combination leverages the benefits of exponential trajectories to reduce overshoot and transient oscillations, while the hybrid system ensures robust performance over a wide range of operating scenarios. Among the advantages of the proposed approach, two stand out: (1) significant improvements in energy savings can be achieved in some cases, and (2) closed-loop system performance can be improved even considering poorly tuned PIDs.

1. Introduction

1.1. Motivation

Proportional–integral–derivative (PID) controllers are widely recognized as a fundamental control strategy in industrial and academic applications. Their simplicity, ease of implementation, and effectiveness in a wide range of systems make them a very important tool of control engineering [1]. Despite their strengths, traditional PID controllers often exhibit limitations when applied to systems requiring precise position control, particularly in scenarios involving stringent transient performance requirements such as overshoot reduction and fast settling times [2].
Several modifications to the classical PID structure have been proposed to address these challenges. These include adaptive tuning methods [3], nonlinear PID strategies [4], and hybrid control schemes [5]. However, these approaches often require complex calculations or introduce new challenges such as increased sensitivity to noise or system uncertainties.
The hybrid system for trajectory restoration combines the advantages of continuous and discrete dynamics, allowing a versatile and robust control strategy for discontinuous changes in reference signals. The proposed method is particularly suitable for applications such as robotic manipulators and servomechanisms [6].
In [7], a hybrid control strategy combining model predictive control (MPC) with PID controllers was introduced to improve the performance of supercritical power units. This approach demonstrated significant improvements in response time and energy savings compared to traditional PID methods. In [8], a fuzzy gain programmed PID controller was developed to improve power quality in grid-connected hybrid solar PV and PEM fuel cell systems. The proposed controller effectively reduced total harmonic distortion, demonstrating its potential for improving energy efficiency. In [9], a hybrid optimization approach for energy control in electric vehicle controllers regulating three-phase induction motors is derived. This method improved the energy efficiency and system performance.
Recent developments reflect the increasing integration of intelligent and hybrid methodologies within PID control architectures. In [10], a neuro-fuzzy and robust PID controller is integrated via active filters to enhance performance under uncertain conditions; the neuro-fuzzy component manages transient behavior, while the robust PID ensures steady-state accuracy. In [11], a neural-augmented PID controller based on deterministic learning is applied to robotic manipulators, guaranteeing the stability and convergence of tracking errors under partial excitation conditions. A hybrid controller combining PID/fractional-order PID with neural network tuning via a zebra optimization algorithm is proposed in [12], yielding enhanced robustness and energy efficiency on a two-link robot system. Reference [13] introduces a 3DOF neuro-fuzzy PID strategy for automatic generation control in hydrogen-integrated multi-area power systems, effectively handling nonlinearities and improving frequency regulation.
In [14], a hybrid adaptive PID scheme combining LMS and backpropagation enables real-time gain adjustment, demonstrating high adaptability and robustness, and serving as a foundation for nonlinear extensions. A hybrid control strategy blending PID and model predictive control (MPC) using a fractional-order RAM model is proposed in [15], where MPC refines the PID reference trajectory to enhance overall system response. The work in [16] presents a hybrid PID framework for automated guided vehicles (AGVs), using genetic algorithms (GAs) to optimize controller gains and support vector regression (SVR) to reduce computational complexity. A boundary logic-based hybrid controller combining sliding mode and PID control for underactuated nonlinear cascade systems is proposed in [17], improving performance on complex dynamic tasks. In [18], a hybrid model-data-driven approach was developed for Euler–Lagrange hydraulic systems where a robust nonlinear controller is combined with actor–critic reinforcement learning to manage model uncertainties, supported by Lyapunov-based stability analysis.
Reference [19] introduces the hybrid MFO-WOA optimization algorithm to solve global optimization problems and tune FOPID/PID controllers, demonstrating faster convergence and potential applicability in IoT-integrated scenarios. Finally, [20] proposes a reset control approach to mitigate setpoint regulation issues in motion systems subject to Coulomb and Stribeck friction, achieving asymptotic stability and significant overshoot reduction where classical PID fails due to persistent oscillations.

1.2. Contribution

The main contribution of this paper is to present a modification of the PID controller, incorporating an exponential trajectory to guide the system smoothly towards the setpoint. The exponential signal is dynamically reset by a hybrid control mechanism, allowing the system to adapt to reference changes effectively. This approach offers significant improvements in transient behavior, including a reduction in overshoot, and in some cases also reduces the amplitude of the control signals, which directly translates into energy savings.
It is important to note that the primary objective of this paper is not to propose a new method for tuning PID controller gains but rather to enhance the performance of already designed PID controllers. For this reason, readers are referred to standard textbooks such as [1], where PID tuning methods are discussed in detail.

1.3. Manuscript Organization

The remainder of this paper is organized as follows: Section 2 presents a thorough analysis of the proposed control scheme. Section 3 presents both simulation and experimental results, highlighting the performance improvements achieved over conventional PID controllers. Section 4 discusses important aspects of the proposed control approach. Finally, Section 5 presents the conclusions and outlines potential directions for future research to further enhance the proposed method.

2. Main Results

2.1. PID Controller

The reader is advised that the goal of this paper is not to provide a new approach to tuning PID controller gains but to improve the performance of previously designed PIDs. For that reason, the reader is recommended to consult textbooks such as [1] where PID tuning is discussed in depth. However, for the completeness of this paper, it is important to briefly recall what a PID controller is.
Considering the control scheme depicted in Figure 1, a PID controller is a control law designed to regulate a process variable x ( t ) , such as position, speed, temperature, or pressure. In order to produce the appropriate control signal u ( t ) , the PID controller needs the following:
  • The error e ( t ) at time t, which is the difference between the setpoint and the value of the process variable at the current time t, i.e., e ( t ) = x s p x ( t ) , where x s p is the desired setpoint, x ( t ) is the process variable to be regulated, and e ( t ) is the error at time t.
  • The integral of the error 0 t e ( τ ) d τ at instant t.
  • The time derivative of the error d e ( t ) d t at instant t.
The PID controller works as follows: the proportional gain ( K P ) is responsible for reducing the error e ( t ) as quickly as possible by applying a correction proportional to the current error. The integral gain ( K I ) multiplies the error accumulated over time, i.e., the integral of the error, with the aim of eliminating steady-state errors and ensuring accurate convergence to the setpoint. Finally, the derivative gain ( K D ) is used to predict future error trends based on the derivative of e ( t ) , which helps to reduce overshoot and improve system stability. The mathematical expression of the PID is as follows:
u ( t ) = K p e ( t ) + K i 0 t e ( τ ) d τ + K D d e ( t ) d t ,
where u ( t ) is the control signal produced by the PID.
Notice that the derivative part of the PID controller can be problematic if the measurement of x ( t ) is contaminated with noise. To address this issue, an alternative version of the PID controller includes a filter to mitigate the effects of noise on the derivative term. The expression for such a PID controller in the frequency domain is as follows:
U ( s ) = K p + K i 1 s + K D N 1 + N 1 s E ( s ) ,
where s is the Laplace variable; U ( s ) and E ( s ) are the Laplace transforms of the control signal u ( t ) and the error e ( t ) , respectively; and N is referred as the filter coefficient.
Thus, the design of the PID controller involves determining the appropriate gains K P , K I , and K D and possibly N such that u ( t ) induces the desired behavior in the process variable x ( t ) . Tuning of the PID controller gains can be performed through the approach proposed by Ziegler and Nichols [1,2].
It is important to mention that mathematical software platforms such as MATLAB r2019b with Simulink™ offer powerful automatic control toolboxes that allow PID controllers to be automatically tuned. These toolboxes simplify the design and tuning process by automatically determining the optimal controller parameters to achieve the desired system performance. This capability allows for rapid numerical prototyping and testing of control systems within the simulation environment [21].

2.2. Basic Notions of Hybrid Systems

A hybrid system is a dynamic system characterized by the interaction between a continuous-time process, typically described by differential equations, and a discrete-event system, often modeled using state machines or logical rules [22]. Mathematically, a hybrid system can be described as follows:
ω ( t ) C ω ˙ ( t ) = f ( ω ( t ) ) , ω ( t ) D ω + = g ( ω ) ,
where ω ( t ) R w is the state of the hybrid system at time t. C is the set where the state evolves according to the differential equation ω ˙ ( t ) = f ( ω ( t ) ) , D is the set where the state undergoes discrete transitions, ω + is the value of the state immediately after an instantaneous change occurs, f ( ω ( t ) ) is a function describing the continuous-time dynamics. g ( ω ) is function describing the discrete-time updates.
In this formulation, the state ω ( t ) evolves continuously while ω ( t ) C and transitions to a discrete state occur when ω ( t ) D . The transition is defined by the reset map g ( ω ) , which defines the new state value ω + immediately after the discrete event [22].

2.3. Hybrid PID Controller with Smooth Transition to the Setpoint

Clearly, the amplitude of the control signal directly depends on the magnitudes of e ( t ) , 0 t e ( τ ) d τ and d e ( t ) d t at each instant t. Therefore, the proposed approach attempts to keep these terms as small as possible to yield the smallest possible u ( t ) for all t while achieving the control goal.
To achieve this, the control scheme shown in Figure 1 is modified as illustrated in Figure 2, where the PID block consists of the components enclosed within the dotted line in Figure 1.
The difference between the control schemes illustrated in Figure 1 and Figure 2 lies in the error signals, e ( t ) , used by the PID controllers, which differ significantly. In a classical (typical) PID controller scheme, the error is simply defined as the difference between the setpoint and the variable to be regulated. Instead, the proposed approach incorporates an additional exponential component in the error signal, with its parameters determined by a hybrid system. These two features give the PID controller its adaptive behavior. A detailed explanation of this new control algorithm is given below.

2.3.1. The Hybrid System

The proposed control scheme includes a hybrid system whose inputs are the setpoint x s p and its time derivative, namely x ˙ s p . Clearly, when the setpoint is a constant value, its derivative is zero. Thus according to (3), this hybrid system is defined as follows:
t ˙ h x ˙ h = 1 0 ,
with
t h x h + = 0 x ( t ) ,
and the reset condition given by x ˙ s p 0 . Notice that the state t h x h of the hybrid system (4) and (5) is set to 0 x ( t ) each time the reset condition is satisfied, where x ( t ) is the value of the variable to be regulated at instant t. As will be clarified below, t h and x h are time and the starting point for the exponential function, respectively.

2.3.2. The Exponential Trajectory to the Setpoint

As mentioned before, the proposed control scheme considers an exponential function, which is reset by the state of the hybrid system described earlier. The structure of such and exponential function is
x h x s p exp ( α t h ) .
Here, α represents the decay rate, where α is the decay factor, which is a positive real number and a design parameter. Additionally, x h and t h are values provided by the hybrid system, and x s p denotes the setpoint.
According to Figure 2, the error e ( t ) is expressed as follows:
e ( t ) = x s p + x h x s p exp ( α t h ) x ( t ) ,
but at every instant the hybrid system is reset, i.e., when t = t r , the expression (7) simplifies to
e ( t ) = x s p + x h x s p x ( t ) , e ( t ) = x h x ( t ) ,
because at the reset instant t = t r , t h is set to zero. Additionally, from (7), it follows that
lim t h e ( t ) = x s p x ( t ) ,
where t r are the instants at which the hybrid system is reset.
At this point, the following results naturally arise.
Theorem 1.
Suppose the following assumptions hold:
  • The value x ( t ) is available at all t.
  • The design parameter α R satisfies α > 0 and the envelope generated by exp ( α t h ) is bounded by the system response under the influence of the mistuned PID controller.
  • The hybrid system (4)–(5) is reset at instant t = t r .
  • There exist gains K P , K I , and K D (and possibly N) such that the PID controller given by (1) (or correspondingly (2)) is capable of stabilizing the process variable x ( t ) in a neighborhood of x s p .
Then, the exponential function (6) starts from x h = x ( t ) with t h = 0 at t = t r . Furthermore, the exponential function (6) tends asymptotically to zero as t . Consequently, the error defined by (7) is reset at t = t r starting at x h x ( t ) and tending to x s p x ( t ) as t , and accordingly, the PID controller (1) (or correspondingly (2)) takes the process variable x ( t ) to a neighborhood of x s p following an exponential trajectory.
Proof. 
The proof follows directly from the previous discussion. □
Remark 1.
“Exponential trajectory to the setpoint”: Notice that at the instants when the hybrid system is reset, namely when t = t r , the error e ( t ) is initially zero rather than x s p x ( t ) . This characteristic often leads to a significant reduction in the magnitude of the PID controller’s output. The reason for this behavior lies in the exponential function, which is reset at t = t r to start from the current value of x ( t ) , i.e., x h = x ( t ) and t h = 0 . Subsequently, the exponential function (6) asymptotically approaches zero as t h . As a result, the error e ( t ) gradually converges to e ( t ) = x s p x ( t ) , leading to a smooth and progressive reduction in e ( t ) .
Remark 2.
Note that the selection of the decay rate α depends on the behavior induced by the mistuned PID in the sense that α should be selected to produce a slower behavior than that induced by the classical PID, thus maintaining the stability originally provided by the PID controller. Furthermore, the exponential function, which is restored by the hybrid system, ensures that the error remains bounded. In other words, the envelope generated by exp ( α t h ) must be bounded by the system response under the influence of the mistuned PID controller.
Remark 3.
The proposed hybrid PID controller performs the same core operations as the conventional PID controller but introduces an additional step: the evaluation of an exponential reference trajectory at each time instant. This step involves a single exponential function computation and a simple reset condition, typically implemented using a modulo operation and a few multiplications. The added computational cost is minimal and easily manageable in modern control hardware.

3. Simulation and Experimental Validation

3.1. Numerical Validation on a Robotic System

To validate the previous results, the robotic arm analyzed in [23] and depicted in Figure 3 is considered.
The dynamics of this system is given by the following:
u ( t ) = D ( θ ( t ) ) θ ¨ ( t ) + h ( θ ( t ) , θ ˙ ( t ) ) + C ( θ )
where
D ( θ ( t ) ) = d 11 ( θ ( t ) ) d 12 ( θ ( t ) ) d 21 ( θ ( t ) ) d 22 ( θ ( t ) ) ,
h ( θ ( t ) , θ ˙ ( t ) ) = h 1 ( θ ( t ) , θ ˙ ( t ) ) h 2 ( θ ( t ) , θ ˙ ( t ) ) ,
c ( θ ( t ) ) = c 1 ( θ ( t ) ) c 2 ( θ ( t ) ) , u ( t ) = u 1 ( t ) u 2 ( t ) ,
and d 11 ( θ ( t ) ) = 1 3 m 1 l 2 + 4 3 m 2 l 2 + m 2 cos ( θ 2 ( t ) ) l 2 , d 12 ( θ ( t ) ) = 1 3 m 2 l 2 + 1 2 m 2 l 2 cos ( θ 2 ( t ) ) , d 21 ( θ ( t ) ) = 1 3 m 2 l 2 + 1 2 m 2 l 2 cos ( θ 2 ( t ) ) , d 22 ( θ ( t ) ) = 1 3 m 2 l 2 , c 1 ( θ ( t ) ) = 1 2 m 1 g l cos ( θ 1 ( t ) ) + 1 2 m 2 g l cos ( θ 1 ( t ) + θ 2 ( t ) ) + m 2 g l cos ( θ 1 ( t ) ) , c 2 ( θ ( t ) ) = 1 2 m 2 g l cos ( θ 1 ( t ) + θ 2 ( t ) ) , h 1 ( θ ( t ) , θ ˙ ( t ) ) = 1 2 m 2 sin ( θ 2 ( t ) ) l 2 θ ˙ 2 2 m 2 sin ( θ 2 ( t ) ) l 2 θ ˙ 1 ( t ) θ ˙ 2 , h 2 ( θ ( t ) , θ ˙ ( t ) ) = 1 2 m 2 sin ( θ 2 ( t ) ) l 2 θ ˙ 1 ( t ) 2 . where θ 1 ( t ) is the angle (in radians) between the inner link and the horizontal axis, θ 2 ( t ) represents the angle (in radians) between the outer link and the inner link, x 2 ( t ) = θ ˙ 1 is the angular velocity of the inner link and x 4 ( t ) = θ ˙ 2 is the angular velocity of the outer link.
The rigid links have masses of m 1 = 0.4 kg and m 2 = 0.3 kg , while lengths l = l 1 = l 2 = 0.5 m . The input torques applied to the system are denoted as u 1 ( t ) and u 2 ( t ) , both measured in N · m . The gravitational acceleration is g = 9.81 m / s 2 .
Also consider that the control signals u 1 ( t ) and u 2 ( t ) are generated by two mistuned PID controllers of the form (2), with parameters K P = 100 , K I = 10 , K D = 5 , and N = 300 for both PIDs.
In the following examples, the robotic arm starts at rest from the lower vertical position, with initial conditions θ 1 ( 0 ) = 3 π 2 , θ ˙ 1 ( 0 ) = 0 , θ 2 ( 0 ) = 0 , and θ ˙ 2 ( 0 ) = 0 . Then, both the typical PID controller and the proposed controller are applied to move the robotic arm to different setpoints during 15   s , illustrating the distinct behaviors induced by these controllers.

3.1.1. Example 1: Constant Setpoint

In this numerical experiment, the control goal is to move the robotic arm from its initial conditions to θ 1 = x s p 1 and θ 2 = x s p 1 , where x s p 1 = π 2 and x s p 2 = π are the respective setpoints. First, the control scheme depicted in Figure 1 is applied. Then, the proposed control scheme shown in Figure 2 is applied, assuming that the reset parameter β for each of the two hybrid systems can be neglected because both setpoints are constant. On the other hand, the decay rate parameters of the exponential functions in expression (6) are set to α 1 = 2 and α 2 = 1 for the inner and outer controllers, respectively. The results are presented in Figure 4, Figure 5, Figure 6 and Figure 7. Evidently, the proposed control scheme shown in Figure 2 allows for a smoother behavior of the link, with significantly reduced control signal amplitudes, even when using the same PID gains. Also note how the inner link converges faster than the outer link to the setpoint due to the decay rates chosen for the corresponding exponential functions. However, if the decay rates are assigned the same values, both links will converge to their respective setpoints at the same rate.
Remark 4.
Although the behavior achieved by the proposed control scheme can approximate that of the classical scheme shown in Figure 1, the classical scheme requires much more precise tuning of the PID controllers.

3.1.2. Example 2: Discontinuously Changing Setpoint

In this example, the setpoints for each of the links are defined as step functions with an amplitude of π 9 r a d and a frequency of π 4 r a d s . Thus, t r 1 = 0 , t r 2 = 4   s , t r 3 = 8   s , and t r 4 = 12   s . For the reset conditions of the hybrid systems, as mentioned above, it is sufficient to set them as x ˙ s p 1 0 and x ˙ s p 2 0 since the setpoints change in a discontinuous way. The PID gains and the decay rates for the exponential functions are the same as those used in the previous example.
With this in mind, as before, the classical scheme shown in Figure 1 and the proposed scheme depicted in Figure 2 are applied, with the results presented in Figure 8, Figure 9, Figure 10, Figure 11, Figure 12 and Figure 13.
Again, based on the hybrid system and the exponential functions considered, the proposed control scheme provides smooth trajectories to the setpoints and reduces the amplitudes of the control signals.

3.2. Experimental Validation on an Aeronautical System: Hybrid PID Control for Quadcopter Takeoff and Landing

Commercial quadcopters typically use separate control sequences for takeoff and landing, requiring the user or an automated system to select the appropriate sequence for proper execution. To overcome this limitation, the proposed hybrid PID control scheme was applied to manage both takeoff and landing using the default gains of the quadcopter’s hover PID controller. Specifically, the PID controllers that regulate lateral, longitudinal, and angular displacements remained unchanged.
Although the mathematical model of a quadcopter (or quadrotor), such as the one shown in Figure 14, is discussed in detail in [24,25], this section focuses on directly applying the proposed approach to the quadrotor depicted in Figure 15 using the Simulink Support Package for Parrot Minidrones. This MATLAB toolbox allows users to connect to the quadrotor via Bluetooth, providing access to its sensors and actuators. This package includes a controller project template designed as a framework for developing a custom controller or adapting it to specific requirements. The template integrates a comprehensive simulation of the plant model for the Parrot Rolling Spider and Parrot Mambo drones, allowing users to evaluate the performance of the model prior to deployment. This enables a thorough analysis and refinement of controller designs prior to implementation on physical hardware. Additionally, the template supports six-degree-of-freedom (6-DOF) motion equation modeling, enabling the simulation of aircraft behavior under various flight and environmental conditions. Figure 15 illustrates the Virtual Reality Modeling Language (VRML) environment used by the Simulink package for Parrot Minidrones [26,27].
Remark 5.
The Simulink support package for Parrot Minidrones has undergone extensive validation, demonstrating high accuracy in approximating the real-time behavior of these drones.
Remark 6.
According to the right-hand rule, which is the standard convention in aeronautics, the altitude axis Z b is defined as negative in the upward direction. This ensures consistency with the body-fixed coordinate system, where the X b -axis points forward and the Y b -axis points to the right of the drone [25].
As in the previous examples, the analytical design of the thrust PID controller is omitted. Instead, the default gains provided by the MATLAB’s toolbox, together with the control scheme discussed above, are used to achieve take-off and landing of the Parrot Rolling Spider depicted in Figure 16. It is important to mention that the default thrust PID controller has the form of (2) but works in discrete time, with the following gains: K P = 0.8 , K I = 0 , K D = 0.3 , and N = 50 . In practice, this results in a PD controller.
Before implementing the hybrid PID controller on the Parrot Rolling Spider in real-time, simulations were conducted using the MATLAB toolbox. In these simulations, the drone was required to take off and stabilize at an altitude of x s p 1 = 1   m . Then, at t = 3   s , the setpoint was increased to x s p 2 = 1.4   m . At t = 6   s , the setpoint was decreased to x s p 3 = 0.7   m , followed by a final setpoint change to x s p 4 = 0.2   m at t = 8   s . The landing was completed by turning off the motors at t = 10   s .
The four cases considered were the (1) original PID, (2) hybrid PID with α = 0.5 , (3) hybrid PID with α = 1 , and (4) hybrid PID with α = 2 . The results are presented in Figure 17, Figure 18, Figure 19, Figure 20, Figure 21 and Figure 22.
Remark 7.
As expected, from Figure 15, Figure 16, Figure 17, Figure 18, Figure 19, Figure 20, Figure 21 and Figure 22, it can be observed that the drone reaches the setpoints more smoothly when the hybrid controller is used, requiring less effort from the actuators and consequently saving energy. Furthermore, it is evident that smaller values of α result in a slower response towards the setpoint. It is important to note that the PID gains remain the same for all cases, as mentioned above.
The same flight scheme was applied to the Parrot Rolling Spider in real-time with two control schemes: (1) the default PID provided by the MATLAB toolbox and (2) the hybrid PID controller with α = 1 . The real-time flight data are presented in Figure 23, Figure 24, Figure 25, Figure 26 and Figure 27.

3.3. Energy Efficiency of Control Strategies

In this brief section, a comparative analysis of the classical PID controller and the hybrid PID controllers with decay rates α = 0.5 , α = 1 , and α = 2 is presented, with a focus on energy consumption. The analysis is based on numerical simulations conducted on the quadrotor model described in the previous section. To this end, the rotor power expression considered is as follows:
P i = k p · u i 3 ,
where u i represents the angular velocity of rotor i in radians per second, and k p is a power coefficient that depends on rotor characteristics and air density. For simplicity, k p is assumed to be equal to 1 in this study.
The relative energy savings achieved by the hybrid approaches, in comparison to the classical PID, are summarized in Table 1. Additionally, a graphical comparison of the cumulative energy consumption is provided in Figure 28.
As expected, the hybrid controller with α = 0.5 exhibits the highest energy efficiency as its slower dynamics reduce the effort on the rotors more effectively compared to higher values of α . It is important to note that these results may vary depending on the quality of the tuning of the classical PID controller.

4. Discussion

As observed in the simulation results, the drone operating in real time with the proposed hybrid PID controller exhibits significantly smoother dynamic behavior compared to the classical PID scheme. This improvement is evident in the reduction in oscillations and overshoot during transient responses, leading to enhanced stability and tracking performance. Notably, the hybrid controller achieves this improvement without altering the PID gains as both the classical and hybrid controllers operate with the same parameter settings.
Furthermore, a noticeable reduction in actuator effort is achieved when employing the hybrid PID controller. This reduction suggests more efficient control actions, which translate into lower energy consumption—an essential factor in battery-operated aerial vehicles such as drones. The decrease in control signal intensity, without compromising performance, highlights the effectiveness of the hybrid approach in optimizing resource utilization.
These results demonstrate that the proposed hybrid PID controller not only meets the desired control objectives but also offers tangible benefits in terms of energy efficiency. Consequently, it can be concluded that, even in real-time implementations, the hybrid control strategy is a viable and advantageous alternative to the classical PID approach, particularly in applications where energy conservation and smooth operation are critical.

5. Conclusions

This paper presented a control scheme that integrates hybrid systems, exponential functions, and a PID controller to achieve smooth trajectory transitions of the process variable to the setpoint. The hybrid system enables dynamic resetting of the exponential function parameters, ensuring that even in the presence of discontinuous setpoint changes, the process variable smoothly converges to the new target.
Through both numerical simulations and real-time experiments, it was demonstrated that the proposed approach effectively reduces transient oscillations typically caused by poorly tuned PID controllers. This results in reduced actuator effort and, consequently, energy savings. Notably, the same PID gain values were used for both the classical and hybrid PID controllers, highlighting the improved performance of the proposed method without additional tuning requirements.
It is important to highlight a potential limitation of the proposed hybrid control strategy. Specifically, the method’s performance may be compromised if the decay rate α is selected too aggressively, that is, when the resulting exponential trajectory demands a faster closed-loop response than the original PID controller can stably achieve. In such cases, the hybrid mechanism may impose excessive control effort or even destabilize the system. Therefore, to preserve the stability guaranteed by the original PID controller, it is suggested to select α such that the exponential reference evolves more slowly than the system under the influence of the original PID. This consideration is crucial for practical implementation and underscores the need for careful parameter selection, as explained in more detail in Remarks 2 and 3.
As future work, it is proposed to explore alternative functions to replace the exponential function, providing different trajectory shaping strategies for setpoint tracking. Additionally, extending the approach to other control applications and refining the hybrid switching mechanism could further enhance its adaptability and effectiveness.

Author Contributions

Conceptualization, I.I.L.-P. and J.A.M.-C.; formal analysis, J.C.G.-H., I.I.L.-P., J.O.E.-A. and L.A.P.-C.; investigation, J.O.E.-A., R.T.-H. and J.A.M.-C.; methodology, J.O.E.-A., R.T.-H., L.A.P.-C. and J.A.M.-C.; project administration, J.A.M.-C.; writing—original draft, J.A.M.-C.; writing—review and editing, I.I.L.-P., J.O.E.-A., J.C.G.-H., R.T.-H. and J.A.M.-C. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data is contained within the article.

Acknowledgments

The authors gratefully acknowledge the partial support provided for this research by the Secretaría de Ciencia, Humanidades, Tecnología e Innovación (Secihti) through the SNII (Sistema Nacional de Investigadoras e Investigadores) scholarship and project CBF-2025-I-641. Additionally, the Instituto Politécnico Nacional contributed to this work through research project 20253657, as well as by providing scholarships as part of the programs EDI (Estímulo al Desempeño de los Investigadores), COFAA (Comisión de Operación y Fomento de Actividades Académicas), and BEIFI (Beca de Estímulo Institucional de Formación de Investigadores).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Åström, K.J.; Hägglund, T. PID Controllers: Theory, Design, and Tuning, 2nd ed.; Instrument Society of America: Pittsburgh, PA, USA, 1995; Available online: https://aiecp.files.wordpress.com/2012/07/1-0-1-k-j-astrom-pid-controllers-theory-design-and-tuning-2ed.pdf (accessed on 16 December 2024).
  2. Ziegler, J.G.; Nichols, N.B. Optimum settings for automatic controllers. Trans. ASME 1942, 64, 759–768. [Google Scholar] [CrossRef]
  3. Ang, K.H.; Chong, G.C.Y.; Li, Y. PID Control System Analysis, Design, and Technology. IEEE Trans. Control Syst. Technol. 1942, 13, 559–576. [Google Scholar] [CrossRef]
  4. Moin, H.; Shah, U.H.; Khan, M.J.; Sajid, H. Fine-Tuning Quadcopter Control Parameters via Deep Actor-Critic Learning Framework: An Exploration of Nonlinear Stability Analysis and Intelligent Gain Tuning. IEEE Access 2024, 12, 173462–173474. [Google Scholar] [CrossRef]
  5. Liberzon, D. Switching in Systems and Control; Birkhäuser: Boston, MA, USA, 2003; Available online: https://link.springer.com/book/10.1007/978-1-4612-0017-8 (accessed on 16 December 2024).
  6. Kelly, R.; Santibáñez, V.; Loría, A. Control of Robot Manipulators in Joint Space; Springer: London, UK, 2005; Available online: https://link.springer.com/book/10.1007/b135572 (accessed on 16 December 2024).
  7. Yang, Q.; Chen, G.; Guo, M.; Chen, T.; Luo, L.; Sun, L. Model Predictive Hybrid PID Control and Energy-Saving Performance Analysis of Supercritical Unit. Energies 2024, 17, 6356. [Google Scholar] [CrossRef]
  8. Mohamed Iqbal, M.; Pavithra, C.V.; Nithiyananthan, K.; Yousuff, M. Fuzzy gain Scheduled PID Controller for Power Quality Enhancement in Grid Connected Hybrid Solar PV-PEMFC Energy System. J. Eng. Res. 2023, 11, 146–156. [Google Scholar] [CrossRef]
  9. Mehbodniya, A.; Kumar, P.; Xie, C.; Webber, J.L.; Mamodiya, U.; Halifa, A.; Srinivasulu, C. Hybrid Optimization Approach for Energy Control in Electric Vehicle Controller for Regulation of Three-Phase Induction Motors. Math. Probl. Eng. 2022, 2022, 6096983. [Google Scholar] [CrossRef]
  10. Hosseini, R.; Kumar, P.; Mashayekhi Fard, J.; Soltani, S. Active filter design and synthesis for hybrid neuro-fuzzy and robust PID controllers. Int. J. Dyn. Control 2024, 12, 3873–3883. [Google Scholar] [CrossRef]
  11. Yang, Q.; Zhang, F.; Wang, C. Deterministic Learning-Based Neural PID Control for Nonlinear Robotic Systems. IEEE/CAA J. Autom. Sin. 2024, 11, 1227–1238. [Google Scholar] [CrossRef]
  12. Jasim Mohamed, M.; Oleiwi, B.K.; Azar, A.T.; Mahlous, A.R. Hybrid controller with neural network PID/FOPID operations for two-link rigid robot manipulator based on the zebra optimization algorithm. Front. Robot. AI 2024, 11, 386968. [Google Scholar] [CrossRef] [PubMed]
  13. Meseret, G.M.; Saikia, L.C. Hybrid neuro-fuzzy-based 3DOF-PDN controller for AGC of multi-area interconnected power system incorporated hydrogen aqua electrolyze fuel cell units and unified power flow controller. Electr. Eng. 2024, 1–19. [Google Scholar] [CrossRef]
  14. Demirtaş, M. A Hybrid Algorithm for Adaptive Neuro-controllers. Black Sea J. Eng. Sci. 2023, 6, 87–97. [Google Scholar] [CrossRef]
  15. Celik, O.M.; Deniz, F.N.; Koseoglu, M. Design of Hybrid MPC-PID Controller Based on Fractional Order Model of AMR. IEEE Access 2025, 13, 89556–89569. [Google Scholar] [CrossRef]
  16. Nazir, K.; Kim, Y.-W.; Byun, Y.-C. Predictive PID Control for Automated Guided Vehicles Using Genetic Algorithm and Machine Learning. IEEE Access 2025, 13, 66726–66741. [Google Scholar] [CrossRef]
  17. Kumar, T.R.D.; Mija, S.J. Boundary Logic-Based Hybrid PID-SMC Scheme for a Class of Underactuated Nonlinear Systems-Design and Real-Time Testing. IEEE Trans. Ind. Electron. 2025, 72, 5257–5267. [Google Scholar] [CrossRef]
  18. Yao, Z.; Liang, X.; Wang, S.; Yao, J. Model-Data Hybrid Driven Control of Hydraulic Euler–Lagrange Systems. IEEE/ASME Trans. Mechatron. 2025, 30, 131–143. [Google Scholar] [CrossRef]
  19. Bhookya, J. A New Hybrid MFO-WO Algorithm and Its Application to Design of FOPID/PID Controller for IoT Applications. IEEE Access 2025, 13, 14557–14571. [Google Scholar] [CrossRef]
  20. Beerens, R.; Bisoffi, A.; Zaccarian, L.; Nijmeijer, H.; Heemels, M.; van de Wouw, N. Reset PID Design for Motion Systems With Stribeck Friction. IEEE Trans. Control Syst. Technol. 2022, 30, 294–310. [Google Scholar] [CrossRef]
  21. Control System Toolbox™ User’s Guide; The MathWorks, Inc. Available online: https://www.mathworks.com/help/pdf_doc/control/index.html (accessed on 12 December 2024).
  22. Goebel, R.; Sanfelice, R.G.; Teel, A.R. Hybrid Dynamical Systems: Modeling, Stability, and Robustness; JSTOR; Princeton University Press: Princeton, NJ, USA, 2012; Available online: http://www.jstor.org/stable/j.ctt7s02z (accessed on 12 December 2024).
  23. Meda-Campaña, J.A.; Ancona-Bravo, R.I.; Escobedo-Alva, J.O.; Hernández-Cortés, T.; Tapia-Herrera, R. The Output Regulation Problem for Unmodeled Reference/Disturbance Signals Using High-gain Observers. Int. J. Control Autom. Syst. 2023, 21, 1049–1061. [Google Scholar] [CrossRef]
  24. Meda-Campaña, J.A.; Torres-Cruz, R.E.; Rojas-Ruiz, A.J.; Tapia-Herrera, R.; Hernández-Cortés, T.; Páramo-Carranza, L.A. The Output Regulation and the Kalman Filter as the Signal Generator. IEEE Access 2023, 11, 90825–90838. [Google Scholar] [CrossRef]
  25. Velázquez-Sánchez, R.D.; Escobedo-Alva, J.O.; Peña-García, R.; Tapia-Herrera, R.; Meda-Campaña, J.A. Identification of High-Order Nonlinear Coupled Systems Using a Data-Driven Approach. Appl. Sci. 2024, 14, 3864. [Google Scholar] [CrossRef]
  26. MathWorks. Parrot Minidrones Support from Simulink. 2023. Available online: https://www.mathworks.com/hardware-support/parrot-minidrones.html (accessed on 12 December 2024).
  27. MathWorks. Simulink Support Package for Parrot Minidrones Documentation. 2023. Available online: https://www.mathworks.com/help/supportpkg/parrot/ (accessed on 12 December 2024).
Figure 1. Closed-loop system with a classical PID controller scheme.
Figure 1. Closed-loop system with a classical PID controller scheme.
Applsci 15 07223 g001
Figure 2. Scheme of the closed-loop system with the hybrid PID controller and exponential trajectories for a smooth transition to the setpoint.
Figure 2. Scheme of the closed-loop system with the hybrid PID controller and exponential trajectories for a smooth transition to the setpoint.
Applsci 15 07223 g002
Figure 3. Schematic representation of the robotic arm modeled in MATLAB/Simulink using the Multibody toolbox.
Figure 3. Schematic representation of the robotic arm modeled in MATLAB/Simulink using the Multibody toolbox.
Applsci 15 07223 g003
Figure 4. Behavior of the inner link: red indicates the control scheme shown in Figure 1, and black represents the control scheme shown in Figure 2.
Figure 4. Behavior of the inner link: red indicates the control scheme shown in Figure 1, and black represents the control scheme shown in Figure 2.
Applsci 15 07223 g004
Figure 5. Control signal of the inner link: red indicates the control scheme shown in Figure 1, and black represents the control scheme shown in Figure 2.
Figure 5. Control signal of the inner link: red indicates the control scheme shown in Figure 1, and black represents the control scheme shown in Figure 2.
Applsci 15 07223 g005
Figure 6. Behavior of the outer link: red indicates the control scheme shown in Figure 1, and black represents the control scheme shown in Figure 2.
Figure 6. Behavior of the outer link: red indicates the control scheme shown in Figure 1, and black represents the control scheme shown in Figure 2.
Applsci 15 07223 g006
Figure 7. Control signal of the outer link: red indicates the control scheme shown in Figure 1, and black represents the control scheme shown in Figure 2.
Figure 7. Control signal of the outer link: red indicates the control scheme shown in Figure 1, and black represents the control scheme shown in Figure 2.
Applsci 15 07223 g007
Figure 8. Behavior of the inner link: red indicates the control scheme shown in Figure 1, and black represents the control scheme shown in Figure 2.
Figure 8. Behavior of the inner link: red indicates the control scheme shown in Figure 1, and black represents the control scheme shown in Figure 2.
Applsci 15 07223 g008
Figure 9. Control signal of the inner link: red indicates the control scheme shown in Figure 1, and black represents the control scheme shown in Figure 2.
Figure 9. Control signal of the inner link: red indicates the control scheme shown in Figure 1, and black represents the control scheme shown in Figure 2.
Applsci 15 07223 g009
Figure 10. Behavior of the outer link: red indicates the control scheme shown in Figure 1, and black represents the control scheme shown in Figure 2.
Figure 10. Behavior of the outer link: red indicates the control scheme shown in Figure 1, and black represents the control scheme shown in Figure 2.
Applsci 15 07223 g010
Figure 11. Control signal of the outer link: red indicates the control scheme shown in Figure 1, and black represents the control scheme shown in Figure 2.
Figure 11. Control signal of the outer link: red indicates the control scheme shown in Figure 1, and black represents the control scheme shown in Figure 2.
Applsci 15 07223 g011
Figure 12. Behavior of the hybrid system included in the hybrid PID scheme for the inner link.
Figure 12. Behavior of the hybrid system included in the hybrid PID scheme for the inner link.
Applsci 15 07223 g012
Figure 13. Behavior of the hybrid system included in the hybrid PID scheme for the outer link.
Figure 13. Behavior of the hybrid system included in the hybrid PID scheme for the outer link.
Applsci 15 07223 g013
Figure 14. Schematic of a generic quadcopter [25].
Figure 14. Schematic of a generic quadcopter [25].
Applsci 15 07223 g014
Figure 15. Preview of the VRML environment in the Simulink Support Package for Parrot Minidrones [25].
Figure 15. Preview of the VRML environment in the Simulink Support Package for Parrot Minidrones [25].
Applsci 15 07223 g015
Figure 16. Parrot Rolling Spider.
Figure 16. Parrot Rolling Spider.
Applsci 15 07223 g016
Figure 17. Altitude response of the drone compared to the reference trajectory in different PID control strategies.
Figure 17. Altitude response of the drone compared to the reference trajectory in different PID control strategies.
Applsci 15 07223 g017
Figure 18. Behavior of the rotor input u 1 under the influence of different PID controllers.
Figure 18. Behavior of the rotor input u 1 under the influence of different PID controllers.
Applsci 15 07223 g018
Figure 19. Behavior of the rotor input u 2 under the influence of different PID controllers.
Figure 19. Behavior of the rotor input u 2 under the influence of different PID controllers.
Applsci 15 07223 g019
Figure 20. Behavior of the rotor input u 3 under the influence of different PID controllers.
Figure 20. Behavior of the rotor input u 3 under the influence of different PID controllers.
Applsci 15 07223 g020
Figure 21. Behavior of the rotor input u 4 under the influence of different PID controllers.
Figure 21. Behavior of the rotor input u 4 under the influence of different PID controllers.
Applsci 15 07223 g021
Figure 22. States of the hybrid system and the exponential reference.
Figure 22. States of the hybrid system and the exponential reference.
Applsci 15 07223 g022
Figure 23. Altitude response of the drone compared to the reference trajectory in different PID control strategies.
Figure 23. Altitude response of the drone compared to the reference trajectory in different PID control strategies.
Applsci 15 07223 g023
Figure 24. Behavior of the rotor input u 1 under the influence of different PID controllers.
Figure 24. Behavior of the rotor input u 1 under the influence of different PID controllers.
Applsci 15 07223 g024
Figure 25. Behavior of the rotor input u 2 under the influence of different PID controllers.
Figure 25. Behavior of the rotor input u 2 under the influence of different PID controllers.
Applsci 15 07223 g025
Figure 26. Behavior of the rotor input u 3 under the influence of different PID controllers.
Figure 26. Behavior of the rotor input u 3 under the influence of different PID controllers.
Applsci 15 07223 g026
Figure 27. Behavior of the rotor input u 4 under the influence of different PID controllers.
Figure 27. Behavior of the rotor input u 4 under the influence of different PID controllers.
Applsci 15 07223 g027
Figure 28. Cumulative energy consumption for classical PID and hybrid PID controllers with α = 0.5 , α = 1 , and α = 2 , based on numerical simulation results.
Figure 28. Cumulative energy consumption for classical PID and hybrid PID controllers with α = 0.5 , α = 1 , and α = 2 , based on numerical simulation results.
Applsci 15 07223 g028
Table 1. Relative energy savings of the hybrid PID controller for different values of α .
Table 1. Relative energy savings of the hybrid PID controller for different values of α .
Decay Rate α Relative Energy Savings (%)
0.584.55
1.075.56
2.060.26
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Meda-Campaña, J.A.; Lizardo-Parra, I.I.; García-Hernández, J.C.; Escobedo-Alva, J.O.; Páramo-Carranza, L.A.; Tapia-Herrera, R. Energy-Efficient Hybrid PID Control with Exponential Trajectories for Smooth Setpoint Transitions: Applications in Robotics and Aeronautics. Appl. Sci. 2025, 15, 7223. https://doi.org/10.3390/app15137223

AMA Style

Meda-Campaña JA, Lizardo-Parra II, García-Hernández JC, Escobedo-Alva JO, Páramo-Carranza LA, Tapia-Herrera R. Energy-Efficient Hybrid PID Control with Exponential Trajectories for Smooth Setpoint Transitions: Applications in Robotics and Aeronautics. Applied Sciences. 2025; 15(13):7223. https://doi.org/10.3390/app15137223

Chicago/Turabian Style

Meda-Campaña, Jesús Alberto, Israel Isaías Lizardo-Parra, Juan Carlos García-Hernández, Jonathan Omega Escobedo-Alva, Luis Alberto Páramo-Carranza, and Ricardo Tapia-Herrera. 2025. "Energy-Efficient Hybrid PID Control with Exponential Trajectories for Smooth Setpoint Transitions: Applications in Robotics and Aeronautics" Applied Sciences 15, no. 13: 7223. https://doi.org/10.3390/app15137223

APA Style

Meda-Campaña, J. A., Lizardo-Parra, I. I., García-Hernández, J. C., Escobedo-Alva, J. O., Páramo-Carranza, L. A., & Tapia-Herrera, R. (2025). Energy-Efficient Hybrid PID Control with Exponential Trajectories for Smooth Setpoint Transitions: Applications in Robotics and Aeronautics. Applied Sciences, 15(13), 7223. https://doi.org/10.3390/app15137223

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop