Page 1 of 1

[Solved for now] Stepper motor control in micropython

Posted: Thu Mar 18, 2021 10:31 pm
by macrimarco001
Hello guys, i am a new member of this forum. I recently bought an esp32 board and installed on it micropython. Since i know some of the basics of python i was thinking about making diy projects witsh this fantastic language and platform.

I have benn all day long trying to figure out how to drive a stepper motor (nema23) with an external driver such as a DM556. I cannot understand how to do it :(.
so i am now asking for your prescious help.
I am sorry if my english isn't that great.
best wishes guys.

ps. i hope i choose the right topic.

Re: Stepper motor control in micropython

Posted: Fri Mar 19, 2021 6:04 am
by OlivierLenoir
According to the DM556 datasheet, you should be able to use project MicroPython-Multiaxis to drive stepper motors with DM556.

Re: Stepper motor control in micropython

Posted: Fri Mar 19, 2021 8:26 am
by macrimarco001
Thanks, is there a guide? Or an example code?

Re: Stepper motor control in micropython

Posted: Fri Mar 19, 2021 6:40 pm
by OlivierLenoir
In case you're using an ESP32 device with RMT you can use this.

In case you're using an other standard GPIO device, you can use this.

The standard example is here.

Feel free to let know if you need additional information.

Re: Stepper motor control in micropython

Posted: Fri Mar 19, 2021 7:30 pm
by macrimarco001
While I was waiting for an answer I started some experiments and came up with the motor moving thank to you.
Thank you, thank you, thank you.

I'll write if I'll need further help. Love your availability to help people.

To tell the truth I have another problem but i think I have to write a new post because it is not part of this project.

Best wishes 🙂