Page 1 of 1

peristalic dosing pump

Posted: Sat Feb 04, 2012 5:04 pm
by duck
just getting everything mounted and float switches soldered up. I gotta glue some acrylic for mounts, but Im into dabbling with the code etc. Im getting there, Ill post the whole thing when I get it together. I want to turn on a relay for X minutes every Y minutes throughout the day? any ideas?

also how would you know when you cut and past from others examples, what features you would include in the features.h??

Re: peristalic dosing pump

Posted: Sat Feb 04, 2012 5:46 pm
by rimai
Try this:

Code: Select all

if (now()%3600<300) ReefAngel.Relay.On(Port1); else ReefAngel.Relay.Off(Port1);
3600 is your Y in seconds and 300 is you X in seconds.

Re: peristalic dosing pump

Posted: Sat Feb 04, 2012 6:45 pm
by binder
duck wrote:also how would you know when you cut and past from others examples, what features you would include in the features.h??
Read through the "master" features.h file OR read the descriptions inside RAGen.
https://github.com/curtbinder/ReefAngel ... Features.h

That should give you a better idea about what features are available and how they are used.

Re: peristalic dosing pump

Posted: Sat Feb 04, 2012 8:01 pm
by duck
awesome, gunna try it out thanks