Skip to content

Conversation

@anthony9975
Copy link
Contributor

@anthony9975 anthony9975 commented Dec 5, 2025

ADC Peripheral Abstraction

Problem and Scope

Currently the only way to ADC is to use the functions provided by the HAL library. The HAL functions have huge overhead making them very slow.

Description

We are trying to create our own abstractions for the ADC using the LL library that is more light weight than the HAL functions. We also need to enable DMA for the ADC to allow for continuous conversion.

Gotchas and Limitations

Testing

  • HOOTL testing
  • HITL testing
  • Human tested

Testing Details

Larger Impact

Additional Context and Ticket

@anthony9975 anthony9975 marked this pull request as draft December 5, 2025 04:15
@anthony9975 anthony9975 changed the title ADC ADC Peripherals Dec 5, 2025
@anthony9975 anthony9975 self-assigned this Dec 5, 2025
@dchansen06 dchansen06 linked an issue Dec 5, 2025 that may be closed by this pull request
@dchansen06 dchansen06 added Documentation Improvements or additions to documentation Enhancement New feature or request CMake Anything related to or dealing with CMake HOOTL Testing Having to do with or interacting with HOOTL testing labels Dec 5, 2025
@dchansen06 dchansen06 added 2 PRIORITY Important and a priority, but less than URGENT Big Fry Something that is complex and/or large CTest Anything related to or dealing with CTest Peripheral Related to or involving a peripheral including abstractions labels Dec 5, 2025
@dchansen06
Copy link
Contributor

At some point please also fill in the PR description, but that is not urgent, thanks!

@dchansen06
Copy link
Contributor

dchansen06 commented Jan 5, 2026

Please make sure to not only implement ADC functionality, but also roughly configurable smoothing (likely using a sliding average window or some other algorithm you determine) to help reduce noise

Down the road @jacobjurek will want to discuss how to do cool data things on the ADC process to inject controlled noise, that will be later in #164; for this PR please focus on getting a working ADC and working smoothing. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 PRIORITY Important and a priority, but less than URGENT Big Fry Something that is complex and/or large CMake Anything related to or dealing with CMake CTest Anything related to or dealing with CTest Documentation Improvements or additions to documentation Enhancement New feature or request HOOTL Testing Having to do with or interacting with HOOTL testing Peripheral Related to or involving a peripheral including abstractions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ADC Peripheral Abstractions

4 participants