Hi,Thank you.
Do you want me to use this idea into the code that I posted ?
Well I've found that regular rectification and analog filtering combined with digital filtering works very well, and it's pretty simple.
In the last step, you calibrate the digital part to get good accuracy.

