Door/Window alarm circuit

Door or Window alarm circuit have been used widely in many homes to detect intrusion. A simple search in internet might fetch you lot of alarms for you to buy. But making your own alarm will be something special and that’s the purpose of this article. For this article i have reverse engineered a window alarm gadget to obtain the schematic design.

 Door - Window alarm circuit

COMPONENTS REQUIRED:

  • Piezoelectric element
  • Transistors
  • Resistors
  • Capacitors
  • Microcontroller.

PICKING AN MICROCONTROLLER:

This circuit uses an Microcontroller to detect the input voltage and produce square wave (Explained below). Any MCU with ADC inbuilt will suit for this purpose. Using big MCU’s will be an overkill so i have chosen Atiny85 for this circuit. And i have used Arduino IDE to program it. Here is a step by step instruction to program Atiny85 using Arduino and its IDE.

WINDOW ALARM CIRCUIT EXPLANATION:

This circuit uses a Piezoelectric element which should be sticked to a window or door. When someone taps on the window or tries to open it, the vibrations will cause the piezoelectric element in the circuit to vibrate and thus in turn will produce a voltage. This voltage is referenced to ground, so it pulls the base of the PNP transistor Q1 to ground and cause it to open which triggers the Microcontroller (Omitted in the design for simplicity).
Now once voltage rises in the pin 7 of the Microcontroller it produces a square wave in its pin 5. This square wave is fed into base of the transistor Q2 which turns the transistor ON and OFF. This triggers the coil T1 to develop an alternating voltage across its terminals. This alternating voltage will feed the piezo element which in turn produces the alarm sound.
Do note that Piezo elements only work with AC ,so higher the turns in the coil better its functionality will be. The alarm can only be turned off by cutting the power supply to the whole circuit. Always turn the circuit ON once you set the circuit to a window or door.
Read More: Door/Window alarm circuit


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top