Laporan Akhir M3 P4K1




1. Prosedur [Kembali]

1. Rangkai semua komponen sesuai kondisi yang dipilih
2. Buat program di aplikasi arduino IDE
3. Setelah selesai masukkan program ke arduino (Verify and Upload)
4. Jalankan program pada simulasi dan cobakan sesuai dengan modul dan kondisi
5. Selesai
 
2. Hardware dan Diagram Blok [Kembali]
2.1 Hardware


2.1.1 Alat
1. BreadBoard

2.1.2 Bahan
1. Arduino
2. LED
3. Keypad
4. Jumper

B. Diagram Blok




 

3. Rangkaian Simulasi dan Prinsip Kerja [Kembali]
3.1 Gambar Rangkaian




3.2 Prinsip Kerja
    Pada rangkaian tersebut, dipswitch berperan sebagai input yang dihubungkan ke kaki analog arduino. outputnya yaitu 7-segment common cathode. 
Rangkaian dapat disimulasikan setelah kodingan arduino dari arduino IDE dimasukkan ke arduino pada proteus. Dimana kodingan arduino diatur untuk key 1 - 9 menampilkan karaktaer nomor 1 - 9 secara berurut di kolom pertama LCD (Komunikasi UART)
 
4. FlowChart [Kembali]
4.1 Listing Program 
// MASTER #include const byte ROWS = 4; const byte COLS = 3; // Array to represent keys on keypad char hexaKeys[ROWS][COLS] = { {'1', '2', '3'}, {'4', '5', '6'}, {'7', '8', '9'}, {'*', '0', '#'} }; byte rowPins[ROWS] = {7, 6, 5, 4}; byte colPins[COLS] = {8, 9 , 10}; // Create keypad object Keypad customKeypad = Keypad(makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS); void setup() { Serial.begin(9600); } void loop() { char customKey = customKeypad.getKey(); if (customKey) { Serial.write(customKey); } delay(20); }

//SLAVE #include LiquidCrystal lcd(A0, A1, A2, A3, A4, A5); char message; void setup() { Serial.begin(9600); lcd.begin(16, 2); } void loop() { lcd.setCursor(0, 0); lcd.print("Tombol :"); if (Serial.available())
{ message = Serial.read(); if (message) { lcd.print(message); } } }

4.2 Flowchart








5. Video Demo [Kembali]




6. Kondisi [Kembali]
Percobaan 4 sesuai dengan modul 3

7. Link Download [Kembali]
Download HMTL Klik disini
Download Video Demo Klik disini
Download Datasheet ARDUINO UNO klik disini
Download Datasheet lcd klik disini
Download Datasheet keypad klik disini

No comments:

Post a Comment