## 1. Introduction

The application of hydraulic actuation to heavy duty equipment reflects the ability of the hydraulic circuit to transmit larger forces and to be easily controlled. It has many distinct advantages such as the response accuracy, self-lubricating and heat transfer properties of the fluid, relative large torques, large torque-to-inertia ratios, high loop gains, relatively high stiffness and small position error. Although the high cost of hydraulic components and power unit, loss of power due to leakage, inflexibility, nonlinear response, and error-prone low power operation tends to limit the use of hydraulic drives, they nevertheless constitute a large subset of all industrial drives and are extensively used in the transportation and manufacturing industries (Merrit, 1976; Rong-Fong Fung
*et al*, 1997; Aliyari *et al*, 2007).

The Servo Electro-hydraulic System (SEHS), among others, is perhaps the most important system because it takes the advantages of both the large output power of traditional hydraulic systems and the rapid response of electric systems. However, there are also many challenges in the design of SEHS. For example, they are the highly nonlinear phenomena such as fluid compressibility, the flow/pressure relationship and dead-band due to the internal leakage and hysteresis, and the many uncertainties of hydraulic systems due to linearization. Therefore, it seems to be quite difficult to perform a high precision servo control by using linear control method Rong-Fong Fung
*et al*, 1997; Aliyari *et al*, 2007; Pratumsuwan
*et al*, 2010).

Classical PID controller is the most popular control tool in many industrial applications because they can improve both the transient response and steady state error of the system at the same time. Moreover, it has simple architecture and conceivable physical intuition of its parameter. Traditionally, the parameters of a classical PID controller, i.e. *K*_{P}, *K*_{I}, and *K*_{D}, are usually fixed during operation. Consequently, such a controller is inefficient for control a system while the system is disturbed by unknown facts, or the surrounding environment of the system is changed (Panichkun & Ngaechroenkul, 2000; Pratumsuwan
*et al*, 2010).

Fuzzy control is robust to the system with variation of system dynamics and the system of model free or the system which precise information is not required. It has been successfully used in the complex ill-defined process with better performance than that of a PID controller. Another important advance of fuzzy controller is a short rise time and a small overshoot (Aliyari *et al*, 2007; Panichkun & Ngaechroenkul, 2000). However, PID controller is better able to control and minimize the steady state error of the system. To enhance the controller performance, hybridization of these two controller structures comes to one mind immediately to exploit the beneficial sides of both categories, know as a hybrid of fuzzy and PID controller (Panichkun & Ngaechroenkul, 2000; Pratumsuwan
*et al*, 2010).

Nevertheless, a hybrid of fuzzy and PID does not perform well when applied to the SEHS, because when the SEHS parameters changes will require new adjustment of the PID gains. A hybrid of fuzzy and fuzzy self-tuning PID controller is proposed in this paper. The proposed control scheme is separated into two parts, fuzzy controller and fuzzy self-tuning PID controller. Fuzzy controller is used to control systems when the output value of system far away from the target value. Fuzzy self-tuning PID controller is applied when the output value is near the desired value. In terms of adjusting the PID gains tuning using fuzzy as to obtain an optimum value.

## 2. Servo electro-hydraulic system

The physical model of a nonlinear servo electro-hydraulic system is shown in Figure 1.

The inertial-damping with a nonlinear torsional spring system is driven by a hydraulic motor and the rotation motion of the motor is controlled by a servo valve. Higher control input voltage can produce larger valve flow from the servo valve and fast rotation motion of the motor. The entire system equations are described as follows. The servo valve flow equation (1) is described as:

(1)where *Q*_{L} is the load flow, *X*_{v} is the displacement of the spool in the servo valve, *K*_{c} is the flow-pressure coefficient, *P*_{L} is the load pressure, and *K*_{q} is the flow gain which varies at different operating points. *K*_{q} is given by

where *C*_{d} is the discharge coefficient, *w* is the area gradient, *ρ* is the fluid mass density, and *P*_{S} is the supply pressure.

The continuity equation to the motor is formulated as

(3)where *D*_{m} is the volumetric displacement, *C*_{l} is the total leakage coefficient of the motor, *V*_{t} is the total compressed volume, and *β*_{e} is the effective bulk modulus of the system.

Substituting (1) into (3) leads to

(4)where *K*_{l}*=K*_{c}*+C*_{l} is the total leakage coefficient of the hydraulic system.

The torque balance equation for the motor is described as follows:

(5)where *J*_{t} is the total inertial of motor and load, *B*_{m} is the viscous damping coefficient of the load, *T*_{d} is the disturbance of the system, and

From (1) to (5), the hydraulic servomechanism system equation can be described by a state equation as follows:

(6)Where *N(X,t)* represents the nonlinear terms of the system.

## 3. System descriptions

