Dim lights on overheat?
- cosmith71
- Posts: 1432
- Joined: Fri Mar 29, 2013 3:51 pm
- Location: Oklahoma City
Dim lights on overheat?
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
Can someone point me in the right direction?
Thanks,
--Colin
- DrewPalmer04
- Posts: 818
- Joined: Tue May 29, 2012 2:12 pm
- Location: Christopher, IL
Re: Dim lights on overheat?
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?
- cosmith71
- Posts: 1432
- Joined: Fri Mar 29, 2013 3:51 pm
- Location: Oklahoma City
Re: Dim lights on overheat?
LED's, standard ports, 83 degrees F, and dim daylight and actinic to 20% (possibly to 0).
Thanks,
--Colin
Thanks,
--Colin
- DrewPalmer04
- Posts: 818
- Joined: Tue May 29, 2012 2:12 pm
- Location: Christopher, IL
Re: Dim lights on overheat?
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?
- cosmith71
- Posts: 1432
- Joined: Fri Mar 29, 2013 3:51 pm
- Location: Oklahoma City
Re: Dim lights on overheat?
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
Thanks,
--Colin
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Dim lights on overheat?
Try this:
Just make sure to place it after your PWM functions and before ShowInterface().
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);
}
Roberto.
- cosmith71
- Posts: 1432
- Joined: Fri Mar 29, 2013 3:51 pm
- Location: Oklahoma City
Re: Dim lights on overheat?
Works great, Roberto!
--Colin
--Colin
- DrewPalmer04
- Posts: 818
- Joined: Tue May 29, 2012 2:12 pm
- Location: Christopher, IL
Re: Dim lights on overheat?
Sorry I fell asleep when you posted back
lol glad it works for you
- cosmith71
- Posts: 1432
- Joined: Fri Mar 29, 2013 3:51 pm
- Location: Oklahoma City
Re: Dim lights on overheat?
No problem. Now, if I only hadn't blown out my dimmer circuit. Cracked the op-amp right down the middle. 
--Colin
--Colin
- DrewPalmer04
- Posts: 818
- Joined: Tue May 29, 2012 2:12 pm
- Location: Christopher, IL
Re: Dim lights on overheat?
Swap it out. LM358
- cosmith71
- Posts: 1432
- Joined: Fri Mar 29, 2013 3:51 pm
- Location: Oklahoma City
Re: Dim lights on overheat?
Already ordered. 
- DrewPalmer04
- Posts: 818
- Joined: Tue May 29, 2012 2:12 pm
- Location: Christopher, IL
Re: Dim lights on overheat?
Sweetness. Hopefully that's all that got damaged on the voltage 20 car pile up lol.
- cosmith71
- Posts: 1432
- Joined: Fri Mar 29, 2013 3:51 pm
- Location: Oklahoma City
Re: Dim lights on overheat?
So part came in, replaced it, and all is well.
If anyone needs a LM358, I ordered some extra.
--Colin
If anyone needs a LM358, I ordered some extra.
--Colin
- DrewPalmer04
- Posts: 818
- Joined: Tue May 29, 2012 2:12 pm
- Location: Christopher, IL
Re: Dim lights on overheat?
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.