Resistors for a NPN transistor?

In the circuit diagram(which I've uploaded),I intent to use a NPN transistor(BC 547) as a relay.The 9 VDC is stepped down to 5 VDC by a LM7805 and should be the trigger to the transistor,completing a circuit which needs the 9 VDC.The Collector is given the common negative of both the voltages and the trigger gets the positive 5VDC.I need a bit help to calculate R1 and R2.I had used two random resistors previously but the Load got powered by the 9 VDC even before the trigger was applied to the transistor.I figured out that the problem might be related to the resistors used.
(I haven't included the caps used at the terminals of the regulator in the schematic)

sort by: active | newest | oldest
You don't need the 7805. You don't need R1. What is "the load" ? Can the transistor handle the current needed ?
Adarsh_tronix (author)  steveastrouk4 years ago
Its not that simple.Actually this is a part of a bigger project.The LM 7805 is simply inevitable.Yes,the transistor can handle the current needed."The load" is the same buzzer I've been talking 'bout yesterday.I enquired and found out that it needs about 100 mA of current.
Then the 547 isn't really big enough. I'd want a margin on top of the "Ic max" figure of at least 25%, usually more.

You don't need R1, and if the buzzer is electromagnetic, it needs a diode across it.
Please leave the Best answer set. That's two questions I've answered, and you've cancelled the BA.
Adarsh_tronix (author)  steveastrouk4 years ago
I'm terribly sorry Steve.I always make the mistake of clicking the"select as Best Answer" whenever I really want to click the"Reply button".I don't choose a best answer soon after asking a question because thats an end to further comments from other users coming in.I assure you that the best answer will be selected soon but please do wait for a few more replies.
It doesn't stop other users replying, it stops other users replying UNDER the BA, for some reason.
Adarsh_tronix (author)  steveastrouk4 years ago
Any way ,I seem to have solved this problem too(special thanks to you)and yes!time for the best answer.
See what I mean ? I can reply to THIS comment, even though BA is set.
Adarsh_tronix (author)  steveastrouk4 years ago
Oh!my mistake.Thanks for letting me know chief.
The resistor should be related to the maximum load and the figure "Hfe" on the datasheet. Make sure the maximum current for the transistor is >> load current. Then base current = load current /Hfe
and resistor value = (Vin-0.6)/ base current. Then reduce it by 20% to allow the base to saturate.
Adarsh_tronix (author) 4 years ago
This is the schematic