Code for DC pump on ato lowpin/Temperature code

Do you have a question on how to do something.
Ask in here.
Post Reply
ganjero
Posts: 145
Joined: Fri Jul 05, 2013 5:29 am

Code for DC pump on ato lowpin/Temperature code

Post by ganjero »

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

Re: Code for DC pump on ato lowpin/Temperature code

Post by rimai »

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

Re: Code for DC pump on ato lowpin/Temperature code

Post by ganjero »

Thanks Roberto.
Image
ganjero
Posts: 145
Joined: Fri Jul 05, 2013 5:29 am

Re: Code for DC pump on ato lowpin/Temperature code

Post by ganjero »

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%?

Code: Select all

if (hour()==8)
              analogWrite(lowATOPin,100*2.55);
               else
              analogWrite(lowATOPin,70*2.55);
Thanks
Image
Post Reply