Skip to the content
4 layers100 × 60 mmCyd obd adapter, the printed circuit board in 3D

Open low-level OBD-II adapter: ESP32 with HS-CAN, single-wire CAN, flex CAN, 2x K-line, L-line and pin voltage probes, exposed over BT Classic, BLE, WiFi and USB as a raw proxy. KiCad 10, JLCPCB-ready.

Size
100 × 60 mm
Copper layers
4
Thickness
1.6 mm
Parts
170
Nets
143
Pads
596
Tracks, vias
2,119, 487
Pours
5
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
12 Oct 2026
Updated
16 Oct 2026

Overview

Cyd obd adapter is an open-source printed circuit board by ssjrocks, from the ssjrocks/cyd-obd-adapter repository on GitHub, published under the AGPL-3.0 licence. It is a 4-layer board of 100 × 60 mm with 170 parts on 143 nets, routed with 2,119 tracks and 487 vias.

It is built around the TJA1021T/20/C, TJA1042T/3 and CH340C, with the ESP32-WROVER-E-N8R8, ADS7828E/2K5 and TLV62569DBVR-TP among its other parts. Its parts include 74 resistors, 38 capacitors, 15 ICs, 15 diodes and 10 switches. It belongs with the radio and wireless and interfaces and adapters boards and the ESP32 boards of this library.

Main components

12

README

README.md

cyd-obd-adapter

An open, low-level OBD-II adapter: an ESP32 with every bus a car's diagnostic port uses, exposed over Bluetooth Classic, BLE, WiFi and USB as a raw proxy. Another device (phone, laptop, the cyd-vehicle-dash screen) sends raw CAN frames and K-line bytes; the adapter puts them on whichever pins the selected car profile uses.

Designed around a 2005 Holden/Opel Astra H, where a cheap ELM327 only reaches the engine ECU: the instrument cluster and body modules sit on single-wire CAN (pin 1) and the gearbox possibly on another line.

Status: schematic and PCB complete (100 × 60 mm, 4 layers, DRC clean), JLCPCB files generated. Nothing built or tested.

top

Buses

OBD pin(s)ChannelHardware
6 / 14HS-CAN (fixed)ESP32 TWAI + TJA1042T/3
1Single-wire CAN / GMLAN (33.3 / 83.3 kbit/s)MCP2518FD + NCV7356
3/11 or 12/13Flex CAN (e.g. Opel MS-CAN, GM chassis HS-CAN)MCP2518FD + TJA1042T/3, routed by photoMOS switches
7K-line 1 (fixed)TJA1021 + 510 Ω pull-up + MOSFET for slow init
3, 8, 12 or 13K-line 2 (routed)TJA1021 + 510 Ω pull-up + MOSFET
15L-lineMOSFET + 510 Ω pull-up
all signal pins + batteryVoltage probe2× ADS7828, 100k/20k dividers (15 V full scale)
16 / 4, 5Battery / groundsPolyfuse, SMBJ26A TVS, reverse-polarity Schottky

Nothing connects to the manufacturer-specific pins until the firmware closes a switch. The probe ADCs let the firmware check what is on a pin first: CAN idles at about 2.5 V, a K-line at about 12 V.

J1850 (pins 2/10, older US Fords/GMs) is not implemented; those pins are only measured.

Hardware summary

  • ESP32-WROVER-E-N8R8: Classic Bluetooth + BLE + WiFi, 8 MB PSRAM. Firmware should be ESP-IDF with only the needed Bluetooth profiles. The precompiled Arduino core leaves too little internal RAM with Classic + WiFi; see cyd-vehicle-dash's README.
  • Power:
    • LMR36510 (4.2–65 V in, 26 µA quiescent) → 5.17 V.
    • Diode-OR with USB.
    • TLV62569 → 3.3 V.
    • Battery voltage on GPIO35 through 470k/100k, so the ULP can watch it in deep sleep.
  • Sleep: CAN transceivers in standby wake on bus activity (RXD → RTC GPIO). The CAN controllers and SW-CAN transceiver have their own sleep modes. Target is well under 1 mA total.
  • USB-C: CH340C with ESP auto-reset, powered only from USB through its own LDO, so it draws nothing in the car.
  • Connector: Antenk OBD-FMB-16 SMD male pin insert (LCSC C46459580). The enclosure must provide the D-shaped shell.

