Skip to main content
DU2
Associate II
August 12, 2020
Question

when getting ADC value, RMS processing is necessary needed?

  • August 12, 2020
  • 2 replies
  • 665 views

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 ?

This topic has been closed for replies.

2 replies

Peter BENSCH
ST Technical Moderator
August 12, 2020

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
August 12, 2020

> 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""."