Hi everyone, I can't increase the speed to Nema 17 Stepper Motor 1.7A 40Ncm (56.2oz.in) 2-phase 4-wire 1.8 degree Stepper Motor with Bipolar Motor Cables.
I saw that there are speed controllers, but I wanted to insert a sketch of the arduino.
Can someone help me?
Your 1.7 amp motor can be controlled with a DRV8825 stepper motor driver. The Pololu DRV8825 web page has lots of useful info.
Note that high speeds generally require a high motor power supply voltage - the DRV8825 can work at up to 45v. Make sure to adjust the current setting on the driver to protect your motor.
As far as programming is concerned have a look at the examples in this Simple Stepper Code. The value of the variable millisBetweenSteps determines the speed of the motor. Do some experiments to see the effect.
If you want a high speed you will need to accelerate the motor up to the required speed. No motor can go instantly from 0 to full speed. If you need acceleration look up the AccelStepper library, or if you prefer the DIY approach have a look at this simple acceleration code