Skip to content

Switch board 1 to the active-high bazauto detector (#9) - #27

Merged
bazauto merged 1 commit into
mainfrom
feat/board1-active-high
Sep 25, 2026
Merged

bazauto merged 1 commit into
mainfrom
feat/board1-active-high

Conversation

@bazauto

@bazauto bazauto commented Sep 25, 2026

Copy link
Copy Markdown
Owner

The LM-iD.1 on Goods Shed has been removed. Board 1 (0x20) is now all bazauto/block-detection boards, so every cs--- entry in SENSORS moves from LM_ID_ACTIVE_LOW to BAZAUTO_BD_ACTIVE_LOW (active high).

The detectors run push-pull at 3.3 V, so a broken signal wire now reads occupied against the expander's pull-up rather than clear. That fixes the board 1 half of #9. Board 2's IR is untouched and stays active low.

Only cs---goods-shed is in INSTALLED. The other eight detectors aren't connected yet and stay silent until each one is added. They already carry the right polarity, so bringing one online only means adding its id.

LM_ID_ACTIVE_LOW is kept but no entry uses it. Refitting an LM-iD is then a visible one-line change, and docs/block-detector-wiring.md is kept for the 5 V Input A hazard.

Tests

  • test_the_installed_sensors_are_active_low becomes test_the_installed_sensors_have_their_devices_polarity: Goods Shed's detector is active high and its beam is active low.
  • New test_every_current_sensor_uses_the_bazauto_detector_polarity: a cs--- entry left on the old polarity would read backwards once installed.

python -m pytest: 208 passed.

Deployed

Deployed to the io-node Pico with scripts/deploy.sh io-node (orchestrator /health online, manual mode). The broker afterwards showed cs---goods-shed → occupied and ir---goods-shed → clear, re-asserted.

Docs

CLAUDE.md, README.md, docs/pin-allocation.md and docs/block-detector-wiring.md now describe board 1 as active high and the LM-iD.1 as retired.

Refs #9. The supply and ground wire-pull checks there are still to be recorded.

🤖 Generated with Claude Code

@bazauto
bazauto enabled auto-merge (squash) September 25, 2026 18:52
@bazauto
bazauto merged commit b31d6c6 into main Sep 25, 2026
1 check passed
@bazauto
bazauto deleted the feat/board1-active-high branch September 25, 2026 18:53
The LM-iD.1 on Goods Shed is removed. Every cs--- entry now uses
BAZAUTO_BD_ACTIVE_LOW, so a broken signal wire reads occupied.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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