S
Scott Ronald
Hi
I have a working programmable voltage regulator, and I want to add a
power regulation loop that feeds the voltage regulation vref. I am
currently reading in the current and voltage by ADCs.
My idea for the power regulator inputs are:
Vmax = the maximum voltage to regulate to (constant)
Iadc = the current on the output of the voltage regulator
Vadc = the voltage on the output of the voltage regulator
P = Iadc * Vadc
Pref = the constant desired power output
Gain = the constant adjustable gain
I am guessing I cannot simply calculate the voltage like this:
Vreg = (Pref - P) * gain
if(Vreg > Vmax)
{
Vreg = Vmax
}
This will not work because power and voltage have different dimensions?
How do you do this?
Scott
I have a working programmable voltage regulator, and I want to add a
power regulation loop that feeds the voltage regulation vref. I am
currently reading in the current and voltage by ADCs.
My idea for the power regulator inputs are:
Vmax = the maximum voltage to regulate to (constant)
Iadc = the current on the output of the voltage regulator
Vadc = the voltage on the output of the voltage regulator
P = Iadc * Vadc
Pref = the constant desired power output
Gain = the constant adjustable gain
I am guessing I cannot simply calculate the voltage like this:
Vreg = (Pref - P) * gain
if(Vreg > Vmax)
{
Vreg = Vmax
}
This will not work because power and voltage have different dimensions?
How do you do this?
Scott