Tuesday, June 9, 2020

Automatic traffic control system using Arduino|Two Way Traffic control using Arduino UNO board | simple projects 2020

Automatic traffic control system using Arduino | Two Way Traffic control using Arduino UNO board | simple projects 2020|


Components Required:


1)Arduino Board
2)USB cable interface Arduino into the laptop
3)LED's as per required traffic colors

How to Done with that project?

 firest think you need as per the components and connect leds above the digram and clean connections you did after that copy-paste or type below the code into your Arduino IDE.
you did! am so sorry I forget resisters so Arduino board take the only 5V so no issues occurred your projects you need to protect you're led then only add resisters.

Code:

void setup() {
pinMode(7,OUTPUT);//RED
pinMode(6,OUTPUT);//YELLOW
pinMode(5,OUTPUT);//GREEN
Serial.begin(9600);
}

void loop() {
 digitalWrite(7,HIGH);
 delay(1000);
 digitalWrite(7,LOW);
 delay(1000);
 digitalWrite(6,HIGH);
 delay(1000);
 digitalWrite(6,LOW);
 delay(1000);
 digitalWrite(5,HIGH);
 delay(1000);
 digitalWrite(5,LOW);
 delay(1000);

}

This code very simple you try and enjoy your DIY two-way traffic control projects.


disclaimer


This article is for informational and educational purposes only, does not constitute legal advice and does not establish any kind, illegal activists 



Related Posts

0 comments: