1. Introduction
DC motors constitute one of the most relevant elements in a wide variety of modern electromechanical systems, covering applications ranging from consumer electronic devices to industrial systems, mobile robotics, and aerospace platforms [
1]. Their persistent relevance compared to other technologies, such as AC motors, is mainly due to their intrinsic characteristics, including high starting torque, an approximately linear relationship between speed and voltage, as well as notably straightforward controllability [
2,
3,
4,
5,
6,
7,
8,
9]. These properties make them a particularly attractive alternative in applications where precision, fast response, and simplicity in the implementation of control strategies are required.
In this context, the modeling and dynamic characterization of DC motors are essential for the design of high-performance control systems. The proper identification of dynamic parameters, together with the incorporation of nonlinear phenomena such as Coulomb friction and effects associated with operation under low voltage regimes, allows for significant improvement in the correspondence between the mathematical model and the real behavior of the system [
10,
11]. Such fidelity is critical not only for simulation, but also for the effective implementation of control algorithms in physical environments.
In recent years, multiple approaches have been developed aimed at optimizing the performance of DC motors, highlighting the central role of automatic control strategies [
12,
13]. In particular, speed control has been widely studied, leading to the consolidation of classical techniques such as the proportional integral derivative (PID) controller, as well as the development of intelligent approaches, among which fuzzy logic controllers (FLC) stand out. Several works have proposed improvements over these schemes, including advanced fuzzy control schemes and hybrid PID–FLC configurations with the objective of increasing system robustness and performance [
14,
15].
Several works have proposed improvements to classical PID controllers through intelligent tuning strategies, including genetic algorithms and particle swarm optimization applied to PMDC motor control [
16,
17]. Additionally, hybrid configurations combining fuzzy logic with PID structures have been explored, demonstrating improved stability and reduced overshoot compared to classical implementations [
18]. Beyond these approaches, alternative control strategies such as optimal control, sliding-mode control, and nonlinear hybrid controllers have been widely investigated to enhance robustness and tracking performance under disturbances and parametric uncertainties [
19,
20,
21,
22,
23]. Active disturbance rejection control has also demonstrated strong robustness against load variations and parametric uncertainties in electrical drive speed regulation [
24], while data-driven approaches such as deep reinforcement learning have been applied to permanent magnet motor drives for model-free optimal speed tracking [
25], and intelligent optimization techniques such as fractional order PID tuned via ant colony optimization have been explored specifically for PMDC motor speed control [
26]. However, despite the diversity of control techniques, performance evaluation in most of these studies remains primarily based on classical indicators such as rise time, settling time, steady-state error, and integral error metrics (e.g., IAE, ISE, ITAE), without explicitly considering the kinematic characteristics of the system output.
Despite the abundant existing literature, the predominant reliance on classical transient performance indicators [
27,
28,
29,
30,
31] presents a significant limitation for ensuring robust performance in real-world applications.
In particular, aspects such as motion smoothness and the mechanical effort induced in actuators are not usually explicitly considered. In this sense, the analysis of kinematic profiles, including variables such as velocity, acceleration, and jerk, acquires significant relevance, since it allows for evaluation of the impact of the controller on mechanical wear, vibration generation, and system stability under steady-state conditions [
32,
33,
34]. However, this type of analysis has received limited attention in the literature, highlighting a gap in the comprehensive understanding of controller performance in real-world scenarios.
In response to this limitation, this work presents an experimental comparative analysis of different control strategies applied to a permanent magnet DC (PMDC) motor integrated in an educational rover designed for exploration of uneven terrain. Three widely studied control approaches are evaluated: a classical PID controller, an analytically compensated PID designed through discrete pole placement, and a fuzzy logic controller optimized according to the speed tracking and error requirements of the system. Consistent with the evaluation methodologies commonly reported in the state of the art, the proposed controllers are first assessed using conventional transient response metrics, including overshoot, steady-state error, and settling time, as these criteria remain standard references for determining control strategy effectiveness. Beyond these traditional indicators, however, the work incorporates an additional analysis dimension based on kinematic behavior, encompassing velocity, acceleration, and jerk profiles. The objective is not to replace classical evaluation criteria, but to complement them through a broader characterization of controller performance on a real robotic platform subject to realistic operating conditions.
2. Experimental Platform and Embedded Control System
PRAXIA is a mobile robotic platform configured as a rover with six wheels, developed by the Research Group on Interaction, Robotics and Automation (GIIRA) at Universidad Politécnica Salesiana (Cuenca, Ecuador). The platform was conceived as an educational experimental platform for applications in terrestrial environmental monitoring, precision agriculture support, industrial safety, and additive manufacturing process validation. To this end, it integrates a sensor network capable of measuring temperature, relative humidity, vapor and gas concentration, ambient light intensity, and ultraviolet radiation.
The chassis incorporates a passive rocker bogie suspension system, which distributes the platform weight evenly across the six drive units and ensures continuous wheel contact with the ground on uneven terrain. The measured dimensions of the rover are presented in
Figure 1.
The software architecture is implemented on the Robot Operating System (ROS) ecosystem, structured as a set of distributed nodes communicating through publish and subscribe mechanisms. Advanced processing tasks, including teleoperation, telemetry management, and visual perception via a depth camera, are handled by an NVIDIA Jetson Nano module.
The navigational capability of the platform on unstructured terrain was assessed through experimental trials across multiple surface types, as illustrated in
Figure 2. Traction limitations were identified on loosely compacted sandy terrain, attributed to the reduced substrate adhesion.
Individual wheel speed control is therefore essential for autonomous navigation, requiring controllers that achieve fast reference tracking, minimal overshoot, and convergent steady-state error.
Each wheel is independently driven by an actuation unit consisting of a PMDC motor and a mechanical support structure. The observable variable of the system is the actuator angular velocity
, while the control input corresponds to the armature voltage
V. Both parameters are managed entirely within an Arduino RP2040 Nano Connect microcontroller that executes the digital control loop, as illustrated in the general operation scheme in
Figure 3.
This angular velocity is estimated from the encoder pulse count within the sampling period
. By defining
as the number of detected pulses and
as the encoder resolution in pulses per revolution, the velocity calculation is computed according to Equation (
1):
For the experimental setup, the encoder operates with a resolution of
pulses per revolution. Angular velocity was estimated using the frequency measurement method, in which encoder pulses are accumulated over the fixed sampling interval
. This approach was selected because of its simplicity, low computational cost, and direct compatibility with the fixed rate discrete control architecture adopted in this work. Although period-based techniques can improve velocity resolution, particularly at low-speeds, they generate measurements at a variable update rate that must subsequently be synchronized with the controller execution cycle and may become more sensitive to timing jitter and other measurement nonidealities at high pulse rates. Given the high pulse density provided by the encoder, the fixed window approach was considered a suitable compromise between implementation simplicity and measurement resolution [
35].
It should be noted that on the PRAXIA platform, measurement jitter could be largely eliminated by precisely measuring the intervals between encoder pulses using the RP2040 hardware interrupts, which provide sub-microsecond timing resolution. However, the fixed-window approach was deliberately retained to evaluate controller behavior under the sensing constraints typical of lower-capability embedded platforms, where interrupt-based period measurement is not always feasible.
With and , the resulting quantization step is rad/s.
Figure 4 illustrates the implementation architecture within the microcontroller, including the execution sequence driven by a timer and the integration of the three evaluated control strategies. This structure ensures homogeneous operating conditions, thereby eliminating potential biases and enabling the intrinsic behavior of each strategy to be evaluated under identical hardware constraints.
The actuation unit under study is part of the robot’s traction system. It consists of a PMDC motor and a mechanical support structure, as illustrated in
Figure 5. Two mechanical interactions are critical for modeling: the direct plate coupling between the motor shaft and the wheel axle, and the bearing assembly responsible for distributing forces between them.
2.1. System Modeling and Identification
These interactions are jointly represented in the electromechanical model shown in
Figure 6, where
R and
L denote the armature resistance and inductance, respectively;
, the electromagnetic torque;
and
, the motor and wheel inertias; and
and
, the viscous friction coefficients of each component.
To reduce the parametric complexity of the model, the inertial and dissipative contributions of the motor and the wheel are merged into the equivalent system parameters given by (
2). This simplification is valid, assuming a rigid coupling between the motor shaft and the wheel.
where
J represents the total moment of inertia of the system and
the equivalent viscous friction coefficient.
From the electrical and mechanical equations of the DC motor, the second-order state-space model presented in (
3) is directly obtained. The state vector is defined as
(where
and
) while
represents the control input and
K denotes the motor’s electromechanical constant.
The dynamic behavior of the system is determined by the eigenvalues of the state matrix, obtained from the characteristic polynomial associated with (
3). Experimental observations of the motor show that the system operates in an overdamped regime, under which these roots are real and negative, as expressed in (
4).
The experimental characterization reveals a marked separation of time scales between the two eigenvalues, as expressed in (
5).
Therefore,
governs the
settling time, denoted as
, according to (
6).
2.2. Parametric Identification
For parameter estimation, a structural approach based on physical measurements at various steady-state operating levels is adopted, in contrast to the black-box methods provided by the MATLAB R2024b system identification toolbox, which serves here as a validation reference. This approach allows
K to be estimated through a least squares fit over the experimental dataset, resulting in:
where
I denotes the current at steady state. Once
K is computed, the viscous friction coefficient is obtained as:
Finally, the equivalent moment of inertia is obtained by substituting
from (
6) into the following expression:
This procedure obtains, in a systematic way and without additional instrumentation, the parameters that cannot be directly measured from the system. The parameterization was carried out over the six actuators of the robot, obtaining consistent results with small variations.
Table 1 summarizes the nominal values and the observed statistical dispersion.
2.3. Discretization and Transfer Function
From the mean values obtained in the parametric identification, the dominant eigenvalue of the actuators is , corresponding to a time constant and a settling time of approximately . The selected sampling frequency provides approximately 5 samples per time constant and 20 samples over the full transient response. The corresponding sampling period is . Although a higher sampling rate would increase the number of samples per time constant, the fixed-window velocity estimation method constrains this choice: the quantization step is inversely proportional to , so halving the sampling period would double the measurement noise injected into the control loop, which is particularly detrimental at the low reference speeds considered in this work.
For the implementation of the digital controller, the continuous state-space model is discretized using zero order hold (ZOH) with sampling period
, yielding the discrete system:
where
,
represents the continuous angular velocity of the actuator, and
and
denote the discrete state and input matrices, respectively.
From the eigenvalues
and
of the continuous state matrix, the discrete matrices
and
are, in principle, obtained exactly through the matrix exponential. However, since
, the discrete contribution of the fast pole satisfies
under the selected sampling period, This condition allows the simplification of the matrix exponential in discretization Equations (
11) and (
12) without compromising dynamic fidelity, as demonstrated through simulation.
Furthermore, for controller design via pole placement, it is advantageous to express the model in transfer function form within the
z domain, defined as:
Since
, the denominator factorizes as:
which reveals the presence of a pole at the origin. The transfer function then takes the structural form (
15).
2.4. Model Validation
Figure 7 compares the proposed physical model against the numerical identification results from MATLAB R2024b. While the numerical approach yields a lower transient error, the physical model more accurately captures the steady-state behavior, justifying its use in controller design.
2.5. Encoder Quantization Model
From the estimated continuous velocity
, the equivalent number of encoder increments is computed as:
Since
is generally non-integer, the quantized increment count
is obtained by rounding to the nearest integer:
where, in the boundary case
, a randomized rounding rule is applied with equal probability for both outcomes, so as to avoid systematic bias in the quantization error. The quantized velocity delivered to the controller at each sampling instant is then recovered as:
4. Design and Parametric Optimization of a Fuzzy Controller
The fuzzy controller is developed as an alternative to the PID controller, with the objective of evaluating its performance under the same operating conditions, particularly in the presence of disturbances, nonlinearities, and variations in the system dynamics. Unlike the conventional approach, fuzzy control is based on heuristic knowledge, represented through linguistic rules that describe the desired system behavior, whose gains are parametrically optimized to minimize the tracking error based on the obtained model.
The implemented architecture is shown in
Figure 10. This structure integrates the computation of the speed error and its derivative with the fuzzy inference system, generating a control variation signal
applied to the actuator. The inclusion of the error derivative as an input variable allows the controller to anticipate the dynamic trend of the system, acting in a preventive manner in the presence of imminent changes in speed before the error propagates. In turn, the incremental variation action at the output implicitly introduces an integrating effect in the control signal applied to the actuator, which contributes to reducing the error at steady state.
4.1. Input Variables, Universe of Discourse, and Membership Functions
The design of the universe of discourse is based on the physical limitations of the implemented discrete system. As established in
Section 2, the minimum resolution of the speed measurement from the encoder on the RP2040 microcontroller is
. This value defines the boundary of the system deadband: speed errors below this threshold must be considered as an acceptable region, since they lie within the measurement quantization noise. Consequently, the minimum significant error limit is established, and analogously, the error derivative exhibits the same effective resolution limit,
, since it is computed as the difference between consecutive measurements subject to the same quantization.
The membership functions for the input and output variables are illustrated in
Figure 11. The inputs
e and
are classified into seven categories, NG, NM, NP, Z, PP, PM, and PG; analogously, the output
is classified into VH, MH, H, M, L, ML, and VL, in order to satisfy the system requirements: fast response and minimal overshoot, within the voltage saturation limits of the actuator.
4.2. Inference Rules
The inference rule base, shown in
Table 4, was defined according to the specific requirements of the system. An inference mechanism of the Mamdani type was employed, with defuzzification using the centroid method.
The design procedure, which includes the selection of input variables, membership functions, their corresponding ranges, and the rule base, was based on configurations reported in previous studies [
14,
15,
27,
28,
29]. These configurations were adapted to the specific conditions of the system.
Additionally, the type of membership functions was selected considering the feasibility of implementation on a microcontroller operating at a control frequency of 100 Hz.
4.3. Parameterization and Optimization of the Fuzzy Controller
Unlike the PID controller, the fuzzy controller does not have an analytical method that guarantees the effectiveness of the rule base or the membership functions. Therefore, the normalization gains (
,
,
) were tuned via differential evolution, minimizing a composite cost function that jointly penalizes the three performance criteria identified in the literature review: tracking error, response speed, and overshoot:
where
is the rise time (
–
) and
is the percentage overshoot. The search ranges were determined from values reported in the literature. The optimizer was configured with a population size of
, a convergence tolerance of
, and a fixed seed to ensure reproducibility of the results. The obtained gains are presented in
Table 5.
The weighting coefficients were selected so that each term contributes comparably to at the expected operating point, preventing any single criterion from dominating the search. This formulation mirrors the design philosophy applied to the PID strategies, ensuring that all three controllers are optimized under equivalent objectives.
6. Experimental Results and Controller Comparison
6.1. Experimental Design
The three control strategies were implemented on an RP2040 microcontroller. Experimental validation was performed using two actuators whose parameters closely match the nominal values in
Table 1, as identified by our parametric sensitivity analysis. Tests were divided into two scenarios: unperturbed operation (no external load) and operation under induced mechanical disturbances.
In the unperturbed scenario, we evaluated six reference speeds ranging from 3 to 60 RPM, with emphasis on the low-speed range, where encoder quantization and measurement resolution effects are most prominent. For the disturbed scenario, we restricted the range to 3–20 RPM. This limitation was twofold: first, to mitigate mechanical wear and thermal stress caused by prolonged loading; and second, to account for the disturbance generator’s physical constraints, as its influence on actuator dynamics diminishes at higher speeds.
To ensure statistical validity, we conducted 20 repetitions per speed and controller for the scenario without perturbation (360 total experiments) and 10 for the scenario with disturbance (120 total). Finally, we assessed the performance at steady state using the RMS-J metric (Equation (
28)). For each case, we calculated the sample mean and standard deviation of the RMS-J values across repetitions to quantify both the average kinematic smoothness and the variability from trial to trial.
6.2. Disturbance Signal
Controlled disturbances were introduced using a second motor with characteristics identical to those of the actuator under study. This motor was mechanically coupled to the shaft and operated in active braking mode, thereby generating a tangential force on the wheel and, consequently, a variable disturbance torque. The disturbance torque acting on the system can therefore be expressed as
where
r denotes the wheel radius, equal to 16 cm. This term can be included in the motor mechanical equation as
where
represents the external disturbance torque applied to emulate variable operating conditions on the wheel. The disturbance magnitude was varied by modulating the voltage applied to the load motor, sweeping from
to
of the nominal voltage.
The second evaluation scenario introduces controlled disturbances with the objective of characterizing the performance of each strategy under nonlinearities and variable load conditions, emulating representative operating scenarios in real environments. The disturbance magnitude was adjusted by varying the voltage applied to the load motor between
and
of the nominal value, yielding the signal shown in
Figure 13.
The signal exhibits a dominant frequency of Hz and a 95% power bandwidth of Hz, which concentrates practically all of the disturbance energy below 5 Hz. This slow spectral content lies well within the sampling bandwidth and the disturbance rejection capability of the evaluated controllers, ensuring that the disturbance is fully resolved without exciting high-frequency dynamics that are unmodeled. In addition, its amplitude distribution can be adjusted to avoid excessive loading of the actuator.
6.3. Unloaded Operation Results
The quantification of the jerk depends directly on the length of the window used by the Savitzky–Golay filter. Shorter windows preserve a larger portion of the content at high-frequency, whereas wider windows introduce a progressively stronger smoothing effect that attenuates rapid signal variations. As a result, the selection of this parameter can significantly influence the absolute magnitude of the estimated jerk and must therefore be carefully analyzed before comparing different controllers.
To obtain a consistent comparison, the analysis was restricted to the regime of steady-state. This decision is motivated by the fact that the evaluated controllers exhibit different convergence rates during the transient response, a characteristic that is inherently related to their design objectives and does not necessarily represent undesirable behavior. Since the tests employ step references, an analysis focused on the transient region would be dominated primarily by the response speed of each control strategy. In contrast, the steady-state regime allows the residual fluctuations of the system to be evaluated once the reference has been reached, providing a more representative measure of the mechanical smoothness associated with each controller.
Figure 14 shows the evolution of the steady-state RMS-J as a function of the SG filter window length. Each point corresponds to the mean value obtained across all analyzed reference speeds, while the shaded regions represent the dispersion observed among experimental repetitions.
As expected, the RMS-J decreases systematically as the window length is increased. This behavior results from the progressive removal of components at high-frequency from the velocity signal, causing the estimated second derivative to approach lower values. For window lengths close to the minimum admissible value of the filter ( ms), the effects of encoder quantization and measurement noise remain clearly observable.
The most relevant result, however, is that the relative differences among controllers persist even under substantial smoothing. As the window length increases, the jerk values of all three controllers gradually converge toward zero. Nevertheless, the fuzzy controller consistently exhibits higher RMS-J values than both the classical PID and the compensated PID. This tendency remains visible throughout the entire range of analyzed window lengths, including those for which the smoothing effect becomes dominant. Similarly, the compensated PID maintains RMS-J values slightly higher than those of the classical PID, although with a considerably smaller difference than that observed for the fuzzy controller.
The relationship between RMS-J and reference speed was subsequently evaluated using the selected window length. The corresponding results are shown in
Figure 15.
6.4. Kinematic Results Under Disturbance Conditions
Figure 16 shows the evolution of the steady-state RMS jerk under mechanical disturbance conditions for different window lengths. For short windows (below approximately
), the compensated PID and fuzzy controllers replicate the relative ordering observed in the unperturbed case, with the fuzzy controller presenting slightly higher RMS jerk than the compensated PID. At these scales, the contribution of encoder quantization variability is predominant. As the window length increases toward the crossing region (approximately 130–
), the three curves converge and interchange their relative positions. Beyond this region, as the encoder noise contribution diminishes, a clearer ordering emerges: the fuzzy controller exhibits the lowest RMS jerk, followed by the compensated PID, while the classical PID presents the largest residual fluctuations across all larger window sizes.
This behavior suggests that each control strategy responds differently to disturbances depending on the temporal scale of analysis. For short windows, the fuzzy controller and the compensated PID replicate the same relative ordering observed in the unloaded case, indicating that the load does not fundamentally alter their high-frequency corrective behavior. The classical PID, conversely, presents the highest RMS jerk values across all window sizes, suggesting a consistently higher level of residual oscillation regardless of the analysis scale.
As the window length increases and the estimated jerk becomes progressively dominated by low-frequency components, the separation among the controllers becomes more pronounced. Under these conditions, the fuzzy controller exhibits the lowest residual fluctuations, followed by the compensated PID, while the classical PID presents the largest sustained deviations. This ordering suggests that both the fuzzy strategy and the compensated PID are more effective at attenuating the low-frequency disturbances introduced by the mechanical load, whereas the classical PID lacks sufficient corrective authority to suppress them.
These results also highlight an important limitation of RMS jerk as a comparative metric under disturbance conditions. Whereas jerk was primarily associated with mechanical smoothness in the unloaded scenario, the presence of external disturbances causes the metric to capture both the dynamics of disturbance rejection and the corrective action of the controller activity. Consequently, a lower RMS jerk does not necessarily imply superior tracking performance.
For this reason, a complementary metric based on the tracking error accumulated at steady state was incorporated.
Figure 17 presents the normalized IAE obtained for each reference speed. Normalization was introduced to enable direct comparison across operating points, since the absolute value of the IAE naturally increases with the reference speed magnitude.
8. Conclusions
This study experimentally compared three strategies for speed control in a PMDC rover actuator implemented on an RP2040 microcontroller: a classical PID, a compensated PID, and a Mamdani fuzzy controller. Across all operating conditions, statistically significant differences were observed in both conventional tracking metrics and kinematic indicators, demonstrating that controller selection strongly influences not only tracking accuracy but also the kinematic loading profile of the actuator, with potential implications for mechanical wear.
8.1. Main Technical Findings
The results reveal that controller performance depends strongly on operating conditions. Under nominal conditions, the classical PID produced the smoothest motion, achieving a mean jerk RMS less than half that of the fuzzy controller, which exceeded the classical PID by 109.23% and the compensated PID by 69.5% across all evaluated speeds. Under mechanical disturbance, however, the performance hierarchy inverted substantially: the fuzzy controller reduced jerk RMS and normalized IAE by 44% and 61%, respectively, relative to the classical PID, while the compensated PID provided reductions of 38% and 58%. These findings indicate that a controller optimized for kinematic smoothness under nominal operation is not necessarily the most effective strategy when sustained disturbances are present.
8.2. Principal Contribution
The principal and novel contribution of this work is threefold. First, a jerk-based kinematic evaluation framework is proposed and validated experimentally for embedded speed controllers operating under quantized encoder measurements, including a principled Savitzky–Golay filter selection methodology. Second, it is demonstrated that the kinematic performance hierarchy undergoes a complete inversion between nominal and disturbed conditions—a reversal statistically confirmed across repeated trials and multiple operating speeds, and entirely invisible under classical transient metrics such as rise time, settling time, and integral error. Third, the engineering significance of this inversion is established: the controller producing the smoothest kinematic profile under nominal operation simultaneously generates the highest mechanical loading under variable loads, with potential implications for actuator durability, consistent with established jerk fatigue relationships in the literature [
37].
8.3. Engineering Recommendations
From an engineering perspective, the results suggest that the classical PID remains an attractive solution for applications operating predominantly under nominal conditions, whereas the fuzzy and compensated PID controllers provide superior robustness when disturbance rejection is required. Consequently, kinematic indicators should be considered alongside traditional control metrics when selecting controllers for electromechanical systems subject to variable loading.
8.4. Limitations
The conclusions of this study are restricted to step-reference tracking and the controlled disturbance profiles evaluated in the experimental platform. Furthermore, the analysis focuses on actuator kinematics and does not include direct vibration measurements or long-term wear characterization. Consequently, the observed relationships between jerk and potential mechanical degradation should be interpreted as indirect indicators supported by the existing literature rather than direct measurements. Finally, the fixed-window velocity estimation introduces jitter that, although reducible via interrupt-based period measurement on the RP2040, was deliberately retained to reflect the sensing constraints of less capable microcontrollers.
8.5. Future Work
Future work should address two open research directions. First, the present study deliberately employs step references and controlled braking disturbances as a methodologically controlled baseline to isolate the effect of each control strategy on the kinematic response. While this choice enables clean comparative analysis, extending the evaluation framework to ramp references and terrain-induced disturbances such as those arising from obstacle negotiation or surface transitions on the PRAXIA rover would broaden the applicability of the proposed methodology to more realistic operational scenarios and strengthen its practical relevance for autonomous navigation applications. Second, evaluating hybrid strategies for speed measurement, such as methods that mix frequency and period, could further reduce the constraint on quantization imposed by the fixed-window approach adopted here.