Red Sea Max 500
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
Red Sea Max 500
I have an iPhone. We need a primer with all the http commands
I tried to look at the cpp file the other day but couldn't make heads or tails.
I tried to look at the cpp file the other day but couldn't make heads or tails.
Re: Red Sea Max 500
Check this out: http://forum.reefangel.com/viewtopic.php?f=7&t=1541lnevo wrote:I have an iPhone. We need a primer with all the http commands
I tried to look at the cpp file the other day but couldn't make heads or tails.
Re: Red Sea Max 500
Can we get a value from MoonPhaseLabel instead of MoonPhase()? I tried without any luck.
Instead of the raw number, if the Label is 'Full Moon' I'd like my other LED moonlights to be on with the dimmable lights.
Instead of the raw number, if the Label is 'Full Moon' I'd like my other LED moonlights to be on with the dimmable lights.
Re: Red Sea Max 500
Nothing? No MoonPhaseLabel function?
Currently I have it set for >70. But I'm not sure if that will always be around the value for full moon.
Currently I have it set for >70. But I'm not sure if that will always be around the value for full moon.
Re: Red Sea Max 500
The math is tricky and I know I'm having trouble reading it... but it seems the result from MoonPhase should be able to tell you if it's full moon or not. I just don't know where the cut off is
Maybe someone who can read the math better can tell you what the minimum "Full Moon" value is...
I can't paste you the custom function while I'm at work but basically I would change the function from char *MoonPhaseLabel() to int isFullMoon() and then in the if block toward the bottom, I would replace the return "Full Moon" to return 0 and make the rest an else return 1. Then you could do an if (isFullMoon()) Turn on my lights;
Here's the code for the MoonPhaseLabel() function
http://www.easte.net/RA/html/_globals_8 ... tml#l00135
I can help you with the code replacement later tonight if you need assistance...
Maybe someone who can read the math better can tell you what the minimum "Full Moon" value is...
I can't paste you the custom function while I'm at work but basically I would change the function from char *MoonPhaseLabel() to int isFullMoon() and then in the if block toward the bottom, I would replace the return "Full Moon" to return 0 and make the rest an else return 1. Then you could do an if (isFullMoon()) Turn on my lights;
Here's the code for the MoonPhaseLabel() function
http://www.easte.net/RA/html/_globals_8 ... tml#l00135
I can help you with the code replacement later tonight if you need assistance...
Re: Red Sea Max 500
So the full moon value changes from full moon to full moon? I think last full moon was around 76 at the peak. I figured it would be 100 each full moon peak.
Basically I have some dark spots in the tank, so when its a full moon, I want my stock moonlights on for the whole night.
I think I will need help with the code. I am guessing I'd have to change the date to a full moon date to do the testing without waiting for the next full moon.
Basically I have some dark spots in the tank, so when its a full moon, I want my stock moonlights on for the whole night.
I think I will need help with the code. I am guessing I'd have to change the date to a full moon date to do the testing without waiting for the next full moon.
Re: Red Sea Max 500
The value doesn't change. But there isn't "one" value for a full moon. The MoonPhaseLabel function looks at the calculation in variable V and if it's between a range then it says "Full Moon" The problem is I don't know what the equates to when it's in the MoonPhase function which returns 0-255 (or 0-100%) for the PWM port...
If you can read the function and figure out the math then the number should be clear...
Otherwise we can modify the moonphase lablel function to just return true or false if it's a Full Moon or not. And you can use that result to decide whether to turn on the lights or not. If you want to use MoonPhase which would be the easiest way, we just need to figure out what values make the lable function return "Full Moon"
If you can read the function and figure out the math then the number should be clear...
Otherwise we can modify the moonphase lablel function to just return true or false if it's a Full Moon or not. And you can use that result to decide whether to turn on the lights or not. If you want to use MoonPhase which would be the easiest way, we just need to figure out what values make the lable function return "Full Moon"
Re: Red Sea Max 500
You can also just change the dates back to before it was full moon and see what the number was when it switches the label... that would probably be the quickest method. 70 will probably be a good number. Personally, I would leave it at 70 for now and next time your RA switches to "Full Moon" you can see what the value is and change your code. One thing to keep in mind is that Full Moon is not just one night... so you may actually want to leave 70 as that may be when the moon is fullest..
Re: Red Sea Max 500
OK, tested the full moon value last night. The lowest value with the label being full moon is 69. So that's what I set it to. Waiting for the 24 to arrive so I can see if it's working properly.
Re: Red Sea Max 500
ok, so the moonphase thing really isn't working right. If I let the light schedule go on its own the moonphase statement comes on at 12am. But it should be on at 10p. If I manually toggle box1_port4 on and then auto, it comes on. I think its just the change over from the RSM Evening line.
Code: Select all
// RSMLED Moonlight Schedule
if (hour()>=6 && hour()<=10) ReefAngel.StandardLights( Box1_Port4,6,0,10,0 ); //RSMLED Morning 6a-10a
else if(hour()>=20 && hour()<=22) ReefAngel.StandardLights( Box1_Port4,20,0,22,0 ); //RSMLED Evening 8p-10p
else if(hour()>=22 || hour()<=4) if (MoonPhase()>=69) ReefAngel.StandardLights( Box1_Port4,22,0,4,0 ); //RSMLED on for Full Moon 10p-4a
Re: Red Sea Max 500
Did the original code I posted work?
You cannot leave a gap in the hours or you will need to add another "else" statement to complete the unused hours.
Also, if the hour is 22, you have 2 valid options and the last one is the one that will be higher priority.
You cannot leave a gap in the hours or you will need to add another "else" statement to complete the unused hours.
Also, if the hour is 22, you have 2 valid options and the last one is the one that will be higher priority.
Roberto.