I have a project that I want make on arduino, but I have problem, please help me out. I have a stepper motor that I want it to run 90 degrees CLOCK WISE and 90 degrees COUNTER CLOCK WISE. When I off the system and on it again, I want the motor to continue from where it stopped, not running the program all over again from the beginning. I dont want use an encoder
dantukuro:
When I off the system and on it again, I want the motor to continue from where it stopped, not running the program all over again from the beginning.
You need to post your program and tell us exactly what it does and what you want it to do that is different.
The Arduino program will ALWAYS start from the beginning when it is powered up. The way you write your program will determine what happens. You could make the motor go back to ZERO or you could carry on from wherever the motor happens to be. However if accurate positioning is important either DON'T turn the Arduino off or make if go to ZERO when it starts up.
If you are only running 90 in both directions then put mechanical stops and stall the motors in those two positions and record where the last were in EEPROM.
OR forget the Arduino and just use a motor with limit switches to stop it at the desired positions