This is part 4 and the final in the series on building a Traffic Light system, from real, recycled traffic light components, and controlling it with an Arduino Nano. In this video, I explain the code in detail and explain how I control the logic of the traffic light system.
This code is effective and works well, however, it was written for others learning Arduino without using concepts they haven’t been taught as yet, such as Switch/Case statements and other methods for implementing a “State Machine” (see https://en.wikipedia.org/wiki/Finite-state_machine for more). This project was built for a school as a learning aid.
I have posted the code and schematic to GitHub here: https://github.com/digitalkarl/Arduino-Traffic-Light-Project
Part1 to this series can be viewed here: https://www.youtube.com/watch?v=g2ODoBmgEYw
Part2 is here: https://www.youtube.com/watch?v=hCqHJyGz8xs
and Part3 is here: https://www.youtube.com/watch?v=A96So-lOKQk
Post time: Jun-19-2017