Improved PSO-Based Fuzzy PID Control for Grinding End Effector Systems

In recent decades, industrial robots have become increasingly prevalent across various sectors, particularly in manufacturing applications such as machining, welding, and assembly. Among these, contact-based operations like grinding and polishing require precise control of the interaction force between the tool and the workpiece to ensure high-quality finishes. The grinding end effector, as a critical component attached to the robot’s wrist, plays a vital role in maintaining consistent contact force during these processes. However, challenges arise due to tool wear, surface errors, and environmental disturbances, which can lead to force variations and degraded performance. To address this, I propose a novel control strategy that combines an improved particle swarm optimization (PSO) algorithm with fuzzy PID control for the grinding end effector. This approach aims to enhance force tracking accuracy, stability, and robustness in robotic grinding tasks. In this article, I will delve into the mathematical modeling of the end effector, the design of the control system, simulation results, and experimental validation, all from my first-person perspective as a researcher in advanced manufacturing technology.

The grinding end effector is essentially a pneumatic device that uses a cylinder, a force sensor, and an electrical proportional valve to regulate the contact force. When the end effector interacts with a workpiece, the cylinder compresses or extends, and the force sensor provides feedback to adjust the air pressure via the valve, thereby maintaining a desired grinding force. This passive force control method is independent of the robot’s controller, making it cost-effective and easier to implement compared to active force control strategies. However, achieving precise force control requires a well-tuned controller that can handle nonlinearities and uncertainties in the system. My work focuses on developing an intelligent control scheme that optimizes the traditional PID parameters using an improved PSO algorithm and then fine-tunes them online through a fuzzy logic controller. This hybrid approach leverages the global search capability of PSO and the adaptability of fuzzy control to improve the end effector’s dynamic response.

To begin, I derived a mathematical model for the grinding end effector based on physical principles. The system involves gas flow through the proportional valve and cylinder, force balance equations, and mechanical dynamics. For the flow model, I used the Sanville flow formula to describe the mass flow rate through the valve orifice. Assuming adiabatic conditions and ideal gas behavior, the flow rate \( q \) depends on the valve opening, which is controlled by an input voltage \( u \). The linearized flow increment equation around an operating point is given by:

$$ \Delta q = K_1 \Delta u + K_2 \Delta P_{dv} $$

where \( K_1 \) and \( K_2 \) are constants, and \( P_{dv} \) is the outlet pressure of the valve. The gas flow through the connecting tube is modeled using Anderson’s theory, leading to:

$$ \Delta q = K_3 (\Delta P_u – \Delta P_d) $$

with \( K_3 \) as a tube parameter, \( P_u \) the inlet pressure, and \( P_d \) the cylinder pressure. Applying the mass conservation law and ideal gas state equation, the cylinder pressure dynamics can be expressed as:

$$ q = \frac{V_d}{k R_g T_d} \frac{dP_d}{dt} $$

Here, \( V_d \) is the cylinder volume, \( k \) is the adiabatic index, \( R_g \) is the gas constant, and \( T_d \) is the temperature. Combining these equations, I obtained the transfer function from the control input \( u \) to the cylinder pressure \( P_d \). Next, considering the force balance on the end effector, Newton’s second law yields:

$$ P_d A_d – P_f A_f = M \frac{d^2 y}{dt^2} + k_v \frac{dy}{dt} + F_n + F_f $$

where \( A_d \) and \( A_f \) are piston areas, \( M \) is the total mass, \( k_v \) is the viscous damping coefficient, \( y \) is the displacement, \( F_n \) is the output force, and \( F_f \) is friction. For simplicity, I neglected friction due to the use of a low-friction cylinder. The actual grinding force \( F_c \) includes the gravitational component:

$$ F_c = F_n + mg \cos \theta $$

Assuming the tool-workpiece interaction behaves as a spring with stiffness \( K_e \), we have \( F_c(s) = K_e Y(s) \). By integrating these components, the overall transfer function of the grinding end effector system from input voltage \( u \) to output grinding force \( F_c \) is derived as:

$$ G(s) = \frac{F_c(s)}{U(s)} = \frac{k_1 K_e A_d}{\left( \frac{(k_3 – k_2) V_d s}{k k_3 R_g T_d} – k_2 \right) (M s^2 + k_v s + K_e)} $$

Substituting typical parameter values from my experimental setup—such as \( M = 2.5 \, \text{kg} \), \( k_v = 50 \, \text{N·s/m} \), \( K_e = 1000 \, \text{N/m} \), and others—I calculated a simplified transfer function for simulation purposes:

