This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRV8711: Other recommendations for SMPLTH

Part Number: DRV8711

I note the following comments & recommendations in the DRV8711 documentation:

Datasheet: 7.3.10.1 Internal Stall Detection

..."The time between step inputs must be greater than SMPLTH time for back EMF sampling."

SLVA632–March 2014: 9 Stall Detect

..."The sampling occurs after SMPLTH during this zero current step."

So to confirm my interpretation: set SMPLTH to be a period of time less than the step rate (makes sense ...).

My question is - do you believe there is a sweet spot for the SMPLTH setting relative to the step rate. 

Without the benefit of having access to a scope, I am somewhat working through this by trial and error.   

In the chart below, I have represented 7 cycles of stepping a motor 1000 times (VM = supply voltage = 12v) with the following settings:

- 30 steps/second, StepMode=Microstep8, ExStall=1, VDIV=4.

At the commencement of each cycle, I set SMPLTH to the next tested value for SMPLTH (usec100, then usec200 ... through to usec1000 on the 7th cycle).

(extremely UNscientifically) - part way through each cycle, I grab the motor pulley with my fingers enough to generate "a load" but not hard enough to (visibly/audibly) to miss steps. 

So in my case (charted below), the SMPLTH that appears to provide the most ... sensitivity ... between no load and some load us SMPLTH=usec300.

BEMF Volts is reverse calculated through an external DAC as: 

BEMF (volts) = dacpin * (5.0 / 1023.0) * 4.0 ;

Comments welcomed... 

   

Many thanks, 

Glenn.

  • Glenn,

    "do you believe there is a sweet spot for the SMPLTH setting relative to the step rate"

    During a zero-current step, one side of the H-bridge is placed in a high impedance state, and the opposite lowside FET is turned on for a brief duration defined by TORQUE register SMPLTH bit [10:8]. This allows the current to decay quickly through the low-side FET and the opposite body diode.

    The SMPLTH setting is related to the current decay speed. Even at zero-current step, a short PWM pulse can drive the winding current to one direction. If SMPLTH setting is too short, the winding current can still go through FET's body diode even the FET is off and the switching node voltage would be one forward diode voltage plus the input voltage. To have a back EMF voltage measurement, we should let the winding current decay to zero.

    That is why you see 100us, 200us the back EMF voltage is around 12V. 300us SMPLTH setting is on the boundary condition which the winding current decay to zero. On the other hand, if we sets SMPLTH too long, that will limit the step input rate.