1 Introduction

Sliding mode control (SMC) is an effective strategy for controlling systems with significant uncertainties and unmeasurable disturbances [15]. The control however is discontinuous and requires the bounds of uncertainties and disturbances. In many situations, these bounds are hard to find, which result in overestimation and consequently a large control. Additionally, the discontinuous control leads to chatter. The chatter is undesirable because it causes excessive wear and tear of components and can excite fast unmodelled dynamics. The chatter in control and states is a major concern in the practical implementation of SMC [6, 7].

The most popular method for chatter control is the boundary layer control [8, 9] in which the control is discontinuous outside a boundary layer, but is continuous inside. The method tries to strike a trade off between invariance of system trajectories and smoothness of control.

Lee and Utkin [10] use state-dependent or equivalent-control-dependent, magnitude of the discontinuous control for chatter suppression. A variety of other strategies like filtering of control signal [11], time varying feedback gain [12, 13], Euler time-discretization [14], integration of control signal [15, 16], fuzzy logic [17], neural network [18], quantitative feedback theory [19] have been proposed in literature to address the problem of chattering. The methods of chattering suppressions related to higher order sliding modes can be found in [2022],

A combination of SMC with methods that give estimates of uncertainty and disturbance enables the reduction of discontinuous component of control, thereby suppressing the chatter significantly. The uncertainty and disturbance estimator (UDE) [23] is one such strategy for estimating slow varying uncertainties. This method has been applied to SMC [24] and in applications like load frequency controller [25], flexible joint [26], robotic control [27] to name a few. In [2527] the focus is on estimation accuracy rather than chatter; and sliding surface used has the shortcoming of resulting in large initial control.

A strategy for chatter control based on UDE is proposed in this paper. The control scheme uses a discontinuous control outside the boundary layer and switches over to UDE based control inside. The method of UDE results in a large initial control for systems with non-zero initial conditions. The strategy proposed here will handle this drawback in a novel way. The stability of the system inside the boundary layer is proved.

In this paper, UDE is used to estimate the lumped uncertainty comprising of uncertainty in plant as well as input matrix and unknown disturbance. The main contributions of this paper are as follows:

  1. (i)

    The class of disturbances considered here is significantly larger.

  2. (ii)

    The sliding surface is modified to circumvent the problem of large initial control.

  3. (iii)

    No knowledge of bounds on uncertainties and disturbances is required.

  4. (iv)

    The ultimate boundedness of estimation error (\(\tilde{e}\)) and sliding variable (\(\sigma \)) is guaranteed inside the boundary layer.

The paper is organized as follows: Sect. 2 describes the discontinuous sliding mode control design. A control based on uncertainty and disturbance estimation using UDE is explained in Sect. 3. Section 4 gives the stability analysis. The performance is illustrated by a numerical example in Sect. 5 followed by application to flexible joint system in Sect. 6 and conclusion in Sect. 7.

2 Sliding mode control

Consider an uncertain single input single output (SISO) system,

$$\begin{aligned} \dot{x}= A\,x+ b\,u + \varDelta A\,x + \varDelta b\,u + d(x,t) \end{aligned}$$
(1)

where \(x\) is the state vector, \(u\) is the control input, \(A\) and \(b\) are known constant matrices, \(\varDelta A\) and \(\varDelta b\) are uncertainties and \(d(x,t)\) is the unknown, unmeasurable disturbance.

Assumption 1

The uncertainties \( \varDelta A, \varDelta b\) and disturbance \(d(x,t)\) satisfy matching conditions given by,

$$\begin{aligned} \varDelta A=bD, \quad \varDelta b=bE, \quad d(x,t)=bv(x,t) \end{aligned}$$
(2)

where \(D\) and \(E\) are unknown matrices of appropriate dimensions and \(v(x,t)\) is an unknown function.

The Eq. (2) is the well-known matching condition required to guarantee invariance and is an explicit statement of the structural constraint stated in [28]. The system (1) can now be written as,

$$\begin{aligned} \dot{x}= A\,x+ b\,u + b\,e(x,t) \end{aligned}$$
(3)

