I am locking for method that the stepper know where it stands when the power is on or cut-off.
If the power is cut-off when the stepper -say- at degree 30 cw, if the power turned on , the stepper must know that it stands now at 30 cw degree.
I sayed that i tryed to save the postion in an variable which is stored at the pic16f84a by using read & write instruction..but the stepper just moves in one direction.
my code in attchments, it derive the stepper successfully, but the problem in saving position (( forgive me my code is simple because i am beginner in picbasic, i know there is another code which is more simple))...
any idea??




Bookmarks