Solved Example
A person wants to build the home security system. The logic is when the door is open and motion is detected by the motion sensor, then alarm should start beeping. What logic he should build and which logic gate he can use?
Solution: Lets build the truth table table:
Let us assume, door status is ‘1’ when open and ‘0’ when close.
Also, motion sensor status is ‘1’ when motion is detected else ‘0’.
Door status |
Motion sensor status |
Output |
---|---|---|
0 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
According to the question, it is given that alarm should be started when door is open and motion is detected. So this can be implemented using AND gate as seen in the above table.
As when the the door is open and no motion is detected then alarm should not be triggered and accordingly the rest of the cases.
AND Gate
Logic gates are small digital switching circuit that determines the output of two or more inputted functions in Binary format. Logical ‘1’ means ‘True’ or ‘High’ in nature, whereas logical ‘0’ means ‘False’ or ‘Low’ in nature. Based on different logical operations, the output differs. There can be many inputs in a logic gate but there will be only one output. Each logic gate has its own truth table which represents all the combinations of input and output.
Table of Content
- AND Gate
- Operation
- Types
- Symbol
- Truth Table
- AND Gate in Terms of Transistor
- Applications
- Advantages
- Disadvantages
- Solved Example