when getting ADC value, RMS processing is necessary needed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-11 10:09 PM
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 ?
- Labels:
-
ADC
-
STM32L0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-12 3:59 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-12 6:13 AM
> that result value will be more trust-able ?
No, don't do averaging by RMS. Just take the average.
