That is one of the problems.I have earlier written the code where the ADC value is sampled and that value is compared with a preset value and action taken but now i realise that i was only measuring the peak value and not rms value,which is what i need.So i am writing that.I will try your circuit with a reduced gain soon.I am waiting for the boost converter boards to arrive,so i can get evrything to integrate and try.Hi again,
Is it that you dont have any uC code to work with yet?
smanches said:if (adcCurrent > maxCurrent)
dutyCycle--;
It's a bit simplified, but that's all it does. If you're looking for integration formulas, I think the ones DK provided would probably be much better. All I do right now is average the last 4 samples just to reduce the transients and use the value directly to reduce the PWM duty cycle
Who or what is DK ?
The PIC is having a good function of getting the max value from ADC reads (or so i understand) .My freescale device too has it but then i have to use it in continuos running mode , automatic compare,and value greater than,bits enabled in a register.But i need a window comparator so i think i will figure this out soon.
Thanks for being supportive guys
Thnaks and regards