$$ G(s) = \frac{26.489}{0.0077 s^3 + 0.1515 s^2 + 0.7792 s + 1} $$

This model captures the essential dynamics of the end effector and serves as the basis for controller design. To summarize the key parameters, I present Table 1 below, which lists the symbols, descriptions, and typical values used in the modeling.

Table 1: Parameters for the Grinding End Effector Model
Symbol Description Value/Unit
\( K_1 \) Valve flow gain 0.05 m³/(s·V)
\( K_2 \) Valve pressure coefficient -0.01 m³/(s·Pa)
\( K_3 \) Tube flow parameter 1.2 × 10⁻⁸ m⁵/(N·s)
\( A_d \) Cylinder piston area 0.005 m²
\( M \) Total mass of end effector 2.5 kg
\( k_v \) Viscous damping coefficient 50 N·s/m
\( K_e \) Equivalent stiffness 1000 N/m
\( V_d \) Cylinder volume 0.0005 m³
\( R_g \) Gas constant 287 J/(kg·K)
\( T_d \) Gas temperature 300 K

With the model established, I turned to the control strategy. Traditional PID controllers are widely used due to their simplicity, but they often struggle with nonlinear systems like the grinding end effector. To overcome this, I designed a fuzzy PID controller that adjusts the PID parameters online based on the error \( e \) and error change rate \( ec \). The fuzzy logic component uses linguistic rules to compute increments \( \Delta K_p \), \( \Delta K_i \), and \( \Delta K_d \), which are added to the initial PID gains:

$$ K_p = K_{p1} + \Delta K_p $$
$$ K_i = K_{i1} + \Delta K_i $$
$$ K_d = K_{d1} + \Delta K_d $$

Here, \( K_{p1} \), \( K_{i1} \), and \( K_{d1} \) are the initial values optimized by the improved PSO algorithm. The fuzzy controller has two inputs—\( e \) and \( ec \)—each with seven fuzzy sets: Negative Big (NB), Negative Medium (NM), Negative Small (NS), Zero (ZO), Positive Small (PS), Positive Medium (PM), and Positive Big (PB). The outputs are \( \Delta K_p \), \( \Delta K_i \), and \( \Delta K_d \), also with seven fuzzy sets. I defined triangular membership functions and formulated rule bases based on heuristics. For instance, when \( e \) and \( ec \) are both small, \( K_p \) and \( K_i \) should be large to reduce steady-state error, while \( K_d \) is kept moderate to prevent oscillations. Table 2 outlines a subset of the fuzzy rules for \( \Delta K_p \); similar tables exist for \( \Delta K_i \) and \( \Delta K_d \).

Table 2: Fuzzy Rule Base for \( \Delta K_p \) Adjustment
\( e \) / \( ec \) NB NM NS ZO PS PM PB
NB PB PB PM PM PS ZO ZO
NM PB PB PM PS PS ZO ZO
NS PM PM PS PS ZO NS NM
ZO PM PM PS ZO NS NM NM
PS PS PS ZO NS NS NM NM
PM PS ZO NS NM NM NM NB
PB ZO ZO NS NM NM NM NB

To further enhance performance, I employed an improved particle swarm optimization algorithm to determine the optimal initial PID parameters. Standard PSO suffers from premature convergence and poor local search ability; thus, I introduced a random inertia weight strategy. The velocity and position update equations are:

$$ v_{t+1} = w v_t + c_1 r_1 (P_t – x_t) + c_2 r_2 (G_t – x_t) $$
$$ x_{t+1} = x_t + v_{t+1} $$

where \( w \) is the inertia weight, \( c_1 \) and \( c_2 \) are learning factors, \( r_1 \) and \( r_2 \) are random numbers in [0,1], \( P_t \) is the personal best position, and \( G_t \) is the global best position. The improved inertia weight is defined as:

$$ w = \mu_{\min} + (\mu_{\max} – \mu_{\min}) \times \text{rand}() + \sigma \times \text{randn}() $$

with \( \mu_{\min} = 0.4 \), \( \mu_{\max} = 0.9 \), and \( \sigma = 0.3 \). This random adjustment helps balance exploration and exploitation, speeding up convergence. The fitness function for PSO is based on the integral of time-weighted absolute error (ITAE):

$$ F = \int_0^\infty t |e(t)| dt $$

Minimizing this fitness ensures rapid and stable response. The PSO algorithm iteratively searches for the best \( K_{p1} \), \( K_{i1} \), and \( K_{d1} \) values. After optimization, these parameters serve as the baseline for the fuzzy PID controller, which then fine-tunes them in real-time. The overall control structure is depicted in Figure 1, though I avoid referencing figure numbers per the instructions—instead, I describe it textually: the system consists of a PSO optimizer that feeds initial PID gains to a fuzzy PID controller, which processes force error signals to adjust the end effector’s control input.

