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 QUERY

HI I AM WORKING ON STEPPER MOTOR WITH MICROCONTROLLOR(P89V51RD2BN).THIS IS MY PROGRAM.
#include<reg52.h>

#define ST_CNTRL P1;

void delay(void);

void main()
{ unsigned char k; for(k=0;k<30;k++) { P1 = 0x66; delay(); P1 = 0xcc; delay(); P1 = 0x99; delay(); P1 = 0x33; delay(); }
}

void delay(void)
{ unsigned int i,j;

for(i = 0; i<0x20; i++) { for(j = 0; j<0x20; j++) { } }
} PROBLEM IS THE STEPPER MOTOR DOESNT STOP AFTER 30 STEPS AS GIVEN IN FOR LOOP.IT JUST JERKS AFTER 30 STEPS AND CONTINUE ROTATING,I WANT TO STOP IS AFTER 30 STEPS. CAN ANY ONE HELP?

Parents
  • "me new to electronics field"

    Are you actually interested in learning how to do this yourself, or do you really just want someone to do it for you?

    So long as it's not supposed to be your own work (eg, a school assignment), there's no harm in getting others to do stuff for you; after all, most people are not interested in maintaining & repairing their own cars - so they pay someone else to do it for them.

    But there's the key - you will have to be prepared to pay!

    There's a list of consultants who can do such stuff here: http://www.keil.com/condb
    No doubt you could also find local listings.

Reply
  • "me new to electronics field"

    Are you actually interested in learning how to do this yourself, or do you really just want someone to do it for you?

    So long as it's not supposed to be your own work (eg, a school assignment), there's no harm in getting others to do stuff for you; after all, most people are not interested in maintaining & repairing their own cars - so they pay someone else to do it for them.

    But there's the key - you will have to be prepared to pay!

    There's a list of consultants who can do such stuff here: http://www.keil.com/condb
    No doubt you could also find local listings.

Children