Hello guys ,
I need help. I want to control the linear movement of an object moved by the stepper motor connected by timing belt .
But i need arduino to save the distance it need to move based on the initialisation part .
When ever i press a initialisation button or set button the arduino should record the number of rotation of stepper motor i am manually providing to the motor and set the same to it in the program . And when ever a command is passed . The motor should rotate for the same number of rotation .
Did you tell the Arduino to save the value? Did it work? Did you serial.Print() the value?
can you elaborate your solution . i'm a beginner to arduino
What part do you need help with? What is so hard to understand?
It would look something like this.
Distance to be saved = count.
any time you need the old value you simply say xxx == Distance to be saved.
Note the = and ==. = is save something, == is something equal to...
If it is to be kept after power reset etc save it in EEPROM otherwise ram is fine.