How to use MDBT42Q with Nema17 stepper motors? #3102
Replies: 2 comments
-
|
Posted at 2019-10-08 by @gfwilliams Hi! That's great - the A4988 stepper drivers do a lot of the work for you so you don't have to do much except count pulses. How they relate to how the motor turns depends on the motor and also the MS1/2/3 pins (info here) - but lets say your motor is marked as a 48 steps/revolution and you have 16x microstepping set up with the MS pins, that'd be 48*16=768 steps per revolution. What you're doing with While it's possible to send out a certain number of steps using hardware on the MDBT42, that's getting pretty hardcore, and for 100Hz steps you're fine using software. you could try something like this: or to rotate 100 forward, 100 back: |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-10-08 by vorillaz Wow, @gfwilliams that was fast and damn awesome as well. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-10-08 by vorillaz
Hey, y'all. I have the MDBT42Q breakout board and I am trying to create a simple example where a button is pressed and the stepper motor rotates for like a half revolution.
I am using the A4988 drivers and I have managed to connect and continuously rotate the stepper motor using this sample code:
I am not sure though how is it possible to count the steps per revolution and how frequency is related to rotation and time.
Thanks in advance for your help :)
Beta Was this translation helpful? Give feedback.
All reactions