USB Analyzer Design

El movimiento quedó aplicado y eliminó las trazas colgantes, pero abrió 22 airwires porque el router quirúrgico no puede distinguir los tres pads IN duplicados de U2. Haré un último pase global permitido tras el cambio de colocación y después revisaré DRC nuevamente.
El nuevo preflight detectó una traza con ancho inferior al mínimo aceptado por el motor (wires[156].width). Localizaré esa traza de 0,10 mm, la eliminaré o corregiré a 0,15 mm y volveré a comprobar antes de otro intento.
Moví U2 y sus pasivos asociados 2,5 mm hacia arriba, conservando orientación y agrupación. También eliminé las trazas locales obsoletas y dejé 0 trazas colgantes en esa etapa.
Estado pendiente
  • 22 airwires
  • 5 solapes de cobre alrededor de U2 y otros pads
  • La barra común de los tres U2:IN aún no está construida
  • TPS_ILIM y TPS_FAULT_N siguen sin ruta
  • El auto-router no puede reiniciarse por una traza inválida con ancho menor al permitido: wires[156].width, probablemente una conexión local de 0,10 mm
No pude localizar/corregir esa traza porque se agotaron los ACUs. El siguiente paso es corregirla a 0,15 mm o eliminarla si está obsoleta, repetir preflight y ejecutar un nuevo pase de routing seguido de DRC.
Corregir traza inválida
Localizar wires[156]
Revisar solapes U2
Reconstruir U2 IN

Refine this doc
Ask about this doc
Board Bring-Up Plan — USB Power Analyzer V1
Prerequisites
  • Equipment: current-limited bench supply, multimeter, oscilloscope if available, electronic load or power resistors, USB test device, USB cable for RP2040 firmware header, thermometer/IR camera if available.
  • Firmware: see Firmware Starter for the initial RP2040 firmware.
  • Safety: do not use a laptop USB port as the first 2 A source. Start with a bench supply and current limit.
  • Critical note: U1:VBAT is intentionally unused. Do not connect RP2040 Stamp VBAT to USB 5 V; datasheet range is LiPo 3.6–4.2 V.
1. Visual Inspection
  • Verify orientation of U2 TPS2559DRCR, U3 INA226, D1 USBLC6-2SC6, Q1 MMBT3904, D2/D3/D4 LEDs, BZ1, J1/J2/J3.
  • Check for solder bridges on TPS2559 VSON pins and exposed pad.
  • Verify R1 shunt value is 20 mΩ and rated for at least 1 W.
  • Verify R2 is 49.9 kΩ for TPS2559 ILIM.
  • Verify I2C pull-ups R4/R5 are 4.7 kΩ to 3V3, not 5 V.
  • Verify R3/R19 pull-ups for FAULT/ALERT are to 3V3.
2. Unpowered Continuity Checks

Table


CheckExpected ResultStop If
VBUS_PROTECTED to GNDNo shortLow-ohm short
VBUS_SWITCHED to GNDNo shortLow-ohm short
VBUS_DUT to GNDNo shortLow-ohm short
3V3 to GNDNo shortLow-ohm short
VBUS_PROTECTED to U1:VBATNo continuityAny continuity
5V/VBUS to 3V3No shortAny short
USB_DUT_D_P to USB_DUT_D_NNo shortAny short
USB_DUT_D_P / USB_DUT_D_N to VBUS or GNDNo shortAny short
J3 firmware VBUS to J1/J2 VBUSVerify intended connection before dual-USB useUnexpected backfeed path
3. Power Rail Verification

Table


RailSourceExpected VoltageToleranceMeasure AtCurrent LimitPass Criteria
USB_IN_VBUS_RAWJ1 pin 1 before F15.0 VUSB source dependentJ1 pin 150–100 mA first powerStable, no heating
VBUS_PROTECTEDF1 output / U2 IN / U1 5V5.0 V minus PTC dropDepends on loadU2 IN, U1 5V50–100 mA initialRP2040 powers without overcurrent
3V3U1 RP2040 Stamp LDO output3.3 V±2–5%U1 3.3V, C5Observe only3.23–3.37 V typical
VBUS_SWITCHEDU2 OUT before shunt0 V when EN low, ~5 V when EN highLoad dependentU2 OUT, C2/C3Start unloadedOFF by default, ON only by firmware
VBUS_DUTR1 load side / J2 VBUS~5 V when enabledLoad dependentJ2 VBUSStep to 2 A only after validationDrop across R1 ≈ 40 mV at 2 A
Procedure:
  1. With no DUT attached, apply 5.0 V from a bench supply to the input path with a 50–100 mA current limit.
  2. Confirm 3V3 appears and is stable.
  3. Confirm TPS2559 EN is low by default and VBUS_DUT is off.
  4. Program firmware through J3 only after confirming no dangerous backfeed.
  5. Enable TPS2559 from firmware and confirm VBUS_SWITCHED/VBUS_DUT rise.
4. Critical Signal Verification

Table


SignalNet NameExpected StateMeasure AtNotes
TPS enableTPS_ENLOW at reset, HIGH when port enabledU2 ENR18 keeps port off during reset
TPS faultTPS_FAULT_NHIGH normally, LOW on faultU2 FAULT / U1 GPIO8Pull-up R3 to 3V3
INA alertINA_ALERT_NHIGH normally, LOW on alertU3 ALERT / U1 GPIO6Pull-up R19 to 3V3
I2C SDA/SCLI2C_SDA / I2C_SCLIdle HIGH at 3.3 VU3/DS1 pinsR4/R5 4.7 kΩ pull-ups
Shunt sense plusINA_SHUNT_PLUSKelvin sense to R1 source sideU3 Vin+Must not carry 2 A current
Shunt sense minusINA_SHUNT_MINUSKelvin sense to R1 load sideU3 Vin-Verify polarity
USB serviceMCU_USB_D_P/NOnly on J3 and U1 USB pinsJ3Must not be tied to DUT D+/D-
5. Programming and Debug Interface

