Chat


How can I help you?

Explain project
Write a project description
Find schematic issues

Project Specification
Project Overview
Status: Draft —226-component circuit captured, with BQ24610 charging redesign and reviewed footprint repairs complete. Charging remains physically inhibited; PCB and qualification work are unfinished. Not approved for fabrication.
Intended Use
12 V lead-acid vehicle battery telemetry prototype; not a safety-critical controller. Primary intended installation is in the cabin with an extended battery-sensing harness and an external temperature probe at the vehicle battery. Owner may test the monitor under bonnet without the optional backup pack; this is a test scenario, not an under-bonnet environmental qualification. No enclosure design is requested in this phase; any fitted rechargeable pack must remain within its rated operating and storage temperatures, including in a parked cabin.
What the Device Should Do
  • Measure vehicle battery voltage, onboard temperature and optional external passive two-wire temperature probe; trend detection is the priority, not precision thermometry.
  • Continue telemetry on the selected protected single-cell rechargeable lithium-ion pack when vehicle supply disappears.
  • Host all primary sensing, expansion and application control on an easy-to-develop ESP32-class MCU.
  • Drive a separate LoRaWAN modem via UART AT commands; provide independent firmware programming/recovery access to both processors.
  • Support powered, daisy-chainable CAN sensor expansion; preserve separate future vehicle-CAN capability.
Main Features
Protected automotive input, safe charger/power path with cell-coupled NTC, 3.3 V regulation across cell discharge, US915 LoRaWAN for first deployment in Portland, Oregon, onboard/external sensing, USB-C powered programming and protected CAN expansion.
Mechanical System Architecture
Bare PCB redesign for later enclosure mounting. All fitted components on TOP; route signals/power on the outer copper layers while reserving both inner copper layers as GND references, with ordinary through-vias where needed. Keyed edge connectors; RF and MCU antenna keepouts separated from switchers. Owner authorizes sizing from a high-quality PCB layout, with the enclosure designed around it later. Applied provisional envelope is 110 × 100 mm following authorized local re-layout; four 3.2 mm M3 clearance provisions and 8 mm hardware reservations are centered at X ±49, Y ±44 mm. The matching antenna and hardware reservations remain real constraints, not removable checker artifacts. No arbitrary earlier 60 x 65 mm maximum applies. External antenna option is for LoRa only; retain the host's onboard Wi-Fi antenna.
Electrical System Architecture
Protected vehicle input splits into a5 V host branch and a separate nominal12.50 V charging branch. The host branch and qualified USB feed U4, retained only as a permanently charge-disabled power path, then VSYS and3.3 V buck-boost. The separate branch feeds a standalone resistor-programmed BQ24610 charger through reverse blocking and charges VBAT at nominal4.20 V/~2.38 A. The protected pack supplies backup through U4. Hardware vehicle, actual charger-VCC, pack-NTC, source-margin and heartbeat conditions govern charging, and Q6 remains DNP as a physical inhibit. Separate protected5 V supplies CAN expansion only while vehicle-derived power is present. Host native CAN -> ISO11898-2 high-speed PHY -> two parallel sensor-expansion connectors; future vehicle CAN remains a separate accessory. See Standard Profile Charging Redesign for current profile/corner evidence and Power Budget for assumptions.
Hardware Subsystems
  • ESP32 module: prefer ESP32-S3 for adequate spare GPIO; smaller ESP32 variant acceptable only with complete GPIO/boot/recovery budget and meaningful cost benefit. ESP-IDF/Arduino development supported.
  • LoRaWAN: separately programmable UART AT modem with recoverable firmware; RAK3172-T family preferred if verified available and cost-effective. Do not treat bare LoRa transceiver as a LoRaWAN modem.
  • Automotive input: nominal 12 V; normal measurement range at least 0–18 V. Target reverse-battery and 24 V jump-start withstand, with transient clamping coordinated to all part ratings. Exact load-dump energy/pulse qualification is an open validation requirement, not a compliance claim.
  • Battery: selected Ultralife/Excell2EXL7571, catalog6 Ah protected1S2P lithium-ion pack with cell-coupled NTC; this replaces the initial1000–2000 mAh assumption and earlier GlobTek/RRC alternatives. Procurement, exact supplied revision, contact finish and a correctly mapped adapter remain open. Nominal charging is4.20 V/2.38 A with298 mA termination/precharge; conditional tolerances and physical acceptance are recorded in the current charging-design file. Do not populate Q6 or substitute a lower-current historical pack without review.
  • Sensing: calibrated battery-voltage input with filtering and specified MCU-off behavior; digital onboard temperature and passive thermistor external probe. Vehicle power/sense harness design target is up to 20 ft (6.1 m) one way, subject to conductor drop, protection and noise analysis. Use a separate high-impedance sense pair if needed rather than claiming load-dependent power-cable voltage equals battery-terminal voltage.
