Skip to the content
2 layers40 × 60 mmScaner v1, the printed circuit board in 3D

DIY dual-CAN OBD2 adapter on Seeed XIAO ESP32-C5 with a Flutter Android app. Working prototype, tested on a Citroën C3 II: full read-only ECU scan, PSA fault codes, live data. Single-sided home-etched KiCad board. Docs in English and Russian.

Size
40 × 60 mm
Copper layers
2
Thickness
1.6 mm
Parts
34
Nets
25
Pads
98
Tracks, vias
228, 0
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
17 Oct 2026
Updated
4 Nov 2026

Overview

Scaner v1 is an open-source printed circuit board by Aleksei327, from the Aleksei327/ESP32-C5-OBD2-Scanner repository on GitHub. It is a 2-layer board of 40 × 60 mm with 34 parts on 25 nets, routed with 228 tracks and 0 vias.

It is built around the SN65HVD230D, LM2596S-ADJ and SS34, with the 1.5KE6.8CA, HS1M and IRFB4110 among its other parts. Its parts include 10 resistors, 8 capacitors, 6 diodes, 4 ICs and 2 connectors. It belongs with the interfaces and adapters boards and the ESP32 and RISC-V boards of this library.

Main components

6

README

hardware/scaner_v1/README.md

Board v1 — KiCad project

Русская версия

KiCad 10 project of the adapter board: 40 × 60 mm, single-sided (all tracks on the bottom copper, no wire jumpers), designed for home etching and built into an OBD2 enclosure. Description and design notes: DOCS/en/board-v1.md.

TopBottom
TopBottom
Assembled in the enclosureCopper side as etched

Top row: KiCad 3D. Bottom row: the board as built, in its enclosure and from the copper side.

Files

