Skip to content

feat(hardware): M5Stack 8Angle potentiometer board - #249

Merged
Siryu6 merged 1 commit into
mainfrom
feat/m5stack-8angle
Nov 20, 2026
Merged

Siryu6 merged 1 commit into
mainfrom
feat/m5stack-8angle

Conversation

@Siryu6

@Siryu6 Siryu6 commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Closes #248

Adds the M5Stack Unit 8Angle (8 pots, a toggle switch, 9 RGB LEDs, I2C 0x43) as a board in Settings → Hardware. Other boards, and setups without a board, work as before; old hardware.json files load unchanged (the new board is saved as m5-stack8-angle).

What the pots do

  • Pots 1–5 set the parameters of the knob strip's page shown, across their whole range: log scale for frequencies, rounded for integers, a list's options from first to last, a switch off below the middle and on above (with some play around the middle).
  • Pot 6 picks the strip page by its position. Pages only move the view, so it acts directly, with a little play at the borders so a pot resting there does not flicker.
  • Pots 7 and 8 are not used (like encoders 7 and 8 of the 8Encoder).
  • The toggle switch turns the block shown on or off each time it moves.
  • The factory presets and model fields stay with touch and encoders: a pot sweeping through them would load every file on its way.

Pickup

A pot only takes a parameter over once it reaches the parameter's value: it crosses it, comes within 2 % of it, or already selects the same option / switch side. Until then, moving it does nothing. A pot lets go again when another parameter comes under it (page or block change) or when the value is changed from elsewhere (touch, MIDI, preset, scene, remote). So nothing ever jumps.

LEDs

  • Amber (the app's accent): the pot drives its parameter.
  • Dim white: the pot waits to reach the value.
  • Off: nothing under the pot, or away from the rack page.
  • Pot 6 is lit when there are several pages; the switch's LED is lit when the block is on.

The UI is asked for the colours every 100 ms, and LEDs are written at most every 50 ms and only when they change. They are turned off when the board is let go.

Reading the pots

12-bit readings, smoothed, with a deadband of about 0.5 % and snapping at both ends: a pot left alone sends nothing, and both ends are reachable. Polled every 10 ms like the other boards. "Steps per detent" is hidden for this board; "Reverse" flips the pots' direction.

Register layout from M5Stack's M5Unit-8Angle library and its I2C protocol sheet: 0x00–0x0F 12-bit ADC (little endian), 0x20 switch, 0x30 + 4 × n LEDs as R, G, B, brightness 0–100 (LED 8 is the switch's), 0xFE firmware. If an 8Encoder is chosen but an 8Angle answers (or the other way round), the error says which board to pick.

Tests

Simulated bus: the scan finds 0x43; still pots send nothing and moves send their position; reverse; switch moves; LEDs written only on change and rate-limited. Pickup: nothing until crossing, then follows; page change and outside changes re-arm it; list and switch mapping; page pot. Old and new hardware.json files load.

Pots 1-5 set the knob strip's parameters once they reach their value
(pickup), pot 6 picks the page, the switch turns the block shown on or
off, and the LEDs show which pots drive their parameter.

Closes #248
@Siryu6
Siryu6 enabled auto-merge (squash) November 20, 2026 16:38
@Siryu6
Siryu6 merged commit 9c806f7 into main Nov 20, 2026
4 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 20, 2026
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.

Support the M5Stack 8Angle (pots) for the knob strip

1 participant