Pages: [1]   Go Down
Author Topic: como invertir el giro de mi motor unipolar de 6 hilos con o sin funcion stepper  (Read 288 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: November 28, 2013, 02:19:20 pm by mago2mx » Logged

COM22
Offline Offline
God Member
*****
Karma: 6
Posts: 702
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Que código estas utilizando?
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

#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......
}
Logged

Pages: [1]   Go Up
Jump to: