Problems controlling stepper motor while microstepping



  • Does anyone else have problems controlling a stepper motor using UIFLOW software while microstepping?

    It was working perfectly for full step mode. Now I've changed to microstepping at 1/32 and I cannot move the stepper up or down or whatever !!



  • I activated the 1/32 microstepping mode by soldering the 3 jumpers in the board....


  • Global Moderator

    Hello, you've mentioned you've soldered the 3 jumpers in the board - could you please provide a picture or schematic how you've soldered the connectors to your M5Stack? which M5Stack product are you using? also please provide the code you are using, that way we could better assist you.
    ~ Roni



  • Hello !

    The code and soldering are here: https://imgpile.com/i/u0zYLP


  • Global Moderator

    @rb-0 said in Problems controlling stepper motor while microstepping:

    Hello !

    The code and soldering are here: https://imgpile.com/i/u0zYLP

    Hi, I've checked with our engineers and it appear your soldering is been done wrong, please take a look at the following picture: https://imgpile.com/i/u0gOl4

    There are jumpers that can be shorted to create different micro-stepping function but by the picture you've sent me it looks like you've soldered the all together, only one need to be soldered at a time and not all of them together.

    Id suggest to remove some of the solder paste and make sure to solder one jumper at a time.

    Edit: you can also take a look at the TI chipset datasheet: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/module/DRV8825_en.pdf

    it explains how the jumper works and how to control different modes through it.

    Hope it can help,

    ~ Roni



  • Hi Zontex, I did what you suggested and now it works fine. Thank you very much.
    However, I do not understand why. Because in order to activate the 1/32 microstepping mode, M0, M1 and M2 must be in the high state. Since it is so hard to solder the pins because they are located in a difficult area of the board, I figured I could just sold everything together and they all should be in a high state this way.

    Anyway, thank you very much for your help, it worked.


  • Global Moderator

    @rb-0 said in Problems controlling stepper motor while microstepping:

    However, I do not understand why. Because in order to activate the 1/32 microstepping mode, M0, M1 and M2 must be in the high state. Since it is so hard to solder the pins because they are located in a difficult area of the board, I figured I could just sold everything together and they all should be in a high state this way.

    When you solder all the pins together it's similar to soldering them in series if you solder them one by one it's like soldering it in parallel. you can't solder everything together because they will short circuit next to each other, they need to be separated, glad it worked out!



  • Zontex,
    Thank you so much for your help and for the explanation!
    Best regards,
    Raquel