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
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
- Watch the hook videos
- Fill out the template for the code for the 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 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
| Type | Listing |
|---|---|
| CS Domains | Algorithms and Programming |
| CS Principles | Recognizing and Defining Computational Problems, Creating Computational Artifacts, Testing and Refining Computational Artifacts |