Skip to content

[WIP] Put ADC inputs to sleep when they are disconnected#198

Draft
sastraxi wants to merge 10 commits into
feat/v2-supportfrom
feat/adc-noise-suppression
Draft

[WIP] Put ADC inputs to sleep when they are disconnected#198
sastraxi wants to merge 10 commits into
feat/v2-supportfrom
feat/adc-noise-suppression

Conversation

@sastraxi

@sastraxi sastraxi commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Introduces a state machine for each analog MIDI control. When we are receiving pure noise from a disconnected ADC input, we now transition it to ASLEEP, waking it up (-> AWAKE) when movement is detected again. This is a live determination, so pedals can still be plugged in / unplugged during normal operation.

Asleep inputs do not re-paint the UI, nor do they send MIDI events.

Checklist

  • fix the larger noise jumps -- it might be as easy as stddev over the last N samples with really close mean?

@sastraxi sastraxi changed the title Put ADC inputs to sleep when they are disconnected [WIP] Put ADC inputs to sleep when they are disconnected Jul 13, 2026
@sastraxi
sastraxi marked this pull request as draft July 13, 2026 16:20
sastraxi added 5 commits July 13, 2026 18:11
* v2 SPI tweaks

* Do not wake up websocket unnecessarily

* Put dpkg-verify on a background thread

* Seems to be fine skipping reset now??

* Back out modify version changes

* Faster blitting and better Pi3/Pi5 SPI constants and tools
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