Page 2 of 2

Re: PWMSmoothRampHighRes

Posted: Tue Apr 07, 2015 4:42 am
by cosmith71
Here's the chart from last night. The lights should start dimming at 2100. Ignore the dips earlier. That was cloud code that I disabled just to make sure it wasn't interfering.

http://forum.reefangel.com/status/chart ... lter=pwme1
Reef Angel Web Chart PWME1.jpg
Reef Angel Web Chart PWME1.jpg (17.54 KiB) Viewed 3728 times
Interestingly, the blues on channel 0 seem to be working correctly.

http://forum.reefangel.com/status/chart ... lter=pwme0
Reef Angel Web Chart PWME0.jpg
Reef Angel Web Chart PWME0.jpg (15.99 KiB) Viewed 3728 times
Here's the lighting control code:

Code: Select all

// Cloud/lightning lighting control
    FireInTheHole=false;
    ReefAngel.PWM.SetChannelRaw(0,PWMSmoothRampHighRes(9,30,22,30,0,InternalMemory.read(Mem_B_SlopeEndBlue),60,0));
    DaylightPWMValue=PWMSmoothRampHighRes(10,30,22,0,0,InternalMemory.read(Mem_B_SlopeEndWhite),60,0);
    //if (!powerOutage) CheckCloud();
    if (!FireInTheHole) ReefAngel.PWM.SetChannelRaw(1,DaylightPWMValue);
I'm going to change that mess to this just to make sure.

Code: Select all

ReefAngel.PWM.SetChannelRaw(0,PWMSmoothRampHighRes(9,30,22,30,0,70,60,0));
ReefAngel.PWM.SetChannelRaw(1,PWMSmoothRampHighRes(10,30,22,0,0,75,60,0));