PDA

View Full Version : Lunar SIM Dawk/Dusk Simulation


RogersCG
01/09/2008, 09:04 AM
I am curious how something works with the Lunar SIM. In the following thread you stated "An added feature will be dawn and dusk simulation as well."

Could you expain to me how this works and how to implement it in my programming (once I get one!)...


http://www.reefcentral.com/forums/showthread.php?s=&threadid=954793

Thanks!!
Chris

clp
01/09/2008, 12:55 PM
You can make the lunar lights come on before sunrise, and after sunset with something like this:

If Sun 000/000 Then LT1 ON
If Sun 060/-060 Then LT2 ON
If Sun -30/030 Then DAY ON // dummy timer name.
If Moon 000/00 Then LUN ON
If Timer DAY = ON Then LUN ON

Where LT1 & LT2 are your main lights, and LUN is your lunar light. In this example the lunar lights will turn on 30 minutes before sunrise, and off 30 minutes after sunset. They will also turn on at the appropriate rise/set times of the moon.

Curt

RogersCG
01/10/2008, 11:49 PM
Thanks Curt. I've been trying this code and it seems to work pretty well... The only thing I've noticed it the moon lights stay on all day when the regular nights are on.

Do I have something incorrect in my code here?

If Sun 000/000 Then LT1 ON
If Moon 000/000 Then LUN ON
If Sun -030/030 Then DAY ON
If Timer DAY = ON Then LUN ON

kenargo
01/11/2008, 01:17 AM
The last line should have been:

If Timer DAY = ON Then LUN OFF

Another way would be to turn the moon of when the lights are on like this:


If Sun 000/000 Then LT1 ON
If Sun 060/-060 Then LT2 ON
If Moon 000/00 Then LUN ON
If Timer LT1 = ON Then LUN OFF

clp
01/11/2008, 12:34 PM
I wrote a program that would guarantee that the LEDs were on for dusk and dawn. I didn't care if the LEDs were also on during the day as the power consumption is neglible. If you want to LEDs to be on for dawn/dusk, and off when the main light is on then use:

Sun 000/000 Then LT1 ON
If Moon 000/000 Then LUN ON
If Sun -030/030 Then DAY ON
If Timer DAY = ON Then LUN ON
If Timer LT1 = ON Then LUN OFF

Curt