The peak detector circuit based on a precision rectifier with buffer allows to obtain the peak value.
The RMS value in an AC circuit is obtained from:
RMS = V peak / sqrt (2) = V peak * 0.7071
AC source 15 VAC 50 Hz (image)
If the amplitude of the alternating input signal increases, the capacitor charges to the new value, if it decreases the value does not change.
How to continuously update the "stored" peak value in the capacitor? Avoiding manually discharging the capacitor (reset). Maybe adding a 10-100K resistor in parallel with the capacitor? Without discharging the capacitor too much before the positive semi-sinusoid.
What other circuits could be used to get the accurate and updated peak value and then get the RMS value?
I've already asked a similar question in the past and I thank everyone for the replies but sadly I'm not an electronic engineer and my knowledge is mediocre, furthermore the required ICs are too expensive for Italy (shipping), and I'm not able (I don't understand) how to make the circuit.
Thanks in advance.
EDIT 04/03/2023
Thank you all for your valuable advice.
The final circuit is this:
It should be correct, can you check it and let me know?
VAC input 7 V
V_RMS (V_peak * 0.70711) = 4.9477 V (4.93 V sim.)
V_AVG (V_peak * 0.637) = 4.459 V (4.44 V sim.)
V_RMS circuit (V_AVG * 1.11) = 4.93 V
Thanks again.