pratti
Member level 3
I want to rotate stepper motor and count the step it has completed and check the position according to step like
while(count=0 0r count<=15)
position =1;
while(count=16 0r count<=30)
position=2;
{
if position=1;
clock();
if position =2;
clock();
how to use counter for that?
In clock function or above??
Plz give idea for it urgently
while(count=0 0r count<=15)
position =1;
while(count=16 0r count<=30)
position=2;
{
if position=1;
clock();
if position =2;
clock();
how to use counter for that?
In clock function or above??
Plz give idea for it urgently