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);
}
The author marked this model as their own original creation.