Home Engineering Projects For You 1001+ Electronics Projects For You

Anti-Sleep Alarm

This circuit keeps you vigilant by sounding intermittent beeps and emitting flashing light so as to remind you that you are not on the bed but driving a vehicle. -- D. Mohan Kumar

Most of the accidents on highways during night occur due to drivers’ poor vision caused by the continuous exposure of their eyes to the bright light from the headlamps of approaching vehicles. The poor vision is due to exhaustion of the visual pigment in the eyes, which induces sleep to restore the pigment. This anti-sleep alarm keeps you awake.

This circuit keeps you vigilant by sounding intermittent beeps and emitting flashing light so as to remind you that you are not on the bed but driving a vehicle. It works only at night due to the control of a light-dependent resistor (LDR) based switch.

Anti-sleep alarm circuit

The LDR along with two BC548 transistors (T1 and T2) forms the light switch to inhibit the oscillation of IC1 during daytime. As the LDR is exposed to light during daytime, T1 conducts to keep T2 out of conduction. This makes the reset pin (pin 12) of IC1 high to prevent it from oscillation. So the remaining part of the circuit remains in the standby mode.

Anti-sleep alarm circuit

At night, T1 remains non-conducting as the LDR is in dark. Transistor T2 conducts to pull the reset pin (pin 12) of IC1 to ground. This starts the oscillations of IC1, which is indicated by the flashing of LED1. The internal oscillator of binary counter IC CD4060 oscillates at a frequency based on the values of R5, R6 and C1. Its Q13 output becomes high and low alternately for 15 minutes each. Using potmeter VR1, you can adjust the sensitivity of the LDR.

Circuit operation

When the Q13 output of IC1 becomes high, the reset pin (pin 4) of NE555 astable (IC2) becomes high and it starts oscillating. For the selected values of R10, R11, VR2 and C2, there will be one pulse every 50 seconds. Using VR2, you can slightly adjust the pulse rate. The pulsed output from IC2 is fed to the clock input of IC CD4017 (IC3).

IC CD4017 is a decade counter with ten outputs, but only one of its output is high at a time and all the other outputs remain low. The output from IC2 serves as clock for IC3. As a result, the Q1 output of IC3 becomes high at the first positive edge from IC2 after 50 seconds. After 6 minutes, the Q6 output goes high and LED2 glows for one minute and the warning buzzer sounds.

If the circuit is not reset using push-to-switch S1 after hearing the warning beep from PZ1, the counting of IC3 continues and at the end of the 10th minute, the Q9 output becomes high to activate IC CD4093 (IC4).

Circuit construction

IC4 is wired as a simple oscillator using its two NAND gates 3 and 4. Gate 1 of IC4 is controlled by the status of its input pins 1 and 2. When these pins receive a high output from IC3, the output of gate 1 goes low and the output of gate 2 becomes high. This starts the oscillator built around gates 3 and 4. The frequency of oscillation depends on the values of R13 and C3.

As long as Q9 output of IC3 remains high (i.e., for 15 minutes), IC4 oscillates and the piezobuzzer beeps and the white LEDs flash with a frequency determined by the values of R13 and C3. Thereafter IC4 stops oscillating and the piezobuzzer and the LEDs turn off for another 15 minutes. The cycle repeats every 15 minutes. This is sufficient to alert the napping driver. IC5 and C4 provide regulated 12V DC to the circuit.

The circuit can be constructed on a perforated board and powered from the vehicle’s battery. The assembled unit should be placed in front of the driver seat preferably on the dashboard. Keep LDR1 away from LEDs to allow it to hibernate at night. The power to the circuit should be tapped from the ignition switch so that the circuit functions only when the vehicle is on the road.



  1. This project kit is not available with us right now. However, you can assemble it on a veroboard by spending around Rs 500 to 600.

  2. The circuit is mainly for driver driving vehicle during night. Light sensor (or LDR) is an important component in this circuit. It detects night and day. During night, the circuit gives audio-visual alarm to the driver at every 15 minutes, to prevent him from sleeping. Read the complete article for more detail.


Please enter your comment!
Please enter your name here

Exit mobile version