Hello all. I'm looking for a way to run a small 6v motor from a microcontroller. I don't need proportional speed or direction. Simple on/off is what I'm looking for. What is the easiest way to accomplish this? Can it be done with a simple transistor? I'd like to be able to put a pin high and have the motor run. Put the pin low and it turns off. My thinking is that this can be accomplished with a NPN Transistor but I'm not sure how to wire it up.
Thank you for any input you can provide.
Conscripted.