INA219 Current Measurement Audit
Started implementing a plan
#Goal
- Audit and fix the PCB routing around the Q2 input reverse-polarity protection stage based on the schematic correction, concentrating only on Q2, F2, D3, D6, R5, R6, C7, FB2 and nets VIN_RAW, VIN_FUSED, VIN_PROTECTED, VIN_GATE, and GND. The goal is to remove stale traces from the Q2 source/drain reversal and reroute the protected input path so that it physically follows the path: J1 P1 -> F2 -> VIN_FUSED -> Q2 -> VIN_PROTECTED -> D3/C7/FB2 -> VIN_FILTERED, while ensuring the routing remains short and direct without impacting other nets (ESP32, relay, INA219, buck output, RELAY_OUT, dry-contact).
#Implementation plan
1. **Audit and Cleanup**
1. Inspect the existing PCB layout in the Q2 input reverse-polarity area to identify stale traces and artifacts from the old Q2 source/drain swap.
2. Remove or sever stale traces that connect the Q2 source/drain paths from previous routing.
2. **Reroute Input-Protected Path**
1. Reroute the protected input path to ensure the physical trace follows: J1 P1 -> F2 -> VIN_FUSED -> Q2 -> VIN_PROTECTED -> D3/C7/FB2 -> VIN_FILTERED.
2. Maintain a short and direct routing while connecting the nets correctly.
3. Preserve the integrity of other nets and components including ESP32, relay, INA219, buck output, RELAY_OUT, and dry-contact.
3. **DRC Verification and Reporting**
1. Run a targeted Design Rule Check (DRC) focusing on the audited area to ensure clearance and connectivity rules are met.
2. Document and report the exact physical routing path and confirm that the reverse-polarity protection works as intended (i.e. reverse-polarity does not pass through VIN_PROTECTED into the remainder of the circuit).
#Success criteria
- All stale traces from the Q2 source/drain swap are removed without affecting other board areas.
- The physical routing path exactly follows J1 P1 -> F2 -> VIN_FUSED -> Q2 -> VIN_PROTECTED -> D3/C7/FB2 -> VIN_FILTERED, ensuring short and direct routing.
- DRC reports no violations in the scoped area and confirm reverse-polarity behavior as expected.
- The protected input path prevents undesired conduction during reverse polarity events.
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.RSHUNT as a 0.22 Ω, 1%, 0.25 W, SMD 1206 shunt resistor.RSHUNT:P1 to 5V, the same net as U6:IN+.RSHUNT:P2 to RELAY_COIL_HIGH_SENSE, the same net as U6:IN- and K1:A1.K1:A2 connects to RELAY_COIL_LOW, with D1:anode and Q1:C.Q1:E remains on GND; Q1:B remains driven through R1 with R2 pulldown.D1:cathode on 5V, D1:anode on RELAY_COIL_LOW.Text
5V / U6:IN+ -> RSHUNT -> RELAY_COIL_HIGH_SENSE / U6:IN- / K1:A1 K1:A2 -> Q1:C Q1:E -> GND D1 cathode -> 5V side D1 anode -> relay low side
RSHUNT has been placed near U6 to keep the INA219 sense loop short. Before manufacturing, reroute the PCB so the new physical current path is implemented: 5V -> RSHUNT -> RELAY_COIL_HIGH_SENSE -> K1:A1. The current review still reports layout routing issues after adding/moving the shunt, so do not manufacture until routing is updated and DRC is clean again.