sokratisvas / door-alarm

Check if someone entered your store

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Door Contact Sensor

A simple sensor based on the ATmega328P that makes a ringing sound effect each time a door or window opens. The HC-SR04 sensor produces sound waves that reflect on the door surface. When a sound wave is produced, the microcontroller starts a timer and an interrupt occurs if the sensor receives the wave back.

Schematic

We will need :

  • ATmega328P
  • HC-SR04 ultrasonic distance sensor
  • Buzzer
  • 100 Ω Resistor

alt text

Upload

Check if the Arduino is plugged in the USB port specified in the Makefile.

$ make build
$ make burn

About

Check if someone entered your store

License:MIT License


Languages

Language:C 88.2%Language:Makefile 11.8%