Presentation is loading. Please wait.

Presentation is loading. Please wait.

Control Systems With Embedded Implementation (CSEI)

Similar presentations


Presentation on theme: "Control Systems With Embedded Implementation (CSEI)"— Presentation transcript:

1 Control Systems With Embedded Implementation (CSEI)
Lecture-5 Digital Implementation of Analog Controllers Dr. Imtiaz Hussain Assistant Professor URL :

2 Discretization of continuous-time controllers
Basic idea: Reuse the analog design Want to get: A/D + Algorithm + D/A≈ G(s) Methods: Approximate s, i.e., H(z) = G(s’) Other discretization methods (Matlab)

3 Discretization of continuous-time controllers
Approximation Methods

4 Discretization of continuous-time controllers
Approximation Methods

5 Discretization of continuous-time controllers
Approximation Methods

6

7 Example-2 Using the three approximation methods to find the discrete-time equivalent of a lead compensator. Compare the approximation result by plotting the frequency response of the continuous-time controller and the discrete-time approximation for sampling periods T = 1, 0.5 and 0.1. 𝐺 𝑠 = 10𝑠+1 𝑠+1

8 Example-2 Solution: The approximations give the following relations:
Using Euler’s approximation method 𝐺 𝑧 = 10( 𝑧−1 𝑇 )+1 𝑧−1 𝑇 +1 = 10 𝑧−1 +𝑇 𝑍−1+𝑇

9 Example-2 Solution: The approximations give the following relations:
Using Backward Difference approximation method 𝐺 𝑧 = 10( 𝑧−1 𝑧𝑇 )+1 𝑧−1 𝑧𝑇 +1 = 10 𝑧−1 +𝑧𝑇 𝑍−1+𝑧𝑇

10 Example-2 Solution: The approximations give the following relations:
Using Tustin’s approximation method 𝐺 𝑧 = 10( 2 𝑇 𝑧−1 𝑧+1 )+1 2 𝑇 𝑧−1 𝑧+1 +1 = 20 𝑧−1 +𝑇(𝑧+1) 2(𝑍−1)+𝑇(𝑧+1)

11 Example-2 Frequency T=1

12 Example-2 Frequency T=0.5

13 Example-2 Frequency T=0.1

14 PI Controller Figure shows the diagram of a PI type analog controller.
The controller contains two channels (a proportional channel and an integral channel) that process the error between the reference signal and the output.

15 Digital PI Controller 𝐶(𝑧)=𝐾 1+ 1 𝑇 𝑖 2 𝑇 𝑧−1 𝑧+1
Digital PI control law can even be obtained by the discretization of a PI analog controller. The control law for an analog PI controller is given by Using Tustin’s Approximation method 𝐶(𝑠)=𝐾 𝑇 𝑖 𝑠 𝑖.𝑒 𝑠= 2 𝑇 𝑧−1 𝑧+1 𝐶(𝑧)=𝐾 𝑇 𝑖 2 𝑇 𝑧−1 𝑧+1

16 Digital PI Controller 𝐶(𝑧)=𝐾 1+ 1 𝑇 𝑖 2 𝑇 𝑧−1 𝑧+1
Digital PI control law can even be obtained by the discretization of a PI analog controller. The control law for an analog PI controller is given by Using Tustin’s Approximation method 𝐶(𝑠)=𝐾 𝑇 𝑖 𝑠 𝑖.𝑒 𝑠= 2 𝑇 𝑧−1 𝑧+1 𝐶(𝑧)=𝐾 𝑇 𝑖 2 𝑇 𝑧−1 𝑧+1

17 Digital PID Controller
Many practical control problems are solved by PID controllers or their variants. The continuous-time transfer function of a PID controller can be obtained by taking the Laplace transform of above eq PID controller is non-causal and cannot, and should not, be implemented. 𝑢(𝑡)= 𝐾 𝑝 𝑒 𝑡 + 1 𝑇 𝑖 𝑜 𝑡 𝑒 𝑡 𝑑𝑡+ 𝑇 𝑑 𝑑𝑒(𝑡) 𝑑𝑡 𝐶 𝑝𝑖𝑑 (𝑠)= 𝐾 𝑝 ( 𝑇 𝑖 𝑇 𝐷 𝑠 2 + 𝑇 𝑖 𝑠+1) 𝑇 𝑖 𝑠

