Welcome! Log In Create A New Profile

Advanced

Problem with L6228 Stepper Circuit Mbed Micro

Posted by jhdgkss 
Problem with L6228 Stepper Circuit Mbed Micro
November 12, 2011 04:43PM
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 smiling smiley
Attachments:
open | download - l6224 circuit.png (39.7 KB)
Re: Problem with L6228 Stepper Circuit Mbed Micro
November 12, 2011 05:39PM
I have had a play with altering the current and managed to get some movement but its jerky and not going in a constant direction but back and forth. I have also managed to get an oscilloscope on the clock pin and all looks good.
If you getting some problem with mbed micro-controller then you have to take it to the manufacturer may be there is some problem in your mbed circuit.
Sorry, only registered users may post in this forum.

Click here to login