Interfaces and Connections
Vehicle power and battery sensing; keyed protected LiPo/NTC connections; passive two-wire temperature probe; external LoRa antenna option; USB-C and host programming/recovery; modem SWD/boot/reset; two keyed CAN expansion connectors with identical POWER/GND/CANH/CANL pinout. A future CAN expansion module shall monitor a second battery bank locally and report digitally; do not connect independent bank positives through sensor-power wiring or imply a second analog bank channel is already fitted. Define common-ground versus isolated expansion when the second-bank module is designed. Reserve separate SPI/IRQ/control/power/GND logic expansion for a future vehicle-CAN accessory and label it clearly as NOT direct vehicle CAN.
Power and Runtime Expectations
Owner confirms 15-minute LoRa telemetry, Wi-Fi off between events, Wi-Fi uploads for significant events and approximately one daily upload, and deep sleep between activity. Firmware shall bound connection/retry duration and queue data when Wi-Fi is unavailable; event thresholds remain configurable firmware policy. Owner targets 14 days of backup operation following vehicle-power loss, including the stated reporting behavior; demonstrate this through an energy budget and measurements, not a capacity-only claim. Expansion power defaults OFF in hardware and is unavailable on LiPo backup, avoiding uncontrolled auxiliary drain. Recommended CAN baseline remains 5 V, 250 mA shared across both connectors, 125 kbit/s, linear harness with endpoint termination; validate its intended sensor loads and cable drop. Future second-bank nodes may need their own local power.
For the selected nominal6 Ah pack,14 days=336 h permits17.86 mA average using full nameplate capacity, or 12.5 mA with a provisional70% usable-capacity allowance. Neither is measured consumption, guaranteed usable capacity or demonstrated runtime. Include all radio events, retries, sensing, converter/control quiescent currents, new charging-divider loads and leakage. The older2.2 Ah recommendation and associated runtime examples are historical, not the selected pack. See the current Power Budget.
Power Tree and Power Budget
Calculate all simultaneous host/modem/CAN peaks, charge demand, protected expansion load and converter losses before final power-part selection. Size 3.3 V path from datasheet peaks and minimum LiPo voltage, nominally targeting 1 A capability if required; verify guaranteed output, cell current, protected-pack rating, inductor saturation and charger battery-to-system path. Throttle charging if necessary rather than overloading the 5 V rail. Record sleep/active/peak tables, thermal checks, undervoltage shutdown/hysteresis and runtime assumptions in Power Budget. Updated owner-approved requirement: USB must power the board for programming without vehicle power or a backup pack. Implement protected, reverse-blocked source selection and USB current-budget management; do not silently power the external CAN load or unrestricted battery charging from a host port. The previous data-only USB restriction is superseded; implementation and verification remain in progress.
Manufacturing and Assembly Expectations
JLCPCB fabrication and one-side SMT assembly; standard supported four-layer stackup preferred. Every fitted part needs exact MPN, verified footprint, JLCPCB C-number where available, stock/cost evidence and assembly classification. LCSC stock alone does not prove JLCPCB assembly stock. No zero-stock/consigned-only module may silently pass as readily orderable. Prefer economical common passives and sensibly sized magnetics; preserve electrical safety over cost. No order will be placed without user approval.
Firmware-Relevant Hardware Requirements
Host owns ADC, I2C, probe, indicators, CAN and modem control. Independent host boot/reset/serial recovery and modem SWD/boot/reset interfaces are mandatory. Preserve UART AT firmware recovery; document any destructive factory-firmware erase restriction. CAN defaults: classical CAN at 125 kbit/s, linear harness, short stubs, initially up to 8 nodes and 10 m total harness pending validation; selectable 120-ohm termination only at physical endpoints. No CAN-FD claim. Define addressing, enumeration, firmware protocol and power-fault handling later. Vehicle-CAN accessory requires separate controller and PHY; not fitted or developed in this revision unless explicitly stated.
Physical Design Expectations
, widened from the earlier 100 × 100 mm placement envelope to provide side routing corridors; the old160×100 mm placeholder and unconfigured-stackup descriptions are historical. The custom JLC3313 four-layer construction is present. At checkpoint #f383759d, local re-layout is complete but reconnection failed to close:
Layer Routing Strategy
  • Top: 0° preferred direction. Keep switching hot loops, protection entry, local high-current feeds and the protected USB connector breakout on Top where practical. USB's nominal calculated 90 Ω geometry still needs complete routing and electrical verification.
  • Bottom: 90° preferred direction, paired orthogonally with Top. Use for crossovers and the authored mainly parallel Kelvin pickups, separated from bulk collectors and switch/gate activity. Do not carry load current through SRP/SRN pickup branches.
  • Mid-Layer 1 and Mid-Layer 2: GND reference planes, no routed signal/power tracks. The persistent net-level Forbidden Layers rule excludes both from supported full autorouting. Ordinary through-via barrels/antipads are permitted; a whole-layer keepout that blocks those vias is not the routing strategy. Targeted routing does not honor this rule and is not an acceptable unguarded substitute.
  • Preserve GND, USB_RTN and EXP_RTN as separate native returns, including their switch thermal-pad ownership. Retain the existing physical stackup, manufacturing minima, pair metadata, antenna/hardware reservations, Q6 DNP and charge inhibit. No layer count or manufacturing-limit relaxation was authorized.
  • This records the current strategy and read-back prohibition, not completion of an exhaustive final inner-track or return-path audit. Exact production stackup/impedance, current/thermal performance and final routing still require acceptance.
