Want to save Two sets of numbers.

Hi! :slight_smile:

I want to be able to save two sets of numbers, no more than 10.000 or -10.000.
The numbers are from a rotary encoder situated at the motor.

As of now I can save one position, and erase it. Its for my little motor that can go up and down.
The position I can save makes the motor stay for 1 second at that position.
But I want the machine to always "know" its position also, so that it starts on the right position when turned off and on again.
But for what I understand, I need to change the code quite completely for me to be able to save Another location/set of numbers. What would I need to do? ::slight_smile:
Create a block of some sort? How? Can I name these two banks to the eeprom?

The machine should be used very little, so the amount of writing/reading to Eeprom wont be a problem.
I attach the code here and hope for some help.
I'm a total newbie, so please dont be to harch on me for the way its written. :o
And excuse the language, its in Swedish.

I want to be able to save two sets of numbers, no more than 10.000 or -10.000.

You might not be able to do that, but the language and the Arduino is capable of doing that.

What have you tried, and what were the results?

Unikron:
But for what I understand, I need to change the code quite completely for me to be able to save Another location/set of numbers. What would I need to do? ::slight_smile:

You have not posted your code so how can we know?

...R

Im trying to post the code here, but it exceeds 9000 characters :frowning:
What to do?!

What to do?!

Attach it to a post