Site icon Circuit Ideas for You

LDR Based Morning Alarm Circuit using NAND Gate IC

A LDR Based Morning Alarm Circuit using NAND Gate IC helps switch on an alarm sound automatically when morning sunlight falls on the sensor.

This circuit uses an LDR (Light Dependent Resistor) and a CD4011 NAND gate IC to detect light and as soon as sunlight reaches the LDR, the resistance of the LDR changes.

Then the CD4011 processes this signal and drives the speaker through transistor stages and therefore, the alarm starts ringing in the morning without manual operation.

This circuit is simple, low cost and useful for morning wake-up alarms, light detection projects and for basic home automation circuits.

Moreover, students and beginners can build this project easily for learning sensor and logic gate applications.

Circuit Working:

LDR Based Morning Alarm Circuit Diagram using NAND Gate IC
Pinouts of NAND Gate IC CD4011

Parts List:

ComponentsComponentQuantity
Resistors1M, 470k, 22k, 22Ω1 each
Potentiometer 100k1
LDR 20k to 600k1
CapacitorsCeramic 0.1µF, 0.001µF1 each
Electrolytic 100µF 25V1
IC CD4011 Quad NAND Gate1
Transistors BC547, 2N22221 each
Speaker 8Ω1
SPST On / Off Switch1
9V Battery1

At night, when our room is dark the LDR resistance becomes high and because of this the voltage at pin 1 of (N1) gate stays low, so the NAND gate output keeps the speaker OFF.

Then when morning sunlight falls on the LDR, the LDR resistance becomes low and because of this, the input voltage increases.

The first NAND gate gets this changed signal which then sends output to the next gate stages.

After that N2, N3 and N4 gates start working and these stages process the signal and make pulse output.

Also, R1, R2, C1 and C2 make an oscillation signal, so the output changes into tone frequency signal which is not only simple ON signal.

Next, this oscillation signal goes through resistor R3 to transistor Q1 BC547, then this BC547 amplifies the signal and after that, it drives the Q2 2N2222 transistor.

Finally, 2N2222 gives enough current to the speaker, so the speaker produces alarm sound and as sunlight increases more, the circuit works more stable which then keeps alarm sound continuously.

The switch S1 connects and disconnects the 9V battery supply to the circuit.

How to Build:

To build a LDR Based Morning Alarm Circuit using NAND Gate IC follow the below connection steps:

Conclusion:

This LDR Based Morning Alarm Circuit using NAND Gate IC is a simple and effective automatic light sensing project which detects morning sunlight and immediately activates the speaker alarm.

Also, the circuit uses easily available components and simple logic gate design and therefore, it is an excellent project for beginners, hobbyists and educational use.

References:

Datasheet IC CD4011

Exit mobile version