pratti
Member level 3
- Joined
- Jun 15, 2013
- Messages
- 56
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 6
- Activity points
- 471
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