https://www.jeremyblum.com/2011/01/31/arduino-tutorial-5-motors-and-transistors/
Tutorial 5 for Arduino: Motors and Transistors