Tugas Pendahuluan Modul 1





1. Kondisi [Kembali]  

Perbobaan 1 kondisi 4 = Kondisi awal LED mati lalu hidup bergantian dari tengah ke pinggir secara berulang.

2. Rangkaian Simulasi [Kembali]  

 Gambar rangkaian percobaan 1

Gambar rangkaian simulasi LED hidup dari tenganh ke kiri

                                               Gambar rangkaian LED hidup dari tengah ke kanan

 

3. Flowchart [Kembali] 


4.listing program [Kembali] 

 int led [ ] = {2, 3, 4, 5, 6, 7, 8, 9};


void setup()                                   
{
for (int i = 0; i <= 7; i++)
{
pinMode (led[i], OUTPUT);
}
}



void loop(){                             
for (int hidup = 3; hidup >= 0; hidup--)
{
digitalWrite(led[hidup], HIGH);
delay(100);                            
}
delay(100);                              
for (int mati = 3; mati >= 0; mati--)
{
digitalWrite(led[mati], LOW);   
delay(100);                                 
}
delay(100);    
for (int hidup = 4; hidup <= 7; hidup++)
{
digitalWrite(led[hidup], HIGH);
delay(100);                            
}
delay(100);    
for (int mati = 4; mati <= 7; mati++)
{
digitalWrite(led[mati], LOW);   
delay(100);                                 
}                         
}

5. Video Simulas [Kembali]  

 

6. Link Download [Kembali]

File Rangkaian = Klik Disini

File Listing Program = Klik Disini 

File Video = Klik Disini

File Flowchart =  klik disini

File Library Arduino = Klik Disini

File Data Sheet Arduino = Klik Disini 

File Html = Klik Disini

Tidak ada komentar:

Posting Komentar