Hello everybody
I have to use a stepper motor for a project at school.
I use this stepper motor
http://www.gotronic.fr/art-moteur-17hs15-0404s-18354.htm
and this dual bridge
http://www.gotronic.fr/art-commande-de-2-moteurs-rb01c025-19030.htm
I made the circuit as the picture.
I would like to have an acceleration then constant speed then deceleration.
I tried this programme :
#include <Stepper.h>
int Pin_2 = 2;
int Pin_3 = 3;
int Pin_4 = 4;
int Pin_5 = 5;
int ENA=10;
int ENB=9;
Stepper stepper(200, 2, 3, 4, 5);
void setup()
{
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
}
void loop()
{
for(int i=0;i<=255;i++)
{
analogWrite(ENA, i);
stepper.step(50);
}
delay(200);
{
for(int i=255;i>=0;i--)
{
analogWrite(ENB, i);
stepper.step(-50);
}
}
delay(200);
}
I feel the motor would me to move, it vibers, but nothing happens!
Thanks, and sorry for my english
