cancel
Showing results for 
Search instead for 
Did you mean: 

To Run & Stop A Stepper Motor

kirito2908
Associate II

Hello,

I'm using Blue Pill Board With TMC2209 Stepper Driver To Control 3 Stepper motors. I've made a project using Arduino Mega and there were MobaTools & TMCStepper libraries available to Set Current and run multiple motors at once smoothly. 

I wanted to know that, how can i do the same with Blue Pill Using STM32 Cube IDE ? Is there any special library to do the same stuff ? 

Any help is appreciated. Please let me know if anyone have any answers.  

1 ACCEPTED SOLUTION

Accepted Solutions
Cristiana SCARAMEL
ST Employee

Hello @kirito2908 

currently we do not have a "generic" library for stepper motors. 

If you are interested in stepper motor control, ST offers a wide range of products: Stepper Motor Drivers

If you feel a post has answered your question, please click "Accept as Solution"

View solution in original post

3 REPLIES 3
Cristiana SCARAMEL
ST Employee

Hello @kirito2908 

currently we do not have a "generic" library for stepper motors. 

If you are interested in stepper motor control, ST offers a wide range of products: Stepper Motor Drivers

If you feel a post has answered your question, please click "Accept as Solution"

Hmm, I See
Thanks For Your Kind Reply. I'll See What I Can Manage.

veysiadn
Associate II

I was also struggling with the UART communication with TMC2209, in my case transmit was always working fine but receive wasn't. I solved my issue by enabling halfduplex transmitter (HAL_HalfDuplex_EnableTransmitter) before sending and enabling halfduplex receiver (HAL_HalfDuplex_EnableReceiver) before receiving. An example driver code is available on my github page (https://github.com/veysiadn/tmc_2209), the other parts of the code is modified from TMC2209 arduino library (https://github.com/janelia-arduino/TMC2209).

Good luck,

Veysi