#### Abstract

The sliding mode control (SMC) technique with a first-order low-pass filter (LPF) is incorporated with a new adaptive PID controller. It is proposed for tracking control of an uncertain nonlinear system. In the proposed control scheme, the adaptation law is able to update the PID controller online during the control process within a short period. The chattering phenomenon of the SMC can be alleviated by incorporation of a first-order LPF, while the robustness of the control system is similar to that of the sliding mode. In the closed-loop control analysis, the convergence condition in the reaching phase and the existence condition of the sliding mode were analyzed. The stability of the closed-loop control is guaranteed in the sense of Lyapunov’s direct method. The simulations and experimental applications of a speed tracking control of a spark ignition (SI) engine via electronic throttle valve control architecture are provided to verify the effectiveness and the feasibility of the proposed control scheme.

#### 1. Introduction

The presence of uncertain nonlinearity in physical systems has been extensively studied because most of the real systems are rather complex dynamical nonlinear with large uncertainties which can affect inaccuracy and poor robustness of the control system. To do this, numerous control schemes have been developed; for example, sliding mode control [1–3], intelligent control [4, 5], feedback linearization [6], and adaptive control [7–9].

On the other hand, due to its simplicity in architecture and simple design, the proportional-integral-derivative (PID) control is acceptable and has been extensively applied in many practical applications. The key for designing a high capability of PID controller depends on the determination of the PID gain parameters which should be properly adjusted, and this has led to the developments for self-tuning methods of the three parameters of the PID controller. Recently, adaptive control techniques are generally applied for online-tuning of the PID controller. The flexibility of the PID tuning lies in the determination of the basic PID gains that can be adjusted online according to adaptation laws and using the error signal in order to realize the online adjustable gains during a control procedure [10–13]. However, the adaptive control strategy is capable of handling only constant parametric uncertainty, inadequate robustness for against external disturbance, and an accurate system model that is required [14].

The sliding mode control (SMC) method is one of the control strategies to dominate the parametric uncertainties and external disturbances, while the control principle is without precise system model information [15–18]. Nevertheless, if the sliding mode exists, the chattering phenomenon is the main obstacle for SMC application [19–21]. In much research work, alleviations chattering phenomenon of the sliding mode incorporated with a low-pass filter has been studied [22–26] because it can make a compromise between the alleviation of the chattering and the control accuracy. Incorporation of the SMC with closed-loop filtering is capable to realize the acquisition of control signal and the approximation of disturbances [24], while the robustness is similar to that of the sliding mode.

In this study, the SMC with a first-order LPF is incorporated with a new adaptive PID controller. It is proposed for perfect tracking control tasks of uncertain nonlinear systems. In the proposed control scheme, the PID controller is adjusted during the control procedure according to the adaptation laws, while the chattering of the control signal can be alleviated by the first-order LPF. The stability of the closed-loop control can be guaranteed in the sense of Lyapunov’s direct method [27, 28]. The effectiveness and the feasibility of the proposed control scheme are assessed in the problem of a speed tracking control of a spark ignition (SI) engine via electronic throttle valve control architecture. Interest is due to the delay of the intake manifold filling dynamic and the induction-power delay is the drawback in practice for engine speed control through the throttle valve regulation method [29, 30]. Furthermore, the engine system is a rather complex mechanism, multiactuation, and largely uncertain nonlinearity phenomena which are present in the engine mechanism [31]. Therefore, the engine speed control is a well-known challenge in the problem of uncertain nonlinear control systems [32–34].

Increasing transient performance and tracking accuracy of speed responses are usefulness during acceleration of the vehicle at any operating condition, especially in the transition mode of the hybrid operating system of hybrid vehicles [35, 36]. The goal of the engine speed control resulting from the speed response is to be able to track a desired speed at any operating condition [37], especially at the transient-state that has significant effects on optimizing the maneuverability of an engine speed control. High accuracy of speed tracking control leads to the achievement of an optimal engine operating point for other applications. In addition, increased engine performance, reduced fuel consumption, and exhaust emission are other benefits of an optimized engine speed control [38, 39].

The remainder of this paper is organized as follows. Firstly, we present the controller design and closed-loop control analysis. In Section 3, a description of the engine speed control model is presented. In Section 4, the simulations and experimental results are presented to verify the effectiveness of the development control approach. Finally, the research conclusions are presented.

