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 (distance <20 && distance>1) {   delay(1000); for(int i

Automatic watering - for Agriculture best science project for farmers / Harish Projects /Arduino Project


                                        ...........................full Video Link is here............................

                                                            https://youtu.be/G_p2B2-Ycv4


                                          .............................Project Diagram............................



                          ..........................................Arduino Code.............................................


#include <Servo.h> // servo library Servo myservo; int m=0; int n=0; int pos = 0; void setup() { // put your setup code here, to run once: pinMode(A0, INPUT_PULLUP); // Soil Moisture Sensor 1 PIN A0 pinMode(A1, INPUT_PULLUP); // Soil Moisture Sensor 1 PIN A1 pinMode(8,OUTPUT); // Relay Module PIN D8 Serial.begin(9600); // Sensor Buart Rate myservo.attach(9); // Servo PIN D9 digitalWrite(8, HIGH); // Relay Normally Hight for OFF condition } void loop() { // put your main code here, to run repeatedly: int m= analogRead(A0); // Soil Moisture Sensor 1 PIN A0 int n= analogRead(A1); // Soil Moisture Sensor 1 PIN A1 Serial.println(m); delay(10); Serial.println(n); delay(200); if (m>=980) { myservo.write(90); // tell servo to go to position in variable 'pos' digitalWrite(8, LOW); // Relay ON delay(1000); } else if(m<=970) { digitalWrite(8, HIGH); // Relay ON } if (n>=980) { myservo.write(0); // tell servo to go to position in variable 'pos' digitalWrite(8, LOW); // Relay ON delay(1000); } else if(n<=970) { digitalWrite(8, HIGH); // Relay OFF } else { digitalWrite(8, HIGH); // Relay OFF } }



Comments

Unknown said…
Can you please say the whole kit cost

Popular posts from this blog

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

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

How to make Phone control RC car using Arduino #phoneControlCar