Skip to the content
4 layers65 × 50 mmCritical backup, the printed circuit board in 3D

Critical backup

ahdrage/leafy

DIY Wi-Fi climate-control prototype for Nissan Leaf: KiCad PCB, ESP32-C3 firmware, Blender enclosure and build notes. Inspired by OVMS.

Size
65 × 50 mm
Copper layers
4
Thickness
1.6 mm
Parts
50
Nets
41
Pads
195
Tracks, vias
140, 119
Pours
10
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
25 Sep 2026
Updated
25 Sep 2026

Overview

Critical backup is an open-source printed circuit board by ahdrage, from the ahdrage/leafy repository on GitHub. It is a 4-layer board of 65 × 50 mm with 50 parts on 41 nets, routed with 140 tracks and 119 vias.

It is built around the ESP32-C3-WROOM-02-N4, TCAN3403DRQ1 and USBLC6-2SC6, with the RC0603FR-0710KL, RC0603FR-07100KL and 0451001.MRL among its other parts. Its parts include 17 resistors, 14 capacitors, 6 diodes, 4 ICs and 2 connectors. It belongs with the ESP32 and RISC-V boards of this library.

Main components

12

README

hardware/rev-c/README.md

Historical development record. The current release is Leafy G.5. Use this file for context, not current ordering or wiring instructions.

Leaf Heat — Rev C

Current custom-board revision: UART programming, 41 components, four layers, 65 × 50 mm. Engineering prototype; not physically tested.

Open leaf-heat-v3.kicad_pro in KiCad 10, then open PCB Editor or Schematic Editor. Rev B is preserved in ../rev-b/.

The board receives heater commands over home Wi-Fi and communicates with the Leaf over CAN. It carries no heater current. Firmware, a verified vehicle cable, an enclosure, and prototype testing are still required.

What changed

  • Replaced USB-C programming with J3, a three-pin serial programming header. Pin 1 is ground, pin 2 receives data from the adapter, and pin 3 sends data to the adapter.
  • Removed USB power input, USB voltage detection, CC resistors, USB data resistors and their unused wiring/copper.
  • Retained ESD protection, repurposed for the UART lines. Added two 1 kΩ series resistors and a 10 kΩ receive-line pull-up. These resistor types already exist in the BOM.
  • Retained RESET and BOOT buttons, the protected vehicle power input, the CAN circuit, the antenna clearance, the ground plane and the mounting-hole positions.
  • No controlled-impedance service is required for Rev C. Use the standard four-layer construction described in manufacturing notes.

There are 41 parts / 25 distinct MPNs, compared with Rev B's 47 / 29. All components are on top: 39 SMT and two through-hole connectors. The connector must be included in factory assembly.

Programming now needs a 3.3 V logic USB-to-UART adapter and a separate 12 V bench supply, connected through J1. J3 has no power pin. Follow the programming instructions; do not use a 5 V logic or RS-232 adapter.

Verification and files

Native KiCad electrical and layout checks pass with zero reported violations, unconnected items and schematic/PCB mismatches. A separate saved-file audit checks the pin map, preserved circuit connections, copper net assignments, power tolerances and BOM/placement consistency. The design review records the scope, one documented KiCad check limitation and the remaining physical tests. Passing CAD checks does not establish a working or automotive-qualified product.

The native project, .kicad_dru, Leaf.kicad_sym, Leaf.pretty/ and both library tables belong together. The Gerbers in exports/fabrication/ are for Rev C only. Existing PCBWay/JLCPCB quotation requests contain Rev B, so their files and totals must not be treated as Rev C quotes.

Firmware connections

FunctionESP32-C3 GPIOBehavior
CAN transmit / receive4 / 5Internal TWAI controller
CAN standby1High = standby; external pull-up retained
Battery sense0ADC reads VPWR × 47/1047 after the input diode
Status LED7High lights LED
UART receive / transmit20 / 21Bootloader download and serial log
Reset / enableENRESET button and 10 kΩ / 1 µF startup network
Boot straps2, 8, 9Pulled high; BOOT pulls GPIO9 low
Unused former USB pins3, 18, 19Explicit no-connect; no USB-presence detection

Start with CAN in standby, require a fresh authenticated heat request after every reset, and implement a bounded heating interval, explicit stop handling, bus-error handling and low-battery behavior. Wi-Fi updates and recovery/rollback must be implemented in firmware; they are not provided by this hardware revision. The earlier development-board plan uses different GPIO assignments.

Parts

