Wet & Dry Waste Smart Dustbin for House | Best science Project | Harish Projects

Image
 Watch Full Detailed video 👇🏻 Diagram in Video👆 //Arduino Code// //YouTube: Harish Projects //Order Electronic Parts & Project kit:  HarishProjects.com // #include <Servo.h> Servo servo1; const int trigPin = 12; const int echoPin = 11; long duration; int distance=0; int potPin = A0; //input pin int soil=0; int fsoil; void setup()  {   Serial.begin(9600); //Serial.print("Humidity"); pinMode(trigPin, OUTPUT);  pinMode(echoPin, INPUT);  servo1.attach(8); } void loop()  { //YouTube: Harish Projects //Order Electronic Parts & Project kit:  HarishProjects.com //      int soil=0;   for(int i=0;i<2;i++)   { digitalWrite(trigPin, LOW); delayMicroseconds(7); digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); delayMicroseconds(10); duration = pulseIn(echoPin, HIGH); distance= duration*0.034/2+distance; delay(10);   }   distance=distance/2;   Serial.println(distance); if ...

How to make Homemade Fridge घर पर बनाए मटका से फ्रिज Desi Jugad



                            ARDUINO CODE



const int trigPin = 3;

    const int echoPin = 2;

    #define DCwater_pump 8

    // defines pins

    long duration;

    int distance;

    void setup() 

{

    pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output

    pinMode(echoPin, INPUT); // Sets the echoPin as an Input

    pinMode(DCwater_pump, OUTPUT);

    Serial.begin(9600); // For serial communication

}

    void loop() 

{

    digitalWrite(trigPin, LOW);

    delayMicroseconds(2);

    digitalWrite(trigPin, HIGH);

    delayMicroseconds(10);

    digitalWrite(trigPin, LOW);

    duration = pulseIn(echoPin, HIGH);

    //Distance calculation

    distance= duration*0.034/2;

    // Printinng the distance on the Serial Monitor

    Serial.print("Distance: ");

    Serial.println(distance);

    

 if (distance < 20)

{

 digitalWrite(DCwater_pump,LOW);

 Serial.println("DC Pump is ON Now!!");

 delay(50);

}

else

{

 digitalWrite(DCwater_pump,HIGH);

 Serial.println("DC Pump is OFF Now!!");

 delay(500);


}

}

Comments

Unknown said…
Please, send me the components use for this model
Unknown said…
Please send me details of the project
Unknown said…
Bro yar. Apne o diagram Galt de he. Work nahi kr raha. Plz 😭😭😭😭. Reply on my gmail and my telegram - @ACMODZ MY INSTA - ACMODZ_X. 😭😭😭

Popular posts from this blog

Smart Bridge - Automatic Hight increase when flooding | Best science Project

How to make Phone control RC car using Arduino #phoneControlCar

Inspire Award Project | Train accident Prevention project | Best science Project / Harish Projects