4 ms·
With some microcontrollers you can do this "averaging out" just by changing ADC parameters, you don't even have to write the low-pass-filter code.
by satiric 2y ago
With some microcontrollers you can do this "averaging out" just by changing ADC parameters, you don't even have to write the low-pass-filter code.
- auxym 2y agoThat is specifically sigma-delta type ADCs: https://www.analog.com/en/resources/technical-articles/sigmadelta-adcs-tutorial.html https://www.analog.com/en/resources/technical-articles/sigma...
- magicalhippo 2y agoNo, several MCUs, like a lot of STM32s, support hardware oversampling with optional division. Here's[1] a document describing it for the L0 and L4 series, which like most of the STM32 series have SAR[2] ADCs. [1]: https://www.st.com/resource/en/application_note/an4629-adc-hardware-oversampling-for-microcontrollers-of-the-stm32-l0-and-l4-series-stmicroelectronics.pdf https://www.st.com/resource/en/application_note/an4629-adc-h... [2]: https://en.wikipedia.org/wiki/Successive-approximation_ADC https://en.wikipedia.org/wiki/Successive-approximation_ADC