how to make a delay function that makes the program work once per day

Hi All,,,
please help me to create delay function that makes my program would execute once per day,
maybe if im using delay() will took so long time to my program,

I make program to read analog voltage and then if they reach minimum voltage arduino will make some charger work and fill the battery.

any help would be appreciated.
thanks

Have a look at the blinkwithoutdelay IDE example.

Yes, I'll do the way raschemmel suggest. Look out with:

This number will overflow (go back to zero), after approximately 50 days.

Good luck!

Regards.

But remember millis() will reset to 0 if the Arduino loses power or resets for any other reason.

luisilva:
Yes, I'll do the way raschemmel suggest. Look out with:

This number will overflow (go back to zero), after approximately 50 days.

I'm not sure you if you see that as a problem, I understand it isn't. I would nonetheless suggest you use an RTC and have a regular loop with, say, a one minute delay, which checks the RTC for a specific time. The DS1307 is dirt cheap, and adequate for this.

I would nonetheless suggest you use an RTC and have a regular loop with, say, a one minute delay, which checks the RTC for a specific time. The DS1307 is dirt cheap, and adequate for this.

http://www.ebay.com/itm/400503978923