rimai wrote:Use this:Code: Select all
if (hour()>=22 || hour()<=10) // Turn Moonlights on/off { ReefAngel.PWM.SetActinic(MoonPhase()); ReefAngel.PWM.SetDaylight(MoonPhase()); } else { ReefAngel.PWM.SetActinic(0); ReefAngel.PWM.SetDaylight(0); }
Red Sea Max 500
Re: Red Sea Max 500
I just noticed that the moonlights are still on at 10:30am. Without specifying the minute, I changed it to this: if (hour()>=22 || hour()<=9) // Turn Moonlights on/off
Red Sea Max 500
You could say hour()<10 also if you wanted it to read closer to your preference..either way same result.
Re: Red Sea Max 500
Yeah, that looks better. Thanks
Re: Red Sea Max 500
Is there a way to detect which moonphase is active? I would like to switch on my stock (non dimmable) LEDs on when the moonphase is Full Moon.
Re: Red Sea Max 500
MoonPhase() returns a value from 0 to 100.
You can do whatever you want with that value.
100 means full moon.
You can do whatever you want with that value.
100 means full moon.
Roberto.
Re: Red Sea Max 500
Here is my current Stock LED setup
Here is the line I added.
My Head Unit currently says Full Moon for MoonPhaseLabel(), and 69% for ReefAngel.PWM.GetActinicValue() reading. Not sure how I address the MoonPhase() current value.
Code: Select all
if (hour()<11) ReefAngel.StandardLights( Box1_Port4,8,0,11,0 ); //RSMLED Morning 8a-11a
else ReefAngel.StandardLights( Box1_Port4,19,0,22,0 ); //RSMLED Evening 7p-10p
Code: Select all
if (MoonPhase())>=100) ReefAngel.StandardLights( Box1_Port4,22,0,8,0 ); //RSMLED on for Full Moon
Re: Red Sea Max 500
Try this:
Code: Select all
if (MoonPhase())>50) ReefAngel.StandardLights( Box1_Port4,22,0,8,0 ); //RSMLED on for Full Moon
Roberto.
Re: Red Sea Max 500
Yeah I did try a lower value and it didn't help.
Sent from my SGH-I777 using Tapatalk 2
Sent from my SGH-I777 using Tapatalk 2
Re: Red Sea Max 500
While testing I modified the hours so it would work.
Sent from my SGH-I777 using Tapatalk 2
Sent from my SGH-I777 using Tapatalk 2
Re: Red Sea Max 500
I've got the MoonPhase line working now with the other 2 lines commented out. Now the PWM is 73%, so I guess in a few nights it will be at 100%? (This will be my first full moon with the controller setup, so I am assuming that's the case.)
Well I would still like to keep the Morning and Evening schedule. Would I need an if / else if / else to have all three lines work?
Well I would still like to keep the Morning and Evening schedule. Would I need an if / else if / else to have all three lines work?
Code: Select all
if (MoonPhase()>=90) ReefAngel.StandardLights( Box1_Port4,22,0,11,0 ); //RSMLED on for Full Moon
else if (hour()<11) ReefAngel.StandardLights( Box1_Port4,8,0,11,0 ); //RSMLED Morning 8a-11a
else ReefAngel.StandardLights( Box1_Port4,19,0,22,0 ); //RSMLED Evening 7p-10p
Re: Red Sea Max 500
So, you want the morning/evening schedule everyday and also moonlights when moon>90?
If so, try this:
If so, try this:
Code: Select all
if (hour()>=8 && hour()<11) ReefAngel.StandardLights( Box1_Port4,8,0,11,0 ); //RSMLED Morning 8a-11a
else if(hour()>=19 && hour()<22) ReefAngel.StandardLights( Box1_Port4,19,0,22,0 ); //RSMLED Evening 7p-10p
else if(hour()>=22 || hour()<8) if (MoonPhase()>=90) ReefAngel.StandardLights( Box1_Port4,22,0,11,0 ); //RSMLED on for Full Moon
Roberto.
Re: Red Sea Max 500
ok, great I will test to see if its working properly tonight.
Re: Red Sea Max 500
I changed the MoonPhase amount to 76 and tested it...Seemed to work last night and it's off today.
I am a bit confused though. This morning was the full moon, wouldn't the MoonPhase be 100 at that time?
Edit:
I just tested the overheat function. It worked, ports turned off like they should. But when the temperature went below the overheat temp the ports were not reactivated. Is the manual clear overheat our only option? Or is there a function to reactivate the ports?
I am a bit confused though. This morning was the full moon, wouldn't the MoonPhase be 100 at that time?
Edit:
I just tested the overheat function. It worked, ports turned off like they should. But when the temperature went below the overheat temp the ports were not reactivated. Is the manual clear overheat our only option? Or is there a function to reactivate the ports?
Re: Red Sea Max 500
Ok now moon phase is 72%. So yesterday was the first at 76%.
Sent from my SGH-I777 using Tapatalk 2
Sent from my SGH-I777 using Tapatalk 2
Re: Red Sea Max 500
Are there any negative effects to splicing two dimmable moon lights together? I think one more would give me better coverage.
Sent from my SGH-I777 using Tapatalk 2
Sent from my SGH-I777 using Tapatalk 2
Red Sea Max 500
I dont think the pwm ports have enough power to drive more than one moonlight module. Roberto can elaborate, but i think you'll need the dimming module to use more.
Re: Red Sea Max 500
And nothing can be done with the two PWM ports on the 2nd relay? There isn't a way to set those to moonphase too?
Re: Red Sea Max 500
Correct.... Only one RA dimmable moonlight can be plugged into the dimming port without some sort of booster.
The 2nd relay box is non-controllable and non-dimmable.
I'm designing a dimmable moonlight module, where you will be able to connect up to 4 dimmable moonlighs and use just a single port. Not yet prototyped... I'm waiting on the PCBs to get here and test it.
The 2nd relay box is non-controllable and non-dimmable.
I'm designing a dimmable moonlight module, where you will be able to connect up to 4 dimmable moonlighs and use just a single port. Not yet prototyped... I'm waiting on the PCBs to get here and test it.
Roberto.
Re: Red Sea Max 500
How come only the main relay can be controlled and dimmed?
Why can't they be addressed in some way? Just doesn't make sense to me that they are rendered useless (except at 100% brightness).
Why can't they be addressed in some way? Just doesn't make sense to me that they are rendered useless (except at 100% brightness).
Re: Red Sea Max 500
PWM is controlled by the head unit and not by the relay box.
The signals pass through the svga cable to the main relay box, but do not travel through the expansion bus.
The expansion bus is a 4 wire cable (USB), which can only carry VCC, GND, SDA and SCL signals to the expansion modules.
If you wish more dimming channels, there is the dimming expansion module that would give you an additional 6 channels.
The signals pass through the svga cable to the main relay box, but do not travel through the expansion bus.
The expansion bus is a 4 wire cable (USB), which can only carry VCC, GND, SDA and SCL signals to the expansion modules.
If you wish more dimming channels, there is the dimming expansion module that would give you an additional 6 channels.
Roberto.
Re: Red Sea Max 500
Each dimmable channel booster is capable of driving 40mA.
The spec of the dimmable moonlight is 25mA at 12VDC, but shouldn't be that much at a lower 10VDC of the dimming channel.
Putting 2 in each channel would probably max out that channel. You may still be able to drive 2 in each channel though, but that I never tried and you would need to test and make sure you don't drive more than 40mA or you will burn up the booster.
The spec of the dimmable moonlight is 25mA at 12VDC, but shouldn't be that much at a lower 10VDC of the dimming channel.
Putting 2 in each channel would probably max out that channel. You may still be able to drive 2 in each channel though, but that I never tried and you would need to test and make sure you don't drive more than 40mA or you will burn up the booster.
Roberto.
Re: Red Sea Max 500
Thanks for the detailed info on the PWM.
Re: Red Sea Max 500
The RSM moonlights were not shutting off. I had to add an = to the last hour value and it seems to have worked.
Also what about this?
Also what about this?
modulok wrote:I just tested the overheat function. It worked, ports turned off like they should. But when the temperature went below the overheat temp the ports were not reactivated. Is the manual clear overheat our only option? Or is there a function to reactivate the ports?
Re: Red Sea Max 500
Overheat and ATO are 2 flags that requires attention from the user....
I would not want it to turn itself back on after an overheat situation.
You shouldn't have an overheat unless there is something wrong and if there is something wrong, wouldn't you want to personally see what is wrong?
You can reset them with the android app or web browser though.
I would not want it to turn itself back on after an overheat situation.
You shouldn't have an overheat unless there is something wrong and if there is something wrong, wouldn't you want to personally see what is wrong?
You can reset them with the android app or web browser though.
Roberto.
Re: Red Sea Max 500
ATO Clear:lnevo wrote:Whats the method to clear from browser?
Code: Select all
http://IP:PORT/mt
Code: Select all
http://IP:PORT/mo
Re: Red Sea Max 500
Awesome. The android app can clear it for you if you want. It's under the Commands page.lnevo wrote:Cool then i can remove my mem trigger based method