TP 1 Mikro 2019



1. Kondisi [kembali]

Percobaan : 2 (7 Segmen),
Kondisi     : 20 (Tampilkan huruf L,O,O,P, secara bergantian)

2. Rangkaian Simulasi [Kembali]



3. Flowchart [kembali]


4. Listing Program [kembali]

int A = 4;
int B = 5;
int C = 6;
int D = 7;
int E = 8;
int F = 9;
int G = 10;
int dot = 11;

void setup() {
pinMode(A, OUTPUT);
pinMode(B, OUTPUT);
pinMode(C, OUTPUT);
pinMode(D, OUTPUT);
pinMode(E, OUTPUT);
pinMode(F, OUTPUT);
pinMode(G, OUTPUT);
pinMode(dot, OUTPUT); //dot
}

void loop() {
huruf_L();
delay(2000);
huruf_O();
delay(2000);
huruf_O1();
delay(2000);
huruf_P();
delay(2000);
}

void huruf_L() {
digitalWrite(A, LOW);
digitalWrite(B, LOW);
digitalWrite(C, LOW);
digitalWrite(D, HIGH);
digitalWrite(E, HIGH);
digitalWrite(F, HIGH);
digitalWrite(G, LOW);
digitalWrite(dot, LOW);
}
void huruf_O() {
digitalWrite(A, HIGH);
digitalWrite(B, HIGH);
digitalWrite(C, HIGH);
digitalWrite(D, HIGH);
digitalWrite(E, HIGH);
digitalWrite(F, HIGH);
digitalWrite(G, LOW);
digitalWrite(dot, LOW);
}
void huruf_O1(){
digitalWrite(A, HIGH);
digitalWrite(B, HIGH);
digitalWrite(C, HIGH);
digitalWrite(D, HIGH);
digitalWrite(E, HIGH);
digitalWrite(F, HIGH);
digitalWrite(G, LOW);
digitalWrite(dot, HIGH);
}

void huruf_P() {
digitalWrite(A, HIGH);
digitalWrite(B, HIGH);
digitalWrite(C, LOW);
digitalWrite(D, LOW);
digitalWrite(E, HIGH);
digitalWrite(F, HIGH);
digitalWrite(G, HIGH);
digitalWrite(dot, LOW);
}

5. Video [kembali]





6. Link Download [kembali]

A. Video Tugas Pendahuluan [DOWNLOAD] / Youtube : [LINK]
B. Rangkaian Simulasi           [DOWNLOAD]
C. Program Arduino               [DOWNLOAD]
D. HTML                                [DOWNLOAD]


Tidak ada komentar:

Posting Komentar

Entri yang Diunggulkan

Ngumpul Seru S3 Dispora Sumbar

Sedari 4 Desember 2022, pemuda pemudi terbaik sumatera barat dijaring oleh Dispora Sumbar untuk meningkatkan kapasitas diri dan kreativitasn...