I need a little help, with a small project, only including an Arduino NANO Every and a small servo motor.
What I want it to do is: When the Arduino powers up, the servo motor should go to a certain position, and when the Arduino is powered down, the servo should go back to the first position. That's all, only those 2 positions. Is it possible capacitors or a small battery, and how?
I know the easiest would be to have power to the Arduino all the time, and then detect if a power signal is there or not, to do the different positions, but what will happen, when it overflows after 50 days?
I don't have any programming or circuit drawings yet, because I'm still in the planning phase.
tlin:
I know the easiest would be to have power to the Arduino all the time, and then detect if a power signal is there or not, to do the different positions, but what will happen, when it overflows after 50 days?
I guess you are going to use millis() function for timing. If so, read the Note and Warning part on millis() function reference. It mentions how to write rollover-safe code.