Anonymous321 said:
But where does it go then? Does it try to go to the siren but is not enough to make it ring?
Not really; it's just that when the transistor's base has too little current flowing into it, no current will flow between the collector and emitter. Since the collector and emitter are between the buzzer and v-, this means that no current can flow over the buzzer (the collector and emitter are like two sides of an open switch).
So then here, the resistor (which you said is controlling the current in this case) supplies enough current for the siren?
Yes. The 47k resistor is connected between V+ and the transistor's base, allowing 176uA to flow into the base, sufficient to drive the buzzer.
So the transistor is not used as a switching device anytime? I thought that this (a switch) was what we were using the transistor as...hmm...
No, it's still switching. It's just amplifying so much that it acts like a switch. Normally there is no current flowing into the base, since the current is shunted to ground because the LDR has low resistance when it's lit up. When the light is removed from the LDR, its resistance goes up, and current now has a harder time getting through it. That current now flows instead in the base of the transistor, which causes the transistor to allow a much larger (amplified) current flow across its collector-emitter. We just dump so much current into the base that the transistor overloads ("saturates", actually) and allows as much current as possible to flow over its collector-emitter.
And also, do you know approximately how much voltage the laser (or any light source) has to provide to the photocell to turn the transistor on?
Actually, the light source isn't providing any voltage at all. It just reduces the resistance of the LDR, allowing more current to flow over it (instead of into the base of the transistor, which would make the buzzer buzz).
Think of it this way: the transistor is like a switch installed between the buzzer and ground. The switch is controlled by current into the base. The 47k resistor between V+ and the base can provide enough current to do this, but if the LDR between the base and ground has little enough resistance, it "robs" this current from the base of the transistor and shunts it to ground, so the transistor shuts off and the buzzer can't buzz.
Hope that made some kind of sense. I'm a little tired.
Torben