Page 1 of 1

LED lighting

Posted: Thu Oct 04, 2012 10:47 pm
by stevengreen2
What is wrong with my code. I generated this from the wizard. It's 10:45PM and My Channel 0 and Channel 1 are at full strength but the Reef Angel LCD shows them at 15%.

Code: Select all

}

void loop()
{
    ReefAngel.StandardHeater( Port1,740,770 );
    ReefAngel.StandardLights( Port2,23,0,10,0 );
    ReefAngel.StandardFan( Port7,990,780 );
    ReefAngel.CO2Control( Port8,1000,647 );
    ReefAngel.PWM.SetChannel( 0, PWMSlope(9,0,21,0,15,100,60,15) );
    ReefAngel.PWM.SetChannel( 1, PWMSlope(10,0,20,0,15,75,60,15) );

Re: LED lighting

Posted: Fri Oct 05, 2012 8:13 am
by rimai
I don't think there is nothing wrong with the code.
Can you measure the voltage on the channels of the module without the LED drivers connected to it?

Re: LED lighting

Posted: Fri Oct 05, 2012 8:30 am
by stevengreen2
I just measured them both and they both show 1.5 DC.

Re: LED lighting

Posted: Fri Oct 05, 2012 8:39 am
by stevengreen2
Ok, I think I figured it out. I guess the starting of 15 also ends at 15. I thought that after the end time it would go to 0 and turn them off.

Re: LED lighting

Posted: Fri Oct 05, 2012 8:50 am
by rimai
Correct. It's a symmetrical slope.
You can output 0 if you want to.
The last 15 is what you want to output when it is not within the slope period.
If you want 0, just replace with 0.