DIY Arduino Traffic Light Pedestrian Light Push Button Control (https://thecustomizewindows.com/2016/06/diy-arduino-traffic-light-pae-push-button/)

ere is How to Create LED DIY Arduino Traffic Light – Pedestrian Light Push Button Control. When Pedestrians Will WALK, Cars Will Stop Logic.There is actually two parts – one is building the LED DIY Traffic Lights and Second Part is the Coding. We are using push button, but it can be a sensor in real. Most commonly many websites write about Arduino Traffic Light which automatically goes OFF and ON. That is not practical, it is more towards toy. It is example of basic implementation of Finite State Machines modeling in embedded.

Creating DIY Arduino Traffic Light Pedestrian Light


This should be a separate chapter. Raspberry has great pre-built traffic light add-ons like PI-TRAFFIC, PI-STOP, Traffic HAT and so on. But they cost minimum $10 for a set of two. Additionally we are not getting the desired realistic Pedestrian Light. For total 5 LEDs, it is meaningless to pay $10. We are taking about this stuff :
Arduino Traffic Light
You can mount the LED on PCB to get such thing or just put them over simple corrugated board or 3D Print or use LEGO blocks. WALK/GO LED can be created by adding those shaped cover.

DIY Arduino Traffic Light Pedestrian Light : Logic

  1. the green LED of Traffic Light will turn off
  2. and yellow LED of Traffic Light will turn on for 2 seconds
  3. then the red LED of Traffic Light will go to ON
  4. by that time the green LED of Pedestrian Light will turn on
  5. After 4 seconds the green LED of Pedestrian Light will be flashing for 5 seconds and turn off
  6. Red LED of Pedestrian Light will be on, red LED of Traffic Light will off, green LED of Traffic Light will be on.

Creating DIY Arduino Traffic Light Pedestrian Light : Circuit Diagram and Code


DIY-Arduino-Traffic-Light-Pedestrian-Light-Push-Button-Control
We have the whole project on FritZing and you can download from this link. Download the .fzz and .ino file from there. Here is also the code :

The code is modified from http://osoyoo.com/?p=239 and is distributed under GNU GPL 3.0 License.

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

IC 13

Arduino Servo Motors (https://learn.adafruit.com/adafruit-arduino-lesson-14-servo-motors/arduino-code-for-sweep)