Dimmable Lunar Hub
Re: Dimmable Lunar Hub
Got my lights hooked up and at 58% (today's moon phase) they are still brighter then my regular moonlights.
Also 2 lights work fine off of the 12 v Power Control Expansion.
Also 2 lights work fine off of the 12 v Power Control Expansion.
Re: Dimmable Lunar Hub
Yeah, those are pretty bright
It's too bright for my taste too.
You simply need to divide the value by a factor.
Something like this:
This will cut down the intensity by 2. Personally, I divide by a factor of 10.
It's too bright for my taste too.
You simply need to divide the value by a factor.
Something like this:
Code: Select all
ReefAngel.PWM.SetChannel( 5, MoonPhase()/2 );
Roberto.
Re: Dimmable Lunar Hub
10 wow that's a lot.
Sent from my HTC One VX using Tapatalk
Sent from my HTC One VX using Tapatalk
Re: Dimmable Lunar Hub
I actually like the way it looks. These light are more even then the other LED moonlights I had.
Before the light just kind of high lighted the tops of the rock work.
Before the light just kind of high lighted the tops of the rock work.
Re: Dimmable Lunar Hub
Can I use the PWN slope woth the MoonPhase?
Would the code be like this...
if ( hour()>=12 && hour()<22 )
ReefAngel.PWM.SetChannel( 5, 0 );
else
ReefAngel.PWM.SetChannel( 5, PWMSlope(21,0,11,0,0,100,60,0) MoonPhase() );
Would the code be like this...
if ( hour()>=12 && hour()<22 )
ReefAngel.PWM.SetChannel( 5, 0 );
else
ReefAngel.PWM.SetChannel( 5, PWMSlope(21,0,11,0,0,100,60,0) MoonPhase() );
Re: Dimmable Lunar Hub
Yes, but you are missing the *, which means times and also the /100
Code: Select all
if ( hour()>=12 && hour()<22 )
ReefAngel.PWM.SetChannel( 5, 0 );
else
ReefAngel.PWM.SetChannel( 5, PWMSlope(21,0,11,0,0,100,60,0) * MoonPhase() / 100);
Roberto.
Re: Dimmable Lunar Hub
Or you could also do this, which is basically the same thing:L
Code: Select all
if ( hour()>=12 && hour()<22 )
ReefAngel.PWM.SetChannel( 5, 0 );
else
ReefAngel.PWM.SetChannel( 5, PWMSlope(21,0,11,0,0,MoonPhase() ,60,0) );
Roberto.
Re: Dimmable Lunar Hub
Thanks Roberto.
Sent from my HTC One VX using Tapatalk
Sent from my HTC One VX using Tapatalk
Re: Dimmable Lunar Hub
Just got my new lunar modules. They are much better than the old ones. Not as bright but more more spread and a cooler blue.