Skip to content

Conversation

@WilliamOu
Copy link
Contributor

EMA Low-Pass Filter

Problem and Scope

The existing approach for smoothing, the windowed moving average, requires a window. This is intuitive and enforces a hard cutoff for old samples. However, it needs memory, which may be less performant. I also noticed some integer division which could cause awkward truncation behavior, and the DMA is still configured as NOINCREMENT.

Hence, I added an EMA approach to smoothing in the ADC code.

@WilliamOu WilliamOu requested a review from dchansen06 as a code owner January 16, 2026 04:38
@WilliamOu WilliamOu marked this pull request as draft January 16, 2026 04:49
@dchansen06
Copy link
Contributor

Updated with rebase

@dchansen06 dchansen06 linked an issue Jan 16, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ADC Peripheral Abstractions

2 participants