This document describes 4 programs for controlling a DC motor using an Arduino. Program 1 controls the speed of a DC motor. Program 2 controls the acceleration and deceleration of a DC motor. Program 3 controls the rotational direction of a DC motor by setting the A and B pins to either CCW, CW, or stop. Program 4 is not described.