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.
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