add dc motor speed control