0
\$\begingroup\$

How can one drive a stepper motor and control its speed using PWM from a microcontroller, since the stepper motor has more than two wires?

I just want a confirmation because I'm still confused.

\$\endgroup\$
4
  • \$\begingroup\$ Confirmation means you need to confirm a statement already made; what do you want to confirm? \$\endgroup\$ Commented Aug 7, 2016 at 17:34
  • \$\begingroup\$ You need to learn how steppers work. They normally don't use PWM. Usually four windings are switched in sequence to pull to rotor around. There are millions of articles about stepper motors on the web. \$\endgroup\$
    – Transistor
    Commented Aug 7, 2016 at 17:44
  • \$\begingroup\$ Yet it's perfectly legal to use advanced pwm technics for microstepping. \$\endgroup\$
    – user76844
    Commented Aug 7, 2016 at 17:49
  • \$\begingroup\$ @MarcusMüller When I researched the control of the stepper motor I found that It can be controlled by pwm, but so far I didnt find how the motor is controlled by pwm, so I wanted to know how can it be controlled using pwm since it has many wires, so what I wanna confirming is that: do u need many pwm to control the motor or u need one? \$\endgroup\$ Commented Aug 10, 2016 at 10:03

1 Answer 1

1
\$\begingroup\$

If you use bbipolar stepper motor, it has two phases, so you drive it with two PWM signals at least. In more advanced aapplications- two PWM per phase, so four. I wonder, if you know, where to connect this signals... I think, you should start with DRV8811, then you need one GPIO for direction and another one for step. No PWM rrequired.

\$\endgroup\$
1
  • \$\begingroup\$ Thanks I will study the DRV8811 so far I only studied uln2003. \$\endgroup\$ Commented Aug 10, 2016 at 10:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.