Dimmable Lunar Hub

Expansion modules and attachments
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Dimmable Lunar Hub

Post by lnevo »

The relay expansion dimming ports are non functional. You'll need to use the dimming module.
ishtak
Posts: 41
Joined: Wed Apr 25, 2012 3:50 am
Location: JHB, South Africa

Re: Dimmable Lunar Hub

Post by ishtak »

Thanks Lee .. guess its time to break out the soldering iron to make neat cable ends .. ;)

Sent from my GT-N7100 using Tapatalk 4
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 these be run from the Power Control Expansion or does it pull to much amps?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Dimmable Lunar Hub

Post by rimai »

You should be fine.
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 noticed that the PS that came with mine was 2A and I know the Power Control Expansion has a limit of 500ma.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Dimmable Lunar Hub

Post by rimai »

Oversized PS for when you want to connect a lot of moonlights to the module.
As long as you don't use too many moonlights connected to the hub, you are fine. I'd not go past 4 moonlights using the power control module.
Roberto.
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Dimmable Lunar Hub

Post by Sacohen »

OK. Thanks.
ishtak
Posts: 41
Joined: Wed Apr 25, 2012 3:50 am
Location: JHB, South Africa

Re: Dimmable Lunar Hub

Post by ishtak »

Guys,

Is there any additional code for the moonhub needed over this?

ReefAngel.PWM.SetChannel( 5, MoonPhase() );

My lights are constantly on .. They never seem to change strength? Would it make any difference if I'm using the first generation dimming module?
Image
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Dimmable Lunar Hub

Post by Sacohen »

Roberto had posted some code for that, but I can't remember where I saw it.
I'm going to need it too.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Dimmable Lunar Hub

Post by rimai »

It changes at midnight to follow the moon phase of the day.
If you want to turn them off at specific times, you need to tell the controller to turn it off.

Code: Select all

if ( hour()>=8 && hour()<20 )
ReefAngel.PWM.SetChannel( 5, 0 );
else
ReefAngel.PWM.SetChannel( 5, MoonPhase() );
Roberto.
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