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.

DRV8834 Queries

Other Parts Discussed in Thread: DRV8834EVM

Doubt 1:

For my project, I want to have three operating modes for a stepper motor, dependent on the motor coil current, i.e. I want to regulate the motor current dynamically using a key press from a micro controller.

As far as I understand, for doing this I will need to change the reference voltage on AREF and BREF pins, keeping the values of sense resistors constant and for this I will use DAC and feed its output to these two reference pins (a single DAC output going to both Reference pins simultaneously). Also while doing so I will keep VREF0 output pin floating (I doubt if that's correct!).

Please confirm if this approach is correct! Or is there any other better way to achieve the same?

Doubt 2:

How can I use 1/32 microstepping using a micro controller? It says, giving a High Impedance Input, does micro controllers are capable of supplying a high impedance output? Or is there any special hardware logic/gate/IC to be used to make this happen? I am using PIC16F1503 micro controller.

  • Hi Rahul,

    Using a single DAC to change the max current is the preferred method to do so. As you pointed out, connect the DAC to AVREF and BVREF. Leave VREFO unconnected. It is unused in this case.

    To use 1/32 microstep mode, connect M1 to a logic high and leave M0 unconnected. This will set the mode as desired. A microcontroller can achieve a high Z state. A typical GPIO can be set to an input only with no pullup or pulldown resistor. There is a potential down side to this approach. The input of the microcontroller is now floating and can consume extra current. If you want to minimize this current, external circuitry can be added.

    For reference material, please refer to the DRV8834EVM. Included is the schematic, layout, and code used to control the motor