jsm/charger
An 80×50 mm 4S Li-ion charger PCB using a BQ24735 controller, protected 24 V input, MOSFET synchronous buck stage, 4.7 µH inductor, current sensing, filtering, XT30 battery output, and SMBus control interface to deliver up to 16.8 V at 5 A.
- Version
- 0.0.1
- License
- unset
- Stars
- 0
dist/index.cjs
'use strict';
var jsxRuntime = require('react/jsx-runtime');
/**
* Smart Charger 4S - Rev 17 (corrected wiring, functional-block schematic)
*
* Target: 4S Li-ion Battery Charger Daughterboard (16.8V max output, 5A charge current)
* Main Controller: Texas Instruments BQ24735RGRR (VQFN-20) [LCSC: C353879]
*
* CHANGES FROM v16 (see chat summary for full rationale):
* - VCC now bootstraps from raw adapter input (J_PWR) through a damping/
* reverse-protection filter, not from the post-RBFET rail (which cannot
* power up until the FETs are already on).
* - ILIM now has a real divider from the 3.3V host rail (was grounded, which
* disabled charging).
* - Input capacitance moved off the switching (PHASE) node onto the actual
* VIN_SW rail; ACP/ACN sense filtering added at the correct nodes.
* - ACDET divider corrected to a safe ratio for a 24V input (was 12V, over
* the 7V absolute max).
* - PowerPAD now wired to GND with an explicit pin.
* - Dead battery-drain divider (R_BQ14/15/12 + C_BQ4) removed.
* - BQ24735 pin 11 corrected from NC to BATDRV.
* - REGN / BTST / IOUT decoupling values corrected to datasheet limits.
* - Schematic reorganized into six functional sections on an A3 sheet,
* small passive symbols, wiring kept as direct traces (no netlabels)
* except for the single shared GND net, which uses ground symbols to
* avoid dozens of criss-crossing ground wires.
*
* PARTS FLAGGED "(verify LCSC)" use a value not in the original BOM; confirm
* the exact LCSC part number before ordering.
*/
const SHEET = "MAIN";
const sec = {
input: "INPUT_PROTECTION",
acsw: "AC_SWITCH_ACFET_RBFET",
ctrl: "BQ24735_CONTROLLER",
buck: "BUCK_POWER_STAGE",
out: "BATTERY_OUTPUT",
host: "HOST_SMBUS",
};
const R_XS = { schWidth: "1.4mm", schHeight: "0.7mm" };
const C_XS = { schWidth: "1.2mm", schHeight: "0.8mm" };
function SmartCharger4S() {
return (jsxRuntime.jsxs("board", { width: "80mm", height: "50mm", cornerRadius: "3mm", schSheetName: SHEET, schStyle: { defaultPassiveSize: "xs", defaultCapacitorOrientation: "vertical" }, children: [jsxRuntime.jsxs("schematicsheet", { name: SHEET, displayName: "Smart Charger 4S Rev17 \u2014 Functional Block Schematic", sheetWidth: "420mm", sheetHeight: "297mm", children: [jsxRuntime.jsx("schematicsection", { name: sec.input, displayName: "INPUT PROTECTION / VCC FILTER / ACDET", sectionTitleFontSize: "2.2mm" }), jsxRuntime.jsx("schematicsection", { name: sec.acsw, displayName: "ACFET / RBFET SWITCH", sectionTitleFontSize: "2.2mm" }), jsxRuntime.jsx("schematicsection", { name: sec.ctrl, displayName: "BQ24735 CONTROLLER", sectionTitleFontSize: "2.2mm" }), jsxRuntime.jsx("schematicsection", { name: sec.buck, displayName: "BUCK POWER STAGE", sectionTitleFontSize: "2.2mm" }), jsxRuntime.jsx("schematicsection", { name: sec.out, displayName: "BATTERY OUTPUT", sectionTitleFontSize: "2.2mm" }), jsxRuntime.jsx("schematicsection", { name: sec.host, displayName: "HOST / SMBUS / ILIM", sectionTitleFontSize: "2.2mm" })] }), jsxRuntime.jsx("net", { name: "GND", isGroundNet: true }), jsxRuntime.jsx("hole", { pcbX: -36, pcbY: 21, diameter: "3.2mm" }), jsxRuntime.jsx("hole", { pcbX: 36, pcbY: 21, diameter: "3.2mm" }), jsxRuntime.jsx("hole", { pcbX: -36, pcbY: -21, diameter: "3.2mm" }), jsxRuntime.jsx("hole", { pcbX: 36, pcbY: -21, diameter: "3.2mm" }), jsxRuntime.jsx("pinheader", { name: "J_PWR", schX: -70, schY: 20, schWidth: "3.8mm", schHeight: "2.6mm", pcbX: -33.5, pcbY: 0, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.input, pinCount: 2, portCount: 2, footprint: "jlcpcb:C8269", type: "connector", comment: "2-Pin Screw Terminal Block 5mm 20A", manufacturer: "KANGNEX", manufacturerPartNumber: "WJ128V-5.0-02P-14-00A", lcscPartNumber: "C8269", supplierPartNumber: "C8269", supplierPartNumbers: { lcsc: ["C8269"] }, pinLabels: { "1": "VIN", "2": "GND" }, pinAttributes: { VIN: { providesPower: true, providesVoltage: 24, mustBeConnected: true }, GND: { providesGround: true, mustBeConnected: true } } }), jsxRuntime.jsx("diode", { type: "tvs", name: "D_TVS", schX: -64, schY: 26, pcbX: -23, pcbY: 10, ...C_XS, schSheetName: SHEET, schSectionName: sec.input, footprint: "jlcpcb:C181285", comment: "26V low-clamping TVS diode SMB (verify LCSC)", manufacturer: "Littelfuse", manufacturerPartNumber: "SMBJ26A", pinLabels: { "1": "Cathode_VIN", "2": "Anode_GND" } }), jsxRuntime.jsx("resistor", { name: "R_ACDET_HI", resistance: "430k", ...R_XS, schX: -58, schY: 26, pcbX: -23, pcbY: 4, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.input, footprint: "0603", comment: "ACDET divider top 430k 1% 0603 (verify LCSC)", manufacturer: "UNI-ROYAL", manufacturerPartNumber: "0603WAF4303T5E" }), jsxRuntime.jsx("resistor", { name: "R_ACDET_LO", resistance: "56k", ...R_XS, schX: -58, schY: 20, pcbX: -23, pcbY: -1, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.input, footprint: "0603", comment: "ACDET divider bottom 56k 1% 0603 (verify LCSC)", manufacturer: "UNI-ROYAL", manufacturerPartNumber: "0603WAF5602T5E" }), jsxRuntime.jsx("resistor", { name: "R_VCC1", resistance: "2", ...R_XS, schX: -70, schY: 12, pcbX: -18, pcbY: 10, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.input, footprint: "1206", comment: "VCC hot-plug damping 2R 1206 (verify LCSC)", manufacturer: "UNI-ROYAL", manufacturerPartNumber: "2010WAF2R00TCE" }), jsxRuntime.jsx("capacitor", { name: "C_VCC_DAMP", capacitance: "2.2uF", ...C_XS, schX: -70, schY: 7, pcbX: -18, pcbY: 4, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.input, footprint: "1210", comment: "VCC damping cap 2.2uF 25V X7R 1210 (verify LCSC)", manufacturer: "Samsung", manufacturerPartNumber: "CL32B225KBJNNNE" }), jsxRuntime.jsx("diode", { type: "schottky", name: "D_VCC", schX: -64, schY: 12, pcbX: -18, pcbY: -1, ...C_XS, schSheetName: SHEET, schSectionName: sec.input, footprint: "jlcpcb:C12260", comment: "30V 200mA Schottky, VCC reverse-input protection", manufacturer: "Diodes Inc.", manufacturerPartNumber: "BAT54", lcscPartNumber: "C12260", supplierPartNumber: "C12260", supplierPartNumbers: { lcsc: ["C12260"] }, pinLabels: { "1": "Anode_toVIN", "2": "Cathode_toVCC" } }), jsxRuntime.jsx("resistor", { name: "R_VCC2", resistance: "10", ...R_XS, schX: -58, schY: 12, pcbX: -13, pcbY: 10, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.input, footprint: "1206", comment: "VCC series inrush limit 10R 1206", manufacturer: "UNI-ROYAL", manufacturerPartNumber: "2010WAF10R0TCE" }), jsxRuntime.jsx("capacitor", { name: "C_VCC2", capacitance: "1uF", ...C_XS, schX: -52, schY: 12, pcbX: -13, pcbY: 4, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.input, footprint: "0603", comment: "VCC pin decoupling 1uF 25V X7R 0603", manufacturer: "Fenghua", manufacturerPartNumber: "0603B105K250NT" }), jsxRuntime.jsx("trace", { path: [".J_PWR > .pin1", ".D_TVS > .pin1"] }), jsxRuntime.jsx("trace", { path: [".D_TVS > .pin1", ".R_ACDET_HI > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_ACDET_HI > .pin1", ".R_VCC1 > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_ACDET_HI > .pin2", ".R_ACDET_LO > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_ACDET_LO > .pin1", ".U_BQ > .pin6"] }), jsxRuntime.jsx("trace", { path: [".R_VCC1 > .pin2", ".C_VCC_DAMP > .pin1"] }), jsxRuntime.jsx("trace", { path: [".C_VCC_DAMP > .pin1", ".D_VCC > .pin1"] }), jsxRuntime.jsx("trace", { path: [".D_VCC > .pin2", ".R_VCC2 > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_VCC2 > .pin2", ".C_VCC2 > .pin1"] }), jsxRuntime.jsx("trace", { path: [".C_VCC2 > .pin1", ".U_BQ > .pin20"] }), jsxRuntime.jsx("trace", { path: [".D_TVS > .pin2", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".J_PWR > .pin2", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".R_ACDET_LO > .pin2", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".C_VCC_DAMP > .pin2", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".C_VCC2 > .pin2", "net.GND"] }), jsxRuntime.jsx("resistor", { name: "R_AC", resistance: "10mR", ...R_XS, schX: -38, schY: 26, pcbX: -9, pcbY: 12, pcbRotation: 0, schSheetName: SHEET, schSectionName: sec.acsw, footprint: "1206", comment: "Adapter current-sense resistor 10mR 1% 1206", manufacturer: "Yageo", manufacturerPartNumber: "RL1206FR-070R01L", lcscPartNumber: "C113063", supplierPartNumber: "C113063", supplierPartNumbers: { lcsc: ["C113063"] } }), jsxRuntime.jsx("capacitor", { name: "C_ACP", capacitance: "0.1uF", ...C_XS, schX: -38, schY: 31, pcbX: -9, pcbY: 17, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.acsw, footprint: "0603", comment: "ACP common-mode filter 0.1uF 25V X7R 0603", manufacturer: "Fenghua", manufacturerPartNumber: "0603B104K500NT", lcscPartNumber: "C14663", supplierPartNumber: "C14663", supplierPartNumbers: { lcsc: ["C14663"] } }), jsxRuntime.jsx("capacitor", { name: "C_ACN", capacitance: "0.1uF", ...C_XS, schX: -32, schY: 31, pcbX: -4, pcbY: 17, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.acsw, footprint: "0603", comment: "ACN common-mode filter 0.1uF 25V X7R 0603", manufacturer: "Fenghua", manufacturerPartNumber: "0603B104K500NT", lcscPartNumber: "C14663", supplierPartNumber: "C14663", supplierPartNumbers: { lcsc: ["C14663"] } }), jsxRuntime.jsx("capacitor", { name: "C_ACPN", capacitance: "0.1uF", ...C_XS, schX: -38, schY: 20, pcbX: -4, pcbY: 12, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.acsw, footprint: "0603", comment: "ACP-ACN differential-mode filter 0.1uF 25V X7R 0603", manufacturer: "Fenghua", manufacturerPartNumber: "0603B104K500NT", lcscPartNumber: "C14663", supplierPartNumber: "C14663", supplierPartNumbers: { lcsc: ["C14663"] } }), jsxRuntime.jsx("mosfet", { channelType: "n", mosfetMode: "enhancement", name: "Q_IN1", schX: -24, schY: 26, schWidth: "2.6mm", schHeight: "2.0mm", pcbX: -13, pcbY: 12, pcbRotation: 0, schSheetName: SHEET, schSectionName: sec.acsw, footprint: "jlcpcb:C179623", comment: "ACFET: 30V 1.7mR N-Channel MOSFET DFN-8", manufacturer: "onsemi", manufacturerPartNumber: "NTMFS4C022NT1G", lcscPartNumber: "C179623", supplierPartNumber: "C179623", supplierPartNumbers: { lcsc: ["C179623"] }, pinLabels: { "1": "Source", "2": "Source", "3": "Source", "4": "Gate", "5": "Drain", "6": "Drain", "7": "Drain", "8": "Drain" }, pinAttributes: { Source: { mustBeConnected: true }, Gate: { mustBeConnected: true }, Drain: { mustBeConnected: true } } }), jsxRuntime.jsx("mosfet", { channelType: "n", mosfetMode: "enhancement", name: "Q_IN2", schX: -16, schY: 26, schWidth: "2.6mm", schHeight: "2.0mm", pcbX: -6, pcbY: 12, pcbRotation: 0, schSheetName: SHEET, schSectionName: sec.acsw, footprint: "jlcpcb:C179623", comment: "RBFET: 30V 1.7mR N-Channel MOSFET DFN-8", manufacturer: "onsemi", manufacturerPartNumber: "NTMFS4C022NT1G", lcscPartNumber: "C179623", supplierPartNumber: "C179623", supplierPartNumbers: { lcsc: ["C179623"] }, pinLabels: { "1": "Source", "2": "Source", "3": "Source", "4": "Gate", "5": "Drain", "6": "Drain", "7": "Drain", "8": "Drain" }, pinAttributes: { Source: { mustBeConnected: true }, Gate: { mustBeConnected: true }, Drain: { mustBeConnected: true } } }), jsxRuntime.jsx("resistor", { name: "R_CMSRC", resistance: "4.02k", ...R_XS, schX: -16, schY: 19, pcbX: -9, pcbY: 6, pcbRotation: 0, schSheetName: SHEET, schSectionName: sec.acsw, footprint: "0603", comment: "CMSRC inrush limit 4.02k 1% 0603", manufacturer: "UNI-ROYAL", manufacturerPartNumber: "0603WAF4021T5E" }), jsxRuntime.jsx("resistor", { name: "R_ACDRV", resistance: "4.02k", ...R_XS, schX: -24, schY: 19, pcbX: -9, pcbY: 2, pcbRotation: 0, schSheetName: SHEET, schSectionName: sec.acsw, footprint: "0603", comment: "ACDRV inrush limit 4.02k 1% 0603", manufacturer: "UNI-ROYAL", manufacturerPartNumber: "0603WAF4021T5E" }), jsxRuntime.jsx("trace", { path: [".R_ACDET_HI > .pin1", ".R_AC > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_AC > .pin1", ".U_BQ > .pin2"] }), jsxRuntime.jsx("trace", { path: [".R_AC > .pin1", ".C_ACP > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_AC > .pin2", ".U_BQ > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_AC > .pin2", ".C_ACN > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_AC > .pin2", ".C_ACPN > .pin1"] }), jsxRuntime.jsx("trace", { path: [".C_ACP > .pin1", ".C_ACPN > .pin2"] }), jsxRuntime.jsx("trace", { path: [".R_AC > .pin2", ".Q_IN1 > .pin5"] }), jsxRuntime.jsx("trace", { path: [".Q_IN1 > .pin1", ".Q_IN2 > .pin1"] }), jsxRuntime.jsx("trace", { path: [".Q_IN2 > .pin1", ".R_CMSRC > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_CMSRC > .pin2", ".U_BQ > .pin3"] }), jsxRuntime.jsx("trace", { path: [".U_BQ > .pin4", ".R_ACDRV > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_ACDRV > .pin2", ".Q_IN1 > .pin4"] }), jsxRuntime.jsx("trace", { path: [".Q_IN1 > .pin4", ".Q_IN2 > .pin4"] }), jsxRuntime.jsx("trace", { path: [".C_ACP > .pin2", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".C_ACN > .pin2", "net.GND"] }), jsxRuntime.jsx("chip", { name: "U_BQ", schX: 20, schY: 0, schWidth: "4.4mm", schHeight: "4.6mm", pcbX: -2, pcbY: -6, pcbRotation: 0, schSheetName: SHEET, schSectionName: sec.ctrl, footprint: "jlcpcb:C353879", comment: "1-4 Cell SMBus Battery Charge Controller VQFN-20", manufacturer: "Texas Instruments", manufacturerPartNumber: "BQ24735RGRR", lcscPartNumber: "C353879", supplierPartNumber: "C353879", supplierPartNumbers: { lcsc: ["C353879"] }, pinLabels: {
"1": "ACN", "2": "ACP", "3": "CMSRC", "4": "ACDRV", "5": "ACOK",
"6": "ACDET", "7": "IOUT", "8": "SDA", "9": "SCL", "10": "ILIM",
"11": "BATDRV", "12": "SRN", "13": "SRP", "14": "GND", "15": "LODRV",
"16": "REGN", "17": "BTST", "18": "HIDRV", "19": "PHASE", "20": "VCC",
"21": "PAD",
}, pinAttributes: {
ACN: { requiresVoltage: 24, mustBeConnected: true },
ACP: { requiresVoltage: 24, mustBeConnected: true },
CMSRC: { mustBeConnected: true },
ACDRV: { mustBeConnected: true },
ACOK: { needsExternalPullup: true, mustBeConnected: true },
ACDET: { mustBeConnected: true },
IOUT: { shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "100pF" },
SDA: { needsExternalPullup: true, mustBeConnected: true },
SCL: { needsExternalPullup: true, mustBeConnected: true },
ILIM: { mustBeConnected: true },
BATDRV: { mustBeConnected: false },
SRN: { requiresVoltage: 16.8, mustBeConnected: true },
SRP: { requiresVoltage: 16.8, mustBeConnected: true },
GND: { requiresGround: true, mustBeConnected: true },
LODRV: { mustBeConnected: true },
REGN: { providesPower: true, providesVoltage: 6.0, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "1.0uF" },
BTST: { mustBeConnected: true },
HIDRV: { mustBeConnected: true },
PHASE: { mustBeConnected: true },
VCC: { requiresPower: true, requiresVoltage: 24, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "0.1uF" },
PAD: { requiresGround: true, mustBeConnected: true },
} }), jsxRuntime.jsx("capacitor", { name: "C_REGN", capacitance: "1uF", ...C_XS, schX: 28, schY: 8, pcbX: 4, pcbY: -2, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.ctrl, footprint: "0603", comment: "REGN LDO output 1uF 10V X7R 0603 (verify LCSC)", manufacturer: "Fenghua", manufacturerPartNumber: "0603B105K160NT" }), jsxRuntime.jsx("diode", { type: "schottky", name: "D_BST", schX: 22, schY: 8, pcbX: 0, pcbY: -2, ...C_XS, schSheetName: SHEET, schSectionName: sec.ctrl, footprint: "jlcpcb:C12260", comment: "Bootstrap Schottky, REGN to BTST", manufacturer: "Diodes Inc.", manufacturerPartNumber: "BAT54", lcscPartNumber: "C12260", supplierPartNumber: "C12260", supplierPartNumbers: { lcsc: ["C12260"] }, pinLabels: { "1": "Anode_REGN", "2": "Cathode_BTST" } }), jsxRuntime.jsx("capacitor", { name: "C_BST", capacitance: "0.047uF", ...C_XS, schX: 16, schY: 8, pcbX: 0, pcbY: -9, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.ctrl, footprint: "0603", comment: "Bootstrap cap 0.047uF 25V X7R 0603 (BTST-PHASE)", manufacturer: "Fenghua", manufacturerPartNumber: "0603B473K250NT" }), jsxRuntime.jsx("capacitor", { name: "C_IOUT", capacitance: "100pF", ...C_XS, schX: 28, schY: -3, pcbX: 9, pcbY: -9, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.ctrl, footprint: "0603", comment: "IOUT decoupling 100pF 25V C0G 0603 (verify LCSC)", manufacturer: "Samsung", manufacturerPartNumber: "CL10C101JB8NNNC" }), jsxRuntime.jsx("trace", { path: [".U_BQ > .pin16", ".C_REGN > .pin1"] }), jsxRuntime.jsx("trace", { path: [".C_REGN > .pin1", ".D_BST > .pin1"] }), jsxRuntime.jsx("trace", { path: [".D_BST > .pin2", ".U_BQ > .pin17"] }), jsxRuntime.jsx("trace", { path: [".U_BQ > .pin17", ".C_BST > .pin1"] }), jsxRuntime.jsx("trace", { path: [".C_BST > .pin2", ".U_BQ > .pin19"] }), jsxRuntime.jsx("trace", { path: [".U_BQ > .pin7", ".C_IOUT > .pin1"] }), jsxRuntime.jsx("trace", { path: [".C_REGN > .pin2", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".C_IOUT > .pin2", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".U_BQ > .pin14", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".U_BQ > .pin21", "net.GND"] }), jsxRuntime.jsx("pinheader", { name: "J_CTRL", schX: -58, schY: -24, schWidth: "3.8mm", schHeight: "2.6mm", pcbX: -28, pcbY: -18, pcbRotation: 0, schSheetName: SHEET, schSectionName: sec.host, pinCount: 4, portCount: 4, type: "connector", footprint: jsxRuntime.jsxs("footprint", { children: [jsxRuntime.jsx("platedhole", { name: "J_CTRL_PAD_1", pcbX: "-3.81mm", pcbY: "0mm", shape: "circle", holeDiameter: "1.0mm", outerDiameter: "1.8mm", portHints: ["pin1"] }), jsxRuntime.jsx("platedhole", { name: "J_CTRL_PAD_2", pcbX: "-1.27mm", pcbY: "0mm", shape: "circle", holeDiameter: "1.0mm", outerDiameter: "1.8mm", portHints: ["pin2"] }), jsxRuntime.jsx("platedhole", { name: "J_CTRL_PAD_3", pcbX: "1.27mm", pcbY: "0mm", shape: "circle", holeDiameter: "1.0mm", outerDiameter: "1.8mm", portHints: ["pin3"] }), jsxRuntime.jsx("platedhole", { name: "J_CTRL_PAD_4", pcbX: "3.81mm", pcbY: "0mm", shape: "circle", holeDiameter: "1.0mm", outerDiameter: "1.8mm", portHints: ["pin4"] }), jsxRuntime.jsx("courtyardrect", { width: "10.0mm", height: "3.4mm" })] }), comment: "4-Pin Vertical Male Header 2.54mm", manufacturer: "Generic", manufacturerPartNumber: "PinHeader_1x04_P2.54", lcscPartNumber: "C2337", supplierPartNumber: "C2337", supplierPartNumbers: { lcsc: ["C2337"] }, pinLabels: { "1": "GND", "2": "SCL", "3": "SDA", "4": "VCC_3V3" }, pinAttributes: {
GND: { requiresGround: true, mustBeConnected: true },
SCL: { mustBeConnected: true },
SDA: { mustBeConnected: true },
VCC_3V3: { requiresPower: true, requiresVoltage: 3.3, mustBeConnected: true },
} }), jsxRuntime.jsx("resistor", { name: "R_SCL_PU", resistance: "10k", ...R_XS, schX: -50, schY: -18, pcbX: -22, pcbY: -18, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.host, footprint: "0603", comment: "SCL pull-up 10k 1% 0603", manufacturer: "UNI-ROYAL", manufacturerPartNumber: "0603WAF1002T5E", lcscPartNumber: "C25804", supplierPartNumber: "C25804", supplierPartNumbers: { lcsc: ["C25804"] } }), jsxRuntime.jsx("resistor", { name: "R_SDA_PU", resistance: "10k", ...R_XS, schX: -50, schY: -24, pcbX: -17, pcbY: -18, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.host, footprint: "0603", comment: "SDA pull-up 10k 1% 0603", manufacturer: "UNI-ROYAL", manufacturerPartNumber: "0603WAF1002T5E", lcscPartNumber: "C25804", supplierPartNumber: "C25804", supplierPartNumbers: { lcsc: ["C25804"] } }), jsxRuntime.jsx("resistor", { name: "R_ACOK_PU", resistance: "10k", ...R_XS, schX: -50, schY: -30, pcbX: -12, pcbY: -18, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.host, footprint: "0603", comment: "ACOK pull-up 10k 1% 0603", manufacturer: "UNI-ROYAL", manufacturerPartNumber: "0603WAF1002T5E", lcscPartNumber: "C25804", supplierPartNumber: "C25804", supplierPartNumbers: { lcsc: ["C25804"] } }), jsxRuntime.jsx("resistor", { name: "R_ILIM_HI", resistance: "18k", ...R_XS, schX: -36, schY: -18, pcbX: -7, pcbY: -18, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.host, footprint: "0603", comment: "ILIM divider top 18k 1% 0603 (verify LCSC)", manufacturer: "UNI-ROYAL", manufacturerPartNumber: "0603WAF1802T5E" }), jsxRuntime.jsx("resistor", { name: "R_ILIM_LO", resistance: "10k", ...R_XS, schX: -36, schY: -24, pcbX: -2, pcbY: -18, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.host, footprint: "0603", comment: "ILIM divider bottom 10k 1% 0603", manufacturer: "UNI-ROYAL", manufacturerPartNumber: "0603WAF1002T5E", lcscPartNumber: "C25804", supplierPartNumber: "C25804", supplierPartNumbers: { lcsc: ["C25804"] } }), jsxRuntime.jsx("trace", { path: [".J_CTRL > .pin2", ".R_SCL_PU > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_SCL_PU > .pin1", ".U_BQ > .pin9"] }), jsxRuntime.jsx("trace", { path: [".J_CTRL > .pin3", ".R_SDA_PU > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_SDA_PU > .pin1", ".U_BQ > .pin8"] }), jsxRuntime.jsx("trace", { path: [".U_BQ > .pin5", ".R_ACOK_PU > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_SCL_PU > .pin2", ".J_CTRL > .pin4"] }), jsxRuntime.jsx("trace", { path: [".R_SDA_PU > .pin2", ".J_CTRL > .pin4"] }), jsxRuntime.jsx("trace", { path: [".R_ACOK_PU > .pin2", ".J_CTRL > .pin4"] }), jsxRuntime.jsx("trace", { path: [".J_CTRL > .pin4", ".R_ILIM_HI > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_ILIM_HI > .pin2", ".R_ILIM_LO > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_ILIM_LO > .pin1", ".U_BQ > .pin10"] }), jsxRuntime.jsx("trace", { path: [".J_CTRL > .pin1", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".R_ILIM_LO > .pin2", "net.GND"] }), jsxRuntime.jsx("mosfet", { channelType: "n", mosfetMode: "enhancement", name: "Q_SW1", schX: 32, schY: 22, schWidth: "2.6mm", schHeight: "2.0mm", pcbX: 8, pcbY: 12, pcbRotation: 0, schSheetName: SHEET, schSectionName: sec.buck, footprint: "jlcpcb:C179623", comment: "Buck high-side: 30V 1.7mR N-Channel MOSFET DFN-8", manufacturer: "onsemi", manufacturerPartNumber: "NTMFS4C022NT1G", lcscPartNumber: "C179623", supplierPartNumber: "C179623", supplierPartNumbers: { lcsc: ["C179623"] }, pinLabels: { "1": "Source", "2": "Source", "3": "Source", "4": "Gate", "5": "Drain", "6": "Drain", "7": "Drain", "8": "Drain" }, pinAttributes: { Source: { mustBeConnected: true }, Gate: { mustBeConnected: true }, Drain: { mustBeConnected: true } } }), jsxRuntime.jsx("mosfet", { channelType: "n", mosfetMode: "enhancement", name: "Q_SW2", schX: 32, schY: 14, schWidth: "2.6mm", schHeight: "2.0mm", pcbX: 8, pcbY: 2, pcbRotation: 0, schSheetName: SHEET, schSectionName: sec.buck, footprint: "jlcpcb:C179623", comment: "Buck low-side sync rectifier: 30V 1.7mR N-Channel MOSFET DFN-8", manufacturer: "onsemi", manufacturerPartNumber: "NTMFS4C022NT1G", lcscPartNumber: "C179623", supplierPartNumber: "C179623", supplierPartNumbers: { lcsc: ["C179623"] }, pinLabels: { "1": "Source", "2": "Source", "3": "Source", "4": "Gate", "5": "Drain", "6": "Drain", "7": "Drain", "8": "Drain" }, pinAttributes: { Source: { mustBeConnected: true }, Gate: { mustBeConnected: true }, Drain: { mustBeConnected: true } } }), jsxRuntime.jsx("capacitor", { name: "C_VIN_BULK", capacitance: "10uF", ...C_XS, schX: 22, schY: 22, pcbX: -13, pcbY: 3, pcbRotation: 0, schSheetName: SHEET, schSectionName: sec.buck, footprint: "1206", comment: "Buck input bulk cap 10uF 50V X7R 1206", manufacturer: "Samsung", manufacturerPartNumber: "CL31B106KBHNNNE", lcscPartNumber: "C128549", supplierPartNumber: "C128549", supplierPartNumbers: { lcsc: ["C128549"] } }), jsxRuntime.jsx("capacitor", { name: "C_VIN1", capacitance: "0.1uF", ...C_XS, schX: 22, schY: 17, pcbX: -13, pcbY: -3, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.buck, footprint: "0603", comment: "Buck input decoupling 0.1uF 25V X7R 0603", manufacturer: "Fenghua", manufacturerPartNumber: "0603B104K500NT", lcscPartNumber: "C14663", supplierPartNumber: "C14663", supplierPartNumbers: { lcsc: ["C14663"] } }), jsxRuntime.jsx("capacitor", { name: "C_VIN2", capacitance: "0.1uF", ...C_XS, schX: 22, schY: 12, pcbX: -13, pcbY: -8, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.buck, footprint: "0603", comment: "Buck input decoupling 0.1uF 25V X7R 0603", manufacturer: "Fenghua", manufacturerPartNumber: "0603B104K500NT", lcscPartNumber: "C14663", supplierPartNumber: "C14663", supplierPartNumbers: { lcsc: ["C14663"] } }), jsxRuntime.jsx("inductor", { name: "L_SW", inductance: "4.7uH", schX: 44, schY: 18, schWidth: "3.2mm", schHeight: "2.0mm", pcbX: 18, pcbY: 6, pcbRotation: 0, schSheetName: SHEET, schSectionName: sec.buck, footprint: "jlcpcb:C155155", comment: "Power inductor molded alloy 4.7uH 12.5x12.5mm", manufacturer: "Tai-Tech", manufacturerPartNumber: "TMPC1265HP-4R7MG-D", lcscPartNumber: "C155155", supplierPartNumber: "C155155", supplierPartNumbers: { lcsc: ["C155155"] }, pinAttributes: { "1": { mustBeConnected: true }, "2": { mustBeConnected: true } } }), jsxRuntime.jsx("resistor", { name: "R_SR", resistance: "10mR", ...R_XS, schX: 52, schY: 18, pcbX: 23, pcbY: -6, pcbRotation: 0, schSheetName: SHEET, schSectionName: sec.buck, footprint: "1206", comment: "Charge current-sense resistor 10mR 1% 1206", manufacturer: "Yageo", manufacturerPartNumber: "RL1206FR-070R01L", lcscPartNumber: "C113063", supplierPartNumber: "C113063", supplierPartNumbers: { lcsc: ["C113063"] } }), jsxRuntime.jsx("resistor", { name: "R_SRP_FILT", resistance: "10", ...R_XS, schX: 44, schY: 9, pcbX: 18, pcbY: -15, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.buck, footprint: "0603", comment: "SRP negative-output-voltage protection 10R 5% 0603", manufacturer: "UNI-ROYAL", manufacturerPartNumber: "0603W0J100JT5E" }), jsxRuntime.jsx("resistor", { name: "R_SRN_FILT", resistance: "7.5", ...R_XS, schX: 52, schY: 9, pcbX: 23, pcbY: -15, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.buck, footprint: "0603", comment: "SRN negative-output-voltage protection 7.5R 5% 0603", manufacturer: "UNI-ROYAL", manufacturerPartNumber: "0603W0J7R50JT5E" }), jsxRuntime.jsx("capacitor", { name: "C_SR_DIFF", capacitance: "0.1uF", ...C_XS, schX: 48, schY: 5, pcbX: 20, pcbY: -11, pcbRotation: 0, schSheetName: SHEET, schSectionName: sec.buck, footprint: "0603", comment: "SRP-SRN differential-mode filter 0.1uF 25V X7R 0603", manufacturer: "Fenghua", manufacturerPartNumber: "0603B104K500NT", lcscPartNumber: "C14663", supplierPartNumber: "C14663", supplierPartNumbers: { lcsc: ["C14663"] } }), jsxRuntime.jsx("capacitor", { name: "C_SRN_GND", capacitance: "0.1uF", ...C_XS, schX: 56, schY: 9, pcbX: 26, pcbY: -15, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.buck, footprint: "0603", comment: "SRN common-mode filter 0.1uF 25V X7R 0603", manufacturer: "Fenghua", manufacturerPartNumber: "0603B104K500NT", lcscPartNumber: "C14663", supplierPartNumber: "C14663", supplierPartNumbers: { lcsc: ["C14663"] } }), jsxRuntime.jsx("trace", { path: [".Q_IN2 > .pin5", ".Q_SW1 > .pin5"] }), jsxRuntime.jsx("trace", { path: [".Q_SW1 > .pin5", ".C_VIN_BULK > .pin1"] }), jsxRuntime.jsx("trace", { path: [".C_VIN_BULK > .pin1", ".C_VIN1 > .pin1"] }), jsxRuntime.jsx("trace", { path: [".C_VIN1 > .pin1", ".C_VIN2 > .pin1"] }), jsxRuntime.jsx("trace", { path: [".U_BQ > .pin18", ".Q_SW1 > .pin4"] }), jsxRuntime.jsx("trace", { path: [".Q_SW1 > .pin1", ".Q_SW2 > .pin5"] }), jsxRuntime.jsx("trace", { path: [".Q_SW2 > .pin5", ".L_SW > .pin1"] }), jsxRuntime.jsx("trace", { path: [".Q_SW2 > .pin5", ".U_BQ > .pin19"] }), jsxRuntime.jsx("trace", { path: [".U_BQ > .pin15", ".Q_SW2 > .pin4"] }), jsxRuntime.jsx("trace", { path: [".L_SW > .pin2", ".R_SR > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_SR > .pin1", ".R_SRP_FILT > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_SRP_FILT > .pin2", ".U_BQ > .pin13"] }), jsxRuntime.jsx("trace", { path: [".R_SR > .pin2", ".R_SRN_FILT > .pin1"] }), jsxRuntime.jsx("trace", { path: [".R_SRN_FILT > .pin2", ".U_BQ > .pin12"] }), jsxRuntime.jsx("trace", { path: [".U_BQ > .pin13", ".C_SR_DIFF > .pin1"] }), jsxRuntime.jsx("trace", { path: [".C_SR_DIFF > .pin2", ".U_BQ > .pin12"] }), jsxRuntime.jsx("trace", { path: [".U_BQ > .pin12", ".C_SRN_GND > .pin1"] }), jsxRuntime.jsx("trace", { path: [".C_VIN_BULK > .pin2", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".C_VIN1 > .pin2", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".C_VIN2 > .pin2", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".Q_SW2 > .pin1", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".C_SRN_GND > .pin2", "net.GND"] }), jsxRuntime.jsx("capacitor", { name: "C_OUT1", capacitance: "10uF", ...C_XS, schX: 68, schY: 22, pcbX: 28, pcbY: 18, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.out, footprint: "1206", comment: "Output cap 10uF 50V X7R 1206", manufacturer: "Samsung", manufacturerPartNumber: "CL31B106KBHNNNE", lcscPartNumber: "C128549", supplierPartNumber: "C128549", supplierPartNumbers: { lcsc: ["C128549"] }, pinAttributes: { "1": { requiresVoltage: 16.8, mustBeConnected: true }, "2": { requiresGround: true, mustBeConnected: true } } }), jsxRuntime.jsx("capacitor", { name: "C_OUT2", capacitance: "10uF", ...C_XS, schX: 72, schY: 22, pcbX: 28, pcbY: 12, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.out, footprint: "1206", comment: "Output cap 10uF 50V X7R 1206", manufacturer: "Samsung", manufacturerPartNumber: "CL31B106KBHNNNE", lcscPartNumber: "C128549", supplierPartNumber: "C128549", supplierPartNumbers: { lcsc: ["C128549"] }, pinAttributes: { "1": { requiresVoltage: 16.8, mustBeConnected: true }, "2": { requiresGround: true, mustBeConnected: true } } }), jsxRuntime.jsx("capacitor", { name: "C_OUT3", capacitance: "10uF", ...C_XS, schX: 76, schY: 22, pcbX: 28, pcbY: 6, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.out, footprint: "1206", comment: "Output cap 10uF 50V X7R 1206", manufacturer: "Samsung", manufacturerPartNumber: "CL31B106KBHNNNE", lcscPartNumber: "C128549", supplierPartNumber: "C128549", supplierPartNumbers: { lcsc: ["C128549"] }, pinAttributes: { "1": { requiresVoltage: 16.8, mustBeConnected: true }, "2": { requiresGround: true, mustBeConnected: true } } }), jsxRuntime.jsx("capacitor", { name: "C_OUT4", capacitance: "10uF", ...C_XS, schX: 80, schY: 22, pcbX: 28, pcbY: 0, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.out, footprint: "1206", comment: "Output cap 10uF 50V X7R 1206", manufacturer: "Samsung", manufacturerPartNumber: "CL31B106KBHNNNE", lcscPartNumber: "C128549", supplierPartNumber: "C128549", supplierPartNumbers: { lcsc: ["C128549"] }, pinAttributes: { "1": { requiresVoltage: 16.8, mustBeConnected: true }, "2": { requiresGround: true, mustBeConnected: true } } }), jsxRuntime.jsx("capacitor", { name: "C_OUT5", capacitance: "10uF", ...C_XS, schX: 84, schY: 22, pcbX: 28, pcbY: -6, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.out, footprint: "1206", comment: "Output cap 10uF 50V X7R 1206", manufacturer: "Samsung", manufacturerPartNumber: "CL31B106KBHNNNE", lcscPartNumber: "C128549", supplierPartNumber: "C128549", supplierPartNumbers: { lcsc: ["C128549"] }, pinAttributes: { "1": { requiresVoltage: 16.8, mustBeConnected: true }, "2": { requiresGround: true, mustBeConnected: true } } }), jsxRuntime.jsx("pinheader", { name: "J_BAT", schX: 78, schY: 14, schWidth: "3.8mm", schHeight: "2.6mm", pcbX: 33.5, pcbY: 6, pcbRotation: 90, schSheetName: SHEET, schSectionName: sec.out, pinCount: 2, portCount: 2, footprint: "jlcpcb:C8269", type: "connector", comment: "2-Pin Screw Terminal Block 5mm 20A", manufacturer: "KANGNEX", manufacturerPartNumber: "WJ128V-5.0-02P-14-00A", lcscPartNumber: "C8269", supplierPartNumber: "C8269", supplierPartNumbers: { lcsc: ["C8269"] }, pinLabels: { "1": "VBAT_OUT", "2": "GND" }, pinAttributes: { VBAT_OUT: { requiresVoltage: 16.8, mustBeConnected: true }, GND: { requiresGround: true, mustBeConnected: true } } }), jsxRuntime.jsx("trace", { path: [".R_SR > .pin2", ".C_OUT1 > .pin1"] }), jsxRuntime.jsx("trace", { path: [".C_OUT1 > .pin1", ".C_OUT2 > .pin1"] }), jsxRuntime.jsx("trace", { path: [".C_OUT2 > .pin1", ".C_OUT3 > .pin1"] }), jsxRuntime.jsx("trace", { path: [".C_OUT3 > .pin1", ".C_OUT4 > .pin1"] }), jsxRuntime.jsx("trace", { path: [".C_OUT4 > .pin1", ".C_OUT5 > .pin1"] }), jsxRuntime.jsx("trace", { path: [".C_OUT5 > .pin1", ".J_BAT > .pin1"] }), jsxRuntime.jsx("trace", { path: [".C_OUT1 > .pin2", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".C_OUT2 > .pin2", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".C_OUT3 > .pin2", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".C_OUT4 > .pin2", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".C_OUT5 > .pin2", "net.GND"] }), jsxRuntime.jsx("trace", { path: [".J_BAT > .pin2", "net.GND"] })] }));
}
module.exports = SmartCharger4S;