How to configure POWERSTEP01 ocd_th and stall_th?
I've set up the POWERSTEP01 driver in voltage mode, which works nicely. Now I want to use the sensor less stall detection feature to implement sensor less homing. How must the stall_th and also the ocd_th values be dimensioned for this to work correctly.
Let's say for example I have a 1.68A stepper and my shunt resistor is 30mOhms. I've configured the hold current to be ~50% of the run current 1.68A using the formulas from application manual.
To calculate the voltages used in the register, I use U = R*I, v_stall = 30mOhm*1.8A = 0.054V, which results in stall_th register value of 1, meaning 31.25mV. Is this correct?
In general, how big shall the stall and overcurrent values approximately be for a stepper?
