Arduino ile karaşimşek

Gerekli malzemeler:
  •  Arduino UNO 

  • LED

  • Jumper Kablo

  • Direnç - 1k  

Devre Şeması
Arduino Kodu:

void setup() {

pinMode (8, OUTPUT);

pinMode (9, OUTPUT);

pinMode (10, OUTPUT); 

pinMode (11, OUTPUT);

}

 

void loop() {

 digitalWrite (8, HIGH); 

 delay (50); 

 digitalWrite (8, LOW);

 digitalWrite (9, HIGH); 

 delay (50); 

 digitalWrite (9, LOW);

 digitalWrite (10,HIGH); 

 delay (50);

 digitalWrite (10, LOW); 

 digitalWrite (11, HIGH); 

 delay (50); 

 digitalWrite (11, LOW);

 digitalWrite (10, HIGH);

delay(50);

digitalWrite (10, LOW);

digitalWrite (9, HIGH);

delay(50);

digitalWrite (9, LOW);

digitalWrite (8, HIGH);

delay(50);

digitalWrite (8, LOW);

}

Ziyaret Et

Maker216

SOSYAL

Esenevler Mahallesi

Dr. Rüstem Eyüboğlu Sokak

No: 26/3

Ümraniye-İstanbul

Telefon: 0507 942 16 46

  • Black Facebook Icon
  • Black Instagram Icon

MAKER216

DÜŞÜN-EĞLEN-TASARLA

Maker216