
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.

DIY Wi-Fi climate-control prototype for Nissan Leaf: KiCad PCB, ESP32-C3 firmware, Blender enclosure and build notes. Inspired by OVMS.
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.
Historical development record. The current release is Leafy G.5. Use this file for context, not current ordering or wiring instructions.
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.
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.
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.
| Function | ESP32-C3 GPIO | Behavior |
|---|---|---|
| CAN transmit / receive | 4 / 5 | Internal TWAI controller |
| CAN standby | 1 | High = standby; external pull-up retained |
| Battery sense | 0 | ADC reads VPWR × 47/1047 after the input diode |
| Status LED | 7 | High lights LED |
| UART receive / transmit | 20 / 21 | Bootloader download and serial log |
| Reset / enable | EN | RESET button and 10 kΩ / 1 µF startup network |
| Boot straps | 2, 8, 9 | Pulled high; BOOT pulls GPIO9 low |
| Unused former USB pins | 3, 18, 19 | Explicit 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.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | 10k | Resistor_SMD:R_0603_1608Metric | R3, R4, R5, R6, R10, R17 |
| 5 | 100nF / 16V | Capacitor_SMD:C_0603_1608Metric | C4, C10, C11, C12, C13 |
| 3 | 1uF / 16V | Capacitor_SMD:C_0603_1608Metric | C3, C8, C14 |
| 3 | 22uF / 25V | Capacitor_SMD:C_1210_3225Metric | C5, C6, C7 |
| 3 | MountingHole_2.7mm_M2.5 | MountingHole_2.7mm_M2.5 | H1, H2, H3 |
| 2 | 100k | Resistor_SMD:R_0603_1608Metric | R15, R16 |
| 2 | 22R | Resistor_SMD:R_0603_1608Metric | R13, R14 |
| 2 | 5.1k / 1% | Resistor_SMD:R_0603_1608Metric | R11, R12 |
| 1 | 100k / 1% | Resistor_SMD:R_0603_1608Metric | R1 |
| 1 | 10uF / 16V | Capacitor_SMD:C_0805_2012Metric | C9 |
| 1 | 1A / 125V | Fuse:Fuse_Littelfuse-NANO2-451_453 | F1 |
| 1 | 1M / 1% | Resistor_SMD:R_0603_1608Metric | R7 |
| 1 | 1k | Resistor_SMD:R_0603_1608Metric | R9 |
| 1 | 2.2uF / 100V | Capacitor_SMD:C_1210_3225Metric | C1 |
| 1 | 220nF / 100V | Capacitor_SMD:C_0805_2012Metric | C2 |
| 1 | 22uH / 3.3A sat | Inductor_SMD:L_Bourns_SRN6045TA | L1 |
| 1 | 43.2k / 1% | Resistor_SMD:R_0603_1608Metric | R2 |
| 1 | 47k / 1% | Resistor_SMD:R_0603_1608Metric | R8 |
| 1 | 5.6V / 2% | Diode_SMD:D_SOD-123 | D5 |
| 1 | BOOT | Button_Switch_SMD:SW_SPST_TL3342 | SW2 |
| 1 | ESP32-C3-WROOM-02-N4 | Leaf:ESP32-C3-WROOM-02_0p3mm_Vias | U2 |
| 1 | GREEN / status | LED_SMD:LED_0603_1608Metric | D6 |
| 1 | LMR36510ADDAR | Package_SO:Texas_HTSOP-8-1EP_3.9x4.9mm_P1.27mm_EP2.95x4.9mm_Mask2.4x3.1mm_ThermalVias | U1 |
| 1 | NISSAN LEAF CABLE | Leaf:NorComp_182-009-113R531 | J1 |
| 1 | PESD2CAN | Package_TO_SOT_SMD:SOT-23 | D4 |
| 1 | PMEG6030EP / 60V | Diode_SMD:D_SOD-128 | D2 |
| 1 | RESET | Button_Switch_SMD:SW_SPST_TL3342 | SW1 |
| 1 | SMBJ24CA | Diode_SMD:D_SMB | D3 |
| 1 | SS110 / 100V | Diode_SMD:D_SMA | D1 |
| 1 | TCAN3403DRQ1 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U3 |
| 1 | USB-C PROGRAM | Connector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_Horizontal | J2 |
| 1 | USBLC6-2SC6 | Package_TO_SOT_SMD:SOT-23-6 | U4 |

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

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

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

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

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.

martijnschouten/tiepielcr-hardware
Contains the design files of the TiePieLCR multi-frequency spectrometer front-end


grodansparadis/can4vscp-frankfurt-usb
Buffered and isolated USB interface for CAN4VSCP

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

bglen/vehicle_telemetry
Vehicle Live Telemetry System using Pi-based data logging

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.
It measures 65 × 50 mm and has 4 copper layers, 1.6 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask ahdrage before reusing the design.