Halaman

TP Modul 1





1. Kondisi [Kembali]

Percobaan 1 kondisi 8 : 
Kondisi awal LED mati lalu hidup bergantian led 1,3,5,7 selanjutnya 2,4,6,8 secara berulang.

2. Gambar Rangkaian Simulasi [Kembali]



Pada rangkaian digunakan arduino uno dan LED. dengan kondisi awal led mati lalu hidup begantian led 1,3,5,7 selanjutnya 2,4,6,8 secara berulang. Arduino disambungkan dengan Vcc dan ground. Kemudian disambungkan led 1 ke pin 2 aduino sampai led 8 dihubunngkan ke pin 9 arduino. Arduino kemudian diberi program agar led hidup bergantian led 1,3,5,7 selanjutnya 2,4,6,8, yaitu dengan memberi logika high pada led yg diinginkan hidup dan diberi logka low pada led yang diinginkan mati.


3. Flowchart 
[Kembali]



4. Listing Program [Kembali]



int led[]={2,3,4,5,6,7,8,9};
void setup()
{
  for(int i=0;i<8;i++)
{


  pinMode(led[i],OUTPUT);
}
}
void loop()
{
  digitalWrite(2,HIGH);
  digitalWrite(3,LOW);
  digitalWrite(4,LOW);
  digitalWrite(5,LOW);
  digitalWrite(6,LOW);
  digitalWrite(7,LOW);
  digitalWrite(8,LOW);
  digitalWrite(9,LOW);
  delay(1000);

  digitalWrite(2,LOW);
  digitalWrite(3,LOW);
  digitalWrite(4,HIGH);
  digitalWrite(5,LOW);
  digitalWrite(6,LOW);
  digitalWrite(7,LOW);
  digitalWrite(8,LOW);
  digitalWrite(9,LOW);
  delay(1000);

  digitalWrite(2,LOW);
  digitalWrite(3,LOW);
  digitalWrite(4,LOW);
  digitalWrite(5,LOW);
  digitalWrite(6,HIGH);
  digitalWrite(7,LOW);
  digitalWrite(8,LOW);
  digitalWrite(9,LOW);
  delay(1000);

  digitalWrite(2,LOW);
  digitalWrite(3,LOW);
  digitalWrite(4,LOW);
  digitalWrite(5,LOW);
  digitalWrite(6,LOW);
  digitalWrite(7,LOW);
  digitalWrite(8,HIGH);
  digitalWrite(9,LOW);
  delay(1000);
  digitalWrite(2,LOW);
  digitalWrite(3,HIGH);
  digitalWrite(4,LOW);
  digitalWrite(5,LOW);
  digitalWrite(6,LOW);
  digitalWrite(7,LOW);
  digitalWrite(8,LOW);
  digitalWrite(9,LOW);
  delay(1000);

  digitalWrite(2,LOW);
  digitalWrite(3,LOW);
  digitalWrite(4,LOW);
  digitalWrite(5,HIGH);
  digitalWrite(6,LOW);
  digitalWrite(7,LOW);
  digitalWrite(8,LOW);
  digitalWrite(9,LOW);
  delay(1000);

  digitalWrite(2,LOW);
  digitalWrite(3,LOW);
  digitalWrite(4,LOW);
  digitalWrite(5,LOW);
  digitalWrite(6,LOW);
  digitalWrite(7,HIGH);
  digitalWrite(8,LOW);
  digitalWrite(9,LOW);
  delay(1000);

  digitalWrite(2,LOW);
  digitalWrite(3,LOW);
  digitalWrite(4,LOW);
  digitalWrite(5,LOW);
  digitalWrite(6,LOW);
  digitalWrite(7,LOW);
  digitalWrite(8,LOW);
  digitalWrite(9,HIGH);
  delay(1000);

}

5. Video [Kembali]





6. Link Download [Kembali]

Download video simulasi di sini
Download rangkaian simulasi di sini
Download listing program di sini
Download file Html di sini

Tidak ada komentar:

Posting Komentar

Entri yang Diunggulkan

Postingan Populer