Skip to main content

Module knobs

Module knobs 

Source
Expand description

4 endless rotary encoders, read through ADC1 (README §knobs).

Each Alps endless encoder has two analog wipers 90° out of phase; atan2 of the two recovers an absolute angle. 16-bit + 8× hardware averaging + a long sample window settle the resistive wipers against SAI crosstalk.

Structs§

Knobs
The board’s 4 encoders on ADC1. Construct via crate::init.
Reading
One encoder reading: the two raw wipers and the recovered angle.

Enums§

Knob
A named encoder. Discriminant = wiper-pair position in Knobs::new.

Constants§

COUNT
Number of encoders.