LILYGO T-2CAN - image 1
1 / 5
LilyGO·ESP32-S3

LILYGO T-2CAN

ESP32-S3 board with dual electrically isolated CAN bus interfaces, DC 5–12V input, 16MB flash, and 8MB PSRAM. Ideal for automotive diagnostics and industrial CAN network applications.

Starting from

$24.36

Compatible Firmware

Hardware Specifications

CPUESP32-S3 dual-core Xtensa LX7 240MHz
RAM512KB SRAM + 8MB PSRAM
Flash16MB
GPIO0 pins
USBUSB-C
PowerDC 5–12V via barrel jack or USB-C

Connectivity

WiFi802.11 b/g/n 2.4GHz
Bluetooth5.0 LE

Components

ESP32-S3MCU

Dual-core Xtensa LX7 at 240MHz with 2.4GHz Wi-Fi and BLE 5

SN65HVD230CAN Transceiver

Dual isolated CAN bus transceivers with onboard 120Ω termination resistors

Resources

Where to Buy

Overview

The LILYGO T-2CAN is a development board built around the ESP32-S3 that provides two fully electrically isolated CAN bus interfaces, making it well-suited for automotive, industrial, and energy applications where bus isolation is critical. The dual isolated CAN channels prevent ground loops and protect the MCU from transient voltages that are common in vehicle or factory environments.

Each CAN channel includes an onboard 120-ohm termination resistor, which is required at CAN bus endpoints and eliminates the need for external resistors during prototyping. The board accepts a wide DC power input of 5–12V in addition to USB-C, making it easy to power directly from vehicle 12V systems or industrial 24V (with a step-down) without an external regulator.

Key features:

  • ESP32-S3 with 16MB flash and 8MB PSRAM
  • Dual electrically isolated CAN bus interfaces
  • Onboard 120Ω CAN termination resistors on both channels
  • DC 5–12V wide-range power input via barrel connector
  • USB-C for programming and power
  • BOOT and RESET buttons onboard
  • Wi-Fi 802.11 b/g/n and Bluetooth 5 LE for wireless connectivity

The board is particularly useful for battery management system (BMS) emulation, OBD-II bridging, CANopen node development, and scenarios that require routing CAN traffic between isolated domains over Wi-Fi or BLE.

Firmware Compatibility

  • Arduino: Full support using the arduino-esp32 package. Use the ESP32-S3 Dev Module board target. The ESP32SJA1000 or TWAI driver provides native CAN support on ESP32-S3. LilyGO provides example sketches in the GitHub repository.
  • ESP-IDF: Native support via the TWAI (Two-Wire Automotive Interface) peripheral driver. Supports standard and extended CAN frames, multiple operating modes (normal, listen-only, self-test), and configurable bitrates up to 1Mbps.
  • PlatformIO: Works with the espressif32 platform targeting esp32-s3-devkitc-1. Configure the TWAI peripheral via driver/twai.h.

Flashing Guide

  1. Connect the T-2CAN to your computer using a USB-C cable.
  2. The board should enumerate as a serial port automatically on most operating systems.
  3. If the board does not enter download mode, hold the BOOT button while pressing and releasing RESET, then release BOOT.
  4. For Arduino IDE: install the ESP32 board package (v2.x or later) and select ESP32S3 Dev Module. Set PSRAM to OPI PSRAM (8MB).
  5. For ESP-IDF, build and flash using:
    idf.py -p /dev/ttyUSB0 flash monitor
    
  6. For esptool:
    esptool.py --chip esp32s3 --port /dev/ttyUSB0 --baud 921600 write_flash -z 0x0 firmware.bin
    
  7. After flashing, press RESET to run the new firmware.
  8. Refer to the GitHub repository for pinout diagrams and CAN bus example code.

Related Products

ESP32-S3

This product page may contain errors. If you find any, please report them.