I'm trying to build an alarm that will respond to the light going on in my garage door opener. When the light goes on, I want a buzzer to sound for a few seconds, then stop. The light stays on for several minutes, so it is necessary that the buzzer be on a timer.
The reason behind this is because if I leave my garage door open, the sensors will pick up anyone entering the garage and the light comes on. A bicycle was stolen from my garage last year and I want to create a deterrent, but don't want to keep my garage door closed all the time.
Simply, when an LDR changes from about 2M (light off - dark) to 2k (light on), I want a clean on/off buzzer for about 4 seconds. I'm using a Schmitt Trigger (74HC14) to get a clean on/off. Then a LM555 to control the timing.
I've attached a schematic.
Problems:
1. The bulb (to be replaced with a buzzer when implemented) goes on for about 4 seconds in transition from light to dark. I don't want this to happen because it would sound the buzzer when the light is going off and that would just be annoying. Any ideas why?
2. The bulb goes dim, not off, after the RC timing is complete (i.e. 4 seconds at higher voltage). I can't figure out why this stays on. Any ideas?
3. I need to find a way to automatically reset the 555 when the LDR returns to high resistance in the dark (i.e. 2M). Any ideas?
The reason behind this is because if I leave my garage door open, the sensors will pick up anyone entering the garage and the light comes on. A bicycle was stolen from my garage last year and I want to create a deterrent, but don't want to keep my garage door closed all the time.
Simply, when an LDR changes from about 2M (light off - dark) to 2k (light on), I want a clean on/off buzzer for about 4 seconds. I'm using a Schmitt Trigger (74HC14) to get a clean on/off. Then a LM555 to control the timing.
I've attached a schematic.
Problems:
1. The bulb (to be replaced with a buzzer when implemented) goes on for about 4 seconds in transition from light to dark. I don't want this to happen because it would sound the buzzer when the light is going off and that would just be annoying. Any ideas why?
2. The bulb goes dim, not off, after the RC timing is complete (i.e. 4 seconds at higher voltage). I can't figure out why this stays on. Any ideas?
3. I need to find a way to automatically reset the 555 when the LDR returns to high resistance in the dark (i.e. 2M). Any ideas?
