Anda di halaman 1dari 17

PELATIHAN OTOMASI

#3:
DASAR INPUT/OUTPUT ARDUINO

Oleh: Mat Rohhim Nur Cahyo (18501241050)


KKN UNY 2021
Dusun Mloyo, RT: 04, RW: 02
PELATIHAN #3
DASAR I/O ARDUINO
■ 1. Kontrol Output Arduino
■ 2. Kontrol Input Arduino
A. KONTROL OUTPUT ARDUINO

■ 1. Pengendalian Output Arduino Pada LED


(Membuat Traffic Light dengan 3 LED)
- Prinsip Kerja
- Komponen-komponen yang diperlukan
- Schematic dan Wiring
- Pemrograman
PRINSIP KERJA
1. LED hijau nyala 4 detik yang lain mati
2. LED kuning mulai nyala, sebelum 1 detik hijau mati
3. LED hijau mati, led kuning nyala 1.5 detik
4. LED merah nyala 5 detik, yang lain mati
KOMPONEN-KOMPONEN
1. Arduino UNO
2. Project Board/ BreadBoard
3. Arduino IDE 1.6.8
4. LED (3 buah)
5. Power Supply DC 5V
6. Resistor 1K ohm
7. Kabel Jumper male to male/male to female (secukupnya)
Arduino IDE

Arduino UNO
BreadBoard

Resistor Kabel Jumper


LED
Schematic Rangkaian
WIRING
CODING ARDUINO IDE
A. KONTROL INPUT ARDUINO

■ 1. Pengendalian LED dengan 2 Switch


- Prinsip Kerja
- Komponen-komponen yang diperlukan
- Schematic dan Wiring
- Pemrograman
PRINSIP KERJA
1. S1 ditekan, LED nyala
2. S2 ditekan, LED mati
KOMPONEN-KOMPONEN
1. Arduino UNO
2. Project Board/ BreadBoard
3. Arduino IDE 1.6.8
4. LED (1 buah)
5. PushButton (2 buah)
6. Power Supply DC 5V
7. Resistor 1K ohm
8. Kabel Jumper male to male/male to female (secukupnya)
Arduino IDE

Arduino UNO
BreadBoard

PushButton

Resistor Kabel Jumper


LED
Schematic
WIRING
CODING KONTROL ON/OFF LED
TERIMA
KASIH

Anda mungkin juga menyukai