Hybrid Fuzzy-PID Controller for Enhanced Trajectory Accuracy in Differential Drive Mobile Robots
International Journal of Robotics and Control Systems Vol. 6 No. 1 (2026) 556-576
Abstract
Mobile robot navigation requires precise base controllers to achieve accurate trajectory tracking. Differential drives commonly suffer from odometry errors caused by wheel slippage, encoder noise, and motor control inaccuracies, leading to cumulative positioning errors. This paper presents a hybrid Fuzzy-PID controller that dynamically optimizes PID gains based on trajectory error and error rate to improve tracking accuracy. The research contribution is the development of an adaptive gain-scheduling mechanism using fuzzy inference to automatically tune PID parameters (Kp, Ki, Kd) in real-time, reducing the need for manual calibration. The fuzzy logic controller employs a 7×7 Mamdani-type rule base with triangular membership functions, taking position error and error derivative as inputs and outputting optimized gain adjustments. The system was validated through both simulation (MATLAB/Simulink) and hardware experiments using a custom differential drive robot with incremental encoders and DC motors. Experimental results demonstrate that the hybrid Fuzzy-PID controller reduces average trajectory error by 43.7% compared to conventional PID (from 12.8 cm to 7.2 cm in circular path tracking), improves settling time by 31%, and achieves 89.4%reduction in steady-state error. The controller maintains stability across varying speeds (0.1-0.5 m/s) and different trajectory shapes (straight, circular). The proposed hybrid approach significantly enhances trajectory tracking accuracy while maintaining computational efficiency suitable for real-time embedded implementation.
1.Introduction
Autonomous mobile robots [1] are now used widely in warehouse logistics, hospital service systems, indoor delivery, industrial automation, and even household assistance [2]. As the need for intelligent service robots increases, the most important requirement becomes accurate and reliable navigation in different and sometimes unpredictable environments. A mobile robot must follow the desired path, maintain stability, and avoid obstacles even when affected by noise or disturbances [3], [4]. Therefore, developing a robust control system has become essential for ensuring practical and real-life deployment of autonomous robots.
Differential–drive robots are very popular because of their simple mechanical structure, low cost, and easy control implementation [5]–[7]. The robot steers by adjusting the velocities of the left and right wheels independently. However, this mechanism is highly sensitive to odometry errors caused by wheel slip, uneven floor surfaces, encoder quantization, and environmental conditions [8], [9]. Additional errors may also arise from motor noise [10], microcontroller signal variations, over-current or over-voltage [11], [12], dust, temperature drift, and mechanical wear. These disturbances accumulate over time, resulting in significant position drift and degraded navigation accuracy. Thus, overcoming odometry inaccuracy remains a major challenge in differential-drive robots.
PID control is one of the earliest and most widely used methods for mobile robot navigation due to its simplicity and real-time capability [13], [14]. The proportional term stabilizes immediate error, the integral term reduces long-term drift [15], [16], and the derivative term anticipates future changes to smooth wheel motion. Classical works such as Kanayama’s feedback controller [17], [18], Dubins-path controllers, Lyapunov-based controllers, and other geometric control strategies have demonstrated effective trajectory tracking. However, traditional PID controllers still struggle with non-linear robot dynamics, time-varying disturbances, and parameter sensitivity [19], [20]. Fixed gains, tuned manually, often fail under changing loads or different trajectories. The tuning process itself is time-consuming and requires expert knowledge.
Fuzzy Logic Controllers (FLC) have been widely explored as an alternative or complementary approach [13]. FLC mimics human reasoning by interpreting uncertain sensor readings using linguistic variables such as “small,” “medium,” and “large,” and applying rule-based decision making [21], [22]. Fuzzy logic can handle non-linearities and does not require an exact mathematical model of the robot. These advantages make FLC attractive for uncertain or dynamic environments. However, fuzzy rule design is often subjective and heavily depends on expert intuition. Moreover, computational overhead increases with more rules and membership functions, which can be problematic for real-time embedded systems.
Because PID provides accurate error correction and FLC provides adaptability, many studies have proposed hybrid or fuzzy-PID controllers [23]–[25]. These methods aim to combine the strengths of both approaches [26], [27]. Prior work includes fuzzy tuning of PID gains, parallel fuzzy-PID structures [28], and neuro-fuzzy approaches [29], [30]. FLC has been used to guide PID gain selection to improve stability [21], [31]. Several researchers have reported improvements in trajectory tracking, such as the fuzzy-PID controller proposed by Lee et al. [9], vision-assisted fuzzy-PID controller by Saidi et al. [32], and fuzzy adaptive PID for Mecanum robots by Cao et al. [33]. However, many of these studies still have important limitations.
Despite the variety of fuzzy-PID methods available, three major research gaps continue to exist in the literature. First, most fuzzy rule bases are designed through trial-and-error rather than a systematic methodology. The relationship between kinematic error behavior and fuzzy gain adjustment remains unclear, and the design of membership functions lacks reproducibility [21], [34]. Second, many studies rely only on simulations with limited or incomplete hardware testing [35], [36]. Real-world errors such as wheel slip and noise are rarely analyzed quantitatively, and statistical validation across multiple trials is generally missing [37]. Third, comparisons with conventional PID are often unfair because the baseline PID is not fully optimized. Advanced tuning methods such as GA or PSO can optimize PID gains offline [38]–[40], but these algorithms are computationally expensive and cannot adapt in real-time during robot operation.
To address these issues, this paper introduces a novel Hybrid Fuzzy–PID controller designed specifically for differential-drive mobile robots. The proposed method uses a systematic fuzzy rule base derived from the kinematic error dynamics of the robot. Instead of heuristic design, each rule is linked mathematically to the behavior of trajectory error and its rate of change. The fuzzy inference mechanism adjusts , , and adaptively based on real-time error characteristics, giving strong corrections when the robot deviates and gentle responses near the target. This makes the controller more stable and responsive, especially for curved path tracking.
The proposed controller is evaluated through a comprehensive set of MATLAB simulations and real-world experiments. Two levels of analysis are performed: (1) actuator-level fuzzy control of motor speed, and (2) trajectory-level tracking for straight and circular paths. The Hybrid Fuzzy–PID improves average error by 43.7%, reduces steady-state error by 89.4%, and shortens settling time by 31.2% compared with an optimally tuned conventional PID. Real-world experiments confirm that the robot closely follows a 1-m circular path with only 6–8 cm deviation, even in the presence of wheel slip and sensor noise. These findings show that adaptive fuzzy gain scheduling significantly enhances trajectory accuracy and stability in practical environments.
Overall, this work provides a systematic rule-based fuzzy-PID design, complete controller disclosure, detailed simulation analysis, and hardware validation. The results demonstrate the suitability of the proposed method for improving mobile robot navigation in real-world scenarios.
2.Method
Mobile robots are essential in various sectors, including industry, medicine, military, and household services [32], [33]. Their ability to navigate obstacles is crucial in robotic research, with a focus on motion control. The design approach for mobile platforms involves platform design [41], electric motor sizing, control algorithm development, modelling, and verification. The complexity of mobile robots is heightened by constantly changing operational settings, surrounding environments, and road conditions, making verification a critical step in their design.
The robot’s structural components include encoder motors for precise motion, motor drivers for control, and Arduino, as shown in Fig. 1, A block diagram is used to show how various elements relate to one another and illustrates the complete approach required for flexible and seamless integration in complicated contexts. Error signals are converted into fuzzy language variables using fuzzy logic, and a PID controller computes a control output depending on the error and its derivatives. Motor drivers and circuits are prompted to carry out the required movements via defuzzification, which transforms the imprecise output into exact numerical values.
2.1.System Architecture and Kinematic Model Design of the Differential Drive Mobile Robot
Differential drive configuration is widely used in mobile robot bases [42]. With this drive system, the robot’s movement can be described by its linear and rotational velocities, which are derived from the rotational velocities of its left and right wheels. These are the basic governing equations for the robot’s motion [43]–[45] shown in Fig. 2.
In a differential-drive mobile robot, as depicted in Fig.2(a), the robot features two wheels aligned along the same axis. The number of wheels for a robot depends on the application and requirements. In normal configuration, each wheel is connected to separate motors [46], [47]. This allows the robot to control robot’s movement. To describe this configuration it can define the velocity of the left wheel as and the velocity of the right wheel as and l representing the distance between the two wheels of the robot base.
Robots’ movements typically depend on the velocity of each wheel and which is responsible for the linear and angular velocity of the base of the robot. Refer to Fig. 3(a) the robot’s linear velocity and angular velocity can be derived as functions of the individual wheel velocities. The relationship of robot motion with the velocity of each wheel can be described mathematically as follows:
The equation describes the working procedure of the differential drive base controller. Information about robot motion dynamics can be extracted from this equation.
Fig. 3(b) depicts the kinematics model for a mobile robot with a differential drive setup. With this figure robots potion in 2D space can be easily explained. In the 2D coordinates plane (X-Y plane) robot’s position at a certain time is indicated by and , also robot’s orientation can be expressed by [43].In terms of linear motion and components provide information on the X and Y axis. represents the rotational value of the robot base. Now the velocity vector can expressed by the following equations:
Where
This expression denotes the robot’s acceleration rate and kinematics change over the time period. The kinematic model of different drive robot may be described as follows:
Here, and represent the linear and angular velocities of the robot, which dictate its translational and rotational movements in the environment.
The location (, ) and spin of the robot may be used to illustrate how its state has changed continuously as an indicator of its kinematics. The robot changes its position along with the period. By incorporating the robot’s present mobility across a short duration , one may calculate its future location and orientation. It can simply stated by the following equations:
In this equation, the robot’s linear velocity is denoted as v, and angular velocity is denoted as ω. A differential drive robot chassis has been shown in Fig. 2(a), that uses two wheels. and are indicated by a line arrow in the figure. The forward and rotational value of the robot base will be defined by the kinematic change of the robot’s wheels. To get proper information about the robot kinematics model it is necessary to comprehend how odometry errors are introduced during motion planning and track following. Variation of wheel rotation may lead to the introduction of odometry errors.
2.1.1.Problem Description
Accurate steering in portable robots with no introducing odometry failures remains a significant challenge. However error-free odometry is necessary for better navigation. This accuracy is crucial to guarantee that each wheel rotates precisely in line with the control inputs transmitted by the controller. As seen in Fig. 4(a), in this instance, the Instantaneous Center of Curvature (ICC) is a crucial concept for understanding the robot’s motion and trajectory [48]. To reduce errors in wheel odometry it is necessary to account distance between robot wheels and the velocity of each wheel and this can be achieved from ICC through the following equation:
In this equation, and represent the velocities of the left and right wheels respectively. The gap between the left and right wheels is represented by d here. This is mentioned that the turning radius R is affected by the relative velocities of each wheel. The value of R will be infinite robot moves straight, this means that = . On the other hand, the robot follows a curved course with a defined turning radius when the velocities diverge (,). The robot’s acceleration and velocity both vary with the turning radius.
Assume that, the robot’s current position is A with coordinates of (, , ) at time t, now the robot moves to another new position B with coordinates of (, , )at time t + , then the ICC can be automatically calculated by the following equation.
With the help of ICC and the rotational velocity ω, the robot’s next position described as (, , ) may found through this equation below:
In this equation, represents the robot’s forward velocity during movement. and is the rotation angle of the initial and final position of the robot. The total distance traveled, s, and the rotation angle, ψ, during the movement from point A to point B can be expressed as:
Through these equations, the linear and rotational velocity of the robot’s wheels ( , ) and also forward velocity can dynamically calculate when the robot follows a trajectory. If the actual velocity of each wheel deviates from the ideal velocity, errors may occur. These errors, represented by and , can impact the robot’s ability to follow the desired path.
Fig. 4(b) illustrates a scenario where the robot starts at point A and is supposed to follow a curved path towards point under ideal conditions. However, due to tracking errors, the robot may instead arrive at point . Extensive research has been conducted to minimize these tracking errors, which are often exacerbated by small turning radii and high-speed movement.
2.2.PID Controller
One of the most important components of the feedback loop in industrial control systems is the proportional-integral-derivative (PID) controller, as shown in Fig. 5 The data collected is compared with a pre-calculated reference value [49], [50]. For the purpose of directing the system in the direction of the reference value that is wanted, it computes a new input value based on the difference. This is accomplished by dynamically adjusting the input signal while accounting for both historical data and the difference’s rate of transition.
The PID method involves a total of three components proportional, integral, and derivative. In this process proportion controller works to reduce steady-state faults to help to enhance controller accuracy. integral controller also worked for the same but it accelerates convergence and eliminates steady-state error [51]. The derivation controller improves the system’s settlement duration and durability. The following formula provides an algebraic model of a typical PID controller transfer function:
In this case, stands for the proportional benefit for the integral benefit, and for the derivative benefit. It also acts as a low pass filter. By acting as a low-pass filter, the term efficiently reduces the amount of loud noise in the network.
2.3.Design of Hybrid Fuzzy PID Controller
Using a PID controller and fuzzy logic, the Hybrid control theory is shown graphically in Fig. 6 An adjustable fuzzy PID control system is shown in the schematic representation of the system. Both the present difference in deviations and the difference between the goal and feedback errors are used to operate this control system [52], [53].
To achieve accurate route tracking, the variable directing the actuator’s operation is the two-dimensional fuzzy controller output [22] [54]. An important part of managing a steering system is the control algorithm, and the focus of this study is on using a Hybrid Fuzzy PID control system to steer tractors. Fuzzy controller computations allow the parameters (Proportional gain), (Integral gain), and (Derivative gain) to be fine-tuned in real-time. Adjusting the PID settings is the next step after applying these customized values.
In Part 1 of the algorithm, the robot’s motion is computed directly from the standard kinematic equations, where the linear and angular velocities are obtained from the left and right wheel speeds. These velocities are then used to update the robot’s pose at every sampling step. Because the pose is estimated from real wheel encoder feedback, any mismatch between the desired and actual motion immediately appears as position and orientation errors. This makes the error representation more realistic and very close to the physical behavior of the robot. In Part 2, these errors are fed into the fuzzy supervisor, which evaluates the size and trend of the kinematic deviation. Instead of keeping fixed PID gains, the fuzzy system adjusts the proportional, integral, and derivative terms online so the controller can react differently when the robot is near an obstacle, drifting from path, or moving straight. As a result, the hybrid controller responds faster to increasing errors and becomes smoother when the robot approaches a stable region. This fusion improves both wheel-level control accuracy and overall navigation performance.
2.3.1.Controller Architecture and Specification
The hybrid controller in this study follows a gain scheduling architecture in which the fuzzy logic controller (FLC) [55] continuously adjusts the PID gains according to the robot’s real-time tracking behaviour [56]. In every control cycle, running at 50 Hz, the system computes the position error and the corresponding error rate . These two values act as the main indicators of how well the robot is following its intended trajectory. After that, both quantities are sent into the fuzzy controller, which produces three gain modification factors: , , and . They basically determine how much the proportional, integral, and derivative gains should increase or decrease during that particular moment [57], [58].
Using the fuzzy outputs, the updated PID gains are computed as (t) = × (t), (t) = × (t), and (t) = × (t). These time-varying gains are then applied to the standard control law,
The base gain values [ = 2.0, = 0.5, = 1.0] were obtained first using the Ziegler–Nichols method and later refined through manual tuning. While these fixed gains already produce stable behaviour under normal conditions, the FLC adapts them automatically during operation so the robot can handle different disturbances and nonlinear effects more effectively [59], [60]. The complete design of the fuzzy logic controller is built around two input variables, the position error e and the error rate . In practice, the position error of the robot may change between [−50, 50] cm, but to make the fuzzy system easier to manage, this range is normalized into [−1, 1]. The same idea is also applied to the error rate, which originally lies within [−20, 20] cm/s. For both inputs, a set of seven triangular membership functions is used, following the linguistic labels NL, NM, NS, Z, PS, PM, and PL. Each of these functions covers a specific region of the normalized domain, starting from Negative Large (NL) at [−1, −1, −0.67] and gradually moving upward until Positive Large (PL) at [0.67, 1, 1]. This arrangement gives a smooth transition between different error levels and helps the controller react more naturally during motion.
The outputs of the fuzzy system are three gain adjustment factors, , , and . These are responsible for modifying the PID gains based on the robot’s behaviour at each moment. The proportional adjustment factor ranges between [0.5, 2.0] and is described through five triangular sets: Very Small (VS), Small (S), Medium (M), Large (L), and Very Large (VL). Their supports extend from [0.5, 0.5, 0.8] up to [1.4, 2.0, 2.0]. The same linguistic structure is also used for and , though their numerical ranges are scaled according to their control influence. Even though the overall structure looks simple, this fuzzy design provides a flexible and quite intuitive way to tune the PID behaviour online, especially when the robot encounters sudden changes or uncertain movements during its navigation.
2.3.2.Complete Fuzzy Rule Base
The fuzzy rule bases for the three gain adjustment factors , , and were created by following the typical behavior of a differential drive robot during its trajectory tracking. Although the actual rule tables for , , and are quite large, the main idea behind them is intuitive. For each combination of the position error e and the error rate , the controller selects a suitable linguistic output that represents how strongly each PID gain should be modified shown in Table 1.
| Gain | NL | NM | NS | Z | PS | PM | PL | |
|---|---|---|---|---|---|---|---|---|
| NL | VL | VL | L | L | M | S | VS | |
| NM | VL | L | L | M | M | S | VS | |
| NS | L | L | M | M | S | S | VS | |
| Z | L | M | M | M | M | M | L | |
| PS | VS | S | S | M | M | L | L | |
| PM | VS | S | M | M | L | L | VL | |
| PL | VS | S | M | L | L | VL | VL | |
| NL | VS | VS | S | M | M | L | L | |
| NM | VS | S | S | M | M | L | L | |
| NS | S | S | M | M | M | L | L | |
| Z | S | M | M | M | M | M | S | |
| PS | L | L | M | M | M | S | S | |
| PM | L | L | M | M | S | S | VS | |
| PL | L | L | M | M | S | VS | VS | |
| NL | VL | L | L | M | M | S | VS | |
| NM | L | L | M | M | M | S | VS | |
| NS | L | M | M | M | S | S | VS | |
| Z | M | M | M | M | M | M | M | |
| PS | VS | S | S | M | M | M | L | |
| PM | VS | S | M | M | M | L | L | |
| PL | VS | S | M | M | L | L | VL |
For example, when both e and are strongly negative, meaning the robot is far behind the desired trajectory and still moving away from it, the fuzzy rules assign a Very Large (VL) value to the proportional and derivative adjustments. At the same time, the integral adjustment is kept Very Small (VS) to avoid any risk of windup. In contrast, when the error becomes small and the robot is near the target position, such as the case where both e and are Zero (Z), the rule base outputs Medium (M) levels for all three adjustments, providing a stable and balanced correction without sudden reactions. Another important case occurs when both e and are Positive Large (PL). In this situation, the robot is far ahead and still drifting farther, so again the rule base demands a very strong proportional and derivative action while minimizing the integral gain. This pattern appears frequently throughout the design, since large errors and fast error growth usually require a more aggressive correction.
All fuzzy outputs are processed using the Mamdani inference structure with the classical min-max composition. The defuzzification is carried out using the centroid method, which provides a smooth and reliable numerical output for each gain factor. The main rationale behind the entire rule base is guided by three simple principles: (1) large errors require stronger proportional gain to push the robot back toward the trajectory, (2) when the error is changing quickly, derivative gain should increase to prevent overshoot and oscillation, and (3) integral action must be kept small during large deviations to avoid windup, but increased moderately when the robot is near steady state to remove small residual errors. Before applying the controller on hardware, these principles were tested through several simulation scenarios, and the results confirmed that this rule structure can adapt the PID gains in a stable and effective way.
3.Experimental Results and Discussions
This section presents a comprehensive evaluation of both the actuator-level fuzzy controller (Experiment 1) and the trajectory-level Hybrid Fuzzy-PID controller (Experiment 2). The objective is to validate the modelling framework described in Section 2 and show how the hybrid gain-scheduling mechanism improves tracking performance. The experiments include MATLAB-based simulations and real-world robot testing. Table 2 summarizes the main experimental parameters used in both phases.
| Parameter | Value | Description |
|---|---|---|
| Sampling Rate | 50 Hz | Control loop frequency |
| Microcontroller | Arduino Uno | Main controller |
| Motor Type | DC Encoder Motors | 12V, 350RPM |
| Encoder Resolution | 360 PPR | Incremental encoders |
| Wheel Diameter | 8.5 cm | Measured |
| Wheelbase | 25 cm | Distance between wheels |
| Maximum Speed | 0.5 m/s | Tested range 0.1–0.5 m/s |
| Programming Tools | Arduino IDE + MATLAB | Implementation |
| Fuzzy Inference | Mamdani Type | Centroid defuzzification |
| PID Update Rate | 50 Hz | Synchronized loop |
| Base PID Gains | = 2.0, = 0.5, = 1.0 | Tuned parameters |
3.1.Experiment 1: Baseline Motor-Speed FLC
The first experiment examines the performance of the actuator-level Fuzzy Logic Controller (FLC), which regulates the wheel speed by adjusting the motor voltage. The controller uses the triangular membership functions summarized in Table 3, where three linguistic terms Slow, Right, and High represent the RPM conditions, and the output voltage is categorized into Down, No Change, and Up. Fig. 7 illustrates these membership functions. The gradual overlap between the triangular sets enables smooth transitions between voltage levels as the motor state changes. For example, the “Slow” MF spreads from 0 to 175 RPM shown in Table 4, ensuring that small variations in low-speed conditions produce a proportional correction rather than abrupt switching.
The decision-making mechanism is governed by the fuzzy rule base, and Table 5 lists representative outputs obtained from the defuzzification step. At 100 RPM, the FLC outputs 2.73 V (Rule 1), which increases the wheel speed. At 200 RPM, the voltage stabilizes around 2.47 V (Rule 2), while at 350 RPM, the FLC decreases the voltage to 0.817 V (Rule 3). These numerical values confirm that the controller correctly captures the inverse relationship between motor voltage and overspeed, which is essential for preventing excessive rotational velocity.
| Input (RPM) | Output (Voltage) | ||
|---|---|---|---|
| Status | Parameters | Status | Parameters |
| Slow Speed | [0, 0, 175] | Down | [0, 0, 2.5] |
| Right Speed | [0, 175, 300] | No Change | [0, 2.5, 5] |
| High Speed | [175, 300, 300] | Up | [2.5, 5, 5] |
Fig. 8 presents the simulation responses of the motor system under each fuzzy rule (subplots a-c) as well as the corresponding PID-based behaviour (subplots d-f). In Fig. 8(a), the slow-speed condition produces a continuously rising voltage command, demonstrating the FLC’s ability to accelerate the wheel smoothly. Fig. 8(b) shows that the “Right Speed” condition maintains a nearly constant voltage, indicating stable operation with minimal fluctuations.
| Output | Description |
|---|---|
| Out1 | Increase voltage when speed is low |
| Out2 | Maintain voltage when speed is optimal |
| Out3 | Reduce voltage when speed is high |
Fig. 8(c) illustrates how the “High Speed” condition leads to a decreasing voltage profile, which effectively compensates for overshoot. In contrast, the PID-only simulations in Fig. 8(d-f) show sharper transitions, higher sensitivity to parameter changes, and less tolerance to noise, emphasizing the advantage of fuzzy voltage modulation for low-level motor control.
| Rule | Description | RPM Input | Voltage (V) |
|---|---|---|---|
| 1 | Slow motor speed → increase voltage | 100 | 2.73 |
| 2 | Right speed → maintain voltage | 200 | 2.47 |
| 3 | High motor speed → decrease voltage | 350 | 0.817 |
Overall, Experiment 1 demonstrates that the baseline FLC reliably regulates wheel angular velocity and produces smooth, interpretable voltage adjustments. However, because the controller acts solely on motor RPM and does not incorporate pose-level information from the kinematic model, it cannot directly minimize the trajectory error. Even if the wheel speeds are well balanced, the geometric tracking error may remain non-zero due to lateral drift or accumulated orientation error.
Therefore, although Experiment 1 establishes stable actuator performance, it highlights the need for a trajectory-aware controller, motivating the development of the Hybrid Fuzzy–PID method presented in Experiment 2.
3.2.Experiment 2: Hybrid Fuzzy-PID
To overcome the limitations of traditional PID and FLC-only control, the Hybrid Fuzzy-PID controller from Section 2 was implemented for a more robust solution. The primary test involved following a 1 m circular path using three different controllers: (1) Conventional PID, (2) FLC-Only, and (3) the proposed Hybrid Fuzzy-PID. In this experiment, the fuzzy rule base for , , and has been applied according to Table 1.
Fig. 9(a) shows that the PID path exhibits outward drift with a radial deviation of 12-15 cm. This occurs because the fixed gains cannot compensate for curvature-induced error growth. The FLC–Only method improves stability and reduces oscillations but still shows deviations of around 8-10 cm.
In contrast, the Hybrid controller nearly overlaps the reference circle and maintains the error below 5 cm for most of the trajectory. The error dynamics in Fig. 9(b) show that the PID error starts at 0.22 m and decays slowly, whereas FLC-Only converges toward 0.05 m. The Hybrid controller reaches a steady-state error as low as 0.01–0.02 m. This improvement is due to the adaptive gain mechanism:
Which adjusts the feedback strength according to the normalized errors and . Fig. 9(c) and Fig. 9(d) show that the Hybrid controller increases and during the transient, where curvature introduces a large change in heading, and then gradually decreases them when the system reaches steady-state conditions.
3.3.Real-World Experiment
A real-world validation was conducted to examine whether the behaviour observed in simulation can be reproduced on an actual differential-drive robot platform. The experiment included two stages: (1) actuator-level evaluation using the baseline FLC, and (2) trajectory-level evaluation using the proposed Hybrid Fuzzy-PID controller. Fig. 10 illustrates the recorded motor responses and path-tracking behaviour obtained from these tests. In the first part, the robot was placed inside a narrow 35 cm indoor lane, and the baseline motor-speed FLC was applied. As shown in Fig. 10(a)-(d), the robot maintained straight-line motion without oscillatory deviations, and the wheel-speed responses were smooth even under small disturbances. The curves in Fig. 10(a) reveal that, without PID, the motor outputs fluctuate more strongly, while Fig. 10(b)-(d) demonstrate that the FLC stabilizes the velocities and suppresses sudden jumps in voltage. The gradual reduction of speed error across these plots confirms that the physical motor dynamics follow the same trend as the simulation in Fig. 8, where the FLC produced smooth corrective actions based on fuzzy rule evaluations.
Small irregularities in the curves originate from encoder quantization and friction differences between the left and right wheels. In the second part of the experiment, a black market was attached in such a way, it could draw a circle when commanded to follow the path using the Hybrid Fuzzy-PID controller. Fig. 10(e) shows the recorded trajectory. Although external disturbances such as wheel slip, uneven surface friction, and sensor noise introduce slight drifts, the robot successfully completes the circle over and over with good consistency. This behaviour closely matches the simulation trend, where the hybrid controller produced the lowest tracking error and fastest convergence among the three tested controllers. The real-world error profile also reflects the adaptive behaviour seen in simulation: larger corrections occur during the initial transient, followed by gradual stabilization as the controller adjusts , , and through the fuzzy scaling mechanism.
Overall, the results confirm that the proposed Hybrid Fuzzy–PID framework is robust in practical environments and that its behaviour aligns well with simulation, validating both the modelling assumptions and the controller design shown in Table 6.
| Trajectory Type | Metric | PID | FLC Only | Hybrid | Improvement (%) |
|---|---|---|---|---|---|
| Circular Path (1 m) | Average Error (cm) | 12.8 ± 2.3 | 9.4 ± 1.8 | 7.2 ± 1.1 | 43.7 |
| Max Error (cm) | 18.5 | 14.2 | 10.3 | 44.3 | |
| RMS Error (cm) | 13.6 | 10.1 | 7.8 | 42.6 | |
| Settling Time (s) | 3.2 | 2.6 | 2.2 | 31.2 | |
| Steady-State Error (cm) | 8.5 | 2.4 | 0.9 | 89.4 | |
| Straight Path (2 m) | Average Error (cm) | 6.3 ± 1.5 | 4.8 ± 1.2 | 3.1 ± 0.8 | 50.8 |
| Angular Deviation (deg) | 4.2 | 2.8 | 1.6 | 61.9 | |
| Computational Metrics | Execution Time (ms) | 2.1 | 8.7 | 11.3 | −438 * |
| CPU Usage (%) | 15 | 42 | 48 | −220 * |
Note: Improvement values computed relative to PID. Negative values indicate increased computational cost.
3.4.Comparison with State-of-the-Art Methods
To provide broader context for the results, Table 7 compares the proposed method with several published studies. Many fuzzy-PID and adaptive PID controllers report tracking errors in the 8–12 cm range under similar circular or straight-line paths. Vision-assisted approaches reduce error but remain above 8 cm due to extra noise from the camera system. In contrast, our Hybrid Fuzzy–PID achieves an average error of 7.2 cm with complete hardware validation across multiple paths.
| Study | Year | Method | Platform | Test Scenario | Error Metric | Performance | Validation |
|---|---|---|---|---|---|---|---|
| Lee et al. [51] | 2018 | Fuzzy-PID | Simulation | Circular path | Avg Error | 9.5 cm | Simulation only |
| Thai et al. [33] | 2022 | Variable PID | Hardware | Multiple paths | RMS Error | 11.2 cm | Limited hardware |
| Saidi et al. [42] | 2022 | Fuzzy-PID + Vision | Hardware | Obstacle avoidance | Max Error | 12.8 cm | Vision-assisted |
| Cao et al. [54] | 2022 | Fuzzy Adaptive PID | Mecanum | Straight line | Avg Error | 8.9 cm | Mecanum wheels |
| Park [52] | 2025 | GA-optimized PID | Hardware | Circular path | Avg Error | 10.3 cm | Offline optimization |
| Proposed Method | 2025 | Hybrid Fuzzy-PID | Hardware | Multiple paths | Avg Error | 7.2 cm | Comprehensive |
Note: All values reflect path-tracking accuracy. Lower values indicate better performance.
3.5.Discussion
The combined findings from the simulation and hardware experiments demonstrate a clear hierarchy among the tested controllers. Experiment 1 shows that although the conventional FLC is adequate for balancing wheel RPM, it lacks the geometric awareness required to minimize trajectory-level error. Experiment 2 proves that integrating the robot’s kinematic model with fuzzy-based gain adaptation yields significantly better performance.
The Hybrid Fuzzy–PID controller achieves: up to 43.7% reduction in average error on the circular path, up to 89.4% improvement in steady-state error, and 31.2% reduction in settling time, compared to conventional PID. These improvements stem from the adaptive adjustment of , , and , which helps stabilize nonlinear dynamics, especially during curvature changes. The results are further reinforced by real-world experiments, which follow the same trend despite noise and environmental uncertainties. Ultimately, the Hybrid Fuzzy-PID framework provides an effective and robust trajectory-tracking solution for differential drive mobile robots.
4.Conclusion
This study presented an enhanced control strategy for differential-drive mobile robots by integrating a trajectory-level kinematic model with a Hybrid Fuzzy-PID gain-scheduling mechanism. Unlike earlier works that applied PID or FLC independently, the proposed method combines the strengths of both approaches, where the fuzzy system continuously adjusts , , and based on real-time pose errors and their rate of change. This fusion enables the controller to respond adaptively to nonlinear robot dynamics, especially during curved motion where the tracking error usually grows faster.
The simulation results demonstrated significant improvements over the Conventional PID and FLC-only controllers. Across circular and straight-line trajectories, the Hybrid Fuzzy-PID reduced the average error by up to 43.7%, lowered the steady-state error to below 1 cm, and achieved faster convergence with approximately 31.2% reduction in settling time. The adaptive gain evolution also showed that the controller increases feedback strength only during high-error phases, resulting in smoother motion and more stable control action. Real-world experiments further validated the feasibility of the proposed approach. Despite sensor noise, wheel slip, and friction variations, the robot successfully followed a 1 m circular path with a maximum deviation of 6-8 cm, which matches the trend observed in simulation. These results confirm that the hybrid controller maintains consistent performance across both simulated and physical environments.
Overall, this work demonstrates that combining fuzzy adaptation with model-based PID control provides a practical and effective solution for mobile robot trajectory tracking. Although small deviations still remain, the approach offers a strong baseline for real-world navigation tasks. Future research may focus on integrating vision or LiDAR feedback, optimizing the fuzzy rule base through machine-learning techniques, and extending the controller to multi-robot systems or unstructured outdoor environments. A video demonstration of the real-world experiment is available at: https://www.youtube.com/shorts/ATUfue07RUI.
Author Contribution: All authors contributed equally to the main contributor to this paper. All authors read and approved the final paper.
Funding: This research received no external funding
Acknowledgment: The authors express gratitude to the Bangladesh ICT Division and School of Electrical and Electronic Engineering, Universiti Sains Malaysia, for providing adequate research scopes and facilities.
Conflicts of Interest: The authors declare that they have no conflict of interest.
References
Original publication: International Journal of Robotics and Control Systems. Copyright © 2025 The Authors. CC BY-SA 4.0. This reading version reformats the supplied article for browser presentation and converts TeX equations to MathML.
Publication information
Published: 2026-02-15