cancel
Showing results for 
Search instead for 
Did you mean: 

Control five stepper motors independently with STM32h745 ?

hareesh9415
Visitor

We are planning to use the STM32H745 MCU for stepper motor control. Our application requires controlling five stepper motors independently.

Could you please confirm whether the STM32H745 series is suitable for this use case? In the block diagram, it is mentioned that the MCU provides 2 × 16-bit motor-control PWM timers.

 

hareesh9415_0-1780477403229.png

Additionally, in the document UM1964 User Manual, it is stated that it is possible to control up to 8 stepper motors using an STM32 series MCU.

Given this information, we would like to understand:

  • Whether the STM32H745 can practically support 5 independent stepper motors, and
  • Any limitations or considerations regarding timer availability, PWM channels, or control implementation.

hareesh9415_1-1780477504084.png

 

2 REPLIES 2
Andrew Neil
Super User

@hareesh9415 wrote:
 

in the document UM1964 User Manual, it is stated that it is possible to control up to 8 stepper motors using an STM32 series MCU.


That's the User Manual for the X-NUCLEO-IHM02A1 two-axis stepper motor driver expansion board based on L6470.

The L6470 is a driver chip which handles all the motor control - so that the host MCU doesn't have to do any of it:

AndrewNeil_0-1780478565910.png

https://www.st.com/resource/en/datasheet/l6470.pdf#page=20

 

So, using the L6470, you don't consume any of the timers on the host MCU.

 

PS:

and the 8-motor limit seems to be just down to the number of chip-select options available on the X-NUCLEO-IHM02A1 boardd

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

...or just :

>Whether the STM32H745 can practically support 5 independent stepper motors,

using the IHM02A1 boards , yes .

Any limitations or considerations regarding timer availability, PWM channels, or control implementation

using the IHM02A1 boards you dont need PWM etc. , not even a H7 cpu, can be much smaller type;

the boards->motors get just commands by SPI connection from the cpu.

->

The expansion board includes two L6470s, a fully-integrated micro stepping motor driver used to control stepper motors by means of high-end motion control commands received through SPI.

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