- How do I code the pump to run at 60% all day and 100% betwen 8pm and 9pm?
How do I code xport 6 on expasion relay to come on if T3 is lower tha 78 and off once it is above 78.5?
Thanks
Code for DC pump on ato lowpin/Temperature code
-
ganjero
- Posts: 145
- Joined: Fri Jul 05, 2013 5:29 am
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Code for DC pump on ato lowpin/Temperature code
Try this:
Code: Select all
if (hour()==8)
ReefAngel.DCPump.Speed=100;
else
ReefAngel.DCPump.Speed=60;
if (ReefAngel.Params.Temp[T3_PROBE]<780) ReefAngel.Relay.On(Box1_Port6);
if (ReefAngel.Params.Temp[T3_PROBE]>785) ReefAngel.Relay.Off(Box1_Port6);
Roberto.
-
ganjero
- Posts: 145
- Joined: Fri Jul 05, 2013 5:29 am
-
ganjero
- Posts: 145
- Joined: Fri Jul 05, 2013 5:29 am
Re: Code for DC pump on ato lowpin/Temperature code
if i'm using the dc pump would this be correct to run at 100% between 8pm and 9pm, and the rest of the day at 70%?
Thanks
Code: Select all
if (hour()==8)
analogWrite(lowATOPin,100*2.55);
else
analogWrite(lowATOPin,70*2.55);