Go Down

Topic: como invertir el giro de mi motor unipolar de 6 hilos con o sin funcion stepper (Read 369 times) previous topic - next topic

mago2mx

solo deseo como programas eso... el motor me gira en un sentido con la funcion stepper...... pero deseo saber como hacerlo girar pal otro lado?????? estoy usando el arduino uno y un driver uln2003


mago2mx

#include <Stepper.h>


// change this to the number of steps on your motor
#define STEPS 24

// create an instance of the stepper class, specifying
// the number of steps of the motor and the pins it's
// attached to
Stepper stepper(STEPS, 8, 9, 10, 11);


void setup()
{
  // set the speed of the motor to 10 RPMs
  stepper.setSpeed(10);
}

void loop()
{

  stepper.step(24);

  //ni usando menos en el 24 me funciona......
}

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy