How do I code automatic feeding?

Do you have a question on how to do something.
Ask in here.
Post Reply
alexwbush
Posts: 327
Joined: Tue Mar 22, 2011 12:45 am
Location: San Diego, CA

How do I code automatic feeding?

Post by alexwbush »

I am looking to add an automatic feeder... no not because I am lazy, but because I am trying to
1. be able to build consistency in my setup... isn't that why we have these controllers?
2. be able to leave the house for a week or more and not have to worry about tasking someone else to take care of my pets

Unfortunately I haven't found a good plug in feeder (please post if you've found one) to control with the RA, so for now I just want to program it to start feeding mode at a certain time (say 1900... 7pm). That way I can make my feeder feed at 1905. And then at 1915, back to normal operations.

Thoughts?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: How do I code automatic feeding?

Post by rimai »

All you have to do is trigger it so it executes the feeding mode code.

Code: Select all

  if (ScheduleTime(9,55,0)==ScheduleTime(hour(now()),minute(now()),second(now()))){
    ReefAngel.LCD.Clear(255,0,0,130,130);
    ReefAngel.SelectedMenu=0;
    delay(1000);
  }
The example code is attached.
Attachments
AutoFeeding.pde
(1.25 KiB) Downloaded 452 times
Roberto.
alexwbush
Posts: 327
Joined: Tue Mar 22, 2011 12:45 am
Location: San Diego, CA

Re: How do I code automatic feeding?

Post by alexwbush »

Nice! Thanks Roberto, I'll give it a shot. I need to pick up a feeder.
astralmind
Posts: 99
Joined: Fri Apr 01, 2011 10:53 am

Re: How do I code automatic feeding?

Post by astralmind »

alexwbush wrote:Nice! Thanks Roberto, I'll give it a shot. I need to pick up a feeder.
let us all know if you manage to find a good one, I've been looking myself but no success yet..
Post Reply