Question About Stall Detection With DRV8434S Stepper Motor Driver

Hi All,

I recently purchased a DRV8434S stepper motor driver (carrier board) from pololu. I would like to use the stall detection feature. I am able to follow the examples provided in the Arduino library and get a stepper motor moving. However to control more advanced settings you have to use the SPI communication. I have never programmed any device that communicates through SPI. I am having difficulty understanding how to use this.

The language of setting a register(seen in the driver Arduino library documentation) or setting a bit to '1'(as seen in the TI driver documentation) or enabling fault conditions, confuses me and I don't know how to do that. Can anyone help me write a simple example using stall detection with this driver so that I might be able to understand this better?

Link to driver: Pololu - DRV8434S SPI Stepper Motor Driver Carrier, Potentiometer for Max. Current Limit

TI Documentation: https://www.ti.com/lit/ds/symlink/drv8434s.pdf
The stall detection section is on pg34.

DRV8434S Arduino library: DRV8434S library: DRV8434S library for Arduino

Any help would be much appreciated!

A good place to start would be to learn the basics of Arduino SPI. The SPI Reference page has an introduction and links to tutorials.

Pololu offers a library for SPI control of that driver.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.