Project tutorial
Entry Level Door Monitoring Alarm System

Entry Level Door Monitoring Alarm System

A decent and very cheap office entrance door alarm system to keep track of every person's entry or departure.

  • 8,990 views
  • 3 comments
  • 20 respects

Components and supplies

About this project

Alright! So the idea struck out of blue one day when I was shocked to see someone sitting outside my office enjoying reading a newspaper!

I had no idea who this person was, when did he come and since how long was he enjoying his unsolicited stay just outside my cabin? You must be thinking what a fool I am but you gotta trust me on this, my office is one of the creepiest that one can get anywhere. Seriously! (I hope my boss never reads this;-))

Anyhow, I decided to do something without spending anything north of INR 500/- (Approx $6-7). I had an Arduino Uno clone ready at my disposal. So, all that I needed was an ultrasound sensor, and a Buzzer. Rest of the steps, circuit assemblies, software code are ensued in this tutorial. I hope this would excite few electronics newbies out there.       


Code

Ultrasonic sensor with arduino Arduino
int tiger=2;
int echo=3;
int a=12;
int Duration,Distance;
void setup()
{
  pinMode(tiger,OUTPUT);
  pinMode(echo,INPUT);
  Serial.begin(9600);
  pinMode(a,OUTPUT);
}
void loop()
{
  digitalWrite(tiger,HIGH);
  delayMicroseconds(1000);
  digitalWrite(tiger,LOW);
  Duration=pulseIn(echo,HIGH);
  Distance=(Duration/2)/29.1;
  Serial.print("cm=");
  Serial.print(Distance);
  delay(500);
  if (Distance<50)
  {
   digitalWrite(a,HIGH);
   delay(1000);
    }
 else 
 digitalWrite(a,LOW);
  delay(200);
  
}

Schematics

Frtzing Schematics
Door alarm

Comments

Similar projects you might like

RFID Based Automatic Door System

Project showcase by Robodia Technology

  • 55,508 views
  • 26 comments
  • 137 respects

Buzzer Alarm System With Help Of Arduino

by Team ONYX

  • 62,120 views
  • 10 comments
  • 38 respects

Ultrasonic Security System

Project tutorial by Ivan

  • 42,422 views
  • 33 comments
  • 98 respects

Android App-Based Home Automation System Using IOT

Project tutorial by Team Autoshack

  • 49,300 views
  • 22 comments
  • 141 respects

WaterPi: Houseplant Remote Watering and Monitoring System

Project tutorial by Demirhan Aydin

  • 38,721 views
  • 16 comments
  • 154 respects

GSM Home Alarm V1.0

Project tutorial by Hugo Gomes

  • 36,817 views
  • 13 comments
  • 50 respects
Add projectSign up / Login