LED lighting

New members questions
Post Reply
stevengreen2
Posts: 28
Joined: Thu Sep 27, 2012 11:02 pm
Location: Redding

LED lighting

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

Re: LED lighting

Post 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?
Roberto.
stevengreen2
Posts: 28
Joined: Thu Sep 27, 2012 11:02 pm
Location: Redding

Re: LED lighting

Post by stevengreen2 »

I just measured them both and they both show 1.5 DC.
stevengreen2
Posts: 28
Joined: Thu Sep 27, 2012 11:02 pm
Location: Redding

Re: LED lighting

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

Re: LED lighting

Post 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.
Roberto.
Post Reply