Page 2 of 2
Re: Dimmable Lunar Hub
Posted: Sat Mar 22, 2014 5:19 am
by Sacohen
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.
Re: Dimmable Lunar Hub
Posted: Sat Mar 22, 2014 8:06 am
by rimai
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:
Code: Select all
ReefAngel.PWM.SetChannel( 5, MoonPhase()/2 );
This will cut down the intensity by 2. Personally, I divide by a factor of 10.
Re: Dimmable Lunar Hub
Posted: Sat Mar 22, 2014 8:08 am
by Sacohen
10 wow that's a lot.
Sent from my HTC One VX using Tapatalk
Re: Dimmable Lunar Hub
Posted: Sat Mar 22, 2014 8:10 am
by rimai
Yeah... I just like a very dim and faint light.
Re: Dimmable Lunar Hub
Posted: Sun Mar 23, 2014 5:56 am
by Sacohen
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.

Re: Dimmable Lunar Hub
Posted: Sun Mar 23, 2014 1:11 pm
by Sacohen
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() );
Re: Dimmable Lunar Hub
Posted: Sun Mar 23, 2014 1:27 pm
by rimai
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);
Re: Dimmable Lunar Hub
Posted: Sun Mar 23, 2014 1:28 pm
by rimai
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) );
Re: Dimmable Lunar Hub
Posted: Sun Mar 23, 2014 1:38 pm
by Sacohen
Thanks Roberto.
Sent from my HTC One VX using Tapatalk
Re: Dimmable Lunar Hub
Posted: Thu May 29, 2014 6:14 pm
by lnevo
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.