50
QtyValueFootprintReferences
610kResistor_SMD:R_0603_1608MetricR3, R4, R5, R6, R10, R17
5100nF / 16VCapacitor_SMD:C_0603_1608MetricC4, C10, C11, C12, C13
31uF / 16VCapacitor_SMD:C_0603_1608MetricC3, C8, C14
322uF / 25VCapacitor_SMD:C_1210_3225MetricC5, C6, C7
3MountingHole_2.7mm_M2.5MountingHole_2.7mm_M2.5H1, H2, H3
2100kResistor_SMD:R_0603_1608MetricR15, R16
222RResistor_SMD:R_0603_1608MetricR13, R14
25.1k / 1%Resistor_SMD:R_0603_1608MetricR11, R12
1100k / 1%Resistor_SMD:R_0603_1608MetricR1
110uF / 16VCapacitor_SMD:C_0805_2012MetricC9
11A / 125VFuse:Fuse_Littelfuse-NANO2-451_453F1
11M / 1%Resistor_SMD:R_0603_1608MetricR7
11kResistor_SMD:R_0603_1608MetricR9
12.2uF / 100VCapacitor_SMD:C_1210_3225MetricC1
1220nF / 100VCapacitor_SMD:C_0805_2012MetricC2
122uH / 3.3A satInductor_SMD:L_Bourns_SRN6045TAL1
143.2k / 1%Resistor_SMD:R_0603_1608MetricR2
147k / 1%Resistor_SMD:R_0603_1608MetricR8
15.6V / 2%Diode_SMD:D_SOD-123D5
1BOOTButton_Switch_SMD:SW_SPST_TL3342SW2
1ESP32-C3-WROOM-02-N4Leaf:ESP32-C3-WROOM-02_0p3mm_ViasU2
1GREEN / statusLED_SMD:LED_0603_1608MetricD6
1LMR36510ADDARPackage_SO:Texas_HTSOP-8-1EP_3.9x4.9mm_P1.27mm_EP2.95x4.9mm_Mask2.4x3.1mm_ThermalViasU1
1NISSAN LEAF CABLELeaf:NorComp_182-009-113R531J1
1PESD2CANPackage_TO_SOT_SMD:SOT-23D4
1PMEG6030EP / 60VDiode_SMD:D_SOD-128D2
1RESETButton_Switch_SMD:SW_SPST_TL3342SW1
1SMBJ24CADiode_SMD:D_SMBD3
1SS110 / 100VDiode_SMD:D_SMAD1
1TCAN3403DRQ1Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU3
1USB-C PROGRAMConnector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_HorizontalJ2
1USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6U4

More from ahdrage/leafy

4
  • 4 layers100 × 100 mmBefore router, the printed circuit board in 3D

    Before router

    ahdrage/leafy

    DIY Wi-Fi climate-control prototype for Nissan Leaf: KiCad PCB, ESP32-C3 firmware, Blender enclosure and build notes. Inspired by OVMS.

    66 parts
  • 4 layers100 × 100 mmLeaf heat v7, the printed circuit board in 3D

    Leaf heat v7

    ahdrage/leafy

    DIY Wi-Fi climate-control prototype for Nissan Leaf: KiCad PCB, ESP32-C3 firmware, Blender enclosure and build notes. Inspired by OVMS.

    66 parts
  • 4 layers150 × 150 mmBefore router, the printed circuit board in 3D

    Before router

    ahdrage/leafy

    DIY Wi-Fi climate-control prototype for Nissan Leaf: KiCad PCB, ESP32-C3 firmware, Blender enclosure and build notes. Inspired by OVMS.

    51 parts
  • 4 layers65 × 50 mmLeaf heat v3, the printed circuit board in 3D

    Leaf heat v3

    ahdrage/leafy

    DIY Wi-Fi climate-control prototype for Nissan Leaf: KiCad PCB, ESP32-C3 firmware, Blender enclosure and build notes. Inspired by OVMS.

    44 parts

Similar boards

  • 4 layers80 × 60 mmBytebeam ble can, the printed circuit board in 3D

    Bytebeam ble can

    Atif6894/automotive-ble-can-pcb

    A small 4-layer board that sits on a vehicle's 12/24 V harness, talks CAN FD through a TCAN4550-Q1, and exposes it over Bluetooth LE through a CC2340R5-Q1.

    153 parts
  • 2 layers60 × 45 mmTracker lite, the printed circuit board in 3D

    Tracker lite

    Sanu0910/RFMW-ANT

    109 parts
  • 4 layers150 × 50 mmTiepieLCR, the printed circuit board in 3D

    TiepieLCR

    martijnschouten/tiepielcr-hardware

    Contains the design files of the TiePieLCR multi-frequency spectrometer front-end

    241 partsGPL-3.0
  • 2 layers87.6 × 36.8 mmTSALv2, the printed circuit board in 3D

    TSALv2

    SCFormulaElectric/USC-Electrical-Systems

    22 parts9
  • 4 layers72.1 × 42 mmVscp din stm32h552-can z102, the printed circuit board in 3D

    Vscp din stm32h552-can z102

    grodansparadis/can4vscp-frankfurt-usb

    Buffered and isolated USB interface for CAN4VSCP

    48 parts2
  • 2 layers40 × 20 mmCanbus tire temp sensor, the printed circuit board in 3D

    Canbus tire temp sensor

    bglen/canbus_tire_temp_sensor

    Tire temperature sensing with IR sensor arrays and a CAN bus interface

    42 parts1MIT
  • 2 layers68 × 86 mmCan datalogger board, the printed circuit board in 3D

    Can datalogger board

    bglen/vehicle_telemetry

    Vehicle Live Telemetry System using Pi-based data logging

    106 partsMIT
  • 4 layers59 × 101 mmEnku mainboard r0.1, the printed circuit board in 3D

    Enku mainboard r0.1

    aliaksei-lameyka/ENKU-Base-reader

    Open enku-mainboard-r0.1.kicadpro with KiCad10.0.7. Matching PCB/root schematic and power.kicadsch, mcuio.kicadsch, epdhv.kicadsch, connectors.kicadsch are canonical.

    127 parts1CERN-OHL-W-2.0

Questions

How big is the Critical backup PCB?

It measures 65 × 50 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Critical backup use?

50 parts, built around the ESP32-C3-WROOM-02-N4, TCAN3403DRQ1, USBLC6-2SC6 and RC0603FR-0710KL. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Critical backup KiCad files?

From the ahdrage/leafy repository on GitHub, at the commit this page was made from: the board is hardware/rev-b/exports/critical-backup.kicad_pcb and its schematic deliverables/leaf-heat-rev-a/leaf-heat-v1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Critical backup design in my own project?

Its repository states no licence, so its author keeps all rights: ask ahdrage before reusing the design.