I have modified the schematic a bit, it is attached. sorry dont know how to put in pictures easily into the message. also it is a quick and dirty schematic
anyway almost any npn transistor will do the job assuming it can pass the current of your relay coil, if you want to check this either look up the datasheet or measure the resistance of the coil and use V=IR to calculate the current through the transistor and verify whichever transistor is chosen will be able to pass the current
The BC546 should work without any issue assuming your relay isn't taking too much current.
Also the schematic i attached assumes the relay is a 12v relay not 5v.
enjoy
|