I've just built a circuit using Yenka, and it's meant to be a system that basically senses light, and whether a switch is on or not, and when both of these are true, the buzzer will, buzz.
I'm quite bad at electronics in general, but I'm trying to get the following to work (ref. Circuit diagram)
What it's trying to do is basically (in code-like-terms):
IF(LDR SENSES LIGHT && SPST SWITCH TOGGLED) { BUZZER ON }
ELSE { BUZZER OFF }
From my low-level understanding of electronics, I think there might be a need for a transistor just before the buzzer to push up the voltage, and possibly more resistance on the AND gate, because this diagram made in Yenka keeps 'blowing up'.
Basically what I think it's going to do: LDR senses light, compares this output resisted voltage against baseline voltage with op-amp, resists the output value if true, send to AND gate. AND gate checks whether op-amp is true, and whether switch is true, if they are both true, activate buzzer.
Will this circuit work? And if not, what's wrong with it? :S