Dim lights on overheat?

Do you have a question on how to do something.
Ask in here.
Post Reply
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Dim lights on overheat?

Post 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
User avatar
DrewPalmer04
Posts: 818
Joined: Tue May 29, 2012 2:12 pm
Location: Christopher, IL

Re: Dim lights on overheat?

Post 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?
Out for now...but not over.

VISIT: Ethernet Module/Wifi Alternative
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Dim lights on overheat?

Post by cosmith71 »

LED's, standard ports, 83 degrees F, and dim daylight and actinic to 20% (possibly to 0).

Thanks,

--Colin
User avatar
DrewPalmer04
Posts: 818
Joined: Tue May 29, 2012 2:12 pm
Location: Christopher, IL

Re: Dim lights on overheat?

Post 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?
Out for now...but not over.

VISIT: Ethernet Module/Wifi Alternative
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Dim lights on overheat?

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

Re: Dim lights on overheat?

Post 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().
Roberto.
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Dim lights on overheat?

Post by cosmith71 »

Works great, Roberto!

--Colin
User avatar
DrewPalmer04
Posts: 818
Joined: Tue May 29, 2012 2:12 pm
Location: Christopher, IL

Re: Dim lights on overheat?

Post by DrewPalmer04 »

Sorry I fell asleep when you posted back :( lol glad it works for you
Out for now...but not over.

VISIT: Ethernet Module/Wifi Alternative
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Dim lights on overheat?

Post by cosmith71 »

No problem. Now, if I only hadn't blown out my dimmer circuit. Cracked the op-amp right down the middle. :(

--Colin
User avatar
DrewPalmer04
Posts: 818
Joined: Tue May 29, 2012 2:12 pm
Location: Christopher, IL

Re: Dim lights on overheat?

Post by DrewPalmer04 »

Swap it out. LM358
Out for now...but not over.

VISIT: Ethernet Module/Wifi Alternative
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Dim lights on overheat?

Post by cosmith71 »

Already ordered. :)
User avatar
DrewPalmer04
Posts: 818
Joined: Tue May 29, 2012 2:12 pm
Location: Christopher, IL

Re: Dim lights on overheat?

Post by DrewPalmer04 »

Sweetness. Hopefully that's all that got damaged on the voltage 20 car pile up lol.
Out for now...but not over.

VISIT: Ethernet Module/Wifi Alternative
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Dim lights on overheat?

Post by cosmith71 »

So part came in, replaced it, and all is well.

If anyone needs a LM358, I ordered some extra. :D

--Colin
User avatar
DrewPalmer04
Posts: 818
Joined: Tue May 29, 2012 2:12 pm
Location: Christopher, IL

Re: Dim lights on overheat?

Post by DrewPalmer04 »

cosmith71 wrote:So part came in, replaced it, and all is well.

If anyone needs a LM358, I ordered some extra. :D

--Colin

Lol. I ALWAYS need more components! Hahaha.
Out for now...but not over.

VISIT: Ethernet Module/Wifi Alternative
Post Reply