My first packege with Arudino stuff is on it´s way for my home automation projects are taking form in my head.
My first project will be a dry food feeder for the dog.
Thought a servo that can rotate continuously will turn the feeder for X ms for the right amount of dry food.
Then the Arduino will wait for 24 hours before it´s time again.
This way if I want to food the dog 18:00, I just power on the Arduino at 18:00 and it will dispense dryfood every 24 hour.
How can I program the Arduino to wait 24 hours without a RTC chip?
I checked this but I can´t see how the int can keep that high amount of miliseconds
Also, there will be a button, if pressed it will dispense some additional food.
(That would be the interrupt).
Can I start a counter when the Arduino is powered on and use a IF when the counter have waited for 24 hours?
For example:
void setup()
{
TempServo.attach(13);
Ini 24Timer start
}
One other problem that you will more than likely encounter is a power failure / reset of the arduino. You're timing will be lost. You also might need to set the initial time or start the Arduino at 'exactly' 6 o'clock.