Hello i am building a stepper driver which is controlled my an Mbed microcontroller.
The Stepper driver is an L6228 form ST.
L6228 Datasheet
I have constructed the circuit as described in the datasheet.
How ever the motor will not step but in fact locks in position and makes a sound of pulsing. I am defiantly getting a pulse signal to the clock pin but still nothing
Here is my Mbed code
#include "mbed.h"
DigitalOut StepLED(LED1);
DigitalOut ResetLED (LED2);
DigitalOut Control (p20);
DigitalOut HalfFull (p21);
DigitalOut Clock (p22);
DigitalOut CWCCW (p23);
DigitalOut Enable (p24);
DigitalOut Reset (p25);
int main() {
//Configure IC////////
Control = 1;
HalfFull = 0;
CWCCW = 0;
Enable = 0;
//////////////////////
//Reset Stepper IC State Machine
Reset = 1;
ResetLED = 1;
wait (1);
Reset = 0;
Enable = 1;
ResetLED = 0;
////////////////////////////////
wait (5);
// Main loop
while(1) {
Clock = 1;
StepLED = 1;
wait(1);
Clock = 0;
StepLED = 0;
wait(1);
}
}
Has anyone had any experiences with these Drivers, or any advice on how to get the thing running.
Thanks