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. Video Simulasi [KEMBALI]
4. Flow Chart[KEMBALI]
5. Listing Program [KEMBALI]
// Lampu LED Berjalan Menggunakan Arduino UNO
// Menyalakan LED dengan Aktif HIGH
void setup()
{
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 Rangkaian Simulasi download
File Video download
File Coding Arduino download
0 komentar:
Posting Komentar