Hi,
I am monitoring the voltage across the resistor and needs to maintain it steady at set point value. Let=92s suppose if the set point value is
100 volts peak to peak and if the voltage goes below this value or above this value than I have to make MOSFETS turn ON and OFF using pulse width modulation to keep the voltage steady.Right now, I am reading the voltage across the coil and doing =93if else=94 statements to see whether the voltage is right and make adjustments accordingly.
My question is
Is this algorithm of using =93if else=94 algorithm is enough or should I be controlling the voltage using like control algorithm like PID controller etc.
Regards,
john