Dual Axis Mini CCTV Camera using ESP32 Cam | IOT Based Science Project / Harish Projects

Image
  Purchase Course Video👇 https://harishprojects.graphy.com/ Watch full Detailed Video👇 Project Code👇 #include "esp_camera.h" #include <Arduino.h> #include <WiFi.h> #include <AsyncTCP.h> #include <ESPAsyncWebServer.h> #include <iostream> #include <sstream> #include <ESP32Servo.h> #define PAN_PIN 14 #define TILT_PIN 15 Servo panServo; Servo tiltServo; struct MOTOR_PINS {   int pinEn;     int pinIN1;   int pinIN2;     } ; std::vector<MOTOR_PINS> motorPins = {   { 2 , 12 , 13 } , //RIGHT_MOTOR Pins (EnA, IN1, IN2)   { 2 , 1 , 3 } ,  //LEFT_MOTOR  Pins (EnB, IN3, IN4) } ; #define LIGHT_PIN 4 #define UP 1 #define DOWN 2 #define LEFT 3 #define RIGHT 4 #define STOP 0 #define RIGHT_MOTOR 0 #define LEFT_MOTOR 1 #define FORWARD 1 #define BACKWARD - 1 const int PWMFreq = 1000 ; /* 1 KHz */ const int PWMResolution = 8 ; const int PWMSpeedChannel = 2 ;...

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

How to make Phone control RC car using Arduino #phoneControlCar

How to make Wifi Talking robot with arduino codes and Diagram best science project

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