Firmware reference

ESP32 GPIO

GPIONetNotes
25 / 26TWAI_TX / TWAI_RXHS-CAN; 26 is RTC (wake)
18 / 19 / 23SPI SCK / MISO / MOSIboth MCP2518FD
5 / 27CS_FCAN / CS_SWCAN10k pull-ups
32 / 33INT_FCAN / INT_SWCANRTC (wake), 10k pull-ups
4 / 36K1_TX / K1_RXUART1; RX has 4.7k pull-up (open-drain TJA1021)
14 / 39K2_TX / K2_RXUART2
13K1_FORCEMOSFET holds K1 low (slow init); 100k pull-down
12K2_FORCEstrap pin, must be low at boot (100k pull-down)
15L_DRVL-line low when high
35VBAT_SENSE470k/100k: V = adc × 5.7
34AUX_ADCto J2
21 / 22I2C SDA / SCLTCA9555 @0x20, ADS7828 @0x48 and @0x49
2LED_STATUS
0 / ENBOOT / RESETbuttons + USB auto-reset
1 / 3UART0CH340C

TCA9555 (0x20)

Outputs are active low for the switches. At power-up every pin is an input, so all switches are open.

PinFunctionPinFunction
P00flex CAN-H → OBD 3P10HS-CAN STB (high = standby)
P01flex CAN-L → OBD 11P11flex CAN STB
P02flex CAN-H → OBD 12P12SW-CAN MODE0
P03flex CAN-L → OBD 13P13SW-CAN MODE1
P04K2 → OBD 3P14K1 SLP_N (high = normal)
P05K2 → OBD 8P15K2 SLP_N
P06K2 → OBD 12P16, P17spare
P07K2 → OBD 13

The firmware must never put two channels on one pin, for example flex CAN-H and K2 both on pin 3.

ADS7828 channels

Volts = code / 4096 × 2.5 × 6.

ADCCH0CH1CH2CH3CH4CH5CH6CH7
0x48OBD1OBD2OBD3OBD6OBD7OBD8OBD9OBD10
0x49OBD11OBD12OBD13OBD14OBD15battery (pin 16)+5VVBAT after protection

Files

text
hardware/          KiCad 10 project (open cyd-obd-adapter.kicad_pro)
  *.kicad_sch      root + 5 sheets: power, mcu, can, kline, obd
  lib/             project symbols (NCV7356, OBD plug), footprints (OBD plug, ESP32-WROVER-E) and 3D model
  routing/         Freerouting input/output (board.dsn, board.ses)
  production/      JLCPCB files: gerbers.zip, bom_jlcpcb.csv, cpl_jlcpcb.csv
docs/              renders
tools/
  design.py        THE source of the circuit: every part, footprint, LCSC number and connection
  gen_schematic.py builds the schematic sheets from design.py
  check_netlist.py checks a KiCad netlist export against design.py
  make_lib.py      builds the project library
  place.py         board outline, stackup, net classes, planes, component placement
  route.py         export to / import from Freerouting, outer GND pours, stitching vias, zone fill
  fixup.py         finishes leftover connections with a small maze router
  production.sh    exports the JLCPCB fabrication and assembly files
  jlc.py, jlc_exact.py, ds.sh   JLCPCB stock lookup, datasheet download
datasheets/        local copies of datasheets (git-ignored; see links below)

Workflow while the design is changing: edit tools/design.py, then:

bash
python3 tools/gen_schematic.py

Check the result with kicad-cli sch export netlist and tools/check_netlist.py. Once the PCB is being laid out, edit the schematic in KiCad directly, because regenerating replaces the sheets.

