PCB Enclosure Design


The stopped redesign produced no geometry, measurements, or verification output—only the original brief. Therefore, nothing from it can be retained.
The remaining draft still fails the critical requirements:
  • Exterior follows the PCB outline, not the supplied STL.
  • USB-C plug seating is unverified.
  • SW1 pusher and overtravel stop are unverified.
  • SW2 travel is unverified.
  • The mandatory assembled-view checks and close-ups are incomplete.
I cannot responsibly approve or document the current enclosure for fabrication.
Fix usb-c window
I’ll correct only the USB-C opening on the current enclosure draft: re-derive J1’s rotated receptacle face and mating axis, localize the cutout, ensure a 12 × 6.5 mm plug can seat, then verify the connector is exposed in the assembled view.
Thought for 6 mins 10 sec
Created a thread
USB C Enclosure Fix
Completed
View Thread
Thought for 8 sec
Awaiting 1 background task
Received notification from "USB C Enclosure Fix" that it finished — picking the work back up.
The USB-C edit is complete. I’m checking the reported cutout dimensions and assembled placement now before confirming it as fixed.
The USB-C window was not modified. J1’s receptacle face was located, but the enclosure .build123d asset update failed in the attachment pipeline; no PCB, asset, or model-node changes were made.
I reported the platform failure to the engineering team.
Retry USB window
Provide corrected source
Inspect pipeline failure

Design Notes and Power Budget
Selected architecture
  • USB-C VBUS → F1 0603L050YR (500 mA PPTC) → ESD5341N TVS → TP4057 charger.
  • TP4057 uses R3 = 10 kΩ, giving 100 mA charge current per datasheet table.
  • Charger BAT pin and J2 pin 1 are permanently on BAT+; J2 pin 2 is GND.
  • Both poles of DPDT SW2 are paralleled: BAT+ on commons 2/5, SYS on throws 1/4; unused throws 3/6. OFF therefore disconnects all badge loads but does not interrupt safe USB charging.
  • SYS directly follows the protected 1S cell through SW2. ATmega328PB is configured for the internal 8 MHz RC oscillator. Datasheet speed grade supports 8 MHz at ≥2.7 V.
  • Charger CHRG and STDBY are open-drain and each has a 47 kΩ pull-up to switched SYS. With SW2 OFF, the pull-ups are unpowered, so USB charging cannot back-power U1 through status pins.
Datasheet-derived load budget
WS2812B-2020-V6 white test condition is 36 mA/pixel (12 mA/channel), not 60 mA.

Table


LoadSleep/OffIntended activeFault/worst case
20 × WS2812B-2020-V6≤20 µA static total (datasheet ≤1 µA each)144 mA at a 20% global current/brightness cap720 mA at full white
ATmega328PB @ 8 MHzfirmware-dependentbudget 10 mAbudget 15 mA
Pull-ups/passivesnegligible<1 mA<1 mA
SYS total—about 155 mAabout 736 mA
A 100 mAh cell yields roughly 0.65 h and a 200 mAh cell roughly 1.3 h if effects were continuously held at the intended 155 mA. Actual runtime should be much longer because effects last only 2–3 s.
Burst capacitance
C3 = 100 µF on SYS is a rail-level reservoir. Approximate droop for a 150 mA, 1 ms edge is ΔV = I·Δt/C ≈ 1.5 V before battery/trace current contributes; it is therefore a transient edge reservoir, not an energy source. The battery and wide SYS/GND copper provide sustained current. No per-LED capacitors are included, exactly following the V6 datasheet statement that external components, including capacitors, are not required.
Protection sizing and safety
  • F1's 500 mA hold rating is well above the approximately 100–120 mA USB charger input while remaining a useful input fault limiter; it is not in the LED load path, so it causes no battery headroom loss.
  • ESD5341N: 5 V standoff, 6 V breakdown, unidirectional; installed from protected VBUS to GND.
  • External battery must include cell protection.
  • Firmware must enforce a global cap of about 20% (target ≤150 mA LED contribution), never intentionally command continuous full-white, and turn pixels off after the 2–3 s effect.
  • Paralleled switch poles share normal current. The 736 mA full-white state is a firmware fault case and must not be treated as a permitted continuous operating mode.
  • Set BOD conservatively (recommended 2.7 V) to avoid erratic behavior near cell depletion.
Pin assignments
PB0 LED_DATA; PD2 BUTTON_N; PC0 CHARGE_N; PC1 STANDBY_N; PD0 UART_RX; PD1 UART_TX; PB3/PB4/PB5 ISP MOSI/MISO/SCK; PC6 RESET.
  • Selected architecture

  • Datasheet-derived load budget

  • Burst capacitance

  • Protection sizing and safety

  • Pin assignments