Professional Documents
Culture Documents
CTRL Lab2
CTRL Lab2
(CIIT)
Department of Electrical Engineering
Islamabad Campus
Control Systems
Lab Report 2
Submitted To:
Sir Furqan Tahir
Submitted By:
Muhammad Arsalan (Fa07-BET-085)
October 9, 2010.
Page |2
Lab Task 1
Solution:
Let the 4 sensors be S1, S2, S3 and S4, and let P be the ‘pilot’, S be the ‘siren’
and D be the ‘danger’. In order to implement the given conditions, we need to
find the state of P, S and D for every possible input of the sensors. For this
purpose, we’ll make the truth table.
S1 S2 S3 S4 P S D
0 0 0 0 0 0 0
0 0 0 1 0 0 0
0 0 1 0 0 0 0
0 0 1 1 1 0 0
0 1 0 0 0 0 0
0 1 0 1 1 0 0
0 1 1 0 1 0 0
0 1 1 1 1 1 0
1 0 0 0 0 0 0
1 0 0 1 1 0 0
S1 S2 S3 S4 P S D
1 0 1 0 1 0 0
1 0 1 1 1 1 0
1 1 0 0 1 0 0
1 1 0 1 1 1 0
1 1 1 0 1 1 0
1 1 1 1 1 1 1
By using k-map technique, we find the equations for pilot, siren and danger.
Working:
Lab Task 2
Solution:
selection lines.
Let C0 and C1 be the selection lines and I1, I2, I3 and I4 be the data
lines. The output line is f0. To implement a 4x1 MUX, the following truth table
can be made:
C0 C1 f0
0 0 I1
0 1 I2
1 0 I3
1 1 I4
Working:
All these combinations are first ANDed and then ORed with each other
to get f0.
Lab Task 3
such that motor 1 is turned ON when sensor1 senses the load and keeps
the belt moving in forward direction till sensor 2 senses the load, so motor
1 stops and motor2 turns ON and keeps on going in reverse direction until
sensor 1 senses the load, stops motor 2 and the belt moves in forward
direction again and the cycle continues.
Solution: