Design Notes - Single-Slot 18650 SOH Analyzer Prototype
Implemented Schematic Blocks
- Power input: J1 DC barrel jack -> F1 2A blade fuse holder -> D1 1N5819 Schottky reverse-polarity diode -> VIN_PROTECTED.
- Main filtering: C1 100uF bulk and C2 10uF on VIN_PROTECTED to PGND.
- ESP32 DevKit mount: two 15-pin female headers J6/J7 for a 30-pin ESP32 DevKit V1.
- Discharge path: BATT_IN J2+ -> INA219 high-side current path -> LOAD_RES J3 -> Q1 drain/source low-side switch -> PGND.
- Fan path: VIN_PROTECTED -> 12V_FAN J4+ -> fan return -> Q2 drain/source low-side switch -> PGND.
- Measurement/UI: INA219 header J8, ADS1115 header J9, DS18B20 screw terminal J5, SSD1306 OLED header J10, three buttons, six LEDs.
Key Assumptions
- Breakout modules are represented by female header sockets, not by the ICs directly. This matches the prototyping-board requirement and keeps assembly hand-solderable.
- Header pin mappings are documented in
firmware-getting-started. Verify against the exact ESP32 DevKit V1 module before fabrication because 30-pin DevKit clones can swap silkscreen order.
- INA219 header assumption: Pin_1 VCC, Pin_2 GND/AGND, Pin_3 SCL, Pin_4 SDA, Pin_5 VIN-, Pin_6 VIN+.
- ADS1115 header assumption: Pin_1 VDD, Pin_2 GND/AGND, Pin_3 SCL, Pin_4 SDA, Pin_7 A0. Unused address/alert/extra analog pins are marked no-connect.
- OLED header assumption: Pin_1 GND, Pin_2 VCC, Pin_3 SCL, Pin_4 SDA.
- DS18B20 screw terminal assignment: Pin 1 GND, Pin 2 3V3, Pin 3 data.
Current and Thermal Notes
- External load resistor: 4.7 ohm, 25 W. A single Li-ion at 4.2 V produces about 0.89 A and about 3.75 W in the resistor. The external 25 W resistor has large margin but still needs airflow and safe mounting.
- Q1 IRLZ44N: datasheet pinout is Gate = pin 1, Drain = pin 2/tab, Source = pin 3. It is logic-level and has RDS(on) listed at VGS = 4 V and 5 V, so ESP32 3.3 V drive is usable for this sub-1 A discharge load but will not match the lowest 10 V RDS(on) rating.
- Q2 fan MOSFET is low-side switched; confirm fan current is below the input supply and connector limits.
- The 1N5819 is a 1 A class Schottky in the selected library. It is acceptable for a low-current ESP32/fan supply path if total continuous input current stays under 1 A; if the fan or accessories exceed this, replace D1 with a higher-current Schottky diode or ideal-diode MOSFET stage.
Grounding Strategy
- PGND is used for the battery negative, MOSFET sources, fan return, VIN capacitors, buttons, LEDs, and ESP32 ground.
- AGND is used for INA219 and ADS1115 measurement module grounds.
- Layout should implement separated PGND and AGND fills that meet at exactly one star point at the ESP32 primary ground pin region. The schematic keeps AGND and PGND as separate named nets to preserve that layout intent.
Required PCB Floorplan Before Routing
Board: 100 mm x 140 mm rectangle.
Recommended stackup: Standard 4 Layer, because the design has high-current paths, sensitive measurement nets, and multiple functional zones.
Zone 1, top boundary: DC jack, fuse, D1, Q1, Q2; BATT_IN, LOAD_RES, and 12V_FAN 15 mm below MOSFETs.
Zone 2, center-left: ESP32 headers J6/J7; R1/R2 close to ESP32 GPIO pins; R3/R4 close to MOSFET gates/sources.
Zone 3, bottom/right: INA219, ADS1115, DS18B20, OLED, buttons, and LEDs along the bottom/right edges.
Routing Rules to Apply in Layout
- High-current discharge loop and DC input rails: 3.0 mm minimum trace width.
- Signal, I2C, buttons, LEDs, and logic: 0.254 mm trace width.
- Keep BATT_PLUS_SENSED, LOAD_RES_IN, DISCHARGE_DRAIN, VIN_PROTECTED, and PGND physically away from I2C and ADS1115/INA219 signal traces.
- Keep MOSFET heatsink clearance at the top edge.