Arduino Traffic Light

Students will code an Arduino traffic light code. Build an Arduino traffic light simulator. Change timings for their variables.

National Standards Alignment

csta 1B-AP-08 1B-AP-09 1B-AP-10 1B-AP-15 2-AP-10 2-AP-11 2-AP-12 2-AP-17 2-DA-07 2-NI-06
iste ISTE-1d ISTE-3a ISTE-3b ISTE-4a ISTE-4c ISTE-4d ISTE-5a ISTE-5b ISTE-6a ISTE-6b

OVERVIEW

Activity Overview:

Students will code an Arduino traffic light code. Build an Arduino traffic light simulator. Change timings for their variables.

Meta description

  • Subject Area: Computer Science, Technology
  • Grade Level : 3-5, 6-8
  • Computer Science Domains:
    • Algorithms and Programming
  • Computer Science Principles:
    • Recognizing and Defining Computational Problems
    • Creating Computational Artifacts
    • Testing and Refining Computational Artifacts
  • Materials:
    • Arduino
  • Considerations:
    • How to use an Arduino and python coding.

Lesson Plan

Overview

Students will code an Arduino traffic light code. Build an Arduino traffic light simulator. Change timings for their variables.

ASSESSMENT PRE/POST-TEST

Student reflection KWL chart for the assignment. What they know about Arduinos, what they wonder about Arduinos, what they learned about Arduinos.

OBJECTIVES

I can write a code for a traffic light simulator. I can build a traffic light simulator. I can test my code and debug if necessary.

CATCH/HOOK

Videos of how to build an Arduino traffic light.

ACTIVITY INSTRUCTIONS

  1. Fill out template for the code for traffic light.
  2. Build the traffic light simulator using direct instruction modeling.
  3. Students will test their code by uploading their code to their simulator. If their code doesn’t work, they need to go back into the code and debug it. If it does work, they will go back into their code and change the timing variables and run it again.

Supplements

Any items in this section are the property & under the license of their respective owners.

REVIEW

Complete the KWL chart.

STANDARDS

TypeListing
CS DomainsAlgorithms and Programming
CS PrinciplesRecognizing and Defining Computational Problems, Creating Computational Artifacts, Testing and Refining Computational Artifacts