Skip to content

Conversation

askuric
Copy link
Member

@askuric askuric commented Jul 24, 2025

So this PR implements a different strategy for low-side current sensing with SAMD21.
It's inspired by the od code but no longer used DMA.
I've had some issues with the old code, could not run it and even compile it as the library AdafruitZeroDMA uses some same funciton calls that we cannot really chnage.

So I've passed to the timer-synced interrupt based approach.

It is once again one phase sample per PWM cycle, not the best really. But it does work.

I've tested:

  • Arduino Zero
  • Adafruit qt py samd21

@askuric askuric changed the base branch from master to feat_current_sense_check_for_trgo July 24, 2025 14:34
@askuric askuric changed the base branch from feat_current_sense_check_for_trgo to dev July 24, 2025 14:34
@askuric askuric added this to the 2.3.5_Release milestone Jul 25, 2025
@runger1101001 runger1101001 merged commit 0205da7 into dev Jul 27, 2025
53 checks passed
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.

2 participants