1 / 2
Traffic Light for Arduino Ampel für Arduino — image 1
1 / 2

Traffic Light for Arduino Ampel für Arduino

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

Traffic light, Arduino controlled.

Rating
5 / 5
Likes
53
Downloads
439
Makes
2
Views
1,996
Reviews
2

Updated at source:

Model information

Category
Engineering
License
GNU General Public License v2.0

Printing things for a traffic light, controlled by an Arduino.

One model is for 5 mm LEDs, the other for 10 mm LEDs!

You have to write an Arduino-Sketch!

####

Take that simple one for first experience :-) :

Sketch added to files!

----------------------


int ROT=2; //Red LED on PIN 2
int GELB=4; // and so on
int GRUEN=6;


void setup() {
pinMode(ROT, OUTPUT);
pinMode(GELB,OUTPUT);
pinMode(GRUEN,OUTPUT);

}

void loop() {
 digitalWrite(ROT,HIGH);
 delay(10000);             // 10 sec Red
 digitalWrite(GELB,HIGH);
 delay(3000);
 digitalWrite(ROT,LOW);
 digitalWrite(GELB,LOW);
 digitalWrite(GRUEN,HIGH);
 delay(10000);
 digitalWrite(GRUEN,LOW);
 digitalWrite(GELB,HIGH);
 delay(4000);
 digitalWrite(GELB,LOW);

 
}

Tags