Experiment 4 OPAMP
Experiment 4 OPAMP
ELP800
1
Contents
1 System Modelling 3
1.1 Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Method Used . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Observation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.4 Calculation of Transfer Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Controller Design 5
3 Actual Implementation 7
3.1 Hardware Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2 Controller Specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2.1 Breadboard 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2.2 Breadboard 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2.3 Breadboard 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2.4 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.2.5 Color coding of wire used in controller . . . . . . . . . . . . . . . . . . . . . . 8
3.3 Final Output with Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5 Conclusion 10
2
1 System Modelling
1.1 Objective
To determine the transfer function of the DC motor by applying step input
5. Calculate the transfer function of the DC motor from the obtained output.
1.3 Observation
We obtain the following output from the oscilloscope for a given square wave input -
3
Figure 3: Measurement of Output Voltage
4
2 Controller Design
After applying the controller we will have the following layout for the entire control system -
Feedback gain = 1
Closed Loop Transfer Function of the System -
Kp s+Ki K
s sT +1
K s+K
1 + p s i sTK+1
On simplification we obtain -
(Kp s + Ki )K
s2 T + s(1 + Kp K) + Ki K
Which is a second order system and hence it consists of damping ratio, settling time, natural
frequency and other second order system parameters
These second order parameters can be tuned by the help of Kp and Ki values and therefore, the
response can be manipulated based on user requirement.
Response of the system for the step input is given by MATLAB as follows -
5
Figure 6: Measurement of Time Constant
6
3 Actual Implementation
3.1 Hardware Specifications
The following hardware equipment were used in the hardware implementation of PI controller -
1. Breadboard
3. Resistors
4. Rheostats
5. Capacitors
6. Connecting Wires
Final Circuit after connection contains a controller which is designed using kp and kI values which
we got through MATLAB.
3.2.1 Breadboard 1
On this bread board we have designed a subtractor and a proportional controller this is the first
element of our controller.
3.2.2 Breadboard 2
On this bread board we have designed a integrator which is connected in parallel to our first element.
3.2.3 Breadboard 3
And finally on this Breadboard we have designed a subtractor which is connected to plant this is
the last element of our controller.
Figure 7: controller
7
3.2.4 Block diagram
Figure 10: Step Response of the system with controller and Feedback
8
Figure 11: Motor Connections
9
4 Comparison with MATLAB output
Based on the output obtained for the actual hardware and the output obtained from the simulation,
it can be concluded that the result is similar hence the PI controller design can be assumed to be
successfully done.
Figure 13: Step Response of the system with controller and Feedback
The settling time of the system was reduced from 0.8 seconds to 0.4 seconds using the PI controller.
5 Conclusion
0.797
1. The transfer function of the system is 0.4s+1 .
3. With the help of above values we were able to design a controller which gives us the required
output.
10
4. Circuit Diagram of system
11