How to set feed mode time?

Do you have a question on how to do something.
Ask in here.
Post Reply
Martinkimae
Posts: 7
Joined: Fri May 02, 2014 2:19 am

How to set feed mode time?

Post by Martinkimae »

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
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: How to set feed mode time?

Post by lnevo »

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.
Martinkimae
Posts: 7
Joined: Fri May 02, 2014 2:19 am

Re: How to set feed mode time?

Post by Martinkimae »

Think you very much. I Will try this.
Martinkimae
Posts: 7
Joined: Fri May 02, 2014 2:19 am

Re: How to set feed mode time?

Post by Martinkimae »

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
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: How to set feed mode time?

Post by lnevo »

I made a mistake...hour should be 15 for 3pm.

Yes it will finish in 15 minutes on its own.
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: How to set feed mode time?

Post by cosmith71 »

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
Martinkimae
Posts: 7
Joined: Fri May 02, 2014 2:19 am

Re: How to set feed mode time?

Post by Martinkimae »

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
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: How to set feed mode time?

Post by cosmith71 »

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
Martinkimae
Posts: 7
Joined: Fri May 02, 2014 2:19 am

Re: How to set feed mode time?

Post by Martinkimae »

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.
anderzon_
Posts: 67
Joined: Sun Oct 27, 2013 11:35 am

Re: How to set feed mode time?

Post by anderzon_ »

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?
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: How to set feed mode time?

Post by binder »

anderzon_ wrote: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?
Yep, certainly can. Just duplicate the code and change the time it checks for.

As for the pumps being turned down to a different speed (other than 0), that is simple to do. If you are using the DCPump class and have the pumps controlled via the PWM channels, you will just need to add this line to the setup (it probably already exists or something like it):

Code: Select all

// Set pump speed during feeding mode
ReefAngel.DCPump.FeedingSpeed = 20;
anderzon_
Posts: 67
Joined: Sun Oct 27, 2013 11:35 am

Re: How to set feed mode time?

Post by anderzon_ »

Thank you. I will try this :D
Post Reply