INA219 Current Measurement Audit
Task unable to complete.
2:13
F2:P2 and Q2:D, VIN_PROTECTED airwires involving Q2:S, D6:K, and R6:P2, plus stale/dangling trace remnants and an overlap at Q2:D.J1 P1 -> F2 -> VIN_FUSED -> Q2 -> VIN_PROTECTED -> D3/C7/FB2 -> VIN_FILTERED.5V / U6 IN+ -> RSHUNT -> RELAY_COIL_HIGH_SENSE / U6 IN- / K1 A15V: RSHUNT:P1, U6:IN+, D1:cathode, L1:2, U1:FEEDBACK, C2:1, C4:P1, U2:EXT_5VRELAY_COIL_HIGH_SENSE: RSHUNT:P2, U6:IN-, K1:A1RELAY_COIL_LOW: K1:A2, D1:anode, Q1:CGND: Q1:E, U6:GND, U2:GND1/GND2/GND3, C5:P2, U6:A0, U6:A1, and other ground pointsTable
| # | Check | Result | Evidence / notes |
|---|---|---|---|
| 1 | U6 IN+ is on the 5V source side of RSHUNT | PASS | U6:IN+ and RSHUNT:P1 are both on net 5V. |
| 2 | U6 IN- is on relay-coil side of RSHUNT | PASS | U6:IN-, RSHUNT:P2, and K1:A1 are all on RELAY_COIL_HIGH_SENSE. |
| 3 | RSHUNT is physically routed in series with actual relay coil current path, not just connected by labels | PASS, with DRC cleanup note | Schematic connectivity forces coil current through RSHUNT before K1:A1, and the latest airwire check did not report open/unrouted shunt/relay nets. However, 4 dangling trace warnings exist and should be cleaned before fabrication. |
| 4 | No alternate copper path bypasses RSHUNT | PASS for steady-state coil current | No schematic path from 5V directly to K1:A1 was found. The flyback diode D1 connects from RELAY_COIL_LOW to pre-shunt 5V; it is reverse-biased while the relay is energized, but it does provide a flyback/transient return path that does not measure through the shunt after turn-off. |
| 5 | INA219 VS is powered from 3.3V | PASS | U6:VS is on 3V3. |
| 6 | SDA/SCL are pulled up to 3.3V, not 5V | PASS | R3 and R4 are 4.7k I2C pull-ups; R3:P2 and R4:P2 are on 3V3, while R3:P1 is I2C_SDA and R4:P1 is I2C_SCL. |
| 7 | INA219 GND is common with ESP32 GND | PASS | U6:GND and U2:GND1/GND2/GND3 are on common GND. |
| 8 | A0/A1 address pins are intentionally tied and not floating | PASS | U6:A0 and U6:A1 are both tied to GND. This selects the all-ground address configuration and is not floating. |
| 9 | C5 100nF decoupling capacitor is close to INA219 VS/GND | MARGINAL PASS / IMPROVE | C5 is 100nF between 3V3 and GND. PCB centers: U6 at (0.87, -17.64) mm, C5 at (4.11, -12.96) mm; center-to-center distance is about 5.7 mm. For a 0603 decoupling capacitor, this is usable but farther than ideal; place C5 closer to U6 VS/GND if possible. |
5V rail -> RSHUNT:P1 -> RSHUNT:P2 -> RELAY_COIL_HIGH_SENSE -> K1:A1 -> relay coil -> K1:A2 -> RELAY_COIL_LOW -> Q1:C -> Q1:E -> GNDU6:IN+ on 5VU6:IN- on RELAY_COIL_HIGH_SENSEK1:A1 is through RELAY_COIL_HIGH_SENSE, which includes RSHUNT:P2 and U6:IN-. There is no direct 5V connection to K1:A1 in the schematic data.D1 connects from RELAY_COIL_LOW to pre-shunt 5V. During relay turn-off, D1 can conduct flyback current into the 5V node, so that transient decay current is not strictly measured as normal shunt current. That is expected for this diode placement, but it means INA219 readings during turn-off transients may not represent coil current through the shunt.Vshunt = I * R, with RSHUNT = 0.22 ohm:Table
| Coil current | Shunt voltage |
|---|---|
| 70 mA | 15.4 mV |
| 80 mA | 17.6 mV |
| 100 mA | 22.0 mV |
I^2R = 0.1^2 * 0.22 = 0.0022 W, far below the intended 0.25 W rating.Table
| Component | Position / placement |
|---|---|
RSHUNT | Top layer, center about (-0.82, -12.96) mm, 1206 package |
U6 | Top layer, center about (0.87, -17.64) mm, SOT-23-8, rotated 90 degrees |
C5 | Top layer, center about (4.11, -12.96) mm, 0603 package |
K1 | Top layer, center about (-16.91, 20.56) mm |
RSHUNT:P2 to K1:A1 is routed with adequate width and does not branch around the shunt.5V, RELAY_COIL_HIGH_SENSE, and RELAY_COIL_LOW.5V and RELAY_COIL_HIGH_SENSE after routing cleanup to confirm no same-net or stale copper creates an unintended direct bridge around RSHUNT.Result
Expected topology checked
Checklist
Complete relay coil current path
Can relay coil current bypass RSHUNT?
Expected shunt voltage
Layout observations
Layout corrections needed
Final verdict