PWM Fans with Reef Angel.

Expansion modules and attachments
Post Reply
abhi_123
Posts: 217
Joined: Tue Mar 20, 2012 8:34 am

PWM Fans with Reef Angel.

Post 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?
Image
abhi_123
Posts: 217
Joined: Tue Mar 20, 2012 8:34 am

Re: PWM Fans with Reef Angel.

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

Re: PWM Fans with Reef Angel.

Post 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 :)
Roberto.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: PWM Fans with Reef Angel.

Post 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%.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: PWM Fans with Reef Angel.

Post 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);
Roberto.
abhi_123
Posts: 217
Joined: Tue Mar 20, 2012 8:34 am

Re: PWM Fans with Reef Angel.

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

Re: PWM Fans with Reef Angel.

Post by rimai »

simple interpolation values.
from 77.2F to 80.0F and 30% to 100%
Roberto.
abhi_123
Posts: 217
Joined: Tue Mar 20, 2012 8:34 am

Re: PWM Fans with Reef Angel.

Post by abhi_123 »

Alright what does 0 100 stands for than? Blower speed?
Image
sebimme
Posts: 26
Joined: Sat Jan 07, 2012 12:56 am

Re: PWM Fans with Reef Angel.

Post by sebimme »

roberto, using your string as I can set the port from which the PWM signal must go out?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: PWM Fans with Reef Angel.

Post 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);
Roberto.
Post Reply