Skip to the content
2 layers68.6 × 40.6 mmTeensy esp32-can sniffer, the printed circuit board in 3D

Teensy esp32-can sniffer

mxmrsn/vw-can-sniffer1

CAN sniffer project for the mk7.5 VW GTI

Size
68.6 × 40.6 mm
Copper layers
2
Thickness
1.6 mm
Parts
31
Nets
50
Pads
134
Tracks, vias
130, 16
Pours
8
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
28 Feb 2026
Updated
1 Mar 2026

Overview

Teensy esp32-can sniffer is an open-source printed circuit board by mxmrsn, from the mxmrsn/vw-can-sniffer repository on GitHub. It is a 2-layer board of 68.6 × 40.6 mm with 31 parts on 50 nets, routed with 130 tracks and 16 vias.

It is built around the TJA1051T/3/1, AP63205WU and PTS645SM43SMTR92LFS. Its parts include 8 capacitors, 7 resistors, 4 ICs, 4 diodes and 2 switches. It belongs with the ESP32, RISC-V and NXP (LPC, Kinetis, i.MX RT) boards of this library.

Main components

3

README

README.md

VW CAN Sniffer

Hardware-agnostic CAN bus sniffer focused on MK7.5 VW GTI, starting with Teensy 4.0 and a UART stream protocol suitable for an ESP32 Wi‑Fi dashboard.

Scope

  • Teensy 4.0 CAN capture
  • UART framing protocol for streaming frames to a Wi‑Fi module
  • Future STM32H7 custom board

Current Contents

  • firmware/teensy/teensy_uart_streamer.ino
  • firmware/teensy/teensy_can_simulator.ino
  • docs/uart_protocol.md
  • firmware/esp32/esp32_uart_gateway.ino

Hardware (Initial Setup)

  • Teensy 4.0
  • CAN transceiver (TJA1051T/3 recommended)
  • ESP32 module (UART bridge for Wi‑Fi)

Basic Wiring (Teensy ↔ ESP32)

  • Teensy TX → ESP32 RX
  • Teensy RX ← ESP32 TX
  • GND ↔ GND
  • Optional: Teensy pin 4 → ESP32 EN (reset control)
  • Optional: Teensy pin 5 → ESP32 RST (soft reset)

CAN Transceiver (Optional Control)

  • Optional: Teensy pin 20 → TJA1051 S (silent/listen‑only control)

Output Mode + LEDs

  • Mode button: pin 8 (toggle UART/Wi‑Fi vs USB)
  • Select button: pin 9 (toggle CAN silent)
  • LEDs: CAN heartbeat pin 14, Wi‑Fi active pin 15, USB active pin 16, silent indicator pin 21

Firmware Notes

  • Default UART: Serial1 @ 921600
  • Default CAN speed: 500000
  • CAN IDs encode extended frames with bit31 set

System Block Diagram

text
                 CANH/CANL
   ┌──────────────────────────────────────────┐
   │              Bench / Vehicle             │
   └──────────────────────────────────────────┘
                    │
                    │
              ┌──────────┐        UART (3.3V)
              │ TJA1051  │<-------------------------┐
              └──────────┘                          │
                    │ TXD/RXD                       │
                    │                               │
            ┌────────────────┐                      │
            │ Teensy 4.0     │                      │
            │ CAN1 (pins 22/23)                     │
            │ UART -> ESP32  │----------------------┘
            └────────────────┘
                       │ Wi-Fi
                       │
                 ┌──────────┐
                 │  ESP32   │
                 │ Web UI   │
                 └──────────┘
                       │
                       │ HTTP/WS

Wiring Overview (ASCII)

text
Teensy 4.0                          TJA1051T/3                 CAN Bus
-----------                          ----------                 -------
CTX1 (pin 22) ---------------------> TXD
CRX1 (pin 23) <--------------------- RXD
pin 20 ----------------------------> S (silent)
3V3 -------------------------------> VIO
5V  -------------------------------> VCC
GND -------------------------------> GND ---------------------- GND
                                   CANH ---------------------- CANH
                                   CANL ---------------------- CANL

Teensy 4.0                          ESP32 (UART)               Wi-Fi
-----------                          -----------               -----
TX1 (pin 1) ----------------------> RX
RX1 (pin 0) <---------------------- TX
GND ------------------------------> GND                         ~~~

LEDs / Buttons (Teensy 4.0)
LED CAN (pin 14), LED Wi-Fi (pin 15), LED USB (pin 16), LED Silent (pin 21)
Mode button (pin 8), Select button (pin 9)

Test Mode

Enable synthetic frames for bench testing:

text
#define TEST_MODE 1
#define TEST_RATE_HZ 50

Protocol

See docs/uart_protocol.md for the UART framing spec.

USB Capture

Use tools/usb_dump.py to read the framed stream from USB and emit CSV. Requires pyserial.

