Electrical Engineering  ·  Level 6
Digital Electronics I
Chapter 3: Apply Logic gates and Boolean algebra concepts
📚 6 Topics
⚑ What you will be able to do

By the end of this chapter, you will be able to:

  • Apply the principles of logic gates correctly according to digital system design specifications.
  • Operate different types of logic gates properly based on the design requirements.
  • Use Boolean algebra concepts accurately when designing digital systems.
  • Apply logic circuit concepts correctly following digital system design specifications.

Mastering these skills will help you build and troubleshoot digital systems confidently, a crucial ability in today’s technology-driven world.

Logic gates and Boolean algebra form the foundation of digital electronics, essential in designing and analyzing electrical circuits used in control systems, communication devices, and computing equipment. In Kenya's electrical engineering sector, proficiency in these concepts enables professionals to develop efficient digital systems for automation, data processing, and embedded control applications. This chapter focuses on applying logic gates and Boolean algebra to solve practical problems and optimize digital circuit design.

3.1 Basic Logic Gates

Basic logic gates are the fundamental building blocks of digital circuits. Each gate performs a specific logical operation on one or more binary inputs to produce a single binary output. Understanding these gates and their truth tables is critical for creating and simplifying complex digital systems used in electrical engineering projects across industries such as manufacturing automation and telecommunication.

3.1.1 AND Gate

The AND gate outputs a high signal (1) only when all its inputs are high. Its operation is denoted by the Boolean expression \( Y = A \cdot B \), where \(A\) and \(B\) are inputs and \(Y\) is the output.

$$ Y = A \cdot B $$

Worked Examples

Example 1: In a control panel, two switches \(A\) and \(B\) control a motor. Determine the output \(Y\) when both switches are ON.

Given: \(A = 1\), \(B = 1\)

$$ Y = A \cdot B $$

$$ Y = 1 \cdot 1 $$

$$ Y = 1 $$

Answer: 1 (Motor ON)

Example 2: Calculate the output when switch \(A = 0\) and \(B = 1\).

Given: \(A = 0\), \(B = 1\)

$$ Y = A \cdot B $$

$$ Y = 0 \cdot 1 $$

$$ Y = 0 $$

Answer: 0 (Motor OFF)

Example 3: For a security system, two sensors \(A\) and \(B\) must both detect an intruder to trigger an alarm. Find the output if \(A=1\) and \(B=0\).

Given: \(A=1\), \(B=0\)

$$ Y = A \cdot B $$

$$ Y = 1 \cdot 0 $$

$$ Y = 0 $$

Answer: 0 (Alarm NOT triggered)

3.1.2 OR Gate

The OR gate outputs a high signal (1) if at least one input is high. Its Boolean expression is \( Y = A + B \), where \(+\) denotes logical OR.

$$ Y = A + B $$

Worked Examples

Example 1: In a lighting system, two sensors \(A\) and \(B\) detect motion. The light turns ON if either sensor is triggered. Find \(Y\) when \(A=0\), \(B=1\).

Given: \(A=0\), \(B=1\)

$$ Y = A + B $$

$$ Y = 0 + 1 $$

$$ Y = 1 $$

Answer: 1 (Light ON)

Example 2: Calculate the output if both sensors are inactive \(A=0\), \(B=0\).

Given: \(A=0\), \(B=0\)

$$ Y = A + B $$

$$ Y = 0 + 0 $$

$$ Y = 0 $$

Answer: 0 (Light OFF)

Example 3: For a fire alarm system, two detectors \(A\) and \(B\) are installed. The alarm triggers if any detector senses smoke. Find \(Y\) when \(A=1\), \(B=1\).

Given: \(A=1\), \(B=1\)

$$ Y = A + B $$

$$ Y = 1 + 1 $$

$$ Y = 1 $$

Answer: 1 (Alarm ON)

3.1.3 NOT Gate

The NOT gate, or inverter, outputs the opposite of the input signal. Its Boolean expression is \( Y = \overline{A} \).

$$ Y = \overline{A} $$

Worked Examples

Example 1: In a relay control circuit, an input \(A=1\) is inverted to control a normally closed contact. Find \(Y\).

Given: \(A=1\)

$$ Y = \overline{A} $$

$$ Y = \overline{1} = 0 $$

Answer: 0 (Contact open)

Example 2: Calculate output \(Y\) when \(A=0\).

Given: \(A=0\)

$$ Y = \overline{A} $$

$$ Y = \overline{0} = 1 $$

Answer: 1 (Contact closed)

Example 3: For a temperature alarm, the sensor output \(A=1\) indicates normal temperature. The alarm should activate when temperature is abnormal (NOT \(A\)). Find \(Y\).

