Search for question
Question

Problem 3 (25 Points, please highlight your answers.) Below lead compensator, is going to be implemented in software on a microcontroller to compensate for the output error of a temperature sensor: G_{c}(s)=\frac{3 s+1}{s+1} . Find the equivalent discrete time transfer function Gc(z) by MATLAB c2d command. Use "Zero Order Hold" conversion method with sampling period T = 0.1 seconds. What is the "Difference Equation" corresponding to Gc(z) of part a? Write pseudo code for implementing above difference equation on the microcontroller.

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5