Important Design Decisions
  • User selected CAN expansion on 2026-10-20 after discussing local versus cabled modules.
  • Separate host and LoRaWAN modem; no sensor application dependency on modem GPIO.
  • CAN expansion and future vehicle CAN remain separate networks.
  • Expansion powered from vehicle-derived 5 V upstream of backup; default OFF, current-limited and protected against relevant cable faults/backfeed.
  • Re-source all components; do not clone the reference BOM or inherit its custom 1.3 mm stackup, large magnetics or routing.
  • Electrical circuit capture first; drawn schematic is a separate approval checkpoint. Placement must be reviewed before routing.
  • User subsequently authorized continuing directly from verified excellent placement into routing and JLCPCB prototype preparation; no additional placement-approval pause is required. Electrical/footprint clearance, a confirmed setup envelope and final order approval remain mandatory.
Assumptions
Compact non-sealed board connectors inside a protective enclosure; external weatherproof harness/enclosure separate. External probe uses a sourced passive 10 kOhm NTC selected for trend monitoring, with exact curve and cable effects documented before purchase. Backup pack is independently protected and separately sourced. Recommended USB-C service policy: USB-only cold-start/flashing from a USB-C data source advertising at least 1.5 A, using a C-to-C data cable; legacy/default-current ports remain data-capable with external vehicle/backup power unless a verified lower-current boot design is implemented. Charge and auxiliary CAN loads must not silently consume host-port power. Maximum expansion harness and node figures are initial design targets requiring bench tests. Actual production compliance and automotive transient robustness require physical testing.
Change Notes
2026-10-25: Authorized local re-layout applied a provisional110×100 mm envelope, moved west/east connectors and matching mounting reservations, reorganized U4/support, regenerated protected USB breakout, and authored a direct R45 bulk collector/16-via bank with separate replacement Kelvin pickups. One supported full routing pass improved70→68 reported opens but stopped on unrouteable USB pair endpoints and R14:P1; power trunks and many changed branches remain open. Cleanup checkpoint#f383759d has zero scoped copper safety/body-overlap/NC-violation findings, but reservation, neckdown, power-stage and decoupling findings remain. No schematic changes, manufacturing export/order, charging enable or thermal approval. Current routing report and placement handoff supersede older placement-only envelope/count statements. 2026-10-23: Implemented the selected2EXL7571 standard4.2 V charging solution using standalone BQ24610, conservatively derated to~2.38 A. Raised separate preregulator to12.50 V, retained U4 only as a disabled-charger host power path, and kept Q6 physically DNP. Corrected reviewed circuit/pad defects, including an owned U25 source with GND17/EP25. Final capture226 components/157 net records. Charge-disabled diagnostic firmware builds and decode tests pass; no physical tests or orders. Current design, status, power and acceptance files supersede earlier BQ25620/GlobTek/4.05 V assumptions. Layout, procurement and physical qualification remain open. 2026-10-22, owner freezes first deployment as Portland, Oregon, USA / US915; external-antenna option for LoRa only; enclosure follows the optimized PCB with screw mounting holes; vehicle harness target up to 20 ft; provision future second-bank monitoring through a separate CAN expansion module; temperature trend detection prioritized; 15-minute LoRa plus event/daily Wi-Fi confirmed. Owner delegates USB-C/CAN implementation choices and authorizes continued work through layout/routing, with final order approval still required. Previous unknowns on region, enclosure envelope and telemetry policy are resolved; electrical safety and qualification remain engineering work, not owner waivers. 2026-10-21, owner requirements: primary cabin mounting with extended battery-sensing cable and external battery-temperature probe; optional under-bonnet tests without backup are not an environmental approval. Backup runtime target is 14 days. Provide a future external-antenna option if coverage is inadequate; whether this means LoRa, Wi-Fi, or both and the deployment country remain to confirm before RF hardware freeze. Harness length, mechanical envelope and backup reporting duty cycle remain open. Owner approved USB-powered flashing and straightforward integrated sensing/power solutions using JLCPCB-orderable parts, with cost/simplicity optimized without prolonged churn. These requirements supersede contradictory earlier assumptions; the current circuit is not yet claimed to satisfy them. 2026-10-20, latest closure: 139 components/99 net records; electrical brownout, USB threshold, probe clamp and stencil-release gates remain open. Charging is hardware-default disabled through an isolated positive CHARGE_ENABLE control and is not qualified for the recommended GlobTek pack. The current placeholder board remains unplaced/unrouted. PROVISIONAL proposal: 80 x 80 mm four-layer TOP-only-assembly prototype, pending final component/keepout survey and user setup approval; the earlier 60 x 65 mm aim is not supported by the measured component-area budget. No physical tests, manufacturing release or order completed. See current Design and Sourcing Review and Pre-layout Footprint Review. 2026-10-20: Approved powered CAN expansion; recorded independent architecture review constraints on simultaneous supply/charging demand, low-cell current, thermal/NTC safety, high-speed CAN PHY, hardware-off expansion power, independent recovery and USB backfeed prevention. 2026-10-20: Captured ESP32-S3 host, RAK3172-T modem, classical CAN and separate future vehicle-CAN SPI interface. Re-sourced passives with exact MPNs. Changed USB to externally powered data-only service. Layout is still an unrouted placeholder; compactness and top-side-only placement are not yet demonstrated. Final electrical/footprint closure remains in progress.
  • Project Overview

  • Intended Use

  • What the Device Should Do

  • Main Features

  • Mechanical System Architecture

  • Electrical System Architecture

  • Hardware Subsystems

  • Interfaces and Connections

  • Power and Runtime Expectations

  • Power Tree and Power Budget

  • Manufacturing and Assembly Expectations

  • Firmware-Relevant Hardware Requirements

  • Physical Design Expectations

  • Layer Routing Strategy

  • Important Design Decisions

  • Assumptions

  • Change Notes