Hola a todos , llevo unas semanas haciendo pruebas con el motor de la foto , tiene 6 pines , pero no funciona , ni hace ruido ni nada por el estilo.
El chip utilizado fue un ULN2003AN.
Alguien tiene el código , para hacerlo funcionar , no encuentro ninguno , o los que veo no son iguales.
El motor es este:
Un esquemático, un datasheet del motor un poco de código?
Este es el código que he estado usando , proviene de esta página :
En el esquema sale , el circuito para los motores bipolares , y unipolares , como se cual es el mío?
Puede que si lo conecto como en el esquema del motor unipolar , con el array 2003 en vez de con el 2004 que sale en el esquema , no funcione?
/*
- MotorKnob
- A stepper motor follows the turns of a potentiometer
- (or other sensor) on analog input 0.
- Stepper - Arduino Reference
- This example code is in the public domain.
*/
#include <Stepper.h>
// change this to the number of steps on your motor
#define STEPS 100
// 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);
// the previous reading from the analog input
int previous = 0;
void setup()
{
// set the speed of the motor to 30 RPMs
stepper.setSpeed(30);
}
void loop()
{
// get the sensor value
int val = analogRead(0);
// move a number of steps equal to the change in the
// sensor reading
stepper.step(val - previous);
// remember the previous value of the sensor
previous = val;
}