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
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
- Fill out template for the code for traffic light.
- Build the traffic light simulator using direct instruction modeling.
- 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
| Type | Listing |
|---|---|
| CS Domains | Algorithms and Programming |
| CS Principles | Recognizing and Defining Computational Problems, Creating Computational Artifacts, Testing and Refining Computational Artifacts |