PCB

  • 100 × 60 mm, 4 layers:

    • F.Cu: signals.
    • In1: solid GND plane, with no tracks on it.
    • In2: +3V3 pour that also carries signals.
    • B.Cu: signals.

    GND pours on both outer layers are stitched to In1 by about 200 vias.

  • Routing: fully routed, 0 DRC errors, 0 unconnected.

    • Totals: about 5.7 m of track and 490 vias (0.6/0.3 mm).
    • +3V3 has real tracks everywhere. Signals on In2 split the pour into islands, so the pour is extra copper, not the supply path.
    • Silkscreen shows reference text only on the connectors, buttons, LED and jumpers. Every reference stays on the Fab layers.
  • OBD plug on the bottom, everything else on top. The ESP32 antenna sits at the top edge with a copper keepout under it, so keep metal away from that edge in the enclosure.

  • Net classes: power 0.6 mm, K-line/L-line 0.4 mm, VBUS 0.4 mm, CAN 0.25 mm, default 0.2 mm.

    • The router narrows tracks where they enter fine-pitch pins: 0.4–0.45 mm power, 0.15 mm signals.
    • One 5 mm +5V link near U2 is 0.2 mm, because nothing wider fits there.
    • Board minimums are 0.15 mm track and clearance, and 0.3 mm drill. JLC's standard 4-layer process goes lower.
  • The board grew from the ~90 × 55 mm target: with 0603 passives and all three regions (power/CAN along the top, K-line and OBD routing in the middle, MCU right) the packer couldn't fit below 100 × 60.

Layout workflow (KiCad closed):

bash
python3 tools/place.py            # re-place from scratch (deletes tracks)
python3 tools/route.py export     # -> hardware/routing/board.dsn, then run Freerouting
python3 tools/route.py import     # board.ses -> board, pours, stitching vias, fill
python3 tools/fixup.py            # routes what Freerouting left (A* on a 0.1 mm grid), loops on KiCad DRC
tools/production.sh               # -> hardware/production/

Freerouting command used (Java 25 required): java -jar freerouting-2.4.1.jar -de hardware/routing/board.dsn -do hardware/routing/board.ses -mp 40 -mt 4 --gui.enabled=false. Once you start hand-editing the layout in KiCad, stop using place.py and route.py: they replace the placement and all tracks.

Ordering at JLCPCB

  • Upload hardware/production/gerbers.zip, then choose: 4 layers, 1.6 mm, 100 × 60 mm.
  • For assembly, upload bom_jlcpcb.csv and cpl_jlcpcb.csv.
  • Choose Standard PCBA. JLC lists the ESP32-WROVER-E module as "Standard only", so Economic assembly isn't available for this board.
  • The OBD plug J3 is the only bottom-side part. Letting JLC fit it means double-sided assembly: about US$37 more (setup, second stencil, one more feeder). The other way is to leave J3 out of the BOM/CPL and solder it yourself: 16 large pads at 4 mm pitch.
  • Live quote, 2026-10-16 (5 boards, 2 assembled, Standard, both sides, before shipping and GST): US$228.29.
    • PCB $8.00.
    • Setup $51.50 and stencil $16.54.
    • Parts $72.53.
    • Feeder loading $75.95 (49 unique parts × $1.55; Standard charges this for basic parts too).
    • SMT $3.27 and packaging $0.50.
  • Parts were chosen for JLC's basic library where the footprint allowed: C3 100 nF 50 V, D2 SS210, D5 red LED. R27 uses a 6.49 kΩ part with no reel minimum.
  • J2 (AUX header) is DNP. H1/H2 (holes) and JP1/JP2 (solder jumpers) aren't in the BOM.

Datasheets used

