How to set feed mode time?

Do you have a question on how to do something.
Ask in here.

Posts: 7
Joined: Fri May 02, 2014 2:19 am
PostPosted: Thu Jul 31, 2014 11:02 am
Hello.
I would like to set the aquarium in to feed mode at 13:00 pm every day so i can use a automtic feeder at that time. The feeder Will go on batteris and should not be coded.

I'm new with reefangel and got it from an aquarium I bought second hand. Im very pleased with it.
I have learnd to change the dosing and temperature settings but thats as far as I can do.

Can someone please help me with the code?
User avatar
Posts: 5343
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Thu Jul 31, 2014 12:40 pm
I'm pretty sure this is the code you'll need...

Code: Select all
if(hour()==15 && minute()==0 && second()==0) ReefAngel.FeedingModeStart();


You can put it in the loop() function in between the comments that say to put your custom code here.

Posts: 7
Joined: Fri May 02, 2014 2:19 am
PostPosted: Thu Jul 31, 2014 12:59 pm
Think you very much. I Will try this.

Posts: 7
Joined: Fri May 02, 2014 2:19 am
PostPosted: Thu Jul 31, 2014 1:35 pm
if(hour()==13 && minute()==0 && second()==0) ReefAngel.FeedingModeStart();

Is this right? feed mode start at 13:00 every day
Does feedingmode end automatically after 15 minutes?
I found were I should paste it in the arduino file.
User avatar
Posts: 5343
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Thu Jul 31, 2014 1:50 pm
I made a mistake...hour should be 15 for 3pm.

Yes it will finish in 15 minutes on its own.
User avatar
Posts: 1426
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Thu Jul 31, 2014 3:12 pm
What kind of feeder are you using? I saw one at Petco for $20 today and I was thinking of doing the same thing. Glad you asked how to code it!

--Colin

Posts: 7
Joined: Fri May 02, 2014 2:19 am
PostPosted: Fri Aug 01, 2014 5:55 am
I will use a Eheim 3581 automatic feeder on batteries and it will not be coded with reefangel.
I wondering if I can put it in the returnpart of the sump so I wont have the feeder visible in the display tank?
And if I want additional feeding times programmed i could just copy and change the time?
Im from Sweden and dont think we have that feeder in retail store and its the first time I heard of it.
User avatar
Posts: 1426
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Fri Aug 01, 2014 5:57 am
Yes, you can just copy and change the time.

Do you shut off the return pump as part of feeding mode? If you do, then it won't do much good to put the feeder over the sump.

I ordered an Eheim 3581. It was almost the same price and much better. :)

--Colin

Posts: 7
Joined: Fri May 02, 2014 2:19 am
PostPosted: Fri Aug 01, 2014 6:04 am
the code works great! thank you very much for the quick response.
no my return pump stays on in feeding mode so i will try feeding in the sump.

Posts: 69
Joined: Sun Oct 27, 2013 11:35 am
PostPosted: Wed Feb 28, 2018 12:59 pm
Planing to use this code but wonder if its possible to do this twice a day with differnt times? And if it is possible to just slow down the pumps that are controlled by the dimming ports? For example during feeding the pumps just work on 20% for 15 minutes?
Next

Return to How do I code ...

Who is online

Users browsing this forum: No registered users and 1 guest