PCB Docs

See pcb-teensy-esp32/teensy-esp32-can-sniffer/docs/README.md for schematic, layout, and 3D captures.

Next Steps

  • ESP32 firmware to host a WebSocket dashboard
  • Basic browser UI for live frame display
  • STM32H7 hardware plan

PlatformIO (ESP32)

If you prefer automation, PlatformIO can build and upload the ESP32 firmware and SPIFFS assets. See platformio.ini and tools/upload_spiffs.sh.

Parts

31
QtyValueFootprintReferences
4330Resistor_SMD:R_0603_1608MetricR3, R4, R5, R6
4LEDLED_SMD:LED_0603_1608MetricD1, D2, D3, D4
4MountingHoleMountingHole:MountingHole_2.5mmH1, H2, H3, H4
2100nCapacitor_SMD:C_0805_2012MetricC1, C3
210kResistor_SMD:R_0603_1608MetricR1, R2
222uCapacitor_SMD:C_0805_2012MetricC4, C5
2PTS645SM43SMTR92_LFSdigikey-footprints:Switch_Tactile_SMD_6x6mm_PTS645S1, S2
1100pCapacitor_SMD:C_0805_2012MetricC7
110uCapacitor_SMD:C_0805_2012MetricC6
1120Resistor_SMD:R_0603_1608MetricR7
115pCapacitor_SMD:C_0805_2012MetricC8
14.7uInductor_SMD_Wurth:L_Wurth_WE-LQSH-4020L1
147uCapacitor_SMD:C_0805_2012MetricC2
1AP63205WUPackage_TO_SOT_SMD:TSOT-23-6U3
1Conn_01x04molex-picospox-0874370231_01x04:CONN_874370231-SD_04_MOLJ1
1Seeed_Studio_XIAO_ESP32S3seeed_studio_xiao:XIAO-ESP32S3U2
1TJA1051T-3Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU4
1Teensy4.0teensy:Teensy40U1

Similar boards

  • 4 layers61 × 81 mmEsp32OlcbIO, the printed circuit board in 3D

    Esp32OlcbIO

    atanisoft/Esp32OlcbIO

    ESP32 OpenLCB IO Board

    52 parts12
  • 2 layers64.8 × 74.5 mmReadingLampController, the printed circuit board in 3D

    ReadingLampController

    vsi5004/ReadingLampController

    A repurposing of my LCC Lighting Controller hardware into a customizable, Matter enabled, RGBW reading lamp

    67 parts
  • 2 layers130.8 × 83.8 mmUMDv2, the printed circuit board in 3D

    UMDv2

    db-electronics/UMDv2-kicad

    Universal Mega Dumper v2 PCB

    112 parts7
  • 2 layers66.6 × 69.3 mmGD32F427RE LTC SMPTE no PHY, the printed circuit board in 3D

    GD32F427RE LTC SMPTE no PHY

    vanvught/KiCad-GD32F427RE-LTC-SMPTE-no-PHY

    KiCad GD32F427RE LTC-SMPTE no PHY

    64 parts2MIT
  • 2 layers77.2 × 59.7 mmGD32FxxxRx no PHY, the printed circuit board in 3D

    GD32FxxxRx no PHY

    vanvught/KiCad-GD32FxxxRx-no-PHY

    GD32F103R GD32F107R GD32F207R GD32F303R GD32F407R development board

    60 parts2MIT
  • 2 layers147.3 × 83.8 mmUMDv3, the printed circuit board in 3D

    UMDv3

    db-electronics/UMDv3-kicad

    UMDv3 Kicad PCB

    68 parts1
  • 4 layers50 × 75.2 mmRpiFly v3, the printed circuit board in 3D

    RpiFly v3

    r3dpath/RpiFly_Hardware

    While most of the functionality here has been tested to work theres certainally some marginal design decisions, just beware.

    108 parts1
  • 2 layers96 × 110.1 mmGD32F470VG Pixel-16, the printed circuit board in 3D

    GD32F470VG Pixel-16

    vanvught/Kicad-GD32F470VG-Pixel-16

    Kicad GD32F470VG Pixel 16-ports x 4 Universes

    113 parts1MIT

Questions

How big is the Teensy esp32-can sniffer PCB?

It measures 68.6 × 40.6 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Teensy esp32-can sniffer use?

31 parts, built around the TJA1051T/3/1, AP63205WU and PTS645SM43SMTR92LFS. 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 Teensy esp32-can sniffer KiCad files?

From the mxmrsn/vw-can-sniffer repository on GitHub, at the commit this page was made from: the board is pcb-teensy-esp32/teensy-esp32-can-sniffer/teensy-esp32-can-sniffer.kicad_pcb and its schematic pcb-teensy-esp32/teensy-esp32-can-sniffer/teensy-esp32-can-sniffer.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Teensy esp32-can sniffer design in my own project?

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