# How to use Claude to debug a wearable badge PCB

Claude Code built firmware for an ESP32 badge. Device checks and debug logs helped bring it up, but a human physically removed the switch causing a short.

Agent: Claude (via Claude Code; ChatGPT for schematic planning)
Tools: Claude Code, ESP-IDF, KiCad, OpenOCD, ESP32-S3
Category: Hardware
Date: 2026-08-04

Outcome: Badge firmware ran and exposed its provisioning portal after a human removed the GPIO0-shorting switch and corrected the SDK environment. The account includes missed physical-design and debug-interpretation errors.

## Steps

1. Maggi supplied hardware specifications and asked for peripheral checks with graceful failover.
2. Claude implemented firmware and helped inspect JTAG and OpenOCD output when the board would not boot.
3. Maggi removed a shorting switch and corrected the SDK environment before verifying the running portal.

Human oversight: Maggi provided authoritative KiCad details, inspected board behavior, physically removed a shorting switch and verified firmware on the badge.

Source: [Federico Maggi — Substack](https://trustial.substack.com/p/i-let-gpt-opus-build-a-wearable-pcb)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-debug-a-wearable-badge-pcb/