#### 2. Controller Design and Closed-Loop Control Analysis

##### 2.1. System Formulation

In an engine system, the two first-order dynamic elements which are rotational dynamics and the manifold filling dynamics behave as a second-order system [40]. However, the system order can be reduced due to substitution of the engine torque as described by the mean-value method [41] into the first-order crankshaft rotational dynamics from Newton’s law. Thus, for simplicity, this work realizes the system to be a first-order uncertain nonlinear system, satisfying uncoupling and matching conditions [28, 40]. It can be described in a canonical form aswhere is the first-order of the state vector, is time, is the known nonlinear function, is the global state vector for the nonlinear square system, is the number of independent coordinates of , , is the control input, is the uncertain element that presents only in the highest order of the system, and , , is the control gain distribution matrix which is positive definite in all arguments. The aim is to force the system state to reach the desired state so that the error , . Not only does a control law have to steer the response to the desired value, but it must have the ability to overcome a system’s uncertainties also.

In the work of Xu et al. [24], uncertainties can be estimated by adding a second low-pass filter; as a result, the switching gain is reduced to the minimum level, while the first low-pass filter smooths out the switching control. However, during the filter’s reaching phase, there are no control inputs from both low-pass filters and a feed forward term from an equivalent control may not have the capability to override the uncertainties. If another control input, during the reaching phase, can be adjusted suitably, better transient control can be achieved. The assumptions below are made for control law derivation in the next section.

*Assumption 1. *The functions , , and are continuous in for all and continuously differentiable.

*Assumption 2. *The uncertainties are within the range space of the control distribution matrix and uncertainty variation does not affect the control direction.

*Assumption 3. *The estimated control distribution matrix is invertible and continuously dependent on parametric uncertainty [28].

*Assumption 4. *Let be upper bounded by and upper bounded by , where and are known constants.

*Assumption 5. *The input matrix is bounded by and its derivative is upper bounded by , where , , and are known constants.

##### 2.2. Closed-Loop Control Design

To design the control law, a definition of the sliding function similar to the work of Slotine and Li [28] is adapted to the first-order system. The sliding function can be made on each state as

Then, the -dimensional sliding function and its first derivative for the system in (1) can be expressed aswhere has components satisfying the sliding function stated earlier and is a positive constant coefficient matrix with full row rank. Its argument is a gradient vector of the sliding function [42] which is unity in each sliding surface due to the first-order system.

From Figure 1, the control input is where is the low-frequency pass filter signal which is a result of a first-order low-pass filter of the switching signal ; . Let , , and denote the control signal of the adaptive PID tuning. is an approximation of the control input that neglects the last term of the RHS of (1) and is the unit matrix. Therefore, an approximation can be obtained similar to the idea of the equivalent control input [15] which is

For the solution of , it can be obtained bywhere is the cut-off frequency. The LPF is activated at the time of with the zero initial condition of and given is the reaching time. For , it can be obtained bywhere is the proportional gain, is the integral gain, and is the derivative gain. , , and which are not equal to zero.

###### 2.2.1. Reaching Phase Analysis

This section presents a description of the reaching time calculation for the closed-loop control system by the proposed control law in (4). For the reaching time (), the first-order LPF will be activated when with zero initial condition of the filter input signal. Consequently, for . Therefore, the control input during the reaching phase is obtained by

Note that Assumption 5 can be extended to the gain margin concept [28] for adaptation law derivation. For stability in the reaching phase, Lyapunov’s theorem is chosen to prove the stability of the controller and the errors can converge to the sliding surface if is constructed to achieve the first derivative of the Lyapunov function candidate . Choose the Lyapunov function candidate of . Therefore, at the reaching phase can be described as

Then, the derivative of the Lyapunov function, (9), can be rewritten as

To find the condition satisfying the Lyapunov stability, the first derivative of the sliding function must be substituted into (10). It can be derived bywhere . Equation (11) shows the fact that the control gain cannot be determined exactly. In the following, the gain margins concept [28] is adapted without loss of generality due to the uncoupling and matching conditions. From the concept, the gain estimation can be described by , , and the bound of the control gain ratio can then be realized in the form while , and the initial value in each argument of the three gains (, , and ) of the PID portion is positive. Substituting (11) into (10) yieldswhere , which is the adaptation term. For (12), if is chosen to overcome a part of the uncertainties, the adaptation law in the last term can be determined to eliminate the rest of them consequently. In order to compensate for the uncertainties in the reaching phase, the proportional gain should satisfy equations below:

