Commit Graph
11 Commits
Author SHA1 Message Date
ash cadb29f234 Reduce exp pedal cal_max from 1180 to 1100 to reach 100% MIDI 2026-07-04 05:20:20 +00:00
ash f055bad4ac Proportional catch-up: send midpoint per update (fast convergence, rejects ±1 jitter) 2026-07-04 05:17:48 +00:00
ash 1dec81e329 Rate-limit exp pedal: step ±1/update, stationary jitter ignored 2026-07-04 05:15:09 +00:00
ash 17def39f93 Remove hysteresis (smoothing handles noise); values now step ±1 per update 2026-07-04 05:11:47 +00:00
ash 4f58d4b8e6 Exponential smoothing on expression pedal ADC (factor 8) to filter noise 2026-07-04 05:05:35 +00:00
ash 4ddb9a00bf Reduce cal_max 1220->1180 to absorb ADC jitter at toe
Raw ADC jitter of ~40 counts at toe caused MIDI flickering
between 127 and ~123. Lowering cal_max so the >= cal_max
clamp at 127 absorbs the noise.
2026-07-02 06:40:30 +00:00
ash 0d22769cf6 Tweak cal_max: 1239 -> 1220 2026-07-02 04:24:29 +00:00
ash 2cf49b8deb Calibrate expression pedal: cal_min=36, cal_max=1239
Raw ADC observed range: heel=36, toe=1239.
Maps full pedal travel to MIDI 0-127.
2026-07-02 04:19:30 +00:00
ash f0b6df1477 Remove serial cal commands, just log raw ADC on each value change
- Print raw ADC + mapped MIDI value on every change
- Remove cal min/cal max serial commands (broken with multi-word)
- Keep cal_min=0, cal_max=4095 defaults
- User moves pedal full range and reports min/max raw values
2026-07-02 04:14:39 +00:00
ash 8bde8efaff Add expression pedal calibration: cal min/cal max
- Remove fixed 0-4095 mapping, use cal_min/cal_max instead
- Auto-calibrate minimum at boot (assumes pedal at heel)
- 'cal min' sets current position as heel (0)
- 'cal max' sets current position as toe (127)
- Map cal_min->0, cal_max->127 with clamping
- Update 'exp' command to show raw ADC + cal values
2026-07-02 04:09:22 +00:00
ash 08d6fc8701 Add expression pedal support on GPIO5 (CC 4) 2026-07-02 04:00:06 +00:00