Automatic Door Opener Report
Automatic Door Opener Report
Abstract
This project presents a smart automatic door opener system utilizing motion detection, a metal detector, and
CCTV logging to ensure secure, contactless entry. The system automates access by detecting human
presence, scanning for metallic objects, and recording visual logs through a connected camera.
Introduction
The increasing demand for automation in access control systems has led to the development of intelligent
door mechanisms. This system integrates motion detection, metal detection, and CCTV logging for a secure
Objectives
Components Required
- Arduino Uno
- USB or Pi Camera
- Power Supply
Working Principle
The system detects a person using a PIR sensor, checks for metal using a metal detector, and opens the
door using a servo if no metal is found. Simultaneously, a camera logs the entry.
Circuit Diagram
Motion-Based Automatic Door Opener with Metal Detector and CCTV Logging
Arduino Code
#include <Servo.h>
Servo doorServo;
int pirPin = 2;
int metalPin = 3;
int buzzerPin = 6;
int ledPin = 7;
void setup() {
pinMode(pirPin, INPUT);
pinMode(metalPin, INPUT);
pinMode(buzzerPin, OUTPUT);
pinMode(ledPin, OUTPUT);
doorServo.attach(9);
doorServo.write(0);
Motion-Based Automatic Door Opener with Metal Detector and CCTV Logging
Serial.begin(9600);
}
void loop() {
int motion = digitalRead(pirPin);
int metal = digitalRead(metalPin);
if (motion == HIGH) {
if (metal == LOW) {
doorServo.write(90);
delay(5000);
doorServo.write(0);
} else {
digitalWrite(buzzerPin, HIGH);
digitalWrite(ledPin, HIGH);
delay(2000);
digitalWrite(buzzerPin, LOW);
digitalWrite(ledPin, LOW);
}
}
}