Given: \(A=1\)

$$ Y = \overline{A} $$

$$ Y = \overline{1} = 0 $$

Answer: 0 (Alarm OFF)

3.1.4 NAND Gate

The NAND gate outputs low only when all inputs are high; otherwise, it outputs high. Its Boolean expression is \( Y = \overline{A \cdot B} \).

$$ Y = \overline{A \cdot B} $$

Worked Examples

Example 1: For a motor starter circuit, two interlocks \(A\) and \(B\) must be ON to stop the motor. Find \(Y\) when \(A=1\), \(B=1\).

Given: \(A=1\), \(B=1\)

$$ Y = \overline{A \cdot B} $$

$$ Y = \overline{1 \cdot 1} $$

$$ Y = \overline{1} = 0 $$

Answer: 0 (Motor stop signal active)

Example 2: Calculate \(Y\) if \(A=0\), \(B=1\).

Given: \(A=0\), \(B=1\)

$$ Y = \overline{A \cdot B} $$

$$ Y = \overline{0 \cdot 1} $$

$$ Y = \overline{0} = 1 $$

Answer: 1 (Motor stop signal inactive)

Example 3: In a safety interlock, sensors \(A\) and \(B\) are connected to a NAND gate. Find output when \(A=0\), \(B=0\).

Given: \(A=0\), \(B=0\)

$$ Y = \overline{A \cdot B} $$

$$ Y = \overline{0 \cdot 0} $$

$$ Y = \overline{0} = 1 $$

Answer: 1 (Safety enabled)

Practice Questions

  1. For an industrial control system, two sensors \(A\) and \(B\) are connected to an AND gate controlling a valve. Calculate the output \(Y\) for the input combinations: (a) \(A=1\), \(B=0\), (b) \(A=1\), \(B=1\), (c) \(A=0\), \(B=0\). (3 marks)

  2. A lighting control uses an OR gate with inputs \(A\) and \(B\). Determine the output for the input sets: (a) \(A=0\), \(B=1\), (b) \(A=1\), \(B=1\), (c) \(A=0\), \(B=0\). (3 marks)

  3. In a relay circuit, a NOT gate inverts input \(A\). Find output \(Y\) when \(A=1\) and \(A=0\). (2 marks)

  4. For a safety system, two sensors \(A\) and \(B\) are connected to a NAND gate. Calculate output \(Y\) for: (a) \(A=1\), \(B=1\), (b) \(A=0\), \(B=1\), (c) \(A=0\), \(B=0\). (3 marks)

The rest of this chapter
🔒

Create a free account to open more of this chapter.

Free: practical guides, quick cards, workplace scenarios and more.

Create a free account
🔒3.2 Universal Logic Gates Operation

Universal logic gates are fundamental components in digital electronics, capable of implementing any Boolean function without needing other types of gates. In Electrical Engineering applications across Kenya, such as automation systems in county government off…

🔒3.3 Special Purpose Gates

Special purpose logic gates play a vital role in digital electronics by performing functions that go beyond the basic AND, OR, and NOT operations. In electrical engineering applications in Kenya, such as automation systems in manufacturing plants and control c…

🔒3.4 Laws of Boolean Algebra

In Electrical Engineering, especially in digital electronics design and analysis, understanding the laws of Boolean algebra is critical for simplifying logic circuits. These laws provide a mathematical framework that allows engineers to reduce complex logic ex…

🔒3.5 Logic Expressions Simplification

Logic expressions simplification is a fundamental skill in digital electronics, enabling electrical engineers to design efficient circuits by reducing the number of logic gates required. In the Kenyan electrical engineering context, simplification is crucial f…

🔒3.6 K-Maps

Karnaugh Maps (K-Maps) are a vital tool in simplifying Boolean expressions, particularly useful in electrical engineering design tasks such as optimizing digital circuits for control systems or embedded devices used in Kenyan industries. K-Maps provide a visua…

Chapter Summary

This chapter introduced the fundamental basic logic gates, including AND, OR, and NOT gates, explaining their operations and truth tables. It then explored the concept of universal logic gates, specifically NAND and NOR gates, which can be used to implement any logic function. The discussion continued with special purpose gates such as XOR and XNOR, highlighting their unique functions in digital circuits. The chapter covered the laws of Boolean algebra, presenting the essential rules for manipulating and simplifying Boolean expressions. Following this, methods for logic expressions simplification were explained, demonstrating how to reduce complex expressions to simpler forms. Finally, the chapter introduced Karnaugh Maps (K-Maps) as a graphical technique for minimizing Boolean functions efficiently, reinforcing the simplification process for practical circuit design. Together, these topics provide a comprehensive foundation for understanding and applying digital logic in electronics.

