INA219 Current Measurement Audit

Task unable to complete.

2:13

Thought for 16 sec — Identifying necessary skills
Looking up PCB routing cleanup stale traces Q2 reverse polari....
Checking 5 design areas.
Reading schematic details for J1, F2, Q2 and 7 more.
Completed 5 design checks — found 39 issues.
Checking 5 design areas... (28 sec)
Reading layout details for Q2, F2, D3 and 5 more.
Work done
  • Audited the scoped Q2 input-protection area and verified the corrected schematic connectivity.
  • DRC still reports scoped layout problems: VIN_FUSED airwire between 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.
  • Created the detailed status file: Q2 Input Protection Routing Remediation Status.
Success criteria review
  • ❌ Stale traces were identified but not removed in this run.
  • ❌ The physical path is not yet fully routed as J1 P1 -> F2 -> VIN_FUSED -> Q2 -> VIN_PROTECTED -> D3/C7/FB2 -> VIN_FILTERED.
  • ❌ DRC is not clean in the scoped area; airwires/dangling/overlap issues remain.
  • ✅ The corrected schematic topology still supports reverse-polarity blocking, but the PCB must be cleaned/rerouted before fabrication.
Next steps
Perform the physical trace cleanup/reroute in the PCB editor for the listed scoped items, then rerun DRC to confirm the Q2 input-protection area is clear.
Locate routing issues
Fix Q2 remnants
Route VIN_PROTECTED
Run targeted DRC
U2
U6
R1
Resistance
1kΩ
J1 P1 - F1 P1
L1 2 - U1 FEEDBACK
Q3 D - D5 K
U6 IN- - K1 A1
Q2 G - R6 P1
U6 IN- - K1 A1
R6 P2 - Q2 S
L1 1 - U1 OUTPUT
U6 VS - U2 3V3
Q1 B - R1 2
R5 P1 - D6 A
FB2 2 - U1 VIN
L1 2 - U1 FEEDBACK
U6 VS - U2 3V3
Q1 B - R1 2
K1 NO - RELAY_OUT P2
L1 2 - U1 FEEDBACK
U6 VS - U2 3V3
FB2 2 - U1 VIN
L1 2 - U1 FEEDBACK
Q1 C - K1 A2
L1 2 - U1 FEEDBACK
R6 P2 - Q2 S
Q3 D - D5 K
FB2 2 - U1 VIN
U6 VS - U2 3V3
U6 SDA - U2 IO21
L1 1 - U1 OUTPUT
FB2 2 - U1 VIN
U6 IN- - K1 A1
L1 2 - U1 FEEDBACK
Q3 D - D5 K
Q2 G - R6 P1
Q1 C - K1 A2
R1 1 - U2 IO23
L1 1 - U1 OUTPUT
K1 COM - RELAY_OUT P1
U6 SCL - U2 IO22
R5 P1 - D6 A
U6 SDA - U2 IO21
Q1 C - K1 A2
U6 VS - U2 3V3
L1 2 - U1 FEEDBACK
Q1 B - R1 2
K1 COM - RELAY_OUT P1
K1 NO - RELAY_OUT P2
R1 1 - U2 IO23
Q3 D - D5 K
J1 P1 - F1 P1
L1 2 - U1 FEEDBACK
U6 SDA - U2 IO21
Q3 D - D5 K
U6 SCL - U2 IO22
Q3 D - D5 K
U6 SCL - U2 IO22
R3
Resistance
4.7kΩ
R4
Resistance
4.7kΩ
RSHUNT
Resistance
0.22 Ω
R5
Resistance
100kΩ
R6
Resistance
100kΩ
FB2
C5
Capacitance
100nF
C7
Capacitance
100nF
D3 A - J1 P2
U1 GND_TAB - U1 ~ON~/OFF
R2 2 - Q1 E
U2 GND3 - U6 GND
U1 GND_TAB - U1 ~ON~/OFF
U6 A1 - C1 2
U1 GND_TAB - U1 ~ON~/OFF
U6 A1 - C1 2
U1 GND_TAB - U1 ~ON~/OFF
D3 A - J1 P2
U6 A1 - C1 2
C3
Capacitance
100nF
D3 A - J1 P2
R2 2 - Q1 E
R5 P2 - D5 A
R2 2 - Q1 E
C4
Capacitance
100nF
D3 A - J1 P2
U6 A1 - C1 2
D3 A - J1 P2
D3 A - J1 P2
U1 GND_TAB - U1 ~ON~/OFF
RELAY_OUT
D3
D1
Q1
D2
K1
J1
L1
Inductance
68uH
D6
Q2
C2
Capacitance
100uF
C1
Capacitance
100uF
R2
Resistance
10kΩ
F2
U1