Table


InterfaceSignalsConnectorTool
RP2040 USB bootloaderJ3 Pin 1 5V, Pin 2 D-, Pin 3 D+, Pin 4 GNDJ3PlatformIO / Arduino RP2040 USB bootloader
Procedure:
  1. Before connecting both USB-A analyzer path and J3 firmware cable, test for backfeed.
  2. Connect only J3 firmware USB.
  3. Verify RP2040 enumerates in bootloader or serial mode.
  4. Flash the firmware starter.
  5. Confirm serial output at 115200 baud.
6. Functional Validation

Table


TestComponentsInputExpected OutputPass Criteria
I2C scanU1, U3, DS1Firmware scanINA226 at 0x40, OLED at 0x3CBoth devices respond
OLED displayDS1Firmware splashText visibleNo flicker/reset
Port enableU2Toggle OK buttonVBUS_DUT off/onEN controls OUT correctly
Fault detectionU2, U1Controlled overcurrentTPS_FAULT_N lowFirmware logs alarm, red LED/buzzer activate
Current measurement 0 AR1, U3No load~0 AOffset recorded
Current measurement 0.1 AR1, U3Electronic load~2 mV shuntINA226 close to external meter
Current measurement 0.5 AR1, U3Electronic load~10 mV shuntWithin calibration target
Current measurement 1.0 AR1, U3Electronic load~20 mV shuntWithin calibration target
Current measurement 2.0 AR1, U3Electronic load~40 mV shuntNo overheating/excessive drop
ButtonsSW1/SW2/SW3Press eachSerial/display eventActive-low detection works
LEDsD2/D3/D4Firmware outputRed/green/yellow illuminateVerify polarity; fix if reversed
BuzzerBZ1/Q1Firmware beepAudible beepNo excessive current
USB data passthroughJ1/J2/D1Low-risk USB deviceDevice enumeratesD+/D- not swapped
7. High-Current and Protection Tests
Use a bench supply and electronic load. Do not start at 2 A.

Table


StepLoad CurrentExpected Shunt DropChecks
10.1 A2 mVINA226 sign, no fault
20.5 A10 mVVBUS drop, no heating
31.0 A20 mVTPS2559 and PTC temperature
41.5 A30 mVStability, OLED no reset
52.0 A40 mV10-minute thermal check
Additional destructive-risk tests, only with current-limited source:
  • Short VBUS_DUT to GND briefly and confirm TPS2559 limits current and FAULT asserts.
  • Increase load until TPS2559 current limit triggers; confirm firmware alarm.
  • Confirm PTC does not nuisance-trip during normal 2 A operation at room temperature.
  • Measure temperatures of F1, U2, R1, connectors, and high-current traces.
8. USB Backfeed Tests

Table


ScenarioExpected Result
Only J3 firmware USB connectedRP2040 powers; verify whether VBUS_PROTECTED also rises as designed
Only USB-A input connectedRP2040 powers from VBUS_PROTECTED; J3 should not expose unsafe backfeed to a PC
USB-A input and J3 both connectedOnly allowed after verifying no damaging host-to-host VBUS condition
DUT connected while TPS_EN lowJ2 VBUS remains off except leakage
DUT externally powered accidentallyNo dangerous backfeed into J1 or firmware PC
9. Stop Conditions
Stop immediately if any of these occur:
  • 5 V appears on U1:VBAT, 3V3, GPIOs, or I2C lines.
  • 3V3 is outside expected range.
  • TPS2559 heats with no load.
  • PTC heats with no load.
  • VBUS_DUT is on while TPS_EN is low.
  • FAULT is permanently active with no load.
  • INA226 current sign is reversed or readings are wildly wrong.
  • USB_DUT_D_P or USB_DUT_D_N is shorted to VBUS/GND.
  • Firmware USB header and analyzer VBUS create unexpected backfeed.
Pass/Fail Summary

Table


Test SectionResultNotes
Visual Inspection[ ] Pass / [ ] Fail
Unpowered Continuity[ ] Pass / [ ] Fail
Power Rails[ ] Pass / [ ] Fail
Programming[ ] Pass / [ ] Fail
I2C/OLED/INA226[ ] Pass / [ ] Fail
Port Enable/Fault[ ] Pass / [ ] Fail
Current Calibration[ ] Pass / [ ] Fail
2 A Thermal Test[ ] Pass / [ ] Fail
USB Data Passthrough[ ] Pass / [ ] Fail
Board Status: [ ] Ready for use / [ ] Requires rework
  • Prerequisites

  • 1. Visual Inspection

  • 2. Unpowered Continuity Checks

  • 3. Power Rail Verification

  • 4. Critical Signal Verification

  • 5. Programming and Debug Interface

  • 6. Functional Validation

  • 7. High-Current and Protection Tests

  • 8. USB Backfeed Tests

  • 9. Stop Conditions

  • Pass/Fail Summary

USB Power Analyzer V1 uTDr

USB Power Analyzer V1 uTDr thumbnail
Analizador USB con RP2040, INA226 y TPS2553 para medir voltaje, corriente y potencia, controlar electrónicamente el puerto bajo prueba y mostrar alarmas/estado en OLED, LEDs y buzzer.

Properties

Properties describe core aspects of the project.

Pricing & Availability

Distributor

Qty 1

Arrow

$2.39–$4.76

Digi-Key

$0.04

HQonline

$0.30–$0.40

LCSC

$4.79–$4.95

Mouser

$6.83

TME

$0.00

Verical

$2.76–$6.28

Controls