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 ...

Indian Army security Gate | inspire Award Project | best science Project | Harish Projects 2023


 Click Here to watch full video


//Arduino Code//


#include <Servo.h>

#include <SPI.h>

#include <RFID.h>


RFID rfid(10, 9);


byte kart[5] = {128,207,122,175,154};

Servo myservo;

boolean card;


void setup()

{


  Serial.begin(9600);

  SPI.begin();

  rfid.init();

  myservo.attach(3);

  myservo.write(100);


}


void loop()

{


  if (rfid.isCard())

  {



    if (rfid.readCardSerial())

    {

      Serial.print("Found ID: ");

      Serial.print(rfid.serNum[0]);

      Serial.print(",");

      Serial.print(rfid.serNum[1]);

      Serial.print(",");

      Serial.print(rfid.serNum[2]);

      Serial.print(",");

      Serial.print(rfid.serNum[3]);

      Serial.print(",");

      Serial.println(rfid.serNum[4]);


    }

    for (int i = 1; i < 5; i++)

    {

      if (rfid.serNum[0] == kart[0] && rfid.serNum[1] == kart[1] && rfid.serNum[2] == kart[2] && rfid.serNum[3] == kart[3] && rfid.serNum[4] == kart[4])

      {

        card = true;

      }

      else {

        card = false;

      }

    }

    if (card == true)

    {

      Serial.println("Correct Card");

      myservo.write(10);

      delay(5000);

      myservo.write(100);

    }

    else

    {

      Serial.println("Wrong Card");


    }

    rfid.halt();

  }

}


//Project Diagram//


If  you want to order project kit then contact me on instagram

Click here - https://www.instagram.com/harishchoudhary70/

Comments

Sunil Bajaj said…
How to communicate with you, we need to buy few projects for our science exhibition in our school
Unknown said…
I tried doing this smart bridge mini project I used 2servo motor instead of 4 servo motor but i didn't get proper output. Whether there is any need to change the program in case if I am using 2 servo motor.
Tahmid Hossain said…
help me on programming ,
please write the full program code i'm stuck in RFID
This code is work less it is not working or i tried to dm πŸ˜” but nothing reported
So please don't do this project 😭
And Harry's sir I am not trying to stop your this code sir in the code
Not found the file showing so please πŸ™ sir can you DM me and help me because i have project for school in 3 day I trying this code form 15 weeks please sir πŸ™

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