This simple door opening alarm using hall sensor produces sound when someone opens the door. The circuit can be installed at a workshop, office or home for security purposes. The 3-terminal hall sensor is easily available in the market.
Door opening alarm using hall sensor circuit
The circuit diagram of the door opening alarm is shown in Fig. 1. It is built around hall sensor MH183 (IC1), pnp transistor BC557 (T1), npn transistor BC547 (T2) and a few other components.
Hall sensor MH183 is a magnet-operated solid-state sensor. When the magnet is brought near the sensor, its output goes low. This low output is amplified by pnp transistor T1. npn transistor T2 inverts the operation. When T1 conducts, T2 does not conduct, and vice-versa.
The magnet should be fitted on moving part of the door and the sensor at the door frame. When the door is closed, the magnet comes close to the sensor and the alarm is off. But when door is opened, the alarm makes a sound.
The buzzer can be replaced with a 5V relay to control a mains alarm.
When the door is closed, neither the buzzer sounds nor LED1 glows. But when the door is opened, the buzzer sounds and LED1 glows, too.
Construction and testing
An actual-size, single-side PCB for the door-opening alarm circuit is shown in Fig. 2 and its component layout in Fig. 3. Enclose the PCB in a suitable small box and install it at a suitable place.
Download PCB and component layout PDFs: click here
Fit the magnet on a moving part of the door and sensor MH183 on the door-frame opposite to it.
Use 5V regulated power supply for the circuit.
Feel interested? Check out other electronics projects.