LED control when using different power source

Look at this:-
http://www.thebox.myzen.co.uk/Workshop/Motors_1.html

It's about motors but applies to any load.

For using external power supplies see:-
http://www.thebox.myzen.co.uk/Tutorial/Power_Supplies.html