0% found this document useful (0 votes)
4 views

Assignment unit 3 – Smart Home Security System using Boolean Algebra and Logic Gates

The document outlines the design of a smart home security system using Boolean algebra and logic gates. It includes definitions of Boolean expressions, simplifications, applications of De Morgan's theorems, truth tables for AND and NOR gates, and a final logic expression for the security system. The final logic combines motion detection and door status with alarm and window conditions to determine when the security system should be triggered.

Uploaded by

Ahmad Akbary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Assignment unit 3 – Smart Home Security System using Boolean Algebra and Logic Gates

The document outlines the design of a smart home security system using Boolean algebra and logic gates. It includes definitions of Boolean expressions, simplifications, applications of De Morgan's theorems, truth tables for AND and NOR gates, and a final logic expression for the security system. The final logic combines motion detection and door status with alarm and window conditions to determine when the security system should be triggered.

Uploaded by

Ahmad Akbary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment unit 3 – Smart Home Security System using Boolean Algebra and Logic Gates

Question 1:
a. Define Boolean expressions:
I am using the following short names:

● X = Motion sensor in the living room is triggered


● Y = Front door is opened

So, the expressions are:

● Motion sensor is triggered – X


● Front door opened –Y

b. Simplify:

● Since both X and Y are just single variables, they are already in their simplest form, and
no need to simplify further.

Question 2:

a. Apply De Morgan’s theorems:

Let’s say:

● A = Smoke is detected in the kitchen


● B = Windows are closed

Now, we want to write what happens when these things are not true:

● NOT A = this means smoke is not detected.


● NOT B = this means windows are not closed (so, they are open).

If we combine them in an OR or AND condition, De Morgan’s Theorems help us rewrite them:

Example:

● NOT(A OR B) becomes: (NOT A) AND (NOT B)


● NOT (A AND B) becomes: (NOT A) OR (NOT B)
b. How it connects to other rules:

● De Morgan's theorems are just special rules in Boolean algebra that help us flip AND to
OR and OR to AND, when we are using NOT.
● These are helpful when designing circuits, because sometimes it’s easier to use one
type of gate (like using only AND or NOR gates).

Question 3:
a. Truth table for AND gate: “Motion sensor AND front Door is opened:

Motion (X) Door (Y) X AND Y


0 0 0
0 1 0
1 0 0
1 1 1

● Result is 1 (true) only when both are 1 (true).

b. Truth table for NOR gate: “Alarm is armed NOR windows are closed”.

Let:

● A = Alarm is armed
● B = Windows are closed

First, A OR B – then take the opposite (NOR)

Alarm (A) Windows (B) A OR B A NOR B


0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0

● The NOR result is only 1 when both inputs are 0.


Question 4:

a. Comparing expressions to truth tables:

● Expression: X AND Y
● Truth table matches exactly – the result is 1 only when both X and Y are 1.
● Expression: NOT (A OR B)
● Again, this matches the NOR truth table. Only gives 1 when both A and B are 0.

b. Whey they match:

● The expressions work exactly like the gates in the truth tables.
● AND only gives true when both inputs are true.
● NOR is like OR but with a NOT added, it gives true only when both inputs are
false.
● So the expressions and truth tables are equivalent. Everything checks out.

Question 5:

a. Final smart security system logic:

Let’s build the whole logic.


We want the security system to be triggered if:

● The motion sensor is triggered AND the front door is opened


This is: X AND Y

OR

● The alarm is armed NOR the windows are closed


This is: NOT (A OR B)

So the complete logic is:

Security system = (X AND Y) OR NOT (A OR B)

Prepared by: Date:


Romal Wali 4/30/2025

You might also like