1 of 10

The Arizona STEM Acceleration Project

Logic Gates

2 of 10

Logic Gates

An 11th grade STEM lesson

Sylvestre Amorsolo

03 June 2024

3 of 10

Notes for teachers

  • This lesson takes place in a classroom for one hour.
  • Students may work in pairs.
  • Students have been oriented on how to use the Arduino app and kit, and were taught how to use the breadboard.
  • Students are familiar with basic coding.
  • Students know how to fill up a truth table and know a little bit of Boolean algebra.

List of Materials

  • Computer
  • Arduino Kit
    • arduino board
    • breadboard
    • 3 330 ohm resistors
    • 2 10K ohm resistors
    • 3 LEDs (2 same colors and another 1 that’s different)
      • Note: 1st type of LED is input while the 2nd type is assigned as the output
    • 2 push buttons
    • connecting wires
  • Lab Paper

4 of 10

Standards

HS.CS. HS.1 Describe levels of abstraction and interactions between application software, system software, and hardware layers.

Science and Engineering Practices

  • ask questions and define problems
  • develop and use models
  • plan and carry out investigations
  • use computational thinking
  • construct explanations and design solutions
  • engage in argument from evidence
  • obtain, evaluate and communicate information

5 of 10

Objective:

Today we will build a circuit and program the Arduino to simulate different logic gates.

6 of 10

Agenda (60 minutes)

  • Introduction
  • Circuit Construction
  • Code writing and programming

7 of 10

Intro/Driving Question/Opening

Nowadays, almost every home has a burglar alarm. What triggers a burglar alarm and what sets it off?

How is a burglar alarm wired?

8 of 10

Hands-on Activity Instructions

Sample Student Work

  • Teacher’s Notes: The instructions are on this file: Logic Gates Activity.

9 of 10

Assessment:

  1. What kind of logic gate(s) is/are applied in a burglar alarm?

2. In the activity, which of the stations correctly simulates the logic gate for a burglar alarm? Build the circuit again and upload the corresponding code/sketch into the Arduino.

3. Think of a device or a system that applies one or a combination of the logic gates. Explain, by filling out a truth table, why that device or system applies such logic gates.

10 of 10

Differentiation

For students that still struggle understanding the concept of simple logic gates, they may go over this guided notes.

Remediation

Extension/Enrichment

Which of the logic gates resembles a series circuit? A parallel circuit? Why?

Using the Arduino kit and any of the codes/sketches from any of the stations, make a model of the example you thought of in number 3.