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.

DRV8825: DIR pin not working consistently

Part Number: DRV8825

Hi,

I am using a DRV8825 in a project and having some issues with the DIR pin not actually changing direction when pulled high or low. I have a script that moves the motor, stops it, and changes direction to move again. When the DIR pin is pulled high or low(verified by oscilliscope), the direction it steps will sometimes not change and sometimes will change. I tried replacing the component after verifying correct inputs and it still moves randomly. schematic included below, let me know if you have any ideas!

  • Hi Collin,

    Do you have any current limiting resistors or filter capacitors between your DRV control pins (DIR) and your microcontroller that aren't shown?
    Your C4 Capacitor should be a 0.1-μF not 0.01uF. I'd try changing that first.
    What VM voltage are you running at?

    What is your microstep setting when the DIR pin isn't working? does it behave the same at high speeds and low speeds?

  • Hi Yara, 

    Thank you for your response. There are no limit resistors or filter caps between MCU and DRV. 

    VM = 16V

    I have tried all microstep configurations and speeds of 100-500 and this issue still occurs in all

    Swapping out the capacitor, the issue is still there, with a reading of 28V on VCP if that is of any importance.

    I also swapped out the DRV to see if something about C4 burned it up, and still no success.

    Thanks!

  • Hi Collin,

    Is it possible to get some screenshots of your waveforms? And voltage readings from the DIR pin?

    How does the device behave if you were to eliminate the "stop" in your script and just have it change direction while it spins? Or eliminating the script completely and just supplying a STEP and DIR signal since the logic is hard coded?