Thks man!
I make this, you mean across + an -,from power!
I see that many time in shema,why is that nessery?
Now I testing this code:For now, working 2 hour fine,is precison,and dont have some reset,we will se for now!Code:Delay VAR BYTE i VAR WORD TRISB = 0 ' All outputs. Delay = 8 pause 1000 For i = 1 to 512 '512 steps forward. PORTB =9 Pause Delay PORTB =3 Pause Delay PORTB =6 Pause Delay PORTB =12 Pause Delay NEXT pause 2500 For i = 1 to 256 '256 steps reverse. PORTB =12 Pause Delay PORTB =6 Pause Delay PORTB =3 Pause Delay PORTB =9 Pause Delay NEXT Pause 2500 For i = 1 to 256 '256 steps reverse. PORTB =12 Pause Delay PORTB =6 Pause Delay PORTB =3 Pause Delay PORTB =9 Pause Delay NEXT Pause 1500
And one more question,is possible make some code for picbasic for this:
If step motor work some,go to left,go to right,.......
and I stop power,and turn again,is possible,motor back in some start position,(some zero posicion),and continue work same function,before stoping!




Bookmarks