Increase duty, check watts,if watts decreases, decrease duty.
1. Calculate currnt watts
2.check if currnt watts > =old watts
3.if yes, increase duty by 1%
4. if no, decrease duty by 1%
5. old watts = currnt watts
6. go to 1
But isnt that the whole idea about?
To keep wattage at maximum power,
Keeping voltage unimportant?
If it isn't, can you propose a better algorithm?
Thanks.i have a question.
How long do I wait between 2 & 3?
I only measure current and voltage.
And I have got a fairly powerful 8bit MCU
ADC_Measure() ;
watts1 = solarvolt * solarcurrent;
DutyStep++;
if (DutyStep > 99)DutyStep = 99;
delayms(1);
ADC_Measure() ;
watts2 = solarvolt * solarcurrent;
if(watts2 < watts1)
{
if(DutyStep>0)
{
DutyStep -=2;
delayms(1);
}
}
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?