Before ordering

  • OBD pin orientation. Print the footprint 1:1 and check it against the real connector and your enclosure. OBD pin numbering is easy to mirror.
  • AQY282SX footprint. The design uses KiCad's SO-4_4.4x3.6mm_P2.54mm; check it against Panasonic's land pattern.
  • Flex CAN at 500 kbit/s through the photoMOS switches (pins 12/13). They're fine for K-line and medium-speed CAN; check signal quality on the prototype.
  • Stackup: in Board Setup → Physical Stackup, confirm 4 layers and 1.6 mm, matching the JLC order.
  • CPL rotations: check the parts preview in JLC's assembly step; some footprints need rotation fixes.
  • ERC shows two known false errors:
    • CH340C V3 is tied to 3.3 V, as its datasheet requires at 3.3 V, but the symbol types V3 as a power output.
    • The two MCP2518FD SDO pins share MISO; each goes high-impedance when not selected.
  • Single-wire CAN 83.3 kbit/s "high-speed" mode expects the off-board tool to add bus loading. Not implemented; normal 33.3 kbit/s doesn't need it.

Licence

GNU Affero General Public License v3.0.

Exception: hardware/lib/cyd-obd.pretty/ESP32-WROVER-E.kicad_mod and hardware/lib/3d/ESP32-WROVER-E.STEP are copied from Espressif's KiCad libraries and remain under CC-BY-SA 4.0.

Parts

170
QtyValueFootprintReferences
22100kResistor_SMD:R_0603_1608MetricR1, R3, R6, R30, R32, R34, R43, R45, R47, R49, R51, R53, R55, R57, R59, R61 +6
17100nFCapacitor_SMD:C_0603_1608MetricC3, C12, C14, C18, C19, C20, C21, C24, C25, C26, C29, C32, C33, C34, C35, C37 +1
1620kResistor_SMD:R_0603_1608MetricR44, R46, R48, R50, R52, R54, R56, R58, R60, R62, R64, R66, R68, R70, R72, R74
810kResistor_SMD:R_0603_1608MetricR7, R8, R9, R10, R11, R12, R22, R23
8390Resistor_SMD:R_0603_1608MetricR35, R36, R37, R38, R39, R40, R41, R42
8AQY282SXPackage_SO:SO-4_4.4x3.6mm_P2.54mmK1, K2, K3, K4, K5, K6, K7, K8
7NUP2105LPackage_TO_SOT_SMD:SOT-23D6, D10, D11, D12, D13, D14, D15
61uFCapacitor_SMD:C_0603_1608MetricC4, C15, C16, C17, C36, C38
64.7kResistor_SMD:R_0603_1608MetricR13, R14, R15, R16, R20, R21
422pFCapacitor_SMD:C_0603_1608MetricC22, C23, C27, C28
422uF 25VCapacitor_SMD:C_1206_3216MetricC6, C7, C10, C11
310uF 25VCapacitor_SMD:C_0805_2012MetricC8, C9, C13
31N4148WSDiode_SMD:D_SOD-323D7, D8, D9
32N7002Package_TO_SOT_SMD:SOT-23Q3, Q4, Q5
3510 1WResistor_SMD:R_2512_6332MetricR29, R31, R33
2100pFCapacitor_SMD:C_0603_1608MetricC30, C31
2120Resistor_SMD:R_0805_2012MetricR24, R25
21kResistor_SMD:R_0603_1608MetricR17, R28
22.2uF 50VCapacitor_SMD:C_1206_3216MetricC1, C2
240MHzCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1, Y2
25.1kResistor_SMD:R_0603_1608MetricR18, R19
2ADS7828E/2K5Package_SO:TSSOP-16_4.4x5mm_P0.65mmU14, U15
2M3MountingHole:MountingHole_3.2mm_M3H1, H2
2MCP2518FDT-E/SLPackage_SO:SOIC-14_3.9x8.7mm_P1.27mmU7, U9
2MMBT3904Package_TO_SOT_SMD:SOT-23Q1, Q2
2SS14Diode_SMD:D_SMAD3, D4
2TJA1021T/20Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU11, U12
2TJA1042T/3Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU6, U8
10.75A/33VFuse:Fuse_1812_4532MetricF1
12.2uHInductor_SMD:L_Sunlord_SWPA3015SL2
12.7kResistor_SMD:R_0603_1608MetricR26
122kResistor_SMD:R_0603_1608MetricR4
122uHInductor_SMD:L_Sunlord_SWPA6045SL1
124kResistor_SMD:R_0603_1608MetricR2
1470kResistor_SMD:R_0603_1608MetricR5
147uHInductor_SMD:L_1210_3225MetricL3
16.49kResistor_SMD:R_0603_1608MetricR27
1AP2112K-3.3TRG1Package_TO_SOT_SMD:SOT-23-5U4
1AUXConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ2
1BOOTButton_Switch_SMD:SW_Push_1P1T_XKB_TS-1187ASW2
1CH340CPackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU5
1ESP32-WROVER-E-N8R8cyd-obd:ESP32-WROVER-EU3
1FCAN_TERMJumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmJP2
1HS_TERMJumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmJP1
1LMR36510ADDARPackage_SO:Texas_HTSOP-8-1EP_3.9x4.9mm_P1.27mm_EP2.95x4.9mm_Mask2.4x3.1mm_ThermalViasU1
1NCV7356D1R2GPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU10
1OBD-FMB-16-SN-B-E-R-V2cyd-obd:OBD2_Male_Antenk_OBD-FMB-16_SMDJ3
1RESETButton_Switch_SMD:SW_Push_1P1T_XKB_TS-1187ASW1
1SMBJ26ADiode_SMD:D_SMBD1
1SS210Diode_SMD:D_SMAD2
1TCA9555PWRPackage_SO:TSSOP-24_4.4x7.8mm_P0.65mmU13
1TLV62569DBVRPackage_TO_SOT_SMD:SOT-23-5U2
1USB-CConnector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12J1
1redLED_SMD:LED_0603_1608MetricD5

