Lab Report 9
Lab Report 9
9
CLOSE LOOP CONTROL WITH PROPORTIONAL (P), INTEGRAL (I),
PROPORTIONAL INTEGRAL (PI) AND PROPORTIONAL INTEGRAL
DERIVATIVE (PID) OF DC MOTOR, TEMPERATURE AND LIGHT USING
PULSE WIDTH MODULATION (PWM)
9.1 Objectives
Upon completion of this lab, one will be able to understand
Close loop control.
Rotational sensor interface using Infrared (IR) sensor as photo interrupter and its application.
Photo sensor interface.
Frequency to voltage conversion (F/V).
Close loop proportional (P) control of the motor and light.
Close loop proportional integral (PI) control of the motor and light.
Close loop proportional integral derivative (PID) control of the motor and light.
1
performance requirements. There are several types of motor control techniques, each suited for
different applications.
In Lab Tasks
Closed Loop P-based Control of Motor
9.3 Requirements
1- IT-4406 trainer board.
2- 2mm patch cords.
3- CRO.
9.5 Procedure
Make all connections as shown in Fig 1
Connect the oscilloscope probe to the output of PID block TP52.
Set the voltage of about 3V at the output of set point 1 TP54.
DC motor will start to rotate. If not so, turn the proportional pot to about 25%.
Observe the wave form of PID block on oscilloscope.
There will be some oscillations in the wave. Try to remove these ripples from the wave by
adjusting proportional pot.
When the system is balanced it will give you straight line. Try to unstable the system by
interrupting the motor with something (use your hand). It will destabilize the system for some time
but PID controller will again stabilize it.
Note the time taken by the system to stabilize.
2
Now set the voltage of about 3.5V at the output of set point 1 TP54.
Repeat the above steps and note the readings.
3
9.7 Results
9.7.1 Input Voltage
4
4.01V 1.416V 2.594V
9.7.4 Discussion
Adjusting the proportional gain helps in reducing oscillations and stabilizing the motor's
rotation.
Depicts the practical setup of the P-based closed loop system on the trainer board,
demonstrating the physical connections and components involved in the experiment.
The input voltage applied to the P-based closed loop system. It serves as a reference for the
control system's response to different input levels.
The output voltage corresponding to the input voltage from Figure 3. The output reflects the
system's performance and stability under P control.
9.9 Requirements
1- IT-4406 trainer board.
2- 2mm patch cords.
3- CRO.
5
Figure 5: PID based closed loop control of DC motor
9.11 Procedure
Make all the connections as shown in Figure 5.
Connect the oscilloscope probe the output of PID block TP52.
Set the voltage of about 3V at the output of set point 1 TP54.
DC motor will start to rotate. If not so, turn the proportional pot to about 25%.
Turn the integral and derivative pot to about 25%.
Press the RESET button given on trainer.
Observe the wave form of PID block on oscilloscope.
There will be some oscillations in the wave. Try to remove these ripples from the wave by
adjusting proportional pot.
When the system is balanced it will give straight line. Try to unstable the system by
interrupting the motor with your hand. It will destabilize the system for some time but PID
controller will stabilize it.
Note the time taken by the system to stabilize.
Now set the voltage of about 3.5V at the output of set point 1 TP54.
Repeat the above steps and note the readings.
6
9.12 Hardware Implementation
7
Figure 8: Output Voltage of closed loop system using PID
9.14 Readings
Input voltage Output voltage Error
9.14.1 Discussion
PID includes connections for oscilloscope probes and adjustments for proportional, integral,
and derivative gains.
PID control system, highlights the additional complexity and components required for PID
control.
The input voltage data for the PID-based closed loop system.
The output voltage for the PID-based system, demonstrating improved stability and accuracy
compared to P control.
8
9.15 Motor control using PWM with P, PI, PID
9.15.1 Input = 3Volt
Controller Vin Vout s-s-e Ts
P 3 1.64 -1.36 1
PI 3 2 -1 0.78
9
Conclusion
After performing lab on closed loop systems using P and PID controllers it is concluded that;
The implementation and analysis of P, PI, and PID controllers for DC motor temperature and
The results demonstrated that PID control offers superior performance, minimizing steady-state
10