Hi Folks,
Looking for any help with the following:
Concept:
Need to feed my baby fish very frequently during the day. They need to be fed about every 20 mins or so during daylight hours - lets say from 7am to 7pm, every day of the week. That would be approx. 36 alarm repeats. Working to real time is pretty critical (hence the RTC) as the fish will not feed at night, so need the code to recognise this and cease from 7pm to 7am.
What I have so far:
Arduino Uno
The actual physical feeding side is pretty much sorted - 2x 6v motors (1 dispenser, 1 spreader) run off a 2 relay module. Each motor has its own manual pot at this stage to get the delivery right. These will operate and shut down at the same time to get the feed to the fish. Easy enough to do on a short relay test sketch and works fine, but need to tie into the 'alarm timing' bit.
1 x DS3232 RTC
which works fine as a clock. I have run the test sketch and all is ok.
Ordered a couple of DS1307 RTC's just to cover my bases (not yet arrived).
What I would like to know:
Is it possible to change the specs of the TimeAlarm.h library to include 36 odd alarms per day or will I be pushing things to far? I have read the links to doing this (i.e increasing from 6 alarms) but this is my first crack at programming anything so do not want to change things that are just going to make more of a mess.
Is it possible to 'start' an alarm 'window' at 7am and 'end' the alarm window at 7pm everyday?
The closest sketch I have found to doing this using an RTC is
What are your thoughts on doing it this way?
Any help kindly appreciated.
Thanks