18 Digital PID Controller
The main reason is that the derivative term is non-causal and that it amplifies high frequency noise in the measured signals. Hence, the gain of the derivative action must be limited. This can be achieved by introducing an additional low-pass filter to the derivative action: 𝐶 𝑝𝑖𝑑 (𝑠)= 𝐾 𝑝 ( 𝑇 𝑖 𝑇 𝐷 𝑠 2 + 𝑇 𝑖 𝑠+1) 𝑇 𝑖 𝑠 𝐾 𝐷 𝑠≈ 𝐾 𝐷 𝑠 𝜏 𝐿 𝑠+1

19 Digital PID Controller
With the augmentation of a low pass filter, the modified continuous-time PID controller can be written as which introduced two zeros, a pole at the origin and another “fast” pole. Any of the previous approximation methods can be used to approximate the PID controller. 𝐾 𝐷 𝑠≈ 𝐾 𝐷 𝑠 𝜏 𝐿 𝑠+1 𝐶 𝑝𝑖𝑑 (𝑠)= 𝐾 𝑝 ( 𝑇 𝑖 𝑇 𝐷 𝑠 2 + 𝑇 𝑖 𝑠+1) 𝑇 𝑖 𝑠 𝐶 𝑝𝑖𝑑 (𝑠)= 𝐾 𝑝 ( 𝑇 𝑖 𝑇 𝐷 𝑠 2 + 𝑇 𝑖 𝑠+1) 𝑇 𝑖 𝑠( 𝜏 𝐿 𝑠+1)

20 Digital PID Controller
In order to “preserve” the PID structure, it is common to use the bilinear transformation to approximate the integral action, and to use the backward difference to approximate the differentiation action. The reason backward difference is used instead of bilinear approximation is that the later will introduce a pole at z = −1. Using this approximation, a continuous-time PID controller law, can be written as: where q is one-step advance operator. 𝐶 𝑝𝑖𝑑 (𝑠)= 𝐾 𝑝 ( 𝑇 𝑖 𝑇 𝐷 𝑠 2 + 𝑇 𝑖 𝑠+1) 𝑇 𝑖 𝑠( 𝜏 𝐿 𝑠+1) 𝑢 𝑘 = 𝐾 𝑝 𝑒 𝑘 + 𝐾 𝑖 𝑇 2 𝑞+1 𝑞−1 𝑒 𝑘 + 𝐾 𝐷 𝑞−1 𝑇𝑞 𝑒(𝑘)

21 Digital PID Controller
Above equation is further solved 𝑢 𝑘 = 𝐾 𝑝 𝑒 𝑘 + 𝐾 𝑖 𝑇 2 𝑞+1 𝑞−1 𝑒 𝑘 + 𝐾 𝐷 𝑞−1 𝑇𝑞 𝑒(𝑘) 𝑢 𝑘 = 𝐾 𝑝 − 𝐾 𝑖 𝑇 2 𝑒 𝑘 + (𝐾 𝑖 𝑇) 𝑗=0 𝑘 𝑒(𝑗) + 𝐾 𝐷 𝑇 𝑒 𝑘 −𝑒(𝑘−1) 𝑢 𝑘 = 𝐾 𝑝(𝐷𝑖𝑔𝑖𝑡𝑎𝑙) 𝑒 𝑘 + 𝐾 𝑖(𝐷𝑖𝑔𝑖𝑡𝑎𝑙) 𝑗=0 𝑘 𝑒(𝑗) + 𝑒 𝑘 −𝑒(𝑘−1)

22 End of Lecture-5 To download this lecture visit
End of Lecture-5


Download ppt "Control Systems With Embedded Implementation (CSEI)"

Similar presentations


Ads by Google