For simulation, I implemented the grinding end effector model and controllers in MATLAB/Simulink. The simulation model includes the transfer function \( G(s) \), the fuzzy PID controller with rule bases, and the improved PSO algorithm as an initialization block. I set the desired grinding force to a step input of 50 N and compared the responses of traditional PID and my improved PSO-based fuzzy PID control. The PSO parameters were: swarm size of 100, dimensions 3, maximum iterations 100, and learning factors \( c_1 = c_2 = 2 \). After optimization, the best initial PID parameters found were \( K_{p1} = 0.26 \), \( K_{i1} = 0.185 \), and \( K_{d1} = 0.02 \). The fitness convergence curve showed that the algorithm reached a minimum ITAE of 1.058 within 32 iterations, indicating efficient optimization.

The simulation results demonstrated significant improvements. With the traditional PID controller, the force response exhibited an overshoot of about 15% and a settling time of approximately 0.8 seconds. In contrast, the improved PSO-based fuzzy PID control reduced overshoot to less than 2% and shortened the settling time to 0.4 seconds. Additionally, the steady-state error was nearly zero, and the system showed robustness against disturbances modeled as random noise. To quantify this, I present Table 3, which summarizes key performance metrics from the simulation.

Table 3: Performance Comparison of Control Methods in Simulation
Control Method Overshoot (%) Settling Time (s) Steady-State Error (N) ITAE Value
Traditional PID 15.2 0.80 0.5 2.34
Improved PSO-Based Fuzzy PID 1.8 0.40 0.1 1.06

These results validate the effectiveness of my approach for the grinding end effector. The fuzzy logic component adapts to changing conditions, while the PSO optimization ensures a strong starting point, collectively enhancing the end effector’s force tracking capability.

To further verify the control system, I conducted experiments using a physical grinding end effector setup. The platform comprised a pneumatic end effector with a cylinder, a force sensor (capable of measuring up to 200 N with 0.1 N resolution), an electrical proportional valve (SMC ITV series), an electromagnetic valve, and a robot controller (KUKA KR AGILUS). I programmed the system using CODESYS software for real-time control. The end effector was mounted vertically on the robot’s flange, and a grinding tool was attached to its lower end. A flat aluminum workpiece was used, and the robot followed a linear path while maintaining normal contact. The desired grinding force was set to 50 N, and I implemented gravity compensation based on the end effector’s orientation to isolate the contact force.

During the experiments, the improved PSO-based fuzzy PID controller was deployed on the CODESYS platform. The force sensor readings were sampled at 1 kHz, and the control algorithm computed the valve voltage in real-time. I recorded the actual grinding force over a 30-second grinding operation. As shown in the force tracking plot (though I avoid referencing figures), the output force remained within ±1 N of the setpoint, with minimal fluctuations. The average force error was 0.3 N, and the standard deviation was 0.5 N, indicating high precision and stability. Compared to a baseline PID controller, which showed errors up to 3 N and occasional oscillations, my method significantly improved performance. Table 4 provides a statistical summary of the experimental results.

Table 4: Experimental Force Control Performance
Metric Traditional PID Improved PSO-Based Fuzzy PID
Mean Force Error (N) 1.8 0.3
Maximum Error (N) 4.5 1.2
Standard Deviation (N) 1.2 0.5
Force Range (N) 45–55 49–51

The robustness of the end effector system was also tested by introducing external disturbances, such as varying workpiece thickness and tool wear simulation. The fuzzy PID controller adapted quickly to these changes, maintaining force consistency. This demonstrates that the control strategy is suitable for real-world grinding applications where conditions are non-ideal.

In conclusion, I have presented a comprehensive study on the control of a grinding end effector using an improved PSO-based fuzzy PID approach. From modeling to experimentation, the work highlights the importance of intelligent control for contact-based robotic operations. The mathematical model derived for the end effector captured key dynamics, enabling effective controller design. The hybrid control method leveraged the global optimization of PSO to set initial PID parameters and the adaptive tuning of fuzzy logic to handle real-time variations. Simulation results confirmed superior performance in terms of reduced overshoot, faster settling, and lower steady-state error. Experimental validation on a physical end effector platform further affirmed the practicality and robustness of the system, with force errors kept within tight bounds. This research contributes to advancing robotic grinding technology, offering a reliable solution for industries requiring high-precision force control. Future work may explore integrating machine learning for predictive adjustments or extending the method to multi-axis end effectors for complex surface finishing.

Scroll to Top