pwm question

Do you have a question on how to do something.
Ask in here.
Post Reply
grafxalien
Posts: 51
Joined: Wed Mar 28, 2012 1:44 pm

pwm question

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

Re: pwm question

Post 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 :)
Roberto.
grafxalien
Posts: 51
Joined: Wed Mar 28, 2012 1:44 pm

Re: pwm question

Post by grafxalien »

thanks for the quick reply! I think i may be the only person alive now with a non-smart phone haha.
Post Reply