Laporan Akhir 2

 




1. Prosedur
 [Kembali]
percobaan 2

2. Hardware dan Diagram Blok [Kembali]
    a. lcd


    b. power supply
    c. arduino 

    d. keypad



3. Rangkaian Simulasi dan Prinsip Kerja [Kembali]
    


4. Flowchart dan Listing Program [Kembali]
    flowchart:


    listing program:
    // Include the Keypad library
#include <Keypad.h>
#include <LiquidCrystal.h>
// Constants for row and column sizes
const byte ROWS = 4;
const byte COLS = 4;
LiquidCrystal lcd(A0, A1, A2, A3, A4, A5);
// Array to represent keys on keypad
char hexaKeys[ROWS][COLS] = {
 {'1', '2', '3', 'A'},
 {'4', '5', '6', 'B'},
 {'7', '8', '9', 'C'},
 {'*', '0', '#', 'D'}
};
// Connections to Arduino
byte rowPins[ROWS] = {9, 8, 7, 6};
byte colPins[COLS] = {5, 4, 3, 2};
// Create keypad object
Keypad customKeypad = Keypad(makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS);
void setup() {
 // Setup serial monitor
 Serial.begin(9600);
 lcd.begin(16, 2);
}
void loop() {
 // Get key value if pressed
 char customKey = customKeypad.getKey();
 if (customKey) {
 // Print key value to serial monitor
 lcd.setCursor(0, 0);
 lcd.print("Tombol :");
 lcd.print(customKey);
 }
}


5. Video Demo [Kembali]
    

6. Kondisi [Kembali]


7. Download File [Kembali]
rangkaian klik di sini
code arduino uno klik di sini
 












Tidak ada komentar:

Posting Komentar

Entri yang Diunggulkan

  BAHAN PRESENTASI  MATA KULIAH SISTEM DIGITAL 2023     Oleh : Mu'minatul Afifah Nusatama 2110951003   Dosen Pengampu: Dr. Darwison, M.T...