tugas pendahuluan modul 1 mikro

tugas pendahuluan modul 1

Tugas Pendahuluan Modul 1








1. Kondisi [kembali]
  (percobaan 1 kondisi 2) Kondisi awal LED mati lalu hidup bergantian dari kanan ke kiri secara berulang

2. Gambar Rangkaian Simulasi [kembali]
Gambar Rangkaian simulasi


3. Vidio Simulasi [kembali]








4. Flow Chart [kembali]
Flow Chart
        

5. Listing Program [kembali]
       
// Lampu LED Berjalan Menggunakan Arduino UNO
// Menyalakan LED dengan Aktif HIGH
void setup()
{

pinMode(0, OUTPUT);
pinMode(1, OUTPUT);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
// menjadikan PIN 0, 1, 2, 3, dan 4 sebagai OUTPUT
}
void loop()
{
//menyala secara bergilir
digitalWrite(0, HIGH);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
delay(1000);
digitalWrite(0, LOW);
digitalWrite(1, HIGH);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
delay(1000);

digitalWrite(0, LOW);
digitalWrite(1, LOW);
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
delay(1000);
digitalWrite(0, LOW);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
digitalWrite(4, LOW);
delay(1000);
digitalWrite(0, LOW);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, HIGH);
delay(1000);
}


6. Link Download [kembali]
file html download
file vidio download
file proteus download
  

Tidak ada komentar:

Posting Komentar