Hi,
My interest is to measure the Peak value of the voltage signal or the mean or even RMS value.
Or, or, or...
A 0V / 5V switched signal:
* with 100% duty cycle gives: peak=5V, Avg=5V, RMS=5V
* with 80% duty cycle gives: peak=5V, Avg=4V, RMS=4.5V
* with 50% duty cycle gives: peak=5V, Avg=2.5V, RMS=3.5V
* with 10% duty cycle gives: peak=5V, Avg=0.5V, RMS=1.6V
Peak doesn't change
Avg changes proportionally with duty cycle
RMS changes proportionally with the square root of the duty cycle.
--> decide what you want
A capacitor alone gives no delay and no average....you need to add a resistor.
A capacitor with a resistor gives additional delay. The longer the delay the less ripple us in the resulting (averaged) DC signal.
--> specify tolerable delay and ripple
A capacitor with or without a resistor gives no hysteresis.
EVERY measurement gives a delay.
Klaus