Self-Assessment

🔒 PDFDownload this self-assessment, with answers

Written Assessment

  1. Given two binary inputs \(A = 1\) and \(B = 0\), calculate the output of an AND gate. (1 mark)

  2. For inputs \(A = 1\), \(B = 1\), and \(C = 0\), find the output of a three-input OR gate. (1 mark)

🔒18 more in this section.

Chapter Examination Questions

🔒 PDFDownload these examination questions, with worked answers

SECTION A (40 Marks) - Answer ALL Questions

  1. In a Kisumu-based solar inverter manufacturing plant, a control circuit requires a logic gate that outputs HIGH only when both input signals are HIGH. Identify the logic gate and draw its truth table. (4 marks)
  2. Draw the logic symbol and truth table for a NOR gate used in a Nairobi power distribution relay system. (4 marks)
🔒20 more in this section.

Chapter Practical Activities

Practical 1: Construct and Test Basic Logic Gate Circuits Using Digital ICs

Electrical Engineering · Level 6
Digital Electronics I
PRACTICAL ASSESSMENT
TIME: 4 HOURS
⬇ PDFCandidate Instructions (Candidate Tool)

Type: Individual

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Assemble and test basic logic gate circuits (AND, OR, NOT) on a breadboard with dimensions approximately 170mm x 55mm.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
BreadboardIC 7408
Digital MultimeterIC 7432
Wire Stripper and CutterIC 7404
PPE (Safety boots, Overall)5V DC Power Supply
Jumper Wires
Push Button Switches
470 Ω Resistors
LEDs
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Breadboard1 Pc per Candidate
2IC 7408 (Quad 2-input AND gate)1 Pc per Candidate
3IC 7432 (Quad 2-input OR gate)1 Pc per Candidate
4IC 7404 (Hex Inverter NOT gate)1 Pc per Candidate
55V DC Power Supply1 Pc per 5 Candidates
6Digital Multimeter1 Pc per 5 Candidates
7Jumper WiresEnough per Candidate
8Push Button Switches4 Pcs per Candidate
9470 Ω Resistors6 Pcs per Candidate
10LEDs (Light Emitting Diodes)6 Pcs per Candidate
11PPE (Safety boots, Overall)1 Set per Candidate
12Wire Stripper and Cutter1 Pc per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Safety and Preparation
Wore PPE including safety boots and overalls
(Award 2 marks if PPE worn correctly; else 0)
2
Ensured clean and well-lit working environment
(Award 2 marks for clean, ventilated, and well-lit area)
2
Assembled all tools and materials before starting
(Award 2 marks if all tools/materials ready)
2
Identified and verified all components and ICs
(Award 2 marks each for correctly identifying IC 7408 and IC 7432; 2 marks for IC 7404)
4
Sub-Total10
TASK 2: Circuit Assembly
Mounted ICs on the breadboard correctly
(Award 1 mark each for proper placement of IC 7408, IC 7432, IC 7404)
3
Connected push button switches as inputs with correct wiring
(Award 1 mark each for correct wiring of switches to inputs)
3
Connected LEDs with 470 Ω resistors as outputs
(Award 1 mark each for proper LED and resistor connections)
4
Connected 5V power supply with correct polarity
(Award 2 marks for correct power connections)
2
Used jumper wires neatly and economically
(Award 3 marks for neat, short, and economic wiring)
3
Checked all connections before powering
(Award 2 marks for thorough inspection)
2
Sub-Total17
TASK 3: Testing and Verification
Powered the circuit and tested AND gate operation with all input combinations
(Award 1 mark for each correct AND gate input/output test)
4
Tested OR gate operation with all input combinations
(Award 1 mark for each correct OR gate input/output test)
4
Tested NOT gate operation with input high and low
(Award 2 marks for correct NOT gate operation)
2
Measured output voltages at test points with multimeter
(Award 3 marks for correct voltage measurement and recording)
3
Demonstrated correct logic levels on LEDs as per gate operation
(Award 1 mark each for correct LED indications for AND, OR, NOT)
4
Sub-Total17
PRODUCT CHECKLIST
Circuit assembled matches schematic with correct component placement and connections
(Award 5 marks if circuit matches schematic exactly)
5
Circuit dimensions approximately 170mm x 55mm as per breadboard layout
(Award 3 marks if circuit fits within specified dimensions)
3
All logic gates tested and verified to operate correctly
(Award 5 marks if AND, OR, NOT gates operate as expected)
5
Wiring is neat, secure, and economic
(Award 5 marks for neatness and economy of wiring)
5
Sub-Total18
GRAND TOTAL62
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)

