Low level stepper motor functionallity

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
OutoftheBOTS_
Posts: 847
Joined: Mon Nov 20, 2017 10:18 am

Low level stepper motor functionallity

Post by OutoftheBOTS_ » Fri Jul 24, 2020 3:35 am

There has been a few times where people have asked about functionality for using steppers in MicroPython. Atm there isn't any real way to do this because speed at which the ramp up and ramp down step pulses need to be generated at.

I have made public my basic C code for being able to generate stepper motor pulses using timers on a STM32 and timer interrupts for creating the smooth ramping as inline with these principles found here https://www.embedded.com/generate-stepp ... real-time/

ATM it is very basic and will require a fair bit of work to build into a MP API but if anyone wants to use my code to do this they are welcome.
https://github.com/OutOfTheBots/stepper/tree/master

A short video here of this code running on a stepper as demo here https://www.youtube.com/watch?v=ryh_fY4 ... e=youtu.be

Post Reply