Then all arguments in the proportional gain are selected to satisfy

Equations (13) to (15) correspond to the gain margin calculation method [28]. Even if the proportional term can be designed to cope with the first term in (12), its residual error still exists. Let the residual error be the difference between the first term and the second term of (12). It is bounded by a positive value due to a bounded control input. By adding the bound of the control gain ratio, (12) can be rewritten as

Obviously, to satisfy the Lyapunov stability of the condition, , and the adaptation law can be designed as , , and . Note that the proportional gain has a coupling effect with the sliding gain, which operates with the unity boundary layer width. Therefore, does not need to be updated online. The adaptation gains ( and ) are capable of guaranteeing the stability only outside the bound of the control gain ratio . This implies that this technique only offers a uniform ultimate boundedness response. Additionally, it is usual to have a solution when the control gain magnitude is unknown. Even if the control gain is known or adapted, the ultimate boundedness still occurs inside the vicinity around the sliding surface. Notice that at the beginning state, the integral and the derivative terms of the adaptation law may be arbitrary small, because the uncertainties at the beginning state can be compensated by . Consequently, (16) can be replaced by the adaptation law and the new expression of (16) becomes

With the positive-initial value of the PID gains and the condition of (15) and the adaptation laws, the stability within the reaching phase can be guaranteed. The reaching time () can be obtained by

###### 2.2.2. Existence of the Sliding Condition

The key issue of this section is to describe the sliding mode retention. For the existence conditions of the sliding mode at , the first-order low-pass filter (LPF) is activated and the switching signal is alleviated in turn. To describe the existence of the sliding condition, substitute the control law . Therefore, the derivative of the closed-loop dynamic at can be obtained by

With the condition in (15), (19) can be rearranged as

Multiplying (20) by yields

From the condition in (15), the sliding gain can be changed to be and the output from the LPF can be satisfied by . Therefore

As the reaching phase analysis, the control law in (8) and its adaptation law offer convergence regulation of the state. Intuitively, the sliding function is bounded about the sliding surface due to imperfection of control action in practice. Thus, the derivative of the sliding function will be bounded by the boundedness of which also implies the integral of converges to some limit [43]. Consequently, the RHS of (22) can be bounded and is rewritten by a residual matrix . For each argument of the , the residual function , , can be interpreted as residual errors after the reaching phase, which satisfy

Given and , (23) is rewritten as

From (24), the bound on can be interpreted into a bound on the filter output . Define the bound of . The bound of the filter output can be written as (25) which corresponds to [28] In which tends to [28] when . Thus,

Consider (26), if and are known, the residual uncertainties from the reaching phase can be compensated by . To consider the stability of the control system by using the input according to (4), (12) can be rewritten as

Notice that the adding of the leads to uncertain of negative definite on the Lyapunov function derivative. In order to stabilize (27), the proportional portion has to take the output from the LPF and the bound of uncertainty and its derivative into account. By defining , the modified proportional gain for each sliding surface can be . And together with the adaptation laws defined in the previous section, in (27) is negative definite (). The sliding motion can be guaranteed for under the conditions stated earlier.

#### 3. Description of the Engine Speed Control Modeling

As stated earlier, a key step of the development control scheme is based on the robust control techniques in which the approach has the ability to neglect the conservatism and the need for precise modeling [44]. In addition, the development of an exact model for a real engine system is difficult, because some parameters in the mathematical model cannot be obtained exactly, and the real plant is affected by the complexity of its uncertain nonlinearity [45]. Consequently, the system modeling in this work was linearized through the nominal transfer function of the real plant as the form of where is the output, the time delay is , is the control input for a throttle actuator, and is the control input for the spark advance system. and are the linearized models by and , respectively. Note that the symbol in this section denotes the complex argument of the Laplace transform which is not the sliding function.

