SLVAFW1 August 2024 DRV8818
In low cost stepper drivers such as the DRV8818, the peak current regulation value, ITRIP, in the motor current sine wave is calculated using the equation:
Where K is a constant. For example, in DRV8818,
Where, RSENSE is the value of sense resistor in ohms. This allows manual control of current regulation value at every step by the voltage on the VREF pin.