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.VIN_RAW: J1 positive input to F1VIN_FUSED: F1 output to Q3 sourceVIN_PROTECTED: Q3 drain feeding D5, C7, FB2, and R6VIN_GATE: Q3 gate with R5, R6, and D6VIN_FILTERED: FB2 output feeding U1 VIN, C1, and C312V-24V Input Protection Stage
Protection ordering
Selected components actually added
Net integration
Placement priorities
Verification criteria