controlling stepper motor position with two stm32 timers in bi-directional master/slave mode:
- TIM3 generate PWM output pulses to TB6600 driver
- TIM1 counts TIM3 update events and stops TIM3 after specified number of pulses are generated by TIM3.
#stm32 #stepper #arduino #motor