Relay on delay

Request new hardware or ideas for the controller
Post Reply
bubbles
Posts: 50
Joined: Wed Feb 20, 2013 3:05 pm
Location: Auckland, NZ

Relay on delay

Post by bubbles »

Hi guys,

Just wondering if there's an API for setting a "on delay" for a given relay channel.

What I'd like to do is have my skimmer start say 60 seconds after switching it's channel on or more specifically when coming out of feed / water change mode. It's an insump model that's a little fussy about flow rate / height in the sump. The time delay gives the return enough time to get back to normal operation before the skimmer starts back up.

It would be quite elegant to be able to attach an arbitrary time delay to a given channel and have the rest of the system honor that as well.

Any thoughts?
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Relay on delay

Post by lnevo »

ReefAngel.Relay.DelayedOn(Port1,1); does just that, change the port to your skimmer port. You can increase the delay. I put one minute as per your post.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Relay on delay

Post by binder »

Yep, just like he lnevo said. The DelayedOn port works at controller startup and exiting both Feeding and Water Change modes.
Post Reply