i am interfacing bipolar stepper motor with 8051 using uln2003a
here is the code and circuit diagram on proteus
can't simulate on proteus.. circuit diagram is in the attached file..plzz help
here is the code and circuit diagram on proteus
Rich (BB code):
#include<reg51.h>
void main()
{
unsigned int i;
while(1)
{
P2=0x0C; //00001100
for(i=0;i<40000;i++); // delay
P2=0x06; // 00000110
for(i=0;i<40000;i++);
P2=0x03; // // 00000011
for(i=0;i<40000;i++);
P2=0x09; // 00001001
for(i=0;i<40000;i++);
}
}
can't simulate on proteus.. circuit diagram is in the attached file..plzz help
Attachments
-
95.1 KB Views: 82
Last edited by a moderator: