mramos1
Active Member
I need to design a circuit that will detect if a light is turned on, if so make a sound (beep) every 30 second. I have my version done, but looking for a simpler, less expensive way to do it if someone has a better idea.
My version, is a photo cell (when the photocell is down to 1K it is the activate the beep), to an op-amp, to a microcontroller. Th microcontroller sees a high from op-amp and in software every 30 seconds I pulse a piezo (via a transistor). When the op-amp is 0 (photocell over 1K; no light on) the microcontroller just loops.
It will run on a 9VDC battery. Anyone have a nifty 555 version, and with the battery, it would be nice to have it not draw a lot of current when the light is off.
Maybe I will have the photocell power the uC.. Anyway, any ideas?
My version, is a photo cell (when the photocell is down to 1K it is the activate the beep), to an op-amp, to a microcontroller. Th microcontroller sees a high from op-amp and in software every 30 seconds I pulse a piezo (via a transistor). When the op-amp is 0 (photocell over 1K; no light on) the microcontroller just loops.
It will run on a 9VDC battery. Anyone have a nifty 555 version, and with the battery, it would be nice to have it not draw a lot of current when the light is off.
Maybe I will have the photocell power the uC.. Anyway, any ideas?
Last edited: