Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 5

COMSATS Institute of Information Technology

(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

Implement a security alarm system in Trilogy.

• There are the 4 sensors (smoke, motion, vibration, sound)


• There are the 4 alarms, one for each sensor.
• If any 1 sensor is ON, then no operation is performed.
• When 2 sensors ON, then pilot turns ON.
• When 3 sensors ON, then siren turns ON.
• When 4 sensors ON, then there is danger.

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.

Eq. for Pilot:


P= S1S2 + S3S4 + S2S4 + S2S3 + S1S4 + S1S3
Page |3

Eq. for Siren:


S= S1S3S4 + S4S1S2 + S3S1S2 + S2S3S4

Eq. for Danger:


D= S1S2S3S4

Working:

By using OR and AND GATES we implement the above equations.


When any one sensor is ON then no alarm operates. When any 2 sensors are
ON then it means Pilot alarm is operating and when any 3 sensors are ON, it
means Pilot and Siren both are operating. Similarly, when 4 sensors are ON, it
means that Pilot, Siren and Danger alarms are ON.

Lab Task 2

• Implement 4x1 MUX.

Solution:

A multiplexer is a combinational circuit that selects binary


information from one of the many input lines and directs it to the single
output line. The selection of the particular input line is controlled by a set of
Page |4

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:

When C0 and C1 switch have the state 0, it means I1 is selected. When


C0=0 and C1 =1 then I2 is selected, when C0=1 and C1=0 then I3 is selected
and finally when C0=1 and C1=1 then I4 is selected.

All these combinations are first ANDed and then ORed with each other
to get f0.

Lab Task 3

Consider a load moving on a belt having two motors, and a sensor is


attached to both of them. Motor 1 moves the belt in forward direction,
whereas motor 2 moves the belt in reverse direction. Implement a circuit
Page |5

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:

You might also like