cancel
Showing results for 
Search instead for 
Did you mean: 

when getting ADC value, RMS processing is necessary needed?

DU2
Associate II

Hello, I am using LO31K6 for sensoring two ADC channels by DMA

When I wish to get trustable voltage value, Do I have to apply Root Mean Square to these ADC value?

for example, < Instead directly get ADC value from DMA buffer[n] and treat as it is true > ,

when I got ADC value for 300 times, counting from DMA interrupt,

save these ADCvalues [300] , then sqaure( ^2) each of them, then adding them, and do sqrt (root), and get final voltage result

that result value will be more trust-able ?

2 REPLIES 2
Peter BENSCH
ST Employee

Trustable value?

Generally it depends on how you set up the ADC parameters, how you route the signal to the ADC, etc.

Did you read the appnote AN4629: ADC hardware oversampling for STM32L0 and L4?

What about AN2834: How to get the best ADC accuracy in STM32 microcontrollers?

Good luck!

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
TDK
Guru

> that result value will be more trust-able ?

No, don't do averaging by RMS. Just take the average.

If you feel a post has answered your question, please click "Accept as Solution".