A really simple motor controller to drive a motor in one direction.

This will drive a single motor in one direction controlling the speed with a pwm signal. I used a TIP120 transistor from adafruit which can handle a continuous current of 5A with an 8A peak.