PathContents
scaner_v1.kicad_sch, scaner_v1.kicad_pcb, scaner_v1.kicad_proschematic, board, project (design rules: 0.8 mm tracks, 0.4 mm clearance)
scaner.pretty/project footprints: XIAO ESP32-C5 on two 1×7 sockets, DO-35 zener at 5.08 mm pitch, OBD2 enclosure outline
scaner.3dshapes/hand-written 3D models (VRML) for parts missing from the KiCad library
build/*.pdfschematic, placement with copper, bottom copper 1:1 for etching
tools/Python scripts that generate everything (see below)

The board is generated, not drawn by hand

The schematic, placement and routing are produced by scripts, so a change is made in the script and everything is regenerated:

sh
python tools/gen_schematic.py        # parts, nets, project footprints -> scaner_v1.kicad_sch
python tools/check_netlist.py        # ERC and netlist check against tools/expected_nets.json
"C:\Program Files\KiCad\10.0\bin\python.exe" tools/gen_pcb.py       # placement (PLACE table), pad rules, keep-outs
"C:\Program Files\KiCad\10.0\bin\python.exe" tools/hand_route.py    # tracks from tools/routes.py, ground pour, DRC
python tools/gen_3d.py               # 3D models into scaner.3dshapes/
  • routes.py — every track as a list of points (or REF.pad references) with its width.
  • view_board.py — an SVG view of the board with net names on the pads, ratsnest and DRC markers; handy while routing.
  • route.py — Freerouting experiment kept for reference; it overwrites the hand routing.

Manual edits made in KiCad are overwritten by the next gen_pcb.py / hand_route.py run — carry them over into routes.py first.

The 40 × 60 mm board for the enclosure was placed and routed by hand in KiCad (October 2026), then etched and assembled. Do not run gen_pcb.py or hand_route.py: they bring back the old 40 × 70 board and overwrite the manual work; routes.py is the old routing, kept for reference. Values in the schematic and on the board match what is soldered: R1 51k, R9 200k, R11 12k, R8 fitted, R7 left out.

Printing for etching

KiCad's Print dialog is awkward for photoresist work, so there is a print window of its own — the "Печать для травления" button in the PCB editor (or tools/etch_window.cmd without KiCad):

sh
"C:\Program Files\KiCad\10.0\bin\python.exe" tools/etch_window.py --pack      # tools/etch_print_kicad_plugin.zip for KiCad's Plugin and Content Manager
"C:\Program Files\KiCad\10.0\bin\python.exe" tools/etch_window.py --install   # while editing the code: button loaded straight from the repo (silent if the package is installed)
"C:\Program Files\KiCad\10.0\bin\python.exe" tools/etch_print.py              # no window: 4 PDFs in etch/ with an automatic layout

To get the button: KiCad → Plugin and Content Manager → Install from File… → tools/etch_print_kicad_plugin.zip. The package lives in Documents\KiCad\<version>\3rdparty and survives a KiCad reinstall; after a new KiCad version install the zip again. After changing the code, run --pack and reinstall the package.

  • Settings on the left (scrollable), the sheet on the right; drag the divider between them.
  • An A4 sheet like a print preview: drag board copies with the mouse (arrow keys move 0.5 mm), "+ copy", "fill the sheet"; a red frame marks copies that overlap or leave the printer's printable area.
  • Negative (dry-film resist: clear = copper stays) or positive (toner transfer); "toner down / up" sets the mirroring: the bottom layer laid toner-to-copper prints unmirrored (KiCad shows it from the top, through the board).
  • Prints straight to the printer at 1:1, no PDF viewer involved. "Film: maximum" stores a printer profile with the transparency media type, best quality and toner saving off; "Driver settings…" stores any driver settings (%APPDATA%\etch_print). Toner density on the HP M1530 is set in the printer's own menu.
  • On the sheet: 100 mm rulers on both axes to check the scale, drill dots, crosses at mounting-hole centres, corner marks at the board edges. Zones are refilled before printing; the layout is kept in etch/layout.json.

Enclosure

The OBD2 enclosure (72 × 46 × 26, AliExpress) is modelled from measurements by a FreeCAD script:

sh
"C:\Program Files\FreeCAD 1.0\bin\python.exe" tools/gen_case.py      # model, drawings, enclosure layer for KiCad
"C:\Program Files\KiCad\10.0\bin\python.exe" tools/render_case.py   # pictures of the enclosure and the board inside
  • case/case_drawing.pdf — dimensioned drawings (base, lid, sections, details); * marks assumed values.
  • case/*.step, case/case.FCStd — 3D model for FreeCAD and other tools.
  • scaner.pretty/Case_OBD2_72x46 — a board-only, locked "enclosure" footprint (CASE1): the "Корпус внутри" layer (Eco1) shows walls, posts, plug pins and heights; "Корпус снаружи" (Eco2) the outside; a dashed outline on User.Drawings marks the 40 × 60 board. In the 3D viewer the enclosure is translucent, board bottom 5 mm above the floor.

Parts

34
QtyValueFootprintReferences
4100nCapacitor_SMD:C_1206_3216MetricC4, C6, C7, C8
2120Resistor_SMD:R_1206_3216MetricR7, R8
2SN65HVD230Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU2, U3
2SS34Diode_SMD:D_SMAD6, D7
11.5KE6.8CADiode_THT:D_DO-201AD_P12.70mm_HorizontalD8
1100Resistor_SMD:R_1206_3216MetricR2
1100n/50VCapacitor_SMD:C_1206_3216MetricC2
1100u/63VCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC1
1100uHInductor_THT:L_Radial_D10.0mm_P5.00mm_Fastron_07PL1
110kResistor_SMD:R_1206_3216MetricR12
110uCapacitor_SMD:C_1206_3216MetricC5
112Vscaner:D_DO-35_P5.08mm_HorizontalD5
112kResistor_SMD:R_1206_3216MetricR11
11kResistor_SMD:R_1206_3216MetricR4
1200kResistor_SMD:R_1206_3216MetricR9
1220u/25VCapacitor_THT:CP_Radial_D8.0mm_P3.50mmC3
130Vscaner:D_DO-35_P5.08mm_HorizontalD3
133kResistor_SMD:R_1206_3216MetricR10
13k0Resistor_SMD:R_1206_3216MetricR3
151kResistor_SMD:R_1206_3216MetricR1
1HS1MDiode_SMD:D_SMAD2
1IRFB4110Package_TO_SOT_THT:TO-220-3_Horizontal_TabDownQ1
1LM2596S-ADJPackage_TO_SOT_SMD:TO-263-5_TabPin3U1
1OBD 14 6 8 3Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2
1OBD питаниеConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ1
1T2A Nano2Fuse:Fuse_Littelfuse-NANO2-451_453F1
1XIAO_ESP32C5scaner:XIAO_ESP32C5_SocketU4
1Корпус OBD2 72x46x26Case_OBD2_72x46CASE1

Similar boards

  • 2 layers230.1 × 118.5 mmPOWER 0-50, the printed circuit board in 3D

    POWER 0-50

    Aleksei327/STM32G474-Precision-Lab-Power-Supply

    Precision 0–50 V programmable laboratory PSU with 1 mV/1 mA setting steps, hybrid synchronous-buck + linear regulation, STM32G474 control, INA228 metering, and layered hardware protection.

    207 parts4
  • 2 layers76 × 58 mmArdor Headphones THT, the printed circuit board in 3D

    Ardor Headphones THT

    balazsbencs/ardor

    This is a DIY multieffects project with a Raspberry Pi and and Codec Zero and a Raspberry Pi Display 2. With Full NAM A2 support.

    36 parts18MIT
  • 4 layers114.3 × 134.5 mmExoskeleton, the printed circuit board in 3D

    Exoskeleton

    Bihyungbetter/exoskeleton

    Exoskeleton is a powered lower-limb exoskeleton with six actuated joints — hip flexion, hip abduction, and knee flexion per leg.

    60 parts
  • 2 layers177 × 91.6 mmPower Charg AUTO 12V C, the printed circuit board in 3D

    Power Charg AUTO 12V C

    Aleksei327/STM32G474-Power-Charger

    Experimental STM32G474-based high-current battery charger and programmable synchronous buck converter. KiCad hardware and STM32CubeIDE firmware.

    160 parts3
  • 2 layers47 × 84 mmBQ76925 ATMEGA328P 6S 20A BMS, the printed circuit board in 3D

    BQ76925 ATMEGA328P 6S 20A BMS

    M-S-Ali/raven-i-sentinel

    6S - 24V - 20A Battery Management System (BMS) based on TI BQ76925 and Microchip Atmega328P.

    79 parts2
  • 2 layers160.3 × 50.8 mmAPortableInductionHeater, the printed circuit board in 3D

    APortableInductionHeater

    jdelouche/aPortableInductionHeater

    This is a hardware design that can be used to create a portable induction heater.

    27 parts1
  • 2 layers78.7 × 58.4 mmAGV SENSOR PCB 2, the printed circuit board in 3D

    AGV SENSOR PCB 2

    Ashutoshkarve007/STM32_Learning

    Learining STM32

    53 parts3
  • 6 layers100.5 × 101.5 mmCustom ESC, the printed circuit board in 3D

    Custom ESC

    0BitsnBytes/McQueen

    an overpowered rc car that poses a danger to my safety :)

    192 parts1GPL-3.0

Questions

How big is the Scaner v1 PCB?

It measures 40 × 60 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Scaner v1 use?

34 parts, built around the SN65HVD230D, LM2596S-ADJ, SS34 and 1.5KE6.8CA. 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 Scaner v1 KiCad files?

From the Aleksei327/ESP32-C5-OBD2-Scanner repository on GitHub, at the commit this page was made from: the board is hardware/scaner_v1/scaner_v1.kicad_pcb and its schematic hardware/scaner_v1/scaner_v1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Scaner v1 design in my own project?

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