Skip to content

Shield Budget Edition#367

Open
3rdIteration wants to merge 32 commits into
cryptoadvance:masterfrom
3rdIteration:Shield-Lite-PWR
Open

Shield Budget Edition#367
3rdIteration wants to merge 32 commits into
cryptoadvance:masterfrom
3rdIteration:Shield-Lite-PWR

Conversation

@3rdIteration

Copy link
Copy Markdown
Contributor

This pull request introduces full support for battery monitoring on both the original Specter Shield and the new Shield-BE (Budget Edition), including hardware abstraction in the firmware, improved boot scripts, and comprehensive documentation. It also adds new KiCad project files and footprints for Shield-BE hardware development, and updates the build and documentation configuration.

Battery monitoring and platform abstraction:

  • Refactored battery monitoring in boot/main/boot.py and boot/debug/boot.py to automatically select between the STC3100 I2C fuel gauge (original Shield) and an ADC-based voltage divider (Shield-BE), injecting the correct objects (platform.i2c, platform.adc, platform.chg_pin) into the platform module for use by the firmware. [1] [2] [3] [4] [5]
  • Added a new boot/shield-be/boot.py for Shield-BE, implementing ADC-based battery measurement and power management tailored to the hardware.

Documentation and configuration:

  • Added docs/battery-meter.md, a detailed guide covering battery meter hardware, firmware integration, and retrofitting instructions for other shields. Linked this documentation in mkdocs.yml. [1] [2]

Hardware project files for Shield-BE:

  • Added KiCad project files, footprints, and library tables for the Shield-BE hardware, including mounting holes and bridge pads (shield-be/SpecterShield-BE-ATDT/ and related files). [1] [2] [3] [4] [5] [6]
  • Updated the build manifest to include Shield-BE boot scripts and source files (manifests/shield-be.py).

These changes ensure that both hardware variants are supported out-of-the-box, simplify hardware bring-up, and provide clear guidance for developers and users.

3rdIteration and others added 30 commits April 4, 2026 17:47
Agent-Logs-Url: https://github.com/3rdIteration/specter-diy/sessions/70b7aea0-fc9f-4feb-9911-0b7a10ed118b

Co-authored-by: 3rdIteration <2230318+3rdIteration@users.noreply.github.com>
Agent-Logs-Url: https://github.com/3rdIteration/specter-diy/sessions/2bfa0fd4-dacd-4656-9427-8867a2bf53b1

Co-authored-by: 3rdIteration <2230318+3rdIteration@users.noreply.github.com>
Agent-Logs-Url: https://github.com/3rdIteration/specter-diy/sessions/599940dc-8ece-4011-a4f0-1065d466328d

Co-authored-by: 3rdIteration <2230318+3rdIteration@users.noreply.github.com>
Agent-Logs-Url: https://github.com/3rdIteration/specter-diy/sessions/d9fec3b0-9b96-467a-ae08-0a390e6394ea

Co-authored-by: 3rdIteration <2230318+3rdIteration@users.noreply.github.com>
Agent-Logs-Url: https://github.com/3rdIteration/specter-diy/sessions/d9fec3b0-9b96-467a-ae08-0a390e6394ea

Co-authored-by: 3rdIteration <2230318+3rdIteration@users.noreply.github.com>
Agent-Logs-Url: https://github.com/3rdIteration/specter-diy/sessions/d9fec3b0-9b96-467a-ae08-0a390e6394ea

Co-authored-by: 3rdIteration <2230318+3rdIteration@users.noreply.github.com>
Agent-Logs-Url: https://github.com/3rdIteration/specter-diy/sessions/d9fec3b0-9b96-467a-ae08-0a390e6394ea

Co-authored-by: 3rdIteration <2230318+3rdIteration@users.noreply.github.com>
…ng boot scripts

Agent-Logs-Url: https://github.com/3rdIteration/specter-diy/sessions/fea5082f-a5ab-45fa-a339-8a71a40ec3f6

Co-authored-by: 3rdIteration <2230318+3rdIteration@users.noreply.github.com>
…r-support-another-one

Embed Shield-BE ADC battery config in existing boot scripts; remove separate shield-be boot variant
Agent-Logs-Url: https://github.com/3rdIteration/specter-diy/sessions/aabc41df-f79e-4291-ad00-98d4310b452a

Co-authored-by: 3rdIteration <2230318+3rdIteration@users.noreply.github.com>
…oot variable names

Co-authored-by: 3rdIteration <2230318+3rdIteration@users.noreply.github.com>
Agent-Logs-Url: https://github.com/3rdIteration/specter-diy/sessions/1af93e66-a646-48e5-9b9d-f6fda256fe9f

Co-authored-by: 3rdIteration <2230318+3rdIteration@users.noreply.github.com>
…er in About

Agent-Logs-Url: https://github.com/3rdIteration/specter-diy/sessions/d6ede712-6500-4b13-8feb-4026c5363ac6

Co-authored-by: 3rdIteration <2230318+3rdIteration@users.noreply.github.com>
…ery detection

Agent-Logs-Url: https://github.com/3rdIteration/specter-diy/sessions/69f068d0-dcbf-4adb-9dbe-3aab91ac2ea5

Co-authored-by: 3rdIteration <2230318+3rdIteration@users.noreply.github.com>
…r-support-again

Add ADC battery meter support for Shield-BE + battery diagnostics on About page
Fixes and improvements from 1.0.0 prototype
Copilot AI review requested due to automatic review settings June 18, 2026 15:57
@netlify

netlify Bot commented Jun 18, 2026

Copy link
Copy Markdown

Deploy Preview for specter-diy-docs ready!

Name Link
🔨 Latest commit 47f429d
🔍 Latest deploy log https://app.netlify.com/projects/specter-diy-docs/deploys/6a341588002f0500089ddfce
😎 Deploy Preview https://deploy-preview-367--specter-diy-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of lines (20,000). Try reducing the number of changed lines and requesting a review from Copilot again.

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.

3 participants