Similar boards

  • 6 layers76.8 × 160.6 mmScopefun v3, the printed circuit board in 3D

    Scopefun v3

    J1DDERY/data_sampling

    405 parts
  • 6 layers100 × 160 mmScopefun v2, the printed circuit board in 3D

    Scopefun v2

    snhobbs/scopefun-hardware

    This repository contains Scopefun hardware schematics and pcb layout files.

    840 parts
  • 6 layers100 × 120 mmAstra piNas, the printed circuit board in 3D

    Astra piNas

    jlcjak/astra_piNas

    Six-layer CM5 Lite dual-NVMe carrier with PCIe switch, Ethernet, microSD, USB-C PD and PoE. Review design; fabrication hold documented.

    176 parts30
  • 2 layers209.2 × 82 mmILI9341 ESP32, the printed circuit board in 3D

    ILI9341 ESP32

    theBrutzler/ILI9341_DMG_01

    GESP Mainboard for ORIGINAL GAMEBOY

    168 parts2
  • 6 layers139.7 × 88.9 mmIMX6-BareBones, the printed circuit board in 3D

    IMX6-BareBones

    a1wolfe/iMX6-BareBones

    i.MX 6ULL Open Source Development Board

    558 parts
  • 2 layers149.9 × 99.1 mmDash, the printed circuit board in 3D

    Dash

    benke97/ER17-Dash-Prototype

    KiCad projects

    70 parts

Questions

How big is the Cyd obd adapter PCB?

It measures 100 × 60 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Cyd obd adapter use?

170 parts, built around the TJA1021T/20/C, TJA1042T/3, CH340C and ESP32-WROVER-E-N8R8. 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 Cyd obd adapter KiCad files?

From the ssjrocks/cyd-obd-adapter repository on GitHub, at the commit this page was made from: the board is hardware/cyd-obd-adapter.kicad_pcb and its schematic hardware/can.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Cyd obd adapter design in my own project?

Its repository publishes it under the AGPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).