Although the conventional relevant engine dynamic for engine speed control depends on the coordination between the throttle actuator and the spark advance system; for the assessment in this work, we have designed a controller that aims to control only the throttle actuator, while the spark advance system is handled by conventional controller of the engine system. Therefore, the system modeling in this work can be obtained by an adjustment of the throttle opening position in degrees, which is directly controlled with a DC motor that is excited by the feed-forward control signal in DC-voltage as an input and the crankshaft speed in revolutions per minute (rpm) as an output. Consequently, the linearization model at speed 900 rpm can be approximated in the transfer function form aswhere is the transfer function of the real plant which has units of revolutions per minute (rpm). From the rough identifications of (29), it is the third-order with relative degree one and the system is BIBO stable because all poles are located on the left-hand side (LHS) of the -plane. In addition, for the reason of low-speed control test (900 rpm), it is sensitive to any uncertain nonlinearities and external disturbances. Therefore, the implementation of speed control in the low-speed region is more difficult than in the high-speed control region. Furthermore, on average 30 percent of fuel consumption in urban city driving is spent at the idle speed range [46]. As a consequence, increasing the performance of the low-speed control is able to increase fuel economy and performance of the engine operation at any operating condition [32].

For simplicity, to make the engine speed response as the canonical form of (1), the rough identification model of (29) can be simplified to the first-order transfer function as follows:

To make clear the acceptability of (30), the bode plot and the step response comparison between (29) and (30) are demonstrated in Figure 2. The results make clear that the first-order transfer function in (30) can be employed in the performance assessment of the proposed controller design in the simulations and (30) can be expressed as the time-domain differential equation as follows:where is the speed output and is the input.

#### 4. Illustrative Examples

##### 4.1. Simulation Verification

For the simulation verification, the system modeling of (31) is used in order to assess the performance of the proposed control scheme (LPFSMC and Adaptive PID) that is performed via MATLAB-Simulink programming with a sampling period of 1 ms. The performance of the proposed controller is compared with different control techniques, which are the PID control technique and the SMC technique. The specific control parameters are chosen such that the sliding gain of the proposed control scheme and the conventional SMC is , the cut-off frequency of the first-order LPF is , while the setting control parameters of the PID controller are obtained by the Ziegler-Nichols tuning method.

Figure 3(a) demonstrates the response results of the proposed control scheme which has a small rise time and setting time and higher tracking accuracy than other control techniques (PID controller and SMC). It demonstrates that the proposed adaptation law is capable of updating the PID controller online during the control process within a short period. Furthermore, the proposed control scheme can provide optimal control input rapidly and has smooth control input which is achieved by the cut-off frequency property of the LPF (see Figure 3(b)).

**(a)**

**(b)**

**(c)**

Figure 3(c) shows the error comparison among the different controllers; as the results, the errors from the proposed control scheme can approach zero faster than other control techniques and it has lower chattering than the SMC technique. Note that although the chattering of the output response, control input, and the errors of the PID controller does not appear, the results (see Figure 3) reveal that its response has higher rise-time, high-overshoot, and longer setting time, which are not satisfactory from the viewpoint of a control system.

##### 4.2. Practical Experiment

In this section, we demonstrate the efficiency of the proposed control scheme in the real system. The experimental technical data are shown in Table 1. In our setup, the functional block diagrams of the apparatus used in the experiments are illustrated in Figure 4 which is used for performance assessment of the proposed control scheme. The system in Figure 4 consists of five main parts, which are the controller unit, electronic throttle valve control unit (ETC), spark-ignition (SI) engine system, the power train system, and the dynamometer which is used to generate the load-torque into the system. The engine speed is interpreted as the crankshaft rotation rate in revolutions per minute (rpm) and is regulated by opening the throttle. In this task, the throttle valve is directly actuated by a DC motor in which the angular movement is handled by the control signal in the form of Pulse Width Modulation (PWM). The exhaust emissions CO and HC were also measured through a nondispersive infrared analysis machine (Infralyt smart) in which the acquiring sampling data is 1 s, while the fuel consumption was measured by the fuel flow sensor (Hall effect-800 series) with the sampling period is 1 ms. The computation unit is performed with MATLAB-Simulink programming. An ADC/DAC is used as an interface system between the computer and the real plant, while the sampling period is 1 ms for all experiments.

As seen in Figure 5, the desired speed is chosen to rapid change from 750 rpm to 900 rpm and 900 rpm to 750 rpm, and the experiments were performed for 200 s. This result reveals that the speed response of the proposed control scheme can reach the desired speed within short time and has no overshoot and tiny oscillation. The control input is smooth and reaches an optimal value within a short time, and the sliding variable can approach zero rapidly. Fast convergence of the response is a result of the updated control gains ( and ) of the PID controller which can be adjusted rapidly during the control process according to the adaptive law. Furthermore, the characteristic of the opening position of the throttle valve was also measured. This reveals that the motion of the actuator has smooth and tiny oscillations.

