Brushed DC motor controller software with closed loop speed control.