Traffic Light Arduino
Students will design a traffic light simulator using an Arduino to imitate traffic light timings. Students will program their lights using Arduino code, introducing variables for the light timings.
National Standards Alignment
OVERVIEW
Activity Overview:
Students will design a traffic light simulator using an Arduino to imitate traffic light timings. Students will program their lights using Arduino code, introducing variables for the light timings.
Meta description
- Subject Area: Computer Science, Science, Technology, Engineering
- Grade Level : 6-8
- Computer Science Domains:
- Algorithms and Programming
- Impacts of Computing
- Computer Science Principles:
- Fostering an Inclusive Computing Culture
- Collaborating Around Computing
- Recognizing and Defining Computational Problems
- Developing and Using Abstractions
- Creating Computational Artifacts
- Testing and Refining Computational Artifacts
- Communicating About Computing
- Materials:
- Arduino
Lesson Plan
Overview
Students will design a traffic light simulator using an Arduino to imitate traffic light timings. Students will program their lights using Arduino code, introducing variables for the light timings.
ASSESSMENT PRE/POST-TEST
Students will create code using events, sequences, conditional and variables. Students will create code that will insert variables for different timings for each light color. Students will infer the timings of another student’s traffic light based on using side channel attack.
OBJECTIVES
Students will create code using events, sequences, conditional and variables. Students will create code that will insert variables for different timings for each light color. Students will infer the timings of another student’s traffic light based on using side channel attack.
CATCH/HOOK
Guest Speaker Taylor McCort, District 1, Traffic Engineer. Students will write 3 questions about what they wonder about traffic lights, during the speaking students will check off any questions that were answered and then ask any that they still wonder about.
ACTIVITY INSTRUCTIONS
Students will be able create a finite machine by coding a traffic light simulator using an Arduino. They will be able to manipulate timings on their lights to change variables within their code. Students will design a traffic light simulator using an Arduino to imitate traffic light timings. Students will program their lights using Arduino code, introducing variables for the light timings.
Supplements
Any items in this section are the property & under the license of their respective owners.
REVIEW
Before the next lesson, identify areas in our city that have different types of timings.
STANDARDS
| Type | Listing |
|---|---|
| CS Domains | Algorithms and Programming, Impacts of Computing |
| CS Principles | Fostering an Inclusive Computing Culture, Collaborating Around Computing, Recognizing and Defining Computational Problems, Developing and Using Abstractions, Creating Computational Artifacts, Testing and Refining Computational Artifacts, Communicating About Computing |
| Other Content Standards | 5.AP.C.01 Using grade-appropriate content and complexity, create programs that include sequences, events, loops, and conditionals, both individually and collaboratively. |
| 5.AP.V.01 Using grade-appropriate content and complexity, create programs that use variables to store and modify data. |