Forum Software Ferduino code Night mode for wave maker

Night mode for wave maker  [SOLVED]


Post Number:#1 Post Tue May 20, 2014 3:01 pm
Posts: 92
Topics: 10
Solve rating: 0
Joined: Sat May 17, 2014 9:03 am
Topics: 10
Age: 43
Gender: None specified
National Flag:
France
HI L-)
I wanted to know if there was an automatic night mode for the wave maker with timer or light sensor ? :-?

Thanks

Post Number:#2 Post Tue May 20, 2014 3:41 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

On moment this functions not exist.

You can add this function is very simple.

If you want reduce the power when all day lights are OFF.

Go to tab "Wavemaker" and find:

   
analogWrite(wavemaker1, Pump1PWM);
analogWrite(wavemaker2, Pump2PWM);


Replace with:

   
  if((bled_out == 0) && (wled_out == 0) && (rbled_out  == 0) && (rled_out == 0) && (uvled_out == 0))
  {
  analogWrite(wavemaker1, int(Pump1PWM * POWER));
  analogWrite(wavemaker2, int(Pump2PWM * POWER));
  }
  else
  {
  analogWrite(wavemaker1, Pump1PWM);
  analogWrite(wavemaker2, Pump2PWM);   
  }


Where "POWER" is the value to reduce.

Example if you want reduce to 50% use:

  analogWrite(wavemaker1, int(Pump1PWM * 0.50));
  analogWrite(wavemaker2, int(Pump2PWM * 0.50));


Best regards
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#3 Post Tue May 20, 2014 5:00 pm
Posts: 92
Topics: 10
Solve rating: 0
Joined: Sat May 17, 2014 9:03 am
Topics: 10
Age: 43
Gender: None specified
National Flag:
France
Great ! ^:)^

Thank you for this additional code to an essential function for me with my 4 pumps wp60 Jebao.

I Understand That You very well follow the project !!

thank you for all

Post Number:#4 Post Tue May 20, 2014 5:02 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

You're welcome!
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest

cron