##### 4.3. Tracking Performance and Disturbance Rejection Test

The robust properties and the tracking performance of the proposed control scheme were also assessed, because it is well known that the engine speed control is affected by the state of accessory changes such as external load disturbance [41]. In the experiments, we compare the disturbance rejection performance among the proposed controller, SMC technique, and PID controller. The load disturbance is generated by the dynamometer, while the speed set-point is chosen to be 900 rpm. Note that, for the reason of low-speed test, it is sensitive from any disturbances; therefore, the implementation in the low-speed region is more difficult than the high-speed control task. Furthermore, high performance of low-speed control leads to increase the performance of the engine operation at any operating condition [32].

As seen in Figure 6, at the time 125 sec, the load torque was applied immediately into the engine speed control task. This proposed to disturb the stability of the control system at the steady-state condition. The proposed control scheme can improve the speed deviation rapidly and is capable of tracking the desired speed better than other control techniques. In addition, the load torque was decreased immediately at the time 150 sec. The results show that the proposed control scheme can decrease the speed deviation from the desired speed faster than other control techniques. The findings reveal that the proposed control scheme has effective of the robustness and fast adaptation and has better tracking performance than other control techniques.

##### 4.4. Fuel Consumption and Exhaust Emission Investigation

In this section, the fuel consumption and the exhaust emission of the engine speed control by using the proposed control scheme and different control techniques (SMC technique and PID controller) were investigated (see Figure 7). In the experiments, the desired speed was performed for 400 sec and was rapidly changed as shown in Figure 7(a). For the average total fuel consumption comparison (see Figure 7(b)), the proposed control scheme can attain an excellent result with the lowest averaged total fuel consumption which was obtained by the average of the fuel consumptions per second.

**(a)**

**(b)**

**(c)**

In addition, the average exhaust emissions were also investigated (see Figure 7(c)). The CO and HC emissions are the main pollutants contributed by the SI engines. In the principle of the combustion process of SI engine, the HC emission is appeared when fuel molecules in the engine cannot burn or burn only partially, while the CO emission is produced when the carbon in the fuel is partially oxidized rather than fully oxidized to carbon dioxide. However, increasing efficient strategies for engine speed control via throttle valve regulation method is capable of increasing combustion performance as it can reduce pollutant emissions also [38]. In the experiments, effects of the controllers were investigated via the constant speed set points and no adding an external engine load (small load from the unloaded hydrostatic CVT). Thus the CO_{2} and NO_{x} which are sensitive to speed variation and high temperature operation did not measure in this work (the experiments perform at coolant temperature of 70–80°C for short period). As a result, both averages of the CO and HC emission data were calculated by the average of emissions per second in which obtained by the direct measurement method [43]. Additionally, these results demonstrate that high fuel consumption and exhaust emission are affected by high variation of the engine speed during tracking of the set points. These results also imply that the performance of the SI engine at any operating condition can be improved by an advanced engine speed control via the electronic throttle valve regulation method, as shown in Figure 7.

#### 5. Conclusions

The incorporation of the SMC and a first-order LPF with a new adaptive PID controller is proposed for tracking the control task of an uncertain nonlinear system. The controller has been successfully applied to the problem of the speed tracking control of an SI engine through electronic throttle valve control architecture. From the simulation and experimental results, it achieves that(1)the proposed adaptation law is capable of optimal online update the PID controller during the control process within a short period;(2)the chattering of the SMC can be alleviated by a first-order low pass filter, while the robustness of the control system similar to that of the sliding mode such that the load torque disturbances can be compensated quite accurately;(3)the proposed control scheme has high performance in implementation as it can be achieved in the problem of engine speed control in which the system is largely uncertain nonlinear system and rather complex mechanisms.

#### Conflict of Interests

The authors have no competing interests.

#### Acknowledgment

This research is financially supported by the Office of Research Administration (ORA) and Farm Engineering and Automation Technology Research Group (FEAT) of Khon Kaen University, Thailand. The authors are also thankful to the reviewers and Mr. Ian Thomas for their valuable comments and suggestions for English grammar correction, respectively.