We are considering a PC-based speed control of the SEHS that will use either a hybrid fuzzy PID or a hybrid of fuzzy and fuzzy self-tuning PID controller. The motor speed of this system is controlled. In order to construct fair test case for comparing both controllers, the experiments are constructed based on the same hardware elements. The specifications of this system are depicted in Table 1 and Figure 2 respectively.

## 4. Controller designs

A closed loop system, whither the reference signal is set manually or automatically, can perform control of motor speed. Figure 3 represents typical of an “Automatic Closed Loop” control system. As shown in the figure, the velocity of a hydraulic motor is controlled by a servo valve. The servo valve solenoid is receiving driving electrical current from an amplifier card, which is generating the driving current based on a control signal supplied by a controller. The controller responsibility is to continuously compare the reference signal and the actual motor speed feedback by the velocity sensor, after consequently generate the adequate control signal.

There are various types of control system used in classical control, modern control and intelligent control systems, each having been studied and implemented in many industrial applications. Every control system method has its advantages and disadvantages. Therefore, the trend is to implement hybrid systems consisting of more than one type of control technique.

### 4.1. PID controller

The PID control method has been widely used in industry during last several decades because of its simplicity. The implementation of PID control, as shown in (7), requires finding suitable values for the gain parameters *K*_{P}, *K*_{I}, and *K*_{D}. To tune these parameters, the model is linearized around different equilibrium points,

where *e(k)* is the error signal.

However, the PID method is not suitable for controlling a system with a large amount of lag, parameter variations, and uncertainty in the model. Thus, PID control cannot accurately control velocity in a SEHS (Rong-Fong Fung
*et al*, 1997; Aliyari *et al*, 2007).

### 4.2. Fuzzy controller

Fuzzy Control (FC) has the advantage that it does not require an accurate mathematical model of the process. It uses a set of artificial rules in a decision-making table and calculates an output based on the table (Aliyari *et al*, 2007; Panichkun & Ngaechroenkul, 2000).

Figure 5 & 6 show a schematic diagram of a fuzzy control system. Input variables go through the fuzzification interface and are converted to linguistic variables. Then, a database and rule base holding the decision-making logic are used to infer the fuzzy output. Finally, a defuzzification method converts the fuzzy output into a signal to be sent out.

First, the two input variables must be defined in terms of linguistics. The error *(e)* in velocity is expressed by a number in the interval from -10 to 10. There are five linguistic terms of the error in velocity: negative big (NB), negative (N), zero (Z), positive (P), and positive big (PB). Similarly, the fuzzy set of the error change of the velocity or acceleration *(Δe)* is presented as {NB, N, Z, P, PB} over the interval from -10 to 10V. Finally, the fuzzy set of the output signal is presented as {NB, N, Z, P, PB} over the interval from -5 to 5V.

The knowledge base for a fuzzy controller consists of a rule base and membership functions. It is reasonable to present these linguistic terms by triangular-shape membership functions, as shown in Figure 6. A fuzzy control knowledge base must be developed that uses the linguistic description of the input variable. In this paper, an expert’s experience and knowledge method is used to build a rule base (Zhang
*et a*l, 2004). The rule base consists of a set of linguistic IF-THEN rules containing two antecedences and one consequence, as expressed in the following form:

where *1 ≤ i ≤ 5*, *1 ≤ j ≤ 5*, and *1 ≤ k ≤ 5*. The total number of IF-THEN rules is 25 and is represented in matrix form, called a fuzzy rule matrix, as shown in Table 2.

The decision-making output can be obtained using a max-min fuzzy inference where the crisp output is calculated by the center of gravity (COG) method.

### 4.3. Hybrid of fuzzy and PID controller

While conventional PID controllers are sensitive to variations in the system parameters, fuzzy controllers do not need precise information about the system variables in order to be effective. However, PID controllers are better able to control and minimize the steady state error of the system. Hence, a hybrid system, as shown in figure 9, was developed to utilize the advantages of both PID controller and fuzzy controller (Parnichkul & Ngaecharoenkul, 2000; Erenoglu *et al*., 2006; Pratumsuwan
*et al*., 2009;).

Figure 9 shows a switch between the fuzzy controller and the PID controller, where the position of the switch depends on the error between the actual value and set point value. If the error in velocity reaches a value higher than that of the threshold *e*_{0}, the hybrid system applies the fuzzy controller, which has a fast rise time and a small amount of overshoot, to the system in order to correct the velocity with respect to the set point. When the velocity is below the threshold *e*_{0} or close to the set point, the hybrid system shifts control to the PID, which has better accuracy near the set velocity (Parnichkul & Ngaecharoenkul, 2000; Erenoglu *et al*., 2006; Pratumsuwan
*et al*., 2009;).

### 4.4. Fuzzy self-tuning PID controller

