This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STEPPER MOTOR PROBLEM

Can any body give me a good source code for controlling the 12 volt stepper motor speed .I am using Atmel's 89C52 controller.I am just using 4 pins of my port-1 to energize the motor's windings. this is the the code unit which i work for but its not wotking some how,

*********************************************
int i,j;
unsigned char STEP[4] = {0x0A,0x09,0x05,0x06};
//these r my switching sequence for my unipolar stepper motor//
while(1)
{
for(i =0;i<4; i++)
{
P1 = STEP[i];
for(j=0;j<5;j++)
{
_nop_();
}
}
}

Parents
  • Thanx, for your response
    Regarding your question ... No stepper motor is not driven directly but they are driven through the Darling driver ULN2064B.... ULN2003 i am not using because ... my motor has got two stacks and each draws 0.475A of current which exceeds the current handling capacity of ULN2003 (i.e. around 0.5A)

Reply
  • Thanx, for your response
    Regarding your question ... No stepper motor is not driven directly but they are driven through the Darling driver ULN2064B.... ULN2003 i am not using because ... my motor has got two stacks and each draws 0.475A of current which exceeds the current handling capacity of ULN2003 (i.e. around 0.5A)

Children
No data