Hello,
you did not set a target position.
Suggest you look at the examples and test them first.
Cheers.
On Saturday, February 14, 2015 11:34:04 AM Jose Manuel Gonzalez Martinez
wrote:
> Hello, i can't get my stepper motor work with AccelStepper library.Here is
> an example that actually works using the Stepper library from Arduino:
>
> #include <Stepper.h>
>
> const int pasosPorRevolucion = 200;
>
> Stepper motor(pasosPorRevolucion, 8,9);
>
> const int pinEnable = 10;
>
> int RPM = 5;
>
> void setup() { . . . pinMode(pinEnable, OUTPUT); }
> void loop() {
> motor.setSpeed(RPM); motor.step(-pasosPorRevolucion/100);
> }
>
>
> But with AccelStepper library it doesnt do anything just like when the
> enable pin is disable. #include <AccelStepper.h>
> AccelStepper stepper(1,8,9);
> void setup(){ stepper.setMaxSpeed(1000); stepper.setSpeed(50);
> stepper.setEnablePin(10); } void loop(){ stepper.runSpeed();}
> Im using ArduinoMega 2560 and a stepper motor driver v3.3 from MakerBot
> (
http://www.ebay.com/itm/MakerBot-RepRap-Stepper-Motor-Driver-v3-3-/2810886
> 44420) I hope the information is sufficient to get an idea of the problem.
> Sorry about my bad English . I appreciate any help with this issue.
>
> Regards,Juan
--
Mike McCauley VK4AMM
mi...@airspayce.com
Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia
http://www.airspayce.com
Phone
+61 7 5598-7474