Magnetic Door Alarm Circuit using Hall Sensor

Published  December 14, 2017   6
S Saddam
Author
Magnetic Door Alarm Circuit using Hall sensor

Door alarm is a very common and useful device for security purpose. They are used to detect whether the Door is open or closed. Often we have seen some door alarm in the refrigerator that produced a different sound when they activate.  Door Alarm Projects are very popular among the Electronics students and hobbyists. We have also built many alarms based on various technologies:

This time we have decided to make a Door Alarm by using Hall Effect Sensor and 555 timer IC.

 

Components Required:

  1. 555 Timer IC
  2. Buzzer
  3. Bread Board  
  4. Resistor 1K     -4
  5. Resistor 10K
  6. 50k POT
  7. LED
  8. 10uF Capacitor
  9. Jumper wire
  10. 9V battery or supply  
  11. LM7805 Voltage Regulator    
  12. Transistor BC547
  13. 3144 Hall Effect Magnet Sensor

 

Hall Effect Sensor:

A Hall sensor is a device which can detect the presence of a magnet based on its polarity. It is a transducer which generates a signal according to magnetic field present near it. Here we have used 3144 Hall Effect Sensor which has a range of about 2cm.

As the name suggests the Hall Effect sensor works with the principle of “Hall effect”. According to this law “when a conductor or semiconductor with current flowing in one direction was introduced perpendicular to a magnetic field a voltage could be measured at right angles to the current path”. Using this technique, the hall sensor will be able to detect the presence of magnet around it. We have previously Interfaced Hall sensor with Arduino and made few projects using Hall sensor.

Bar magnet 

 

Circuit Diagram and Explanation:

Magnetic Door Alarm Circuit using Hall sensor circuit setup

In this Magnetic Door Alarm circuit, we have used a 555 timer IC in astable mode to generate a tone as an alarm; frequency of tone can be adjustable by using an attached RV1 potentiometer. Here we have connected a 1k (R1) resistor between Vcc and pin 7th of 555 Timer (U2) and a 1k (R4) resistor &  50k Pot (RV1) between pin 7 and 6. Pin 2 shorted with pin 6 and a 10uf C1 capacitor is connected to pin 2 with respect to ground. Pin 1 is connected to ground and pin 4 directly connected to VCC and pin 8 as well by using a transistor. A Hall Effect Sensor or magnet sensor is used to detect if the door is open and close. It's output connected to the base of the transistor BC547 which is responsible to provide a path to 555 timer IC. A buzzer and an LED are connected on Pin 3 of 555 for indication of alarm. Finally, we have connected a 9v Battery to power the circuit.

Magnetic Door Alarm Circuit using Hall sensor hardware Circuit Setup

 

Working Explanation:

Working on this Magnetic Door Alarm is tricky. Here we have made a 555 astable multi-vibrator for generating alarm signal as we already mentioned. But we are controlling this astable multi-vibrator U2 by using Hall Sensor U3 through an NPN transistor Q1 BC547.

When we put magnate near Hall Sensor then hall sensor senses the magnetic field and generates a Low signal as an output. This output goes to the base of the transistor. Due to Low signal, transistor remains turned off and power is not supplied to 555 timer IC and buzzer remains silent with LED turned off.

Magnetic Door Alarm Circuit using Hall sensor Working

Now when we take magnate far from the hall sensor then hall sensor generates a High signal which goes to the base of the transistor. Due to high signal transistor gets turned on and make a path for astable multi-vibrator supply. And when astable multi-vibrator has supply then it starts working and generates an alarm tone and flashing LED as well. The user can change the frequency of tone by moving RV1 potentiometer.

So now we can attach this circuit in Door frame and a magnet in the Door, now when the gate is closed magnet (door) and hall sensor (Door Frame) will remain near and the alarm will remain off. Whenever someone opens the door, the magnet will get away from the Hall sensor and it will make the hall sensor High and trigger the LED and alarm connected to 555 IC.

Video

Have any question realated to this Article?

Ask Our Community Members

Comments