2 This sketch use a transistor and a diode
3 in order to power a 5v ~150mAh directly from the board.
4 Hard thing is to find a suitable motor!
6 In order to power a more powerfull motor you need to connect
7 the transistor to an other power line.
12 pinMode(motorPin, OUTPUT); // We drive the motor just like a LED
16 digitalWrite(motorPin, HIGH); // Turn on the motor full throttle
18 digitalWrite(motorPin, LOW); // Turn off motor