lunar hub is too bright

Expansion modules and attachments
Post Reply
Paulweck
Posts: 71
Joined: Fri Dec 28, 2012 2:26 pm

lunar hub is too bright

Post by Paulweck »

i have the lunar hub hooked up to my 90 gallon running on moon phase. im trying to turn down the intensity it about 75%. last might the moon phase was at 96% and it was way to bright for my liking. how can i turn them down?
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: lunar hub is too bright

Post by lnevo »

You could use the map command to set your own range.

So if you wanted 0-100% to be 0-75% instead you could do this..

int mp=map(MoonPhase(),0,100,0,75);

Then you can use the variable mp to set your channels to what you want.

ReefAngel.PWM.SetDaylight(mp);

I'm not sure the ports to use on the lunar hub :) So you can translate your code accordingly.
Paulweck
Posts: 71
Joined: Fri Dec 28, 2012 2:26 pm

Re: lunar hub is too bright

Post by Paulweck »

thanks for the reply lee. i will try this where do i add the new map function?
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: lunar hub is too bright

Post by lnevo »

Before you set the lunar hub and you'll need to change the argument where you set the lunar hub %
davaraj
Posts: 98
Joined: Sun Jul 21, 2013 8:18 am

Re: lunar hub is too bright

Post by davaraj »

Will the lunar dimmable module ramp down to 0%? It was at 4% last night. Today there is no light at all.
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: lunar hub is too bright

Post by rimai »

It's new moon :)
Roberto.
Post Reply