Refine this doc
Ask about this doc
Relay Driver Stage Audit
Date: 2026-05-11
Scope: audit only; no project modifications were made.
Result
Overall: PASS with layout cleanup notes.
The INA219 high-side relay coil sensing topology is logically correct in the schematic, and the PCB review did not report airwires for the checked nets. The one layout concern is that the latest DRC review reports 4 dangling trace warnings, so stale/open copper should be cleaned before fabrication even though it is not specifically reported as a shunt bypass.
Expected topology checked
Expected:
5V / U6 IN+ -> RSHUNT -> RELAY_COIL_HIGH_SENSE / U6 IN- / K1 A1
Observed schematic topology:
  • 5V: RSHUNT:P1, U6:IN+, D1:cathode, L1:2, U1:FEEDBACK, C2:1, C4:P1, U2:EXT_5V
  • RELAY_COIL_HIGH_SENSE: RSHUNT:P2, U6:IN-, K1:A1
  • RELAY_COIL_LOW: K1:A2, D1:anode, Q1:C
  • GND: Q1:E, U6:GND, U2:GND1/GND2/GND3, C5:P2, U6:A0, U6:A1, and other ground points
Checklist

Table


#CheckResultEvidence / notes
1U6 IN+ is on the 5V source side of RSHUNTPASSU6:IN+ and RSHUNT:P1 are both on net 5V.
2U6 IN- is on relay-coil side of RSHUNTPASSU6:IN-, RSHUNT:P2, and K1:A1 are all on RELAY_COIL_HIGH_SENSE.
3RSHUNT is physically routed in series with actual relay coil current path, not just connected by labelsPASS, with DRC cleanup noteSchematic 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.
4No alternate copper path bypasses RSHUNTPASS for steady-state coil currentNo 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.
5INA219 VS is powered from 3.3VPASSU6:VS is on 3V3.
6SDA/SCL are pulled up to 3.3V, not 5VPASSR3 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.
7INA219 GND is common with ESP32 GNDPASSU6:GND and U2:GND1/GND2/GND3 are on common GND.
8A0/A1 address pins are intentionally tied and not floatingPASSU6:A0 and U6:A1 are both tied to GND. This selects the all-ground address configuration and is not floating.
9C5 100nF decoupling capacitor is close to INA219 VS/GNDMARGINAL PASS / IMPROVEC5 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.
Complete relay coil current path
When Q1 is on, the intended DC relay coil current path is:
5V rail -> RSHUNT:P1 -> RSHUNT:P2 -> RELAY_COIL_HIGH_SENSE -> K1:A1 -> relay coil -> K1:A2 -> RELAY_COIL_LOW -> Q1:C -> Q1:E -> GND
INA219 sensing points:
  • High/source side: U6:IN+ on 5V
  • Low/load side: U6:IN- on RELAY_COIL_HIGH_SENSE
Can relay coil current bypass RSHUNT?
Steady-state energized relay current: no bypass found.
The only schematic connection to K1: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.
Transient flyback current note: 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.
Expected shunt voltage
Using Vshunt = I * R, with RSHUNT = 0.22 ohm:

Table


Coil currentShunt voltage
70 mA15.4 mV
80 mA17.6 mV
100 mA22.0 mV
Power in RSHUNT at 100 mA is I^2R = 0.1^2 * 0.22 = 0.0022 W, far below the intended 0.25 W rating.
Layout observations
Relevant component positions from PCB layout:

Table


ComponentPosition / placement
RSHUNTTop layer, center about (-0.82, -12.96) mm, 1206 package
U6Top layer, center about (0.87, -17.64) mm, SOT-23-8, rotated 90 degrees
C5Top layer, center about (4.11, -12.96) mm, 0603 package
K1Top layer, center about (-16.91, 20.56) mm
The shunt and INA219 are close to each other, which is good for the sense input pair. K1 is much farther away, but that is not a functional issue if the high-current copper from RSHUNT:P2 to K1:A1 is routed with adequate width and does not branch around the shunt.
Layout corrections needed
  1. Clean dangling traces before fabrication. Latest DRC reports 4 dangling trace warnings: Trace 1855, Trace 45f1, Trace 4f4c, and Trace 8aa5. These are stale/open copper risks and should be removed or re-routed.
  2. Move C5 closer to U6 VS/GND if practical. It is currently about 5.7 mm center-to-center from U6; a tighter local bypass placement near the VS/GND pins is preferred.
  3. After cleanup, re-run DRC and specifically confirm no airwires remain on 5V, RELAY_COIL_HIGH_SENSE, and RELAY_COIL_LOW.
  4. Visually inspect copper on 5V and RELAY_COIL_HIGH_SENSE after routing cleanup to confirm no same-net or stale copper creates an unintended direct bridge around RSHUNT.
Final verdict
PASS for the INA219 high-side relay coil measurement topology and intended shunt value/properties.
Action before fabrication: clean dangling traces and improve C5 placement if possible; then re-run DRC.
  • 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

12-24 -> esp controller thumbnail
Golf ball dispenser controller with protected 12V-24V DC input, LM2596 5V buck, ESP32 control, INA219 relay-coil sensing, and dry-contact relay output.

Properties

Properties describe core aspects of the project.

Pricing & Availability

Distributor

Qty 1

Arrow

$6.08–$9.50

Digi-Key

$25.76–$27.71

LCSC

$5.21–$5.34

Mouser

$13.99–$14.05

TME

$10.13

Verical

$4.35–$8.42

Controls