WMA03 stepper motor code example


#1

Hello,
I am trying to control a stepper with the WMA03 and I don’t find examples of code.
The example forwarded is ok for DC motors.
I tryed the code below, I see it working but the motor only thrills but not turns.
Do you see what is wrong ?
Thanks !
Jean-Claude

[code]#include <Stepper.h>
Stepper moteur(200, 8, 9, 10, 11);
void setup()
{
moteur.setSpeed(30); //30 tours par minute
//(rappel : ici le moteur fait 200 pas par tour, on fera donc 6000 pas par minute)

}

void loop()
{
moteur.step(1000);
delay(100);
moteur.step(-1000);
delay(2000);
}[/code]


#2

Driving stepper motors is not easy.
Hereby a link to a tutorial.
http://arduino.cc/en/Reference/Stepper?from=Tutorial.Stepper


#3

pls try my library at github.com/hoefeler/VMA03 and Review.
Any hints, comments etc are appriciated


#4

Hi Guys,

Mickeal your driver works fine, great job !

however i have an issue when I’m using a 12v external power , the chipset on the velleman board is getting very hot , so hot that i can keep my finger on it more than 10 sec. By security i didn’t try to use it for a long time ( more than 10 sec :slight_smile: )

I don’t know if the chipset is supposed to be so hot …

thanks in advance for you support

thom