Sliding mode control -- சாராம்சம்

  I am doing a compilation of things that I found amusing in control systems and this one is on sliding mode control.


A little background...

  Before we start, let's make sure that we all are on the same page...

  Imagine you have a pendulum setup, and for some random reason, you are oscillation the pendulum at infinite frequency. What will happen to it? Take a moment and ponder, what should happen -- ideally?, and what would actually happen -- physically?

  Well, in reality, the pendulum would not move -- even a little.
  Can you intuitively reason why that is the case?

  No physical system can react to infinite oscillations (rather it would react only to the resultant value of the oscillation). Take time and convince why it so...
Note: you can imagine as if the real-world physical systems are having some low-pass filter at their input channel and are reacting to the signal only after filtering.

From PID... to sliding mode control...

  If you are reading this means you should be at least familiar with PID based controls. Therefore, I will assume that you are comfortable with PID controls (if not check my blog on it). To gain the intuition for sliding mode control, we will use only 'P' part of our 'PID' controller.

  Imagine you have some random black box to which you can give any input and measure its output. If we are using P-Control means, we would calculate the error (i.e. desired value - measure value) and would find the control input (proportional to that error), right?

  Now, imagine that you are gradually increasing the gain (ideally to infinity), what will happen?

  Even for a slight positive error (infinitesimally), the controller output (a.k.a system input) would go to negative infinity. Similarly, even for a slight negative error, the controller output (a.k.a system input) would go to positive infinity.
  Now, imagine what happens when we reach error value to be around zero. uh? Because of our gain, the controller output (a.k.a system input) would oscillate between positive and negative infinity. However, we know that no physical system can react to such high oscillations (but rather to the resultant value of the oscillation). If you ponder you can reason, how would this resultant values and error values, and therefore the desired values are related. Voila! This is the core idea behind Sliding Mode Control.
  Loosely speaking, to get the intuition, you can imagine those high osciallations as PWM (pulse width modulated) waves -- where the resultant value would depend on the pulse width.

  Just to make it clear, in practice, we would use relay control (on/off) with saturation (instead of +/- infinity) and a threshold for switching (instead of zero passing). This is mainly due to implementation constraints. However, in recent times, SLC has gain popularity in power electronics where SLC are designed to switch at megahertz.

  To be honest, there is more a lot to reveal... For this part, I assumed the system to be a black box, but in practice, we would know some details and therefore we can design a much better sliding surface (...than a simple error equation). I will post more on it in my next blog.