Controlling a DC motor using Arduino