Anda di halaman 1dari 1

Enterprise based Vocational Education Enterprise based Vocational Education

LOGBOOK EVE
DATE : Tuesday, 17 May, 2022 Serial.print("Nilai Sensor = ");
AREA : Specialization Serial.print(nilaiSensor);
Serial.print("\t Output = ");
WHAT :
Serial.print(hasil);
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . tinggiAir = hasil*8/255;
Testing prototype sensor level using arduino
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Serial.print("\t Tinggi Air = ");
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Serial.println(tinggiAir);
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
delay(1000);
}
HOW :

1. Hubungkan pin VCC modul water level sensor dengan VCC 5V arduino.
2. Hubungkan pin GND modul water level sensor dengan GND arduino
3. Hubungkan pin A0 modul water level sensor dengan analog A0 arduino
4. Setelah selesai membuat rangkaian, langkah selanjutnya yaitu membuat sketch program
pada software arduino IDE
5. Compile sketch yang telah dibuat
6. Hubungkan arduino UNO dengan komputer menggunakan USB dan upload arduino UNO
yang digunakan
7. Buka serial monitor pada arduino IDE sehingga nilai analog A0 dan nilai nilai hasil konversi
yang terbaca dapat terlihat

Program Comment by Supervisor


……………………………………………………………………………………………………………………
const int pinSensor = A5;
…………………………………………………………………………………………………………… ………
……………………………………………………………………………………………………………………
int nilaiSensor = 0;
int hasil = 0; Satisfaction Score by Supervisor
1 2 3 4 5
float tinggiAir;
void setup() { Unable to Work Needs According to Exceed Target Excellent
Improvement Standard
Serial.begin(9600);
} Student Supervisor EVE Team
void loop() { sign sign sign

nilaiSensor = analogRead(pinSensor);
Satria Mubarak Rhandi Mulia Djoko Nursanto
hasil = map(nilaiSensor, 0, 1023, 0, 255);

LOGBOOK EVE 24 Jun 2018 / rz LOGBOOK EVE 24 Jun 2018 / rz

Anda mungkin juga menyukai