Can you give us some hardware details ? (motor supply voltage, current etc?)
Start by reducing the speed to the minimum and then increasing it. You can use a pot to an analog pin and map the input value to a speed range saved to a speed variable.
Can you give us some hardware details ? (motor supply voltage, current etc?)
Start by reducing the speed to the minimum and then increasing it. You can use a pot to an analog pin and map the input value to a speed range saved to a speed variable.