peristalic dosing pump

Do you have a question on how to do something.
Ask in here.
Post Reply
duck
Posts: 28
Joined: Tue Jan 24, 2012 4:12 pm

peristalic dosing pump

Post 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??
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: peristalic dosing pump

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

Re: peristalic dosing pump

Post 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.
duck
Posts: 28
Joined: Tue Jan 24, 2012 4:12 pm

Re: peristalic dosing pump

Post by duck »

awesome, gunna try it out thanks
Post Reply