Module 05
Module 05
1. Use a potentiometer to provide the desired position (angle in degrees) for the antenna.
3. Utilize a motor with an encoder to measure the actual position of the motor.
4. Design and implement a PID controller to ensure the motor accurately rotates to the
desired angle, achieving precise positioning of the antenna.
5. Observations, if any.
Snap shots of the serial monitor needs to be submitted with your observations. You
have to show how is the performance of the system effected for different values of
Kp , KI , and Kd .
1
– With KI = Kd = 0 and increasing Kp .
– With Kp = Kd = 0 and increasing KI .
– Kp = KI = 0 and increasing Kd .
– Finally, with the tuned Kp , KI , and Kd value.
1. Draw the block diagram of the closed loop system you have implemented in this module.
2. Why did you use a closed loop system to implement position control? Could an open loop
control, i.e., provide the required PWM at the input of the motor and get the desired
position of the motor be used?
3. How did you tune the controller gains? Did you use the Zieglar-Nichols Method? Provide
a justification for your approach.
5. What is your observation when the value of Kp is increased keeping KI and Kd zero? Can
you relate your observation to the root locus you have drawn in the previous question?
2
OBSERVATION SHEET
This sheet needs to be attached to the report (print on both sides)
1. Demonstrate the interfacing of the potentiometer to the Arduino UNO. You should be
able to display the desired angle on the LCD.
2. Demonstrate the effect of increasing Kp keeping KI and Kd zero. Show the TA that you
have taken screenshots of the plot for various values of Kp .
3. Demonstrate the effect of increasing KI keeping Kp and Kd zero. Show the TA that you
have taken screenshots of the plot for various values of KI .
4. Demonstrate the effect of increasing Kd keeping Kp and KI zero. Show the TA that you
have taken screenshots of the plot for various values of Kd .
3
5. Demonstrate the tuned system to the TA, ensuring that the desired angle matches the
actual angle after tuning. Note that once the controller is tuned, you cannot adjust the
controller gains. The TA will verify for different positions of the potentiometer that the
system reaches at least 95% of each desired angle. Additionally, the observation sheet
should include the settling band for the tuned system.