it would be good for you if u go through this post Transistor as a Switch