Things used in this project

Hardware components:
Ard nano
Arduino Nano R3
×1
Kabel Jumper
×14
Breadboard
×1
motor dc
×2
relay
×2
9v battery
×1
Sensor Air
×1
Software apps and online services:
Ide web
Arduino IDE

Schematics

Prototype papan penjemuran ikan asin
Orkom bb vaaquz3gob q8h1mljxlj

Code

Prototype papan penjemuran ikan asinArduino
int motor1 = 7; 
int motor2 = 8; 
int kondisi = 1;
float level_air;
void setup(){

pinMode(motor1, OUTPUT);
pinMode(motor2, OUTPUT);
 digitalWrite(motor1 , HIGH);
 digitalWrite(motor2 , HIGH);
}
 
void loop(){

level_air = analogRead(A0);

if (level_air >= 200 and kondisi == 1){
  digitalWrite(motor2 , LOW);
  delay(300);
  kondisi = 2;
}
if (level_air < 20 and kondisi == 2 ){ // out
  digitalWrite(motor1 , LOW);
  delay(300);
  kondisi = 1;
}
 digitalWrite(motor1 , HIGH);
 digitalWrite(motor2 , HIGH);
}

Credits

Faf1797c1f2752266f95b03baa5afdd0
annisa solehatul jannah
4 projects • 0 followers
__hypernova_render_token[0]__Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Add projectSign up / Login