Hello Pololu Team ,
based on the example codes that your team has shared on ( GitHub - pololu/high-power-stepper-driver-arduino: Arduino library for Pololu High-Power Stepper Motor Drivers )and the Parameter of your product, I have just chosen " 36v4 DRV8711 ( Pololu High-Power Stepper Motor Driver 36v4 ) to program my Stepper Motor with Arduino .
In the program on the example codes it was very clear how to change the direction of rotation of the motor.
for my program I would like to control my motor with 3 Methods :
1-CW----------
2-CCW --------
void setDirection(bool dir)
{
// The STEP pin must not change for at least 200 nanoseconds before and after
// changing the DIR pin.
delayMicroseconds(1);
digitalWrite(DirPin, dir);
delayMicroseconds(1);
}
3-Braking ??
and my question is how can I put my stepper Motor under braking, so that the shaft of the engine does not move anymore?
Thanks in advance**