Page 1 of 1

PWM Fans with Reef Angel.

Posted: Wed Apr 25, 2012 8:36 pm
by abhi_123
Hi,

I am planning to use pwm fanswith the help of pwm expansion module which i will be getting soon :D

I will try to use 1 fan to check the temp of led heatsink & other one to control the temp of tank as i m living at place where peak summer temp touches 40 degrees & u cant control the heat with chiller too.

Anyone using pwm fans wats the performance of fan with Angel?

Re: PWM Fans with Reef Angel.

Posted: Thu Apr 26, 2012 12:44 pm
by abhi_123
Bump.

Ok. Wat else can we do with pwm signals other than dimming leds. I m having 5 ports of my pwm module jobless.

Re: PWM Fans with Reef Angel.

Posted: Thu Apr 26, 2012 1:45 pm
by rimai
I use it for moonlights, main lights, fan and blowers.
The fan works at 100% during my photo period to get fresh air inside the canopy and remove the hot air coming from the halide. It works at 10% otherwise, mostly to prevent moisture build-up inside the canopy.
The blowers turn on at 30% or 40% (can't remember) and vary their speed according to display temperature.
As T1 increases, so does the blowers speed. I use 2 of them pointing to water surface.
At 100%, they are very loud. Good thing I can vary speed :)

Re: PWM Fans with Reef Angel.

Posted: Sun Apr 29, 2012 8:19 am
by binder
Here's just a quick sample / idea of how you could do this.

Code: Select all

if ( ReefAngel.Params.Temp[T1_PROBE] > 800 )
	// above 80.0
	ReefAngel.PWM.SetChannel(4, 25);  // set channel 4 to 25%
else if ( ReefAngel.Params.Temp[T1_PROBE] > 810 )
	// above 81.0
	ReefAngel.PWM.SetChannel(4, 50);  // set channel 4 to 50%
else if ( ReefAngel.Params.Temp[T1_PROBE] > 820 )
	// above 82.0
	ReefAngel.PWM.SetChannel(4, 75);  // set channel 4 to 75%
else if ( ReefAngel.Params.Temp[T1_PROBE] > 830 )
	// above 83.0
	ReefAngel.PWM.SetChannel(4, 100);  // set channel 4 to 100%
else
	ReefAngel.PWM.SetChannel(4, 0);  // set channel 4 to 0%
I'm sure there are other ways of gradually increasing and decreasing the fan speed. This is just a simple way to do it. As the temperature gradually rises over 80.0, the fan speed jumps up 25% until it tops out at 100%.

Re: PWM Fans with Reef Angel.

Posted: Sun Apr 29, 2012 8:23 am
by rimai
I use this:

Code: Select all

  BlowerSpeed=map(ReefAngel.Params.Temp[T1_PROBE],772,800,30,100); // Calculate Blower speed
  BlowerSpeed=constrain(BlowerSpeed,0,100);

Re: PWM Fans with Reef Angel.

Posted: Sun Apr 29, 2012 8:54 am
by abhi_123
rimai wrote:I use this:

Code: Select all

  BlowerSpeed=map(ReefAngel.Params.Temp[T1_PROBE],772,800,30,100); // Calculate Blower speed
  BlowerSpeed=constrain(BlowerSpeed,0,100);
what values 772,800,30,100 are for?

Re: PWM Fans with Reef Angel.

Posted: Sun Apr 29, 2012 10:27 am
by rimai
simple interpolation values.
from 77.2F to 80.0F and 30% to 100%

Re: PWM Fans with Reef Angel.

Posted: Sun Apr 29, 2012 10:59 am
by abhi_123
Alright what does 0 100 stands for than? Blower speed?

Re: PWM Fans with Reef Angel.

Posted: Sun Apr 29, 2012 11:31 am
by rimai

Re: PWM Fans with Reef Angel.

Posted: Sat May 12, 2012 5:47 am
by sebimme
roberto, using your string as I can set the port from which the PWM signal must go out?

Re: PWM Fans with Reef Angel.

Posted: Sat May 12, 2012 8:11 am
by rimai
Yes, you can use any channel.
The variable BlowerSpeed will have a value from 30 to 100, then you can use:

Code: Select all

ReefAngel.PWM.SetChannel(0,BlowerSpeed);