Tugas Pendahuluan Modul 1



1.Kondisi (kembali)
Percobaan 2 (Seven Segment) : Tampilkan di seven segment 9-1 secara berulang

2.Gambar Rangkaian simulasi (kembali)















3.Flowchart (kembali)


4.Koding Program (kembali)
byte pin[]={6,7,8,9,10,11,12};

void setup() {
  // put your setup code here, to run once:
for(int i=0;i<9;i++)
{
  pinMode(pin[i],OUTPUT);
}
}
void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(6,HIGH);
  digitalWrite(7,HIGH);
  digitalWrite(8,LOW);
  digitalWrite(9,HIGH);
  digitalWrite(10,HIGH);
  digitalWrite(11,HIGH);
  digitalWrite(12,HIGH);
    delay(1000);

  digitalWrite(6,HIGH);
  digitalWrite(7,HIGH);
  digitalWrite(8,HIGH);
  digitalWrite(9,HIGH);
  digitalWrite(10,HIGH);
  digitalWrite(11,HIGH);
  digitalWrite(12,HIGH);
    delay(1000);


  digitalWrite(6,LOW);
  digitalWrite(7,LOW);
  digitalWrite(8,LOW);
  digitalWrite(9,LOW);
  digitalWrite(10,HIGH);
  digitalWrite(11,HIGH);
  digitalWrite(12,HIGH);
    delay(1000);  

  digitalWrite(6,HIGH);
  digitalWrite(7,HIGH);
  digitalWrite(8,HIGH);
  digitalWrite(9,HIGH);
  digitalWrite(10,HIGH);
  digitalWrite(11,LOW);
  digitalWrite(12,HIGH);
    delay(1000);  

  digitalWrite(6,HIGH);
  digitalWrite(7,HIGH);
  digitalWrite(8,LOW);
  digitalWrite(9,HIGH);
  digitalWrite(10,HIGH);
  digitalWrite(11,LOW);
  digitalWrite(12,HIGH);
    delay(1000);  

  digitalWrite(6,HIGH);
  digitalWrite(7,HIGH);
  digitalWrite(8,LOW);
  digitalWrite(9,LOW);
  digitalWrite(10,HIGH);
  digitalWrite(11,HIGH);
  digitalWrite(12,LOW);
    delay(1000);  

  digitalWrite(6,HIGH);
  digitalWrite(7,LOW);
  digitalWrite(8,LOW);
  digitalWrite(9,HIGH);
  digitalWrite(10,HIGH);
  digitalWrite(11,HIGH);
  digitalWrite(12,HIGH);
  delay(1000);

  digitalWrite(6,HIGH);
  digitalWrite(7,LOW);
  digitalWrite(8,HIGH);
  digitalWrite(9,HIGH);
  digitalWrite(10,LOW);
  digitalWrite(11,HIGH);
  digitalWrite(12,HIGH);
  delay(1000);

  digitalWrite(6,LOW);
  digitalWrite(7,LOW);
  digitalWrite(8,LOW);
  digitalWrite(9,LOW);
  digitalWrite(10,HIGH);
  digitalWrite(11,HIGH);
  digitalWrite(12,LOW);
    delay(1000);   
  
}

5.Video (kembali)
                                          

                                          




6.Prinsip Kerja (kembali)
Pada rangkaian diatas digunakan arduino uno dan seven segmen common katoda untuk menampilkan angka desimalnya. Pada rangkaian diatas outputan dari arduino yaitu pin 6,7,8,9,10,11,12 dihubungkan ke input dari seven segmen. Pada rangkaian ini untuk mengkombinasikan segmen-segmen pada seven segmen disetting logika High sehingga output yang tampil pada seven segmen akan menampilkan angka yang diinginkan.

7. Link Download (kembali)


                                                                     Download Rangkaian 
                                                                     Download HTML

Tidak ada komentar:

Posting Komentar