Add a control method of DC motor