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.

DRV8871-Q1: How to PWM the driver?

Part Number: DRV8871-Q1

Hi,

I failed to understand where exactly I do activate the PWM

If for example, I need to 75% PWM the motor CW direction how should the IN1 and IN2 driven and to what pin of the driver the PWM wave from the MCU should be connected?

and the same question for 75% PWM but CCW rotation direction.

M.Hooper

  • Hi Menahem,

    If you want to PWM the motor at 75%, you have two choices for the forward direction:

    1) Set both IN1 and IN2 low. PWM IN1 at 75%. This will provide 75% drive, and 25% fast decay (coast)
    2) Set both IN1 and IN2 high. PWM IN2 at 25%. This will provide 75% drive and 25% slow decay (brake)

    Fast decay has more current ripple while slow decay has less.

    For the reverse direction:
    1) Set both IN1 and IN2 low. PWM IN2 at 75%. This will provide 75% drive, and 25% fast decay (coast)
    2) Set both IN1 and IN2 high. PWM IN1 at 25%. This will provide 75% drive and 25% slow decay (brake)