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.

  • 6,441 views
  • 1 comment
  • 18 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

  • 35,762 views
  • 20 comments
  • 97 respects

Buzzer Alarm System With Help Of Arduino

by Team ONYX

  • 37,908 views
  • 5 comments
  • 21 respects

WaterPi: Houseplant Remote Watering and Monitoring System

Project tutorial by Demirhan Aydin

  • 29,482 views
  • 14 comments
  • 128 respects

Distance Alarm System

Project tutorial by Darwin Dela Cruz

  • 2,974 views
  • 3 comments
  • 14 respects

Energy Alerter: a Power Monitoring System

Project tutorial by Giuseppe Torino

  • 1,992 views
  • 1 comment
  • 5 respects
Add projectSign up / Login