Skip to main content
JEda
Visitor II
Aug 7, 2018 11:43 AM UTC
Question

How to measure a AC voltage by using stm8s micro-controller's inbuilt ADC ?

I came across a situation where I have to measure the input to my board and I will be receiving a half sine wave dc voltage. Please help me if any one has a solution or a technique to measure the AC voltage.

    This topic has been closed for replies.

    1 reply

    henry.dick
    Associate II
    Aug 7, 2018 2:20 PM UTC

    it depends on your requirement which you didn't articulate.

    the dumbest: adc the rectified ac signal and fft the results;

    the less dumb: adc the rectified ac signal and picked the highest for its peak value;

    the smarter approach: adc the filtered ac signal;

    the smartest: put the ac signal through a precision rectifier circuit and adc its output

    pick whichever works best for your application.