Page 1 of 1
Dim lights on overheat?
Posted: Tue Apr 02, 2013 6:56 pm
by cosmith71
I would like to dim the lights on overheat (instead of using a port for my lights).
Can someone point me in the right direction?
Thanks,
--Colin
Re: Dim lights on overheat?
Posted: Tue Apr 02, 2013 7:40 pm
by DrewPalmer04
Are you using LEDs? Standard dimming ports or expansion? What temp to trigger the overheat? What value to dim to when there is an overheat?
Re: Dim lights on overheat?
Posted: Tue Apr 02, 2013 7:44 pm
by cosmith71
LED's, standard ports, 83 degrees F, and dim daylight and actinic to 20% (possibly to 0).
Thanks,
--Colin
Re: Dim lights on overheat?
Posted: Tue Apr 02, 2013 7:51 pm
by DrewPalmer04
Do you want it to be a true overheat flag or just > 83 for a temp probe? If just the temp probe which probe number?
Re: Dim lights on overheat?
Posted: Tue Apr 02, 2013 8:23 pm
by cosmith71
Hmmm, I would rather the lights came back on when the temp came down, so how about lights dim to 15% at T1 >= 83 degrees, and come back up at T1 <= 80?
Thanks,
--Colin
Re: Dim lights on overheat?
Posted: Tue Apr 02, 2013 10:30 pm
by rimai
Try this:
Code: Select all
static boolean overheat=false;
if (ReefAngel.Params.Temp[T1_PROBE]>=830) overheat=true;
if (ReefAngel.Params.Temp[T1_PROBE]<=800) overheat=false;
if (overheat)
{
ReefAngel.PWM.SetActinic(15);
ReefAngel.PWM.SetDaylight(15);
}
Just make sure to place it after your PWM functions and before ShowInterface().
Re: Dim lights on overheat?
Posted: Wed Apr 03, 2013 8:56 am
by cosmith71
Works great, Roberto!
--Colin
Re: Dim lights on overheat?
Posted: Thu Apr 04, 2013 7:51 am
by DrewPalmer04
Sorry I fell asleep when you posted back

lol glad it works for you
Re: Dim lights on overheat?
Posted: Thu Apr 04, 2013 8:10 am
by cosmith71
No problem. Now, if I only hadn't blown out my dimmer circuit. Cracked the op-amp right down the middle.
--Colin
Re: Dim lights on overheat?
Posted: Thu Apr 04, 2013 8:58 am
by DrewPalmer04
Swap it out. LM358
Re: Dim lights on overheat?
Posted: Thu Apr 04, 2013 9:00 am
by cosmith71
Already ordered.

Re: Dim lights on overheat?
Posted: Thu Apr 04, 2013 10:29 am
by DrewPalmer04
Sweetness. Hopefully that's all that got damaged on the voltage 20 car pile up lol.
Re: Dim lights on overheat?
Posted: Mon Apr 08, 2013 7:43 pm
by cosmith71
So part came in, replaced it, and all is well.
If anyone needs a LM358, I ordered some extra.
--Colin
Re: Dim lights on overheat?
Posted: Tue Apr 09, 2013 5:43 am
by DrewPalmer04
cosmith71 wrote:So part came in, replaced it, and all is well.
If anyone needs a LM358, I ordered some extra.
--Colin
Lol. I ALWAYS need more components! Hahaha.