Dimmable Lunar Hub

Expansion modules and attachments
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Dimmable Lunar Hub

Post 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.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Dimmable Lunar Hub

Post 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.
Roberto.
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Dimmable Lunar Hub

Post by Sacohen »

10 wow that's a lot.

Sent from my HTC One VX using Tapatalk
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Dimmable Lunar Hub

Post by rimai »

Yeah... I just like a very dim and faint light.
Roberto.
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Dimmable Lunar Hub

Post 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.

Image
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Dimmable Lunar Hub

Post 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() );
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Dimmable Lunar Hub

Post 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);
Roberto.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Dimmable Lunar Hub

Post 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) );
Roberto.
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Dimmable Lunar Hub

Post by Sacohen »

Thanks Roberto.

Sent from my HTC One VX using Tapatalk
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Dimmable Lunar Hub

Post 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.

Image
Post Reply