Practical 2: Implement Universal Gates to Realize Basic Logic Functions Using NAND and NOR Gates

Electrical Engineering · Level 6
Digital Electronics I
PRACTICAL ASSESSMENT
TIME: 4 HOURS
⬇ PDFCandidate Instructions (Candidate Tool)

Type: Individual

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Build and test NAND and NOR gate circuits to realize AND, OR, and NOT functions on a 100mm x 75mm copper strip board.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
3V DC Power SupplyCopper Strip Board
Digital MultimeterNAND Gate IC 7400
Soldering IronNOR Gate IC 7402
Wire Cutter/Stripper1 kΩ Resistor
Jumper WiresSolder Wire
PPE (Safety Boots, Overall)
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
13V DC Power Supply1 Pc per 5 Candidates
2Digital Multimeter1 Pc per 5 Candidates
3Copper Strip Board1 Pc per Candidate
4Soldering Iron1 Pc per 5 Candidates
5Solder Wire1 Pc per 5 Candidates
6NAND Gate IC 74001 Pc per Candidate
7NOR Gate IC 74021 Pc per Candidate
8Jumper WiresEnough per Candidate
9Wire Cutter/Stripper1 Pc per 5 Candidates
101 kΩ Resistor1 Pc per Candidate
11PPE (Safety Boots, Overall)1 Set per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Safety and Preparation
Wore prescribed PPE (safety boots and overall)
(Award 2 marks for correct PPE use, 0 if not)
2
Ensured work area is clean, well lit, and ventilated
(Award 2 marks for good environmental safety practices)
2
Assembled all required tools, components, and materials
(Award 2 marks for complete assembly before starting work)
2
Sub-Total6
TASK 2: Circuit Assembly and Soldering
Identified and prepared all components for mounting (NAND and NOR ICs, resistor, jumper wires)
(Award 1 mark each for identification and preparation of 4 components)
4
Mounted components correctly on the 100mm x 75mm copper strip board
(Award 1 mark for each of the 6 mounted components)
6
Soldered all 14 required joints neatly and securely
(Award 0.5 marks per well-soldered joint, total 14 joints)
7
Used copper strip board economically with minimal waste
(Award 5 marks for efficient layout and minimal copper wastage)
5
Sub-Total22
TASK 3: Testing and Verification
Measured voltage at test points to confirm ~3V supply
(Award 3 marks for correct voltage measurement at power rails)
3
Tested logic outputs for AND, OR, and NOT functions using NAND and NOR gates
(Award 5 marks for correct logic function outputs as per truth tables)
5
Sub-Total8
TASK 4: Finishing and Presentation
Maintained neatness and organized wiring on the copper strip board
(Award 5 marks for neat and tidy wiring, properly trimmed leads)
5
Sub-Total5
PRODUCT CHECKLIST
Circuit functions correctly as AND, OR, and NOT using only NAND and NOR gates
(Award 10 marks for full functional correctness as per test results)
10
Circuit layout matches the 100mm x 75mm copper strip board dimensions
(Award 5 marks for correct and efficient use of copper strip board size)
5
Sub-Total15
GRAND TOTAL56
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)
🔒

Free: practical guides, quick cards, workplace scenarios and more.

Create a free account
🔒Assemble and Demonstrate Special Purpose Logic Gates CircuitPractical 3
🔒Simplify Boolean expressions and implement logic gate circuitsPractical 4
🔒Simplify and Implement Logic Expressions CircuitPractical 5
🔒Logic Minimization and Circuit Construction Using Karnaugh MapsPractical 6
🔒Design and construct a combinational logic circuit from a simplified Boolean expressionPractical 7
🔒Rebuild Universal Gate Circuits Using Basic Logic GatesPractical 8
🔒Develop and Verify Truth Tables for Basic and Special Logic GatesPractical 9
🔒Integrate and Test a Multi-Gate Digital Logic CircuitPractical 10
Flashcards 20 cards Study deck ▾
Question
1

↻ Tap card to reveal answer
🔒

18 more in this section.

Create a free account
Test Yourself 14 questions Start quiz ▾
0%
0 / 2
🔒

12 more in this section.

Create a free account
Am I competent?

At the start of this chapter we promised you would be able to:

  • Apply the principles of logic gates correctly according to digital system design specifications.
  • Operate different types of logic gates properly based on the design requirements.
  • Use Boolean algebra concepts accurately when designing digital systems.
  • Apply logic circuit concepts correctly following digital system design specifications.

Tick each one you can genuinely do.

So, are you there yet?

You're competent when you can confidently do 50% or more of what this chapter promised.

Sign in to record how you're doing.