Page 1 of 1

pwm question

Posted: Tue Apr 24, 2012 2:54 pm
by grafxalien
quick question about the standard pwm coding. The code i am using is below. Is there a way to control the peak daylight and actinic value from the client software? Or do i have to manually code the max values if i want to change them? thanks

Code: Select all

ActinicPWMValue=PWMSlope(10,00,22,15,0,70,120,ActinicPWMValue);
    DaylightPWMValue=PWMSlope(10,00,22,15,0,40,180,DaylightPWMValue);
    

Re: pwm question

Posted: Tue Apr 24, 2012 3:51 pm
by rimai

Code: Select all

ActinicPWMValue=PWMSlope(10,00,22,15,0,InternalMemory.LEDPWMActinic_read(),120,ActinicPWMValue);
DaylightPWMValue=PWMSlope(10,00,22,15,0,InternalMemory.LEDPWMDaylight_read(),180,DaylightPWMValue);
If you have Android, you can actually change start %, end % and duration and you need to use this:

Code: Select all

ReefAngel.PWM.ActinicPWMSlope();
ReefAngel.PWM.DaylightPWMSlope();
ActinicPWMValue=ReefAngel.PWM.GetActinicValue();
DaylightPWMValue=ReefAngel.PWM.GetDaylightValue();
This will use the same schedule as the StandardLights() and use the memory locations:
PWM Slope Daylight Start %
PWM Slope Daylight End %
PWM Slope Daylight Duration
PWM Slope Actinic Start %
PWM Slope Actinic End %
PWM Slope Actinic Duration
This gives you total control from your phone :)

Re: pwm question

Posted: Tue Apr 24, 2012 3:57 pm
by grafxalien
thanks for the quick reply! I think i may be the only person alive now with a non-smart phone haha.