LILYGO T-2CAN

Contents

LILYGO T-2CAN ESP32-S3 WiFi Bluetooth CAN Module Development Board User Manual

Model: T-2CAN

1. Introduction

The LILYGO T-2CAN is a versatile development board featuring the ESP32-S3 microcontroller, offering integrated Wi-Fi and Bluetooth capabilities. It is specifically designed with dual CAN bus interfaces and a QWIIC connector, making it ideal for applications requiring robust communication protocols in automotive, industrial, and IoT projects. This manual provides essential information for setting up, operating, and maintaining your T-2CAN board.

2. Features

  • Microcontroller: ESP32-S3 with Wi-Fi (802.11 b/g/n) and Bluetooth Low Energy (BLE 5)
  • Memory: 16MB Flash, 8MB PSRAM
  • CAN Bus: Dual CAN interfaces (CAN Wire x 2) with MCP2515 stand-alone CAN controller via SPI interface, supporting CAN V2.0B at 1 Mb/s. Features six 29-bit filters and two 29-bit masks.
  • Connectivity: QWIIC connector for easy integration with I2C peripherals.
  • Power Supply: DC 12-24V input, or 5V via USB Type-C.
  • Debugging: USB Type-C for power supply and debugging.
  • User Interface: BOOT and Reset buttons.
  • Development Platforms: Compatible with Arduino IDE and VS Code.

3. Specifications

ComponentSpecification
MCUESP32-S3
Flash Memory16MB
PSRAM8MB
Wireless Connectivity2.4G Wi-Fi (802.11 b/g/n), BLE 5
CAN ControllerMCP2515 (SPI Interface), CAN V2.0B at 1 Mb/s
CAN Interfaces2 (CAN Wire x 2)
Other InterfacesQWIIC Connector, USB Type-C
Power InputDC 12-24V, USB 5V (500mA)
Dimensions91mm (L) x 39mm (W) x 18mm (H)
Onboard FunctionsBOOT Button, Reset Button

3.1. Dimensions

LILYGO T-2CAN Board Dimensions
Figure 1: LILYGO T-2CAN Board Dimensions (L: 91mm, W: 39mm, H: 18mm)

4. What's in the Box

Your LILYGO T-2CAN package should contain the following items:

  • 1 x LILYGO T-2CAN Development Board
  • 1 x Antenna
LILYGO T-2CAN Package Contents Diagram
Figure 2: Package Contents

5. Pinout Diagram

Understanding the pinout is crucial for connecting peripherals and programming the board. Refer to the diagram below for detailed pin assignments, including Type-C, QWIIC, DC power, and CAN connections.

LILYGO T-2CAN Pinout Diagram and Board Layout
Figure 3: LILYGO T-2CAN Pinout Diagram

Key Pin Designations:

  • Type-C: USB interface for power (5V) and data communication (programming/debugging).
  • QWIIC: Standard I2C connector for easy integration with compatible sensors and modules (GND, 3V3, SDA, SCL).
  • DC 12~24V: Main power input terminals.
  • CAN A / CAN B: Dual CAN bus interfaces with CAN H, CAN L, and SGND (Signal Ground) terminals.
  • MCP2515 SPI Pins: CS (1010), SCLK (1012), MISO (1013), MOSI (1011), RST (1009).
  • Reset/Boot Buttons: For controlling the ESP32-S3's operating mode.

6. Setup and Getting Started

6.1. Powering the Board

  • USB Power: Connect a USB Type-C cable to the board and a 5V power source (e.g., computer USB port, USB charger). This also enables data communication for programming.
  • DC Power: Connect a DC power supply (12-24V) to the designated DC input terminals. Ensure correct polarity.

6.2. Connecting Peripherals

  • Antenna: Attach the provided antenna to the IPEX1 connector for Wi-Fi and Bluetooth functionality.
  • CAN Devices: Connect your CAN bus devices to the CAN A and/or CAN B terminals. Ensure proper wiring of CAN H, CAN L, and ground.
  • QWIIC Modules: Use a QWIIC cable to connect compatible I2C modules to the QWIIC connector.

6.3. Development Environment Setup

The LILYGO T-2CAN board can be programmed using popular development environments:

  • Arduino IDE: Install the ESP32 board support package for Arduino IDE. Select the appropriate ESP32-S3 board model.
  • VS Code with PlatformIO: Install the PlatformIO extension in VS Code and configure it for ESP32-S3 development.

Refer to the official ESP32-S3 documentation and LILYGO's GitHub repository for detailed setup instructions and example code.

7. Operating Instructions

Once your development environment is set up and the board is powered, you can upload your code. The ESP32-S3 will execute the program, enabling Wi-Fi, Bluetooth, and CAN communication as defined in your application.

  • Programming: Connect the board via USB Type-C. Select the correct COM port and board type in your IDE.
  • CAN Communication: Utilize the MCP2515 libraries (e.g., from the GitHub repository) to send and receive CAN messages.
  • Wireless Communication: Use standard ESP-IDF or Arduino Wi-Fi/Bluetooth libraries for network connectivity and BLE applications.
Video 1: Overview of electronic component manufacturing and quality control processes.

8. Maintenance

  • Storage: Store the board in an anti-static bag when not in use to prevent electrostatic discharge (ESD) damage.
  • Cleaning: Use a soft, dry brush or compressed air to remove dust. Avoid liquids.
  • Handling: Handle the board by its edges to minimize contact with components and prevent damage.
  • Power Supply: Always use a stable and appropriate power supply within the specified voltage range (DC 12-24V or USB 5V).

9. Troubleshooting

  • Board Not Powering On: Check power connections (USB or DC). Ensure the power supply is providing the correct voltage.
  • Unable to Upload Code: Verify that the correct board and COM port are selected in your IDE. Ensure the USB cable is functional and properly connected. Try pressing the BOOT button while connecting USB or during upload if necessary.
  • CAN Communication Issues: Double-check CAN H and CAN L wiring. Ensure termination resistors are correctly used in your CAN network if required. Verify CAN bus speed settings in your code match the network.
  • Wi-Fi/Bluetooth Connectivity Problems: Ensure the antenna is securely attached. Check your code for correct Wi-Fi credentials or Bluetooth device discovery logic.
  • QWIIC Module Not Detected: Verify the QWIIC cable connection. Ensure the I2C address of the module is correct and not conflicting with other devices.

10. User Tips

  • For optimal performance and stability, especially in noisy environments, consider using shielded cables for CAN connections.
  • Always start with simple example sketches from the LILYGO GitHub repository to verify basic functionality before implementing complex projects.
  • When using external DC power, ensure the power supply can provide sufficient current for the board and any connected peripherals.

11. Support and Resources

For the latest documentation, example code, and community support, please visit the official LILYGO GitHub repository for the T-2CAN board:

https://github.com/Xinyuan-LilyGO/T-2Can

GitHub Repository Link for LILYGO T-2CAN
Figure 4: GitHub Repository Link
Documents and downloads

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.

After a successful submission, we securely hash the supplied account or form email before sending it to Microsoft Advertising for conversion attribution. Privacy details.