Lampiran 1. Kode Program Rancangan Otomatisasi Irigasi Kendi #include <SdFat.h> //LIB UTK RTC #include <Wire.h> #include const int chipSelect = 10;//pin chipset untuk sd card stackable SdFat sd; SdFile myFile; //inisialisasi variabel int no=1; int pinAktuator=8; int pinAnalog0 =0;//pin analog 0 int pinAnalog1 =1;//pin analog 0 int setBawah=304; int setAtas=258; boolean statIsi=false; int hours=0; int minutes=0; int secs=0; int dates=0; int months=0; int years=0; int rtc[7]; boolean statSD=false;// char namafile[13];
Lampiran 3. Harga serta alat-alat yang digunakan dalam rancangan otomatisasi irigasi kendi No. 1. 2. 3. 4. 5. 6. 7. 8. 9.
Alat
Jumlah 1 1 1 1 1 1 1 1 1
Arduino Uno Stackable SD Card Shield Real Time Clock Proto Screw Shield Sensor Water Level Sensor Soil Moisture Solenoid Valve ¾” Relay Doubler 12v to 24v Total