where \(e(x,t)=D\,x+E\,u+v(x,t)\) is the lumped uncertainty comprising of uncertainties in \(A\) and \(b\) as well as external disturbance.

Assumption 2

The lumped uncertainty \(e(x,t)\) is bounded by a known function,

$$\begin{aligned} \left| e(x,t)\right| = \rho (x,t) \end{aligned}$$
(4)

where \(\rho (x,t)\) is a known positive scalar function.

For a sliding surface,

$$\begin{aligned} \sigma =s\,x \end{aligned}$$
(5)

the control that ensures sliding is given by,

$$\begin{aligned} u=u_n+u_{eq} \end{aligned}$$
(6)

where

$$\begin{aligned} u_{eq}=-(sb)^{-1}(sAx+k\sigma ) \quad \quad {k>0} \end{aligned}$$
(7)

and

$$\begin{aligned} u_n=-\rho (x,t) {{\mathrm{sgn}}}(\sigma s b) \end{aligned}$$
(8)

The control given by (8) is discontinuous. Since discontinuous control is objectionable, a commonly used smooth approximation of \(u_n\) is given by,

$$\begin{aligned} u_n = {\left\{ \begin{array}{ll} -\rho (x,t) {{\mathrm{sgn}}}(\sigma s b), &{} | \sigma s b| > \epsilon \\ \frac{-\rho (x,t)}{\epsilon }, &{} | \sigma s b| \le \epsilon \end{array}\right. } \end{aligned}$$
(9)

where \(\epsilon \) is a small positive number. The well known drawbacks of the smooth approximation are that a small \(\epsilon \) retains invariance but may result in chatter while large \(\epsilon \) suppresses chatter but results in significant loss of invariance.

3 A new smooth control inside the boundary layer

A smoothing approach using uncertainty and disturbance estimator (UDE) is used for chatter suppression. The key idea in UDE based control is to approximate and estimate the uncertainty using a filter of right bandwidth. The opposite of estimate is then used in control to negate the effect of the uncertainty [23, 24]. The following assumption is needed to ensure that \(\tilde{e}\) (i.e. \(e-\hat{e}\)) is bounded.

Assumption 3

The lumped uncertainty \(e(x,t)\) is continuous and satisfies,

$$\begin{aligned} \left| \frac{d^{(j)}e(x,t)}{dt^{(j)}}\right| \le \mu \qquad \text {for}\, j = 0,1,2,\ldots ,r \end{aligned}$$
(10)

where \(\mu \) is a small positive number.

The lumped uncertainty \(e(x,t)\) can be estimated as,

$$\begin{aligned} \hat{e} = e\,G_f(s) \end{aligned}$$
(11)

where \(G_f(s)\) is a strictly proper low-pass filter with unity steady state gain and sufficiently large bandwidth.

Using (3) and (5)

$$\begin{aligned} \dot{\sigma }=s\,A\,x + s\,b\,u + s\,b\,e \end{aligned}$$
(12)

Using (6) and (7) in (12)

$$\begin{aligned} \dot{\sigma }&= s\,b\,u_n+ s\,b\,e- k\,\sigma \end{aligned}$$
(13)
$$\begin{aligned} e&= (sb)^{-1}(\dot{\sigma }+k\sigma )-u_n \end{aligned}$$
(14)

The control strategy in UDE is to estimate lumped uncertainty \(e\) as \(\hat{e}\) (11) and use \(-\hat{e}\) as a component in control; to cancel the effect of \(e\). Let

$$\begin{aligned} u_n=-\hat{e} \end{aligned}$$
(15)

Using (11), (14) and (15),

$$\begin{aligned} u_n=-(sb)^{-1} (\dot{\sigma }+ k \sigma ) \frac{G_f(s)}{1-G_f(s)} \end{aligned}$$
(16)

Specially for a choice of \(G_f(s)\) given by,

$$\begin{aligned} G_f(s)=\frac{1}{1+\tau s} \qquad \text {(first order filter)} \end{aligned}$$
(17)

where \(\tau \) is a small positive constant,

$$\begin{aligned} u_n=-(sb)^{-1}\frac{1}{\tau }\left( \sigma + k \int \sigma \right) \end{aligned}$$
(18)

From Eqs. (11) and (17)

$$\begin{aligned} \dot{\tilde{e}} = -\frac{1}{\tau } \tilde{e} + \dot{e} \end{aligned}$$
(19)

From Eqs. (13) and (15)

$$\begin{aligned} \dot{\sigma }= -k\,\sigma +s\,b\,\tilde{e} \end{aligned}$$
(20)

Remark 1

If \(\dot{e}=0\), \(\tilde{e}\) goes to zero asymptotically, otherwise it is ultimately bounded. As a consequence \(\sigma \rightarrow 0\), if \(k > 0\) and \(\tau > 0\). If \(\dot{e}\) is not small, but \(\ddot{e}\) is small, i.e \(j=2\) in (10), then the accuracy of estimation can be improved by estimating \(e\) as well as \(\dot{e}\).

The ultimate boundedness of \(\tilde{e}\) and calculation of bound is discussed in Sect. 4. The improvement obtained using an higher order filter is derived in Sect. 3.3 and shown in the results. The proposed estimator does not need any knowledge of the size of the uncertainty. It can estimate slow varying lumped uncertainties accurately, if \(\tau \) is chosen to be a small constant. However a small \(\tau \) results in a large control \(u_n\) at \(t=0\), since \(\sigma (0)\) may not be a small number in general. To circumvent this problem, a modified sliding surface is proposed.

3.1 Modified sliding surface

The conventional sliding surface is modified as,

$$\begin{aligned} \sigma ^* = \sigma - \sigma (0)\,e^{-\alpha t} \end{aligned}$$
(21)

where \(\alpha \) is a user chosen positive constant.

It may be noted that at \(t=0\), the modified sliding variable \(\sigma ^*(0)=0\) for any \(\sigma (0)\) and \(\sigma ^*\rightarrow \sigma \) as \(t \rightarrow \infty \).

3.2 Design of control

From (3) and (21),

$$\begin{aligned} \dot{\sigma }^* = s\,A\,x + s\,b\,u + s\,b\,e + \sigma (0)\,\alpha \,e^{-\alpha \,t} \end{aligned}$$
(22)

selecting control,

$$\begin{aligned} u=u_{eq} + u_n \end{aligned}$$
(23)

and

$$\begin{aligned} u_{eq}&= -(sb)^{-1}(s\,A\,x + \sigma (0)\,\alpha \,e^{-\alpha \,t} + k\,\sigma ^*) \end{aligned}$$
(24)

Working on lines similar to Sect. 2, it is straightforward to obtain,

$$\begin{aligned} u_{n}= -(sb)^{-1} \frac{1}{\tau }\left[ \sigma ^* + k \int \sigma ^*\right] \end{aligned}$$
(25)

The advantage of (25) is that even for small \(\tau \), \(u_n\) is not large, since \(\sigma ^*\) is small for all \(t\ge 0\). It may be noted that \(u\) is continuous for all \(t\ge 0\) and therefore the control is chatter free.

Remark 2

The control developed in this section is different from the one developed in [25]. The definition of the sliding variable is different and while the control in [25] requires real time integration to find the values of the sliding variable, the proposed control does not require such an integration.

3.3 Control using second order UDE

With reference to Remark 1, the accuracy of estimation can be improved by using a second order UDE. The uncertainty (\(e\)) and its derivative (\(\dot{e}\)) can be estimated using a second order filter of the form,

$$\begin{aligned} G_f(s)=\frac{1+2\tau s}{\tau ^2s^2+2\tau s+1} \end{aligned}$$
(26)

where \(\tau \) is a small positive constant.

Using (22), (23) and (24)

$$\begin{aligned}&\dot{\sigma }^*= s\,b\,u_n+ s\,b\,e- k\,\sigma \end{aligned}$$
(27)
$$\begin{aligned}&e=(sb)^{-1}(\dot{\sigma }^* +k\sigma ^*)-u_n \end{aligned}$$
(28)

Using (11), (15) and (28),

$$\begin{aligned} u_n=-(sb)^{-1} (\dot{\sigma }^* + k \sigma ^*) \frac{G_f(s)}{1-G_f(s)} \end{aligned}$$
(29)

With \(G_f(s)\) as in (26),

$$\begin{aligned} u_n=-(sb)^{-1}\left( \frac{2}{\tau }\sigma ^*+\frac{2\tau k+1}{\tau ^2}\int _0^t\sigma ^*+\frac{k}{\tau ^2}\int _0^t\int _0^t\sigma ^*\right) \end{aligned}$$
(30)

3.4 Proposed control

The proposed boundary layer SMC with first order UDE, for chatter reduction can be written as,

$$\begin{aligned}&u_{eq}= -(sb)^{-1}(s\,A\,x + \sigma (0)\,\alpha \,e^{-\alpha \,t} + k\,\sigma ^*) \end{aligned}$$
(31)
$$\begin{aligned}&u_n = {\left\{ \begin{array}{ll} -\rho {{\mathrm{sgn}}}(\sigma \,s\,b), &{} |\sigma sb|> \epsilon \\ -(sb)^{-1} \displaystyle \frac{1}{\tau } \left( \sigma ^* + k \int \sigma ^*\right) ,&{} |\sigma sb|\le \epsilon \end{array}\right. } \end{aligned}$$
(32)

4 Stability

The estimation error \(\tilde{e}\) and sliding variable \(\sigma \) are ultimately bounded. Here the general case when \(j=1\) in (10) is considered. The bounds on \(\tilde{e}\) and \(\sigma \) are found by considering the Lyapunov function as,

$$\begin{aligned} V(\sigma ,\tilde{e})=\frac{1}{2}\sigma ^2 \,+\, \frac{1}{2}\tilde{e}^2 \end{aligned}$$
(33)

Taking derivative of \(V(\sigma ,\,\tilde{e})\) along (19) and (20 27)

$$\begin{aligned} \dot{V}(\sigma ,\tilde{e})&= -k\sigma ^2+s\,b\,\sigma \,\tilde{e}-\frac{1}{\tau }\tilde{e}^2+\tilde{e}\,\dot{e} \end{aligned}$$
(34)
$$\begin{aligned}&\le -k\sigma ^2 +|sb|\,|\sigma |\, \Vert \tilde{e}\Vert - \frac{1}{\tau }\Vert \tilde{e}\Vert ^2+\Vert \tilde{e}\Vert \,\mu \end{aligned}$$
(35)

Using Young’s inequality [29],

$$\begin{aligned} ab \, \le \, \frac{a^2+b^2}{2} \end{aligned}$$

for any real \(a\) and \(b\), one can obtain

$$\begin{aligned} \dot{V}(\sigma ,\tilde{e})&\le -k\sigma ^2 +\frac{|sb|}{2}\left( |\sigma |^2+\Vert \tilde{e}\Vert ^2\right) - \frac{1}{\tau }\Vert \tilde{e}\Vert ^2+\Vert \tilde{e}\Vert \,\mu \nonumber \\ \end{aligned}$$
(36)
$$\begin{aligned} \dot{V}(\sigma ,\tilde{e})&\le -|\sigma |^2 \left( k -\,\frac{|sb|}{2}\right) -\Vert \tilde{e}\Vert ^2 \left( \frac{1}{\tau }\,-\,\frac{|sb|}{2}\right) + \Vert \tilde{e}\Vert \,\mu \nonumber \\ \end{aligned}$$
(37)
$$\begin{aligned} \dot{V}(\sigma ,\tilde{e})&\le -|\sigma |^2 \left( k -\,\frac{|sb|}{2}\right) -\Vert \tilde{e}\Vert \left[ \Vert \tilde{e}\Vert \left( \frac{1}{\tau }\,-\,\frac{|sb|}{2}\right) - \mu \right] \nonumber \\ \end{aligned}$$
(38)

With \(\displaystyle \left( k -\,\frac{|sb|}{2}\right) > 0\) and \(\displaystyle \left( \frac{1}{\tau } - \frac{|sb|}{2}\right) >0\), the system will be ultimately bounded. Using (38), the bound on \(\tilde{e}\) works out to be,

$$\begin{aligned} \Vert \tilde{e}\Vert \le \frac{\mu }{\displaystyle \left( \frac{1}{\tau } - \frac{|sb|}{2}\right) } \end{aligned}$$
(39)

Similarly the bound on \(\sigma \) works out to be,

$$\begin{aligned} |\sigma | \le \frac{|sb|\mu }{k\,\displaystyle \left( \frac{1}{\tau } - \frac{|sb|}{2}\right) } \end{aligned}$$
(40)

Thus \(\Vert \tilde{e}\Vert \) and \(|\sigma |\) are ultimately bounded and the bounds can be lowered using control parameters \(k\) and \(\tau \).

5 Numerical example

The following continuous system is considered to illustrate the results:

$$\begin{aligned}&A=\left[ \begin{array}{rr} 0 &{} 1\\ -2 &{} -3 \end{array}\right] ,\; b=\left[ \begin{array}{c} 0 \\ 1 \end{array}\right] ;\\&\varDelta A=\left[ \begin{array}{rr} 0 &{} 0\\ -1 &{} -2 \end{array}\right] ,\; \varDelta b=\left[ \begin{array}{c} 0 \\ -0.4 \end{array}\right] ;\\ \end{aligned}$$

\(\varDelta A\) and \(\varDelta b\) are the uncertainties in the plant. The initial conditions for the plant are \(x_0=[1 \quad 0]^T \) and control gain is \(k=5\). The disturbances considered are sinusoidal and sawtooth as shown in Fig. 1.

Fig. 1
figure 1

Disturbances considered. a Sinusoidal, b triangular

The discontinuous control is approximated with continuous approximation inside the boundary layer using sat function. The sliding plane used is \(\sigma =4 x_1+x_2\). The well known trade-off between smoothing and invariance is verified for varying values of \(\epsilon \); for both sinusoidal as well as sawtooth disturbance. It is clearly evident that the chatter is dependent on the value of \(\epsilon \). The RMS values of \(\sigma \) for different values of \(\epsilon \) are tabulated in Table 1.

Table 1 Variation in \(\sigma \) for different values of \(\epsilon \)

The control performance is illustrated in Fig. 2 for a sinusoidal disturbance and boundary layer width of \(\epsilon =0.02\). The states are shown in Fig. 2a, while a magnified view of the same graph is shown in Fig. 2b. It can be seen that for this case, the evolution of states inside the boundary layer depends on the disturbance acting. The sliding variable is shown in Fig. 2d. The chattering is evident in Fig. 2d.

Fig. 2
figure 2

States, control and sliding variable—sat function. a Plant states \(x_{\mathrm{plant}}\), b magnified plant states \(x_{\mathrm{plant}}\), c control \(u\), d sliding variable \(\sigma \)

The sat function is replaced by a first order UDE with filter time constant \(\tau \). The sliding plane is modified as \(\sigma ^* = \sigma - \sigma (0)\,e^{-\alpha t}\) so that initial control is within limits. The Fig. 3 shows that the modified sliding variable (\(\sigma ^* = \sigma - \sigma (0)\,e^{-\alpha t}\)) significantly reduces the initial control as compared to the conventional sliding plane (\(\sigma = sx\).)

Fig. 3
figure 3

Comparison of control. a Conventional sliding plane, b modified sliding plane

The state tracking, control and sliding variable for a first order UDE with \(\tau =0.001\,s\) is shown in Fig. 4a–d.

Fig. 4
figure 4

States, control and sliding variable—first order UDE. a Plant states \(x_{\mathrm{plant}}\), b magnified plant states \(x_{\mathrm{plant}}\), c control \(u\), d sliding variable \(\sigma \)

The results clearly demonstrate that, use of first order UDE in comparison to sat function reduces the chatter by a substantial amount.

The RMS values of \(\sigma \) with modified sliding plane and first order UDE, for \(\epsilon =0.02\) in Table 2 validates the same.

The results can be improved further by using a second order filter. The results with such a filter for \(\tau =0.001\) s are shown in Fig. 5, which shows that the improvement is indeed significant.

It is evident from Figs. 4d, 5d, that chattering is significantly reduced. The disturbance considered in these results is sinusoidal. The same results are observed for constant as well as sawtooth disturbance.

The value of \(\tau \) has a direct effect on chatter mitigation, for a given boundary layer width \(\epsilon \). The value of \(\tau \) and order of filter directly affect the accuracy of uncertainty estimation and consequently affect the achievable chatter reduction. The same can be seen in Fig. 6.

Table 2 Variation in \(\sigma \) with first order UDE
Fig. 5
figure 5

States, control and sliding variable—second order UDE. a Plant states \(x_{\mathrm{plant}}\), b magnified plant states \(x_{\mathrm{plant}}\), c control \(u\), d sliding variable \(\sigma \)

Fig. 6
figure 6

Effect of \(\tau \) and filter order on chatter mitigation. a First order UDE (\(\tau =0.01\) s), b first order UDE (\(\tau =0.1\) s), c second order UDE (\(\tau =0.01\) s), d second order UDE (\(\tau =0.1\) s)

The RMS values of \(\sigma \) with \(\epsilon =0.02\) clearly demonstrates that UDE scores in comparison with sat function. The chatter is reduced as the order of UDE is increased. The value of \(\tau =0.001\,s\) and sinusoidal disturbance is considered (Table 3).

6 Application to flexible joint system

The problem of joint flexibility has received considerable attention as the major source of compliance in most present day manipulator designs. This joint flexibility typically arises due to gear elasticity, shaft windup, etc., and is important in the derivation of control law. Unwanted oscillations due to joint flexibility, imposes bandwidth limitations on all algorithm designs; based on rigid robots and may create stability problems for feedback controls that neglect joint flexibility. A feedback linearization (FL) based control law made implementable using extended state observer (ESO) is proposed for the trajectory tracking control of a flexible joint robotic system in [30]. Controller design based on the integral manifold formulation [31], adaptive control [32], adaptive sliding mode [33] and back-stepping approach [34] are some other approaches reported in the literature. In this work, a model following SMC is proposed to control flexible joint manipulator with uncertainty and disturbance. A nonlinear disturbance is considered here and the plant model is controlled to follow the desired states and the uncertainty and disturbance is estimated with UDE.

Table 3 Variation in \(\sigma \) with different approximations

The equations of motion for the Quanser’s Flexible Joint module as given in [35] are,

$$\begin{aligned}&\ddot{\theta }+ F_1 \dot{\theta }- \frac{K_{\mathrm{stiff}}}{J_{\mathrm{eq}}} \alpha = F_2 V_m \nonumber \\&\ddot{\theta }- F_1 \dot{\theta }+ \frac{K_{\mathrm{stiff}}(J_{\mathrm{eq}}+ J_{\mathrm{arm}})}{J_{\mathrm{eq}}J_{\mathrm{arm}}} \alpha = -F_2 V_m \end{aligned}$$
(41)

where,

The parameters are : \(\theta \) is motor load angle, \(\alpha \) is link joint deflection, \(\eta _m\) is the motor efficiency, \(\eta _g\) is the gearbox efficiency, \(K_t\) is the motor torque constant, \(K_m\) is the back EMF constant, \(K_g\) is the gearbox ratio, \(B_{\mathrm{eq}}\) is the viscous damping coefficient, \(R_m\) is the armature resistance, \(J_{\mathrm{eq}}\) is the gear inertia, \(K_{\mathrm{stiff}}\) is the spring stiffness, \(J_{\mathrm{arm}}\) is the link inertia, and \(V_m\) is the motor control voltage.

Fig. 7
figure 7

States, control and sliding variable (\(\tau \) = 10 ms). a Plant and model state \(x_1\), b plant and model state \(x_2\), c plant and model state \(x_3\), d plant and model state \(x_4\), e control \(u\), f sliding variable \(\sigma \)

Fig. 8
figure 8

States, control and sliding variable (\(\tau =\) 1 ms). a Plant and model state \(x_1\), b plant and model state \(x_2\), c plant and model state \(x_3\), d plant and model state \(x_4\), e control \(u\), f sliding variable \(\sigma \)

Considering the output of the system as \(y = \theta + \alpha \), the dynamics (41) in terms of \(y\) and \(\theta \) is re-written as,

$$\begin{aligned} \ddot{y}&= \frac{K_{\mathrm{stiff}}}{J_{\mathrm{eq}}} F_3 y - \frac{K_{\mathrm{stiff}}}{J_{\mathrm{eq}}} F_3 \theta \end{aligned}$$
(42)
$$\begin{aligned} \ddot{\theta }&= \frac{K_{\mathrm{stiff}}}{J_{\mathrm{eq}}}y - \frac{K_{\mathrm{stiff}}}{J_{\mathrm{eq}}}\theta - F_1 \dot{\theta }+ F_2 V_m \end{aligned}$$
(43)

where \(F_3 \mathop {=}\limits ^{\varDelta } \left( 1 - \displaystyle \frac{J_{\mathrm{eq}}+J_{\mathrm{arm}}}{J_{\mathrm{arm}}} \right) \).

Defining the state variables as, \(x_1 = y\), \(x_2 = \dot{y} = \dot{x}_1 \), \(x_3 = \theta \), \(x_4 = \dot{\theta }= \dot{x}_3 \), the dynamics (42)–(43) become,

$$\begin{aligned} \dot{x}_1&= x_2 \nonumber \\ \dot{x}_2&= \displaystyle \frac{K_{\mathrm{stiff}}}{J_{\mathrm{eq}}} F_3 (x_1- x_3) \nonumber \\ \dot{x}_3&= x_4 \nonumber \\ \dot{x}_4&= \displaystyle \frac{K_{\mathrm{stiff}}}{J_{\mathrm{eq}}} (x_1 - x_3) -F_1 x_4 + F_2 V_m \end{aligned}$$
(44)

The state space form for (44) can be written as,

$$\begin{aligned} \dot{x} = A\;x + B\;V_m \end{aligned}$$
(45)

where, \(\dot{x} = \left[ \dot{x}_1 \quad \dot{x}_2 \quad \dot{x}_3 \quad \dot{x}_4 \right] ^T\)

$$\begin{aligned} A = \left[ \begin{array}{cccc} 0 &{} 1 &{} 0 &{} 0 \\ \displaystyle \frac{K_{\mathrm{stiff}}}{J_{\mathrm{eq}}} F_3 &{} 0 &{} -\displaystyle \frac{K_{\mathrm{stiff}}}{J_{\mathrm{eq}}} F_3 &{} 0 \\ 0 &{} 0 &{} 0 &{} 1 \\ \displaystyle \frac{K_{\mathrm{stiff}}}{J_{\mathrm{eq}}} F_3 &{} 0 &{} -\displaystyle \frac{K_{\mathrm{stiff}}}{J_{\mathrm{eq}}} F_3 &{} - F_1 \\ \end{array}\right] \; B = \left[ \begin{array}{c} 0\\ 0 \\ 0\\ F_2 \\ \end{array}\right] \end{aligned}$$

For the desired output, the relative output \(y\) can be differentiated in proper manner. In order to satisfy the model following conditions, the above system (45) is converted to phase variable form by using the transformation,

$$\begin{aligned} Z=Tx \end{aligned}$$

Then the Eq. (45) can be written as in [30],

$$\begin{aligned} \dot{z} = A\;z + B\;V_m \end{aligned}$$
(46)

where, \(\dot{z} = \left[ \dot{z}_1 \quad \dot{z}_2 \quad \dot{z}_3 \quad \dot{z}_4 \right] ^T\)

$$\begin{aligned} A&= \left[ \begin{array}{cccc} 0 &{} 1 &{} 0 &{} 0 \\ 0 &{} 0 &{} 1 &{} 0 \\ 0 &{} 0 &{} 0 &{} 1 \\ 0 &{} -\displaystyle \frac{K_{\mathrm{stiff}}F_1}{J_{\mathrm{arm}}} &{} -\displaystyle \frac{K_{\mathrm{stiff}}(J_{\mathrm{eq}}+J_{\mathrm{arm}})}{J_{\mathrm{eq}}J_{\mathrm{arm}}} &{} -F_1 \\ \end{array}\right] \; \\ \\ B&= \left[ \begin{array}{c} 0\\ 0 \\ 0\\ \displaystyle \frac{K_{\mathrm{stiff}}F_2}{J_{\mathrm{arm}}} \\ \end{array}\right] \end{aligned}$$

The nominal values of the various flexible joint parameters are from [35]: \(K_{stiff}\)=1.248 Nm/rad, \(\eta _m=0.69\), \(\eta _g=0.9\), \(K_t=0.00767\) Nm, \(K_g = 70\), \(J_{eq}=0.00258\) kgm\(^2\), \(J_{arm}=0.00352\) kgm\(^2\), \(R_m=2.6\,\Omega \). The initial conditions are \(x(0)= [0 \quad 0 \quad 0 \quad 0]\).

$$\begin{aligned} \left[ \begin{array}{c} \dot{x}_1\\ \dot{x}_2 \\ \dot{x}_3\\ \dot{x}_4 \\ \end{array}\right] \;&= \left[ \begin{array}{cccc} 0 &{} 1 &{} 0 &{} 0 \\ 0 &{} 0 &{} 1 &{} 0 \\ 0 &{} 0 &{} 0 &{} 1 \\ 0 &{} -10007 &{} -837 &{} -28 \\ \end{array}\right] \; \left[ \begin{array}{c} x_1\\ x_2 \\ x_3\\ x_4 \\ \end{array}\right] \;\nonumber \\&+ \left[ \begin{array}{c} 0\\ 0 \\ 0\\ 10007 \\ \end{array}\right] \; V_m \end{aligned}$$
(47)

The model to be followed is assumed as;

$$\begin{aligned} \left[ \begin{array}{c} \dot{x}_{m_1}\\ \dot{x}_{m_2} \\ \dot{x}_{m_3}\\ \dot{x}_{m_4} \\ \end{array}\right] \;&= \left[ \begin{array}{cccc} 0 &{} 1 &{} 0 &{} 0 \\ 0 &{} 0 &{} 1 &{} 0 \\ 0 &{} 0 &{} 0 &{} 1 \\ 0 &{} -560 &{} -320 &{} -85 \\ \end{array}\right] \; \left[ \begin{array}{c} x_{m_1}\\ x_{m_2} \\ x_{m_3}\\ x_{m_4} \\ \end{array}\right] \;\nonumber \\&+ \left[ \begin{array}{c} 0\\ 0 \\ 0\\ 160 \\ \end{array}\right] \; V_m \end{aligned}$$
(48)

with initial conditions are \(x_m(0)= [0 \quad 0 \quad 0 \quad 0]\). The disturbance \(d(t)=2\sin (t)\), is sinusoidal with amplitude 2 and frequency 1 rad/s and uncertainty in the plant is 40 %.

The simulation results are shown in Figs. 7, 8 for \(\tau =10\) ms and \(\tau =1\) ms respectively. The value of \(k=5\) is considered.

Figures 7a–d and 8a–d are the plant and model states i.e. displacement, velocity, acceleration and jerk. The control torque required and the sliding variable (\(\sigma \)) are also shown. The figure reveals the ability of the controller, to drive the system to follow the reference model. It is easily observed that system is robust even in presence of parameter variations and external disturbance. The tracking and robustness is improved as \(\tau \) is decreased from 10 to 1 ms.

7 Conclusion

In this paper, a boundary layer SMC design for chatter reduction is proposed. The control scheme uses a discontinuous control outside the boundary layer and switches over to uncertainty and disturbance estimator (UDE) based control inside the boundary layer. The use of UDE gives a better trade-off inside the boundary layer and this trade-off is improved by using a higher order UDE. The initial control is within limits, irrespective of the uncertainty. The results show improvement to the tune of 20–40 % over the conventional chatter control method using saturation function inside the boundary layer. It is proved that the ultimate boundedness of uncertainty estimation error and sliding variable inside the boundary layer is guaranteed, and that the bounds can be lowered by appropriate choice of design parameters. The theoretically expected results are verified by computer simulation in MATLAB SIMULINK environment. The efficacy of the design is also confirmed on an application to flexible joint system in robotic control. The controller is able to force the plant to follow the given model inspite of parameter variations.