Fuzzy self-tuning PID controller means that the tree parameters *K*_{P}, *K*_{I}, and *K*_{D} of PID controller are tuned by using fuzzy tuner (Zhang
*et al*, 2004; Song & Liu, 2010; Zulfatman & Rahmat, 2006; Feng
*et al*, 2009). The coefficients of the conventional PID controller are not often property tuned for the nonlinear plant with unpredictable parameter variations. Hence, it is necessary to automatically tune the PID parameters. The structure of the fuzzy self-tuning PID controller is shown in Figure 10. Where *e* is the error between desired velocity set point and the output, *eΔ* is the derivation of error. The PID parameters are tuned by using fuzzy tuner, which provide a nonlinear mapping from *e* and *eΔ* of error to PID parameters.

Regarding to the fuzzy structure, there are two inputs to fuzzy inference: *e* and *eΔ*, and there outputs for each PID controller parameter *K′*_{P}, *K′*_{I}, and *K′*_{D} respectively. Mamdani model is applied as structure of fuzzy inference with some modification to obtain the optimum value for *K*_{P}, *K*_{I}, and *K*_{D}. Suppose the variable ranges of the parameters of PID controller are [*K*_{Pmin}*, K*_{Pmax}], [*K*_{Imin}*, K*_{Imax}], and [*K*_{Dmin}*, K*_{Dmax}] respectively. The range of each parameters was determined based on the experimental on PID controls the SEHS. The range of each parameters are, *K*_{P}∈[8,15], *K*_{I}∈[0.003,0.01], and *K*_{D}∈[0.0001,0.000001]. Therefore, they can be calibrated over the interval [0,1] as follows:

The membership functions of these inputs fuzzy sets are shown in Figure 8. The linguistic variable levels are assigned as: negative big (NB), negative (N), zero (Z), positive (P), and positive big (PB). Similarly, the fuzzy set of the error change of the velocity or acceleration *(Δe)* is presented as {NB, N, Z, P, PB}. These levels are chosen from the characteristics and specification of the SEHS. The ranges of these inputs are from -10 to 10. Finally, whereas the membership functions of outputs *K′*_{P}, *K′*_{I}, and *K′*_{D} are shown in Fig. 8. The linguistic levels of these outputs are assigned as: negative big (NB), negative (N), zero (Z), positive (P), and positive big (PB) similarly where the ranges from 0 to 1.

### 4.5. Hybrid of fuzzy and fuzzy self-tuning PID controller

A hybrid of fuzzy and fuzzy self-tuning PID controller, as shown in Figure 12, was developed to combine the advantages of both fuzzy and PID controller together. In addition, the adjustment gain of PID with a fuzzy tuner is included to purposed controller also, which all of these described in section 4.1, 4.2, 4.3, and 4.4.

## 5. The experimental results

The effectiveness of the proposed hybrid of fuzzy and fuzzy-tune PID controller is evaluated experimentally with the SEHS and is compared with that of the hybrid fuzzy PID controller which uses the nominal values of the gains obtained by experiment. The control algorithms described in section 4.1, 4.2, 4.3, and 4.4 were hybridized and applied to the SEHS using by LabVIEW program as the development platform and shown in Figure 13.

The proposed of a hybrid of fuzzy and fuzzy self-tuning PID controller is evaluated experimentally with the motor speed control of SEHS and is compared with that of the conventional of a hybrid of fuzzy and PID controller. For the first experiment to observe the response of the SEHS control output of the both controller, which shown in Figure. 14 and Table 6, respectively. Then, change the parameters of the SEHS, because existing experimental set is difficult to change the load so that this change in pressure of the SEHS instead. The change in pressure will make many values, but the parameters of the both controller still use the original setting from the previous first. Figure 14, Table 6, and Figure 15, Table 7 show examples of the responses of the output of the both controller, which resulted from changing the original value of system pressure are 50 bar and 10 bar pressure. However, all these experiments the value of *e*_{0} which is used as a reference in the selection of a controller is set at 0.92 that is the optimum value from experiment.

When the experiment has changed the parameters of the SEHS will find that the hybrid of fuzzy and fuzzy self-tuning PID would lead to a satisfactory response over the hybrid of fuzzy and PID controller. This is because the proposed controller does not require to adjustment the new parameters of PID controller although the parameters of the SEHS will change.

## 6. Conclusions

The objective of this study, we proposed the hybrid of fuzzy and fuzzy self-tuning PID controller for motor speed control of a SEHS. The proposed control scheme is separated into two parts, fuzzy controller and fuzzy self-tuning PID controller. Fuzzy controller is used to control systems when the output value of system far away from the target value. Fuzzy self-tuning PID controller is applied when the output value is near the desired value. In the terms of adjusting the PID parameters are tuned by using fuzzy tuner as to obtain the optimum value. We demonstrate the performance of control scheme via experiments performed on the motor speed control of the SEHS. The results from the experiments show that the proposed a hybrid of fuzzy and fuzzy self-tuning PID controller has superior performance compared to a hybrid of fuzzy and PID controller. This is because the proposed controller does not require to readjustment the parameters of PID controller although the parameters of the SEHS will change any.