
I have made a contactless anti-sleep alarm using a mercury tilt switch and a time delay circuit with a BC547 transistor, 470µF capacitor, 1kΩ and 40kΩ resistors, a buzzer, and an LED with a 100Ω resistor.
🔹 How It Works:
When the head tilts forward due to drowsiness, the mercury switch activates the circuit, turning on the buzzer and LED for a few seconds. This provides an instant alert to wake up the user.
🔹 Why This is Better than IR-Based Alarms:
Many anti-sleep alarms use IR sensors placed on sunglasses to detect eye movement and heart rate. However, these have major drawbacks:
✅ Need to wear special sunglasses, which can be uncomfortable.
✅ Obstructs vision, making it unsafe for driving or working.
✅ More complex and expensive than a simple tilt-based system.
This low-cost, easy-to-build circuit is ideal for drivers, night workers, and students who need a reliable wake-up alert.