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

csta 2-AP-10 2-AP-11 2-AP-12 2-AP-17 2-DA-07 2-IC-20 2-IC-21 2-IC-22 2-NI-06
iste ISTE-1c ISTE-1d ISTE-2a ISTE-2b ISTE-3a ISTE-3b ISTE-4a ISTE-4b ISTE-4c ISTE-4d ISTE-5a ISTE-5b ISTE-6a ISTE-6b ISTE-7a ISTE-7b
ngss MS-ETS1-1 MS-ETS1-2 MS-ETS1-3

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

TypeListing
CS DomainsAlgorithms and Programming, Impacts of Computing
CS PrinciplesFostering 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 Standards5.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.