Skip to content

Conversation

@Gabrielerusso
Copy link
Contributor

@Gabrielerusso Gabrielerusso commented Nov 27, 2025

Implemented light filtering on phase current readings

  • Added a 3‑sample sliding window average followed by two cascaded first‑order low‑pass filters.
  • Designed to be computationally efficient with minimal phase delay.
  • Filtering smooths noisy current measurements while raw values are still used for overcurrent protection, so safety mechanisms remain unaffected.

Also does sampling only when needed, saving some clock cycle.

Apply some very light filtering on phase current readings using a sliding window average (3 values) and 2 cascaded first order LPF.
Should be very fast to compute and also introduce minimal phase delay.
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.

1 participant