How to supply voltage to arduino board ?

What will be the circuit of transistor, external battery and digital pin of arduino to turn on and off the fan
Thanks for your help