OBJECTIVE
• To design the project so that we can prevent intruders from coming into the building.
• By using RFID, that have the details of the bag owner to prevent the bag lost or stolen.
STEP 1 : LIST ALL THE EQUIPMENT.
- Bread board
- Resistor 1k, 10 k
- LED
- Diode
- Transistor
- Jumper/wire
- Dc motor
- IR sensor
- WIFI module
- Rfid reader & card
- Arduino uno
STEP 2 : MAKING THE CIRCUIT
#include <SPI.h>
#include <MFRC522.h>
#define SS_PIN 10
#define RST_PIN 9
#include <SoftwareSerial.h>
boolean DEBUG=true;
int motorPin = 5;
delay(100);
if(espSerial.find(">")){
espSerial.print(getStr);
if (DEBUG) Serial.print(getStr);
}
else{
espSerial.println("AT+CIPCLOSE");
// alert user
if (DEBUG) Serial.println("AT+CIPCLOSE");
return false;
}
return true;
}
void setup() {
DEBUG=true; // enable debug serial
pinMode(motorPin, OUTPUT);
pinMode(A0,INPUT);
pinMode(4, OUTPUT);
Serial.begin(9600);
SPI.begin(); // Initiate SPI bus
mfrc522.PCD_Init(); // Initiate MFRC522
//Serial.println("Approximate your card to the reader...");
//Serial.println();
espSerial.begin(9600);
void loop()
{
Serial.println(analogRead(A0));
delay(1000);
if(analogRead(A0)<50)
{
digitalWrite(motorPin,HIGH);
delay(5000);
digitalWrite(motorPin,LOW);
}
{
thingSpeakWrite(2,2);
digitalWrite(4, HIGH);
delay(1000);
digitalWrite(4, LOW);
delay(1000);
//Serial.println("Authorized access");
//Serial.println();
//delay(3000);
}
else {
//Serial.println(" Access denied");
//delay(3000);
}
}
STEP 4 : compile all in one breadboard and arduino.
STEP 6 : WEB SERVER AND CONNECT TO PHONE
Then we use virtuino application from android as our apps at the phone
We link from data from circuit to webserver and go to virtuino apps android.
STEP 7 : PROTOTYPE.