Logic gate
Download the Lessonotes Mobile Nigeria 2025 app for faster lesson access on Android and iPhone.
Subject: Basic Electronics
Class: Senior Secondary 3
Term: 2nd Term
Week: 5
Theme: Digital Basics
This page supports the lesson note with a companion video and a short classroom-ready summary.
For class groups and homework, share this lesson page so learners also get the summary, objectives, and full lesson context.
Explain logic gates. State different logic gates, OR, NOR, AND and NAND. Construct the TRUTH table for each of the above mentioned gates.
2. 1. Introduction to Logic Gates Logic gates are elementary building blocks of any digital circuit. They are electronic circuits that take one or more binary inputs (0 or 1) and produce a single binary output (0 or 1). The output is determined by the specific logic function of the gate and the combination of its inputs. They are called "logic" gates because they implement basic logical operations similar to those used in Boolean algebra.
Binary System: Digital electronics operates on the binary system, which has only two states: 0 (representing 'OFF', 'False', or 'Low voltage') and 1 (representing 'ON', 'True', or 'High voltage').
Inputs and Outputs: Logic gates typically have two or more inputs and one output. The output state depends entirely on the input states and the gate's specific logic. 2.
2. Types of Logic Gates, Symbols, Boolean Expressions, and Truth Tables For each gate, the following will be explained: Logic Function: What the gate does logically.
Standard Symbol: The universally recognized graphic representation.
Boolean Expression: The algebraic representation using Boolean operators.
Truth Table: A table showing all possible input combinations and their corresponding outputs. For gates with two inputs (A and B), there are 2^2 = 4 possible input combinations: 00, 01, 10, 11. ---
A. OR Gate Logic Function: An OR gate produces an output of 1 (TRUE) if any of its inputs is 1 (TRUE). It produces a 0 (FALSE) only when all its inputs are 0 (FALSE).
Analogy: Imagine a power generator for a rural Nigerian community that has two different start buttons (Input A, Input B). If you press either button A or button B or both, the generator will start (Output = 1). The generator only remains off if neither button is pressed (Output = 0).
Standard Symbol: ``` A --\ )--- Q B --/ ``` (A curved input side and a pointed output side)
Boolean Expression: Q = A + B (Read as "A OR B")
Truth Table: | Input A | Input B | Output Q | | :------ | :------ | :------- | | 0 | 0 | 0 | | 0 | 1 | 1 | | 1 | 0 | 1 | | 1 | 1 | 1 | ---
B. NOR Gate Logic Function: A NOR gate is essentially an OR gate followed by a NOT gate (inverter). It produces an output of 1 (TRUE) only if all its inputs are 0 (FALSE). If any input is 1, the output is
0. It is the inverse of the OR gate.
Analogy: Consider a sensitive alarm system for a Nigerian bank vault (Output = 1 means alarm is OFF, Output = 0 means alarm is ON). The alarm triggers (Output = 0) if motion sensor A or pressure sensor B or both detect a threat (Input = 1). The alarm remains off (Output = 1) only if neither sensor detects anything (both inputs are 0).
Standard Symbol: ``` A --\ )o--- Q B --/ ``` (OR symbol with a small circle 'o' at the output, representing inversion)
Boolean Expression: Q = (A + B)' or Q = A NOR B (Read as "A OR B NOT")
Truth Table: | Input A | Input B | Output Q | | :------ | :------ | :------- | | 0 | 0 | 1 | | 0 | 1 | 0 | | 1 | 0 | 0 | | 1 | 1 | 0 | ---
C. AND Gate Logic Function: An AND gate produces an output of 1 (TRUE) only if all its inputs are 1 (TRUE). If any input is 0, the output is 0 (FALSE).
Analogy: Imagine an automated cassava processing machine in a Nigerian village (Output = 1 means machine starts). For the machine to start, the power switch A and the safety guard B must both be engaged (Input = 1). If either the power is off or the safety guard is open (Input = 0), the machine will not start (Output = 0). * Standard Symbol: ``` A --|\] produces an output of 1 (TRUE) only if all its inputs are 1 (TRUE). If any input is 0, the output is 0 (FALSE).
Analogy: Imagine an automated cassava processing machine in a Nigerian village (Output = 1 means machine starts). For the machine to start, the power switch A and the safety guard B must both be engaged (Input = 1). If either the power is off or the safety guard is open (Input = 0), the machine will not start (Output = 0).
Standard Symbol: ``` A --|\] | )--- Q B --|/] ``` (A flat input side and a curved output side)
Boolean Expression: Q = A . B or Q = AB (Read as "A AND B")
Truth Table: | Input A | Input B | Output Q | | :------ | :------ | :------- | | 0 | 0 | 0 | | 0 | 1 | 0 | | 1 | 0 | 0 | | 1 | 1 | 1 | ---
D. NAND Gate Logic Function: A NAND gate is an AND gate followed by a NOT gate (inverter). It produces an output of 0 (FALSE) only if all its inputs are 1 (TRUE). If any input is 0, the output is
1. It is the inverse of the AND gate.
Analogy: Consider a car engine in Nigeria (Output = 1 means engine is OFF, Output = 0 means engine is ON). The engine starts (Output = 0) only if the ignition key A is turned (Input A = 1) AND the engine start button B is pressed (Input B = 1). If either the key is not turned or the button not pressed (Input = 0), the engine remains off (Output = 1).
Standard Symbol: ``` A --|\] | )o--- Q B --|/] ``` (AND symbol with a small circle 'o' at the output, representing inversion)
Boolean Expression: Q = (A . B)' or Q = A NAND B (Read as "A AND B NOT") * Truth Table: | Input A | Input B | Output Q | | :------ | :------ | :------- | | 0 | 0 | 1 | | 0 | 1 | 1 | | 1 | 0 | 1 | | 1 | 1 | 0 | --- 3.
1. Teacher Activities Introduction (10 minutes): Introduce the concept of digital systems and how they make decisions. Explain the binary number system (0 and 1) as the language of digital electronics. Use simple analogies like light switches, door locks, or traffic lights to introduce the idea of inputs leading to specific outputs. Briefly state the importance of logic gates as fundamental building blocks.
Explanation of Logic Gates (30 minutes): Systematically introduce each of the four gates: OR, NOR, AND, NAN
D. For each gate: Present its name and explain its logical function clearly, using the Nigerian context analogies provided in the Key Concepts section. Draw the standard symbol clearly on the board, emphasizing its distinct shape. Write down the Boolean expression. Construct the truth table step-by-step, explaining how each output is derived from the input combinations. Emphasize generating all 2^n input combinations. Highlight the relationship between OR/NOR and AND/NAND (i.e., NOR is inverted OR, NAND is inverted AND). Encourage questions and provide clarification. Practical Demonstration/Visual Aid (10 minutes): If available, use a logic gate simulator software (e.g., Logisim, or online simulators) projected onto a screen to show the gates in action with varying inputs. Alternatively, use prepared diagrams or charts of each gate's symbol and truth table. A simple circuit with switches (inputs) and an LED (output) can be used to simulate one or two gates if components are available and time permits (e.g., two switches in parallel for OR, in series for AND).
Guided Practice (15 minutes): Pose scaffolded questions targeting the performance objectives. Monitor student progress, provide individual feedback and correct misconceptions. 3.
2. Student Activities Active Listening and Participation (Throughout): Students listen attentively to explanations. Students ask clarifying questions. Students respond to teacher's questions.
Note Taking (Throughout): Students draw the symbols for each gate. Students write down the Boolean expressions. Students copy and complete truth tables as demonstrated by the teacher.
Group Discussion (10 minutes): In small groups, students discuss the real-world analogies presented and try to come up with one new analogy for a chosen gate relevant to their local environment (e.g., using a local market scenario, a security checkpoint). Practical Engagement (If resources available): Students observe the logic gate simulator or simple circuit demonstration. If individual computer access is available, students can experiment with an online logic gate simulator.
Guided Practice (15 minutes): Students attempt the guided practice questions individually or in pairs. Students present their answers and explain their reasoning.
Instructions: Teachers should guide students through these questions, ensuring they understand the reasoning behind each step.
Question 1: Explain in your own words what a logic gate is, and name the output when both inputs of an OR gate are LOW (0).
Solution: Explanation: A logic gate is an electronic circuit that takes one or more binary inputs (0 or 1) and produces a single binary output (0 or 1) based on a specific logical rule. It acts as a decision-making component in digital systems.
OR Gate Output: When both inputs of an OR gate are LOW (0), the output is also LOW (0).
Commentary: This question assesses the fundamental definition of a logic gate and the basic understanding of an OR gate's truth table, specifically the 0,0 input condition.
Question 2: Draw the standard symbol for an AND gate and construct its truth table for two inputs (A and B).
Solution: AND Gate Symbol: ``` A --|\] | )--- Q B --|/] ``` AND Gate Truth Table: | Input A | Input B | Output Q | | :------ | :------ | :------- | | 0 | 0 | 0 | | 0 | 1 | 0 | | 1 | 0 | 0 | | 1 | 1 | 1 |
Commentary: This requires students to recall the specific graphic representation and systematically generate the truth table, demonstrating understanding of the AND gate's 'all true for true' logic.
Question 3: For a NAND gate with inputs A=1 and B=0, determine the output (Q). Justify your answer using the gate's logic.
Solution: Output (Q): 1 Justification: A NAND gate is the inverse of an AND gate. For an AND gate, with inputs A=1 and B=0, the output would be 0 (because not all inputs are 1). Since a NAND gate inverts the AND output, its output for A=1 and B=0 is
1. Alternatively, a NAND gate produces an output of 0 only when all its inputs are
1. Since one input (B) is 0, the output must be
1. Commentary: This question checks the understanding of NAND gate's operation, especially its relationship to the AND gate, and the ability to apply its logic to specific input combinations.
Traffic Light Control Systems: In Nigerian cities, traffic lights utilize logic gates to sequence the green, amber, and red lights. For example, an AND gate might be used to ensure that a green light for one direction is ON only if the red light for the perpendicular direction is also ON. OR gates can be used to switch between different traffic flow patterns based on time of day or sensor inputs. This helps manage the flow of Keke Napeps, buses, and private cars efficiently. Automated Gate Openers and Security Alarms: Many Nigerian homes, estates, and offices use automated gates. A simple OR gate can be used where a gate opens if triggered by a remote control or a keypad entry. For security systems, a NOR gate might trigger an alarm (output 0) if a window sensor or a door sensor or a motion sensor is activated (input 1). This enhances security in areas prone to theft. Industrial Automation in Nigerian Factories: In local industries such as a beverage bottling plant or a plastic recycling facility, logic gates are embedded within Programmable Logic Controllers (PLCs). For instance, an AND gate could be used to ensure a conveyor belt starts only if the power is on and the safety guard is closed. A NAND gate could control a safety feature, keeping a machine OFF (output 1) unless specific conditions are all met (inputs 1), then allowing it to operate (output 0). This ensures operational safety and efficiency in Nigerian manufacturing.