Перейти к содержимому

Programming Your Own Pedestrian Crossing Signal With COUNTDOWN!!!!

Tools With Tools

0:00 / 0:00

Programming Your Own Pedestrian Crossing Signal With COUNTDOWN!!!!

33 109 просмотров · 4 года назад
Tools With Tools
102 подписчика
33 109 просмотров · 4 года назад
In this video we learn how to wire, and program an Arduino to make this pedestrian signal function like it does in your city! This particular signal is a Dialight 430-6479-001x ----CODE----- int W = 7; int DW = 6; //W is Walk, DW is Dont Walk void setup() { // put your setup code here, to run once: pinMode(W,OUTPUT); pinMode(DW,OUTPUT); } void loop() { for (int x=0;x (LESS THAN SIGN HERE)30;x++) { digitalWrite(DW,HIGH); delay(500); digitalWrite(DW,LOW); delay(500);} digitalWrite(DW,HIGH); delay(10000); digitalWrite(DW,LOW); digitalWrite(W,HIGH); delay(10000); digitalWrite(W,LOW); }