I have 60hz ac signal with 5 Vp-p. i.e +2.5V peak & -2.5V peak.
This signal is riding over 2.5V dc.
So at micro-controller pin voltage varies from 0 to 5V with 60Hz.
I have measured dc voltages many times but not ac varying voltages. At different intervals measured voltage will be different. So how to measure.
What samling frequency should I choose. should it be twice the signal frequency. i.e 120Hz ?
Should I take multiple samples & average them to measure peak voltage??
This signal is riding over 2.5V dc.
So at micro-controller pin voltage varies from 0 to 5V with 60Hz.
I have measured dc voltages many times but not ac varying voltages. At different intervals measured voltage will be different. So how to measure.
What samling frequency should I choose. should it be twice the signal frequency. i.e 120Hz ?
Should I take multiple samples & average them to measure peak voltage??