Page 1 of 1

dimming control of LED using analog 0-10v

Posted: Wed Feb 29, 2012 10:28 am
by miked
I ordered my RA with the analog control. All code I seem to find is for the PWM control. Can anyone direct me to an analog example. this is what i am trying to do.

blue on 5% at 10am - linear ramp up to 75% at 1pm to 7pm - ramp down to off (0%) at 11pm
white on 5% at 12 pm - linear ramp up to 55% at 1pm to 7pm - ramp down to off (0%) at 9pm

I think that I am able to start at 5% because it is analog and the flickering effect should not occur. any input on this would be appreciated.

thanks

Re: dimming control of LED using analog 0-10v

Posted: Wed Feb 29, 2012 10:34 am
by rimai
The analog output will work with the PWM code.

Re: dimming control of LED using analog 0-10v

Posted: Wed Feb 29, 2012 10:36 am
by miked
Anyone have experience with the filckering issue using analog?

thanks roberto

Re: dimming control of LED using analog 0-10v

Posted: Wed Feb 29, 2012 11:28 am
by binder
I haven't noticed it at all. Although I don't and haven't paid attention to it closely to see if there was any flickering. I found that mine shutoff at like 5 or 6% and stay off down to 0%. I think others have reported some flickering but I do not recall. You could do a quick search on here and see what you come up with.

Re: dimming control of LED using analog 0-10v

Posted: Wed Feb 29, 2012 3:00 pm
by miked
will this code work as described below? start up at 10 am and shut down by 11pm for actinic (blues) and start up at 11am and shut down by 9pm for daylight (whites)?

ReefAngel.PWM.SetActinic(PWMSlope(10,0,23,0,5,75,180,5));
// Actinic PWM % starts raising from 5% to 75% within 180 minutes at 10:00am
// Actinic PWM % remains at 75% until 7:00pm
// Actinic PWM % starts lowering from 75% to 5% within 180 minutes at 7:00pm
ReefAngel.PWM.SetDaylight(PWMSlope(11,0,21,0,5,65,120,5));
// Daylight PWM % starts raising from 5% to 65% within 120 minutes at 11:00am
// Daylight PWM % remains at 65% until 7:00pm
// Daylight PWM % starts lowering from 65% to 5% within 120 minutes at 7:00pm

/*

Re: dimming control of LED using analog 0-10v

Posted: Wed Feb 29, 2012 3:40 pm
by rimai
Yeap :)

Re: dimming control of LED using analog 0-10v

Posted: Wed Feb 29, 2012 6:28 pm
by miked
sweet, I may get the hang of this yet