Home > other >  Stepper motor control
Stepper motor control

Time:09-21

I was a little white, not very understand please forgive, choice of this program is reversal is forward the direction of rotation are constant, and the choice is a circle he only less than half a circle, why? Urgent need!
Is the first picture drives the wiring connection is stm32 microcontroller GPIOC6 7 8 9
The second is the main function
The third four of five control motor function definition
Need friends to help me I see is wrong? Still say wiring problems

CodePudding user response:

Draw a diagram to send your wiring

CodePudding user response:

EM +, DIR +, PUL + 5 v + and together, EM -- DIR -, PUL - three respectively by stm32 microcontroller IO port, IO mouth will set OD output,
  • Related