The easiest way to do this is to attach an arm from the rim of a wheel on the motor to a pivot arm of greater radius than that of the wheel. As the wheel turns the pivot arm will oscillate with smooth acceleration and deceleration. This has the added advantage that the mass of the motor does not...