Arduino Traffic Light

Students will code an Arduino traffic light code. They will then build an Arduino traffic light simulator. They will then 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. They will then build an Arduino traffic light simulator. They will then 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. They will then build an Arduino traffic light simulator. They will then change timings for their variables

ASSESSMENT PRE/POST-TEST

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 using my simulator.

CATCH/HOOK

Videos of how to build an Arduino traffic light.

ACTIVITY INSTRUCTIONS

  1. Watch the hook videos
  2. Fill out the template for the code for the traffic light.
  3. Build the traffic light simulator using direct instruction modeling.
  4. Students will test their code by uploading their code to their simulator.
  5. If their code does not 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