0% found this document useful (0 votes)
23 views3 pages

Smart Door Automation Project

An electronics project guide for smart door automation
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views3 pages

Smart Door Automation Project

An electronics project guide for smart door automation
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Smart Door Automation System Using Proximity Sensor

This project involves designing a smart door system that automatically opens or closes

based on the presence of a person detected by a proximity sensor. This system is ideal

for home automation, office spaces, or public places, reducing manual effort and

improving convenience.

Key Features:
- Automatic Door Operation: The door opens when someone approaches and closes after a set

duration.

- Energy Efficiency: The system ensures the door remains open only when necessary.

- Safety Mechanism: Incorporates a manual override and obstacle detection.

Required Components:
- Proximity Sensor: Ultrasonic or Infrared sensor for motion detection.

- Microcontroller: Arduino Uno or ESP32 to control the system.

- Servo Motor: For door movement.

- Power Supply: Battery or adapter for system power.

- Miscellaneous: Wires, resistors, connectors, and door prototype material.

Implementation Steps:
- Sensor Setup: Install the proximity sensor to detect approaching individuals within a range of 1-2

meters.

- Microcontroller Programming: Write and upload code to control the servo motor based on sensor

inputs.

- Servo Motor Integration: Connect the motor to the door model for smooth opening and closing

actions.

- Test and Debug: Test the system for accurate motion detection and efficient door movement.
- Enhancements: Add features like a manual switch for override or an LCD display to show door

status.

Applications:
- Smart homes and offices.

- Hospitals and healthcare facilities.

- Retail and public spaces for touchless door operation.

Sample Code:

#include <Servo.h>

Servo doorServo; // Servo motor

const int trigPin = 9;

const int echoPin = 10;

const int thresholdDistance = 50; // Distance in cm

void setup() {

pinMode(trigPin, OUTPUT);

pinMode(echoPin, INPUT);

doorServo.attach(3);

doorServo.write(0); // Initial position (door closed)

Serial.begin(9600);

void loop() {

long duration, distance;

digitalWrite(trigPin, LOW);
delayMicroseconds(2);

digitalWrite(trigPin, HIGH);

delayMicroseconds(10);

digitalWrite(trigPin, LOW);

duration = pulseIn(echoPin, HIGH);

distance = (duration * 0.034) / 2; // Convert to cm

if (distance < thresholdDistance && distance > 0) {

doorServo.write(90); // Open door

delay(5000); // Keep open for 5 seconds

} else {

doorServo.write(0); // Close door

You might also like