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??
peristalic dosing pump
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: peristalic dosing pump
Try this:
3600 is your Y in seconds and 300 is you X in seconds.
Code: Select all
if (now()%3600<300) ReefAngel.Relay.On(Port1); else ReefAngel.Relay.Off(Port1);
Roberto.
-
binder
- Posts: 2865
- Joined: Fri Mar 18, 2011 6:20 pm
- Location: Illinois
- Contact:
Re: peristalic dosing pump
Read through the "master" features.h file OR read the descriptions inside RAGen.duck wrote:also how would you know when you cut and past from others examples, what features you would include in the features.h??
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
awesome, gunna try it out thanks
