Traffic Light Challenge
Programming Challenge Assignment
This is a Coding Assignment, so that means you will be
Thinking about coding
Planning your code (writing sudo code and flow diagrams)
And then, Finally writing some code...
Essential Challenge:
Research and describe different traffic light algorithms. Determine why traffic patters may affect the operation of a traffic light.
Create a code (C++ or Python) to run on an Arduino or Raspberry Pi that will emulate some traffic light intersections described below.
- Unit: Programming
- Module: Coding Challenges - C++ or Python
- This is a Doing Activity : Lesson / Lab
- Last Revised: Nov 28, 2021 - Authored: June 15, 2021
- Original Author: Jim Burnham - TopClown@STEAMClown.org
- Content License: Distributed as Open Source. See Rights & Usage
Lesson Resources:
Traffic Light Coding Challenge - 📰 Slide Presentation (TBD)
Prerequisites:
No explicit prerequisite course work or coding knowledge is required, but students are expected to have a good understanding of basic computer principles.
Caution & Safety Considerations:
Primer: "Aaron, I can imagine no way in which this thing could be considered anywhere remotely close to safe. All I know is I spent six hours in there and I'm still alive... You still want to do it?"
As with any activity, please make sure you are using appropriate safety equipment. If you are coding, writing, reading, or working a lab, make sure you stand up and stretch every hour or so, Please consider any safety issues connecting to a Raspberry Pi, Arduino, computers and other electronic equipment.
Lesson Topic - Traffic Lights & Traffic Flow Algorithms:
What Are Whole Numbers?
Mathematics need building blocks, & Whole Numbers are these building blocks that all more complex math is built from.
Whole Numbers - a number without fractions; an integer. Whole numbers are a set of numbers including all positive integers and 0. Whole numbers are a part of real numbers that do not include fractions, decimals, or negative numbers.
Humans and even other intelligent animals innately understand the concept of Whole Numbers. We can clearly understand the concept of "How Many" when we look at these two piles of Jelly Beans.
We may not immediately know how many beans are in the big pile, but we absolutely know that there are way more than 5.
And to find out we can easily start at 1 and then count each... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14... 93. That's what I think... I think there are 93.
What Do You Already Know? Take This Pre-Quiz To Find Out:
Take the Pre-Quiz to get a better self assessment. Sometimes we feel like we already know a topic, and maybe we can just do a quick review. Other times we find we need to go a little deeper. By taking a quick self assessment, you can measure how much effort you need to put into this section.
Whole Number Pre-Quiz
If you scored 79% or less, you should probably spend a 20-30 min reviewing this section. Even if you scored 100%, it can't hurt to spend 10-15 min.
Getting Started:
Chapters - Lessons - Lectures - Labs:
ddd
hh
Mathematics for Technology - Sites You Should Register, Get An Account or Sign-up for:
Khan Academy - Pre Algebra
Learn pre-algebra for free—all of the basic arithmetic and geometry skills needed for algebra. Full curriculum of exercises and videos.
Khan Academy - Pre Algebra
Learn pre-algebra for free—all of the basic arithmetic and geometry skills needed for algebra. Full curriculum of exercises and videos.
How To Submit This Assignment:
Check with your instructor for the method to turn in this assignment... More than likely, you will have an assignment in Canvas, Google classroom or some other LMS, where you can submit your writing assignment.
Reference & Resources:
License - "Be A Hero"... Distribute Your Content As Open Source... That Is What I'm Doing...
If you do use my material, and make changes, I would appreciate getting a copy... because if you are making changes, it means that you think there is a better way to teach this… and I would really appreciate understanding that. Please send me feedback on my Questions or Feedback form. Please don’t hesitate to ask questions or comment.
You also should keep and include my STEAM Clown Logo and Copyright in any derivative works you create. I would appreciate if you would include one of these images found on my Steam Clown License page and link it to www.steamclown.org
Sid Bar With jim The STEAM Clown: This will be an ever evolving coding challenges. I'll try to keep it current and relevant. Please let me know if any resource links are broken or not accessible. Use this email link to let me know what is broken @ TopClown@STEAMClown.org
Teachers - Unit, Module and Lesson Plans
If you are a teacher and want to connect and teach this lesson or module, discuss how I teach it, give me feedback, please contact me at TopClown@STEAMClown.org
To access this Lesson Plan and the Teacher collaboration area, you will have needed to connect with me so I can Share the content with you. Please go to the Teachers & Partner Page, check out my Licensing and fill out my Collaboration and Curriculum Request Form. I'll review and then grant you access to the requested areas and lesson plans if they exist.
If you have questions or feedback on how I can make a presentation, lesson, lab better please give use my Feedback Form.
Standards:
Math & Science:
<list Standards>
Resource Attribution:
Sites Referenced or Summarized:
Sites Referenced or Summarized: