Skip to main content
TwelveSquared
Associate III
August 24, 2021
Solved

STM32G431: control 4 stepper motors with TIM1's 4 PWM channels?

  • August 24, 2021
  • 2 replies
  • 1024 views

I'm considering STM32G431 for a motor control project with 4 stepper motors driven by step and direction.

Can all 4 steppers be controlled by using TIM1's four PWM Generation channels 1 thru 4 and be made to move by different amounts of pulses simultaneousy?

Or do I need to use a separate TIMx for each motor, e.g., TIM1, TIM8, TIM2, TIM3?

This topic has been closed for replies.
Best answer by TDK

You need a separate timer for each motor, unless you want them all to move at the same speed.

2 replies

TDK
TDKAnswer
Super User
August 24, 2021

You need a separate timer for each motor, unless you want them all to move at the same speed.

"If you feel a post has answered your question, please click ""Accept as Solution""."
TwelveSquared
Associate III
August 24, 2021

@TDK​ thank you!