Introduction: Sunshine Alarm Using LM555 and LM358
Hello friends,
This is a simple design alarm for your winter breaks. With this alarm you need not set time, it detects the day light in the morning and generates beep sound for approx. 1 minute. You need not set time for your winters, just set the sensitivity for the daylight detection through the potentiometer.
You can also modify this circuit for other uses.
Step 1: Explanation
This circuit has 4 modules.
1 : Light Detector Module
2 : Alarm Duration Module
3 : Beep Generator Module
4 : Sound Generator Module
1 : Light Detector Module
This module detects the light and as output gives high signal (9v) when the LDR is in dark place. and the output is low (0v) when the LDR is in light.
This circuit is very common and uses a very cheap IC LM358, it has 2 comparators in it, you can get the detailed explanation of this module easily on google.
2 : Alarm Duration Module
This module uses 555 timer IC in monostable mode, it uses the output of the light detection module as input, and generates high output for approx.1 minute after detecting the falling edge from the light detector module. I have used a capacitor of 10uF in between these 2 circuits which is a key element in triggering the 555 timer IC in monostable mode.
3 : Beep Generator Module
This module is a simple 555 timer circuit in astable mode, its output frequency is close to 1hz. This module is enabled by the output of the alarm duration module and starts producing the pulse when the alarm duration module gives high output.
4 : Sound generation Module
This also is a simple 555 timer circuit, but with high frequency, this module produces high frequency output pulse, which generates sounds when attached with a small 8ohm speaker. This module gets the enable signal from the output of the beep generator module.
Step 2: Circuit
to make this circuit you will need :
- 9v battery + clip x1
- LDR x1
- 10k x5
- 20k pot x1
- LM358 x1
- LM555 x3
- 8 pin IC base x4
- LED x3 [red,green,yellow]
- 1k x4
- 10uf x2
- 100uf x1
- .1uf x1
- 1000uf x2
- 8 ohm speaker x1
- dotted PCB 7x7cm x1
To build this circuit, you can use many methods, i made it using a dotted pcb (pref board). You should first do it on a breadboard, then implement it on PCB.
In this instructable i have not explained the method to build the PCB. I will try to make another instructable for that.
For time being, make the circuit in your own way.
Step 3: Enjoy
Set the sensitivity of the light sensor module by the potentiometer
And enjoy the alarm
6 Comments
2 years ago
I found that once I had completed the circuit on a breadboard, when I powered it up, all 3 leds lit up then only the red one stayed on. There was sound from a buzzer, but the ldr and or the 10k pot did not seem to control or stop it.. Any ideas as to why.
Thanks
Reply 2 years ago
there can be many things in this case. if you had made perfect connection of the circuit, then probably you need to follow the last step as mentioned in this blog, which is "Set the sensitivity of the light sensor module by the potentiometer".
you have to set the potentiometer in such a way that whenever the LDR is given light, the red LED turns off, and when there is shadow on the LDR, the LED should glow...
if your problem doesn't solve with this, then probably there is a problem in your connections.... for solving that we have different steps...
Question 2 years ago on Step 3
What is the purpose of the capacitor on the Alarm Module which goes from +v to -v
Answer 2 years ago
it is used as a decoupling capacitor... to provide constant voltage to all the units of the circuit... for more info, check this link... https://www.autodesk.com/products/eagle/blog/what-...
7 years ago
yes, that is very true, i also had similar ideas about this project, but was too lazy to buy those items, so i used my old ICs which i already had...
7 years ago
This is useful,thanks