LILYGO T-2CAN

LILYGO T-2CAN ESP32-S3 Development Board Instruction Manual

Model: T-2CAN | Brand: LILYGO

1. Einleitung

The LILYGO T-2CAN is a development board based on the ESP32-S3 microcontroller, designed for applications requiring robust CAN bus communication. It features two independent CAN bus interfaces, managed by the MCP2515 CAN controller, and supports an SPI interface for versatile connectivity. This manual provides essential information for setting up, operating, and understanding the specifications of your T-2CAN development board.

2. Hauptmerkmale

  • Mikrocontroller: ESP32-S3 with 16MB Flash and 8MB PSRAM.
  • Kabellose Verbindung: Integrated 2.4G Wi-Fi (802.11 b/g/n) and BLE 5.
  • CAN Bus Support: Two independent CAN bus interfaces.
  • CAN Controller: Utilizes the MCP2515 standalone CAN controller, implementing CAN V2.0B at up to 1 Mb/s.
  • SPI-Schnittstelle: Dedicated SPI pins for communication.
  • Leistungsaufnahme: Flexible power options via USB Type-C (5V, 500mA) or DC 12-24V terminal.
  • Development Platforms: Compatible with Arduino IDE and VS Code.
  • Bordfunktionen: BOOT and Reset buttons for easy programming and control.
  • Abmessungen: Compact design measuring 91mm (L) x 39mm (W) x 18mm (H).

3. Packungsinhalt

Überprüfen Sie, ob alle Artikel in Ihrem Paket vorhanden sind:

  • 1 x LILYGO T-2CAN Development Board
  • 1 x Antenne
LILYGO T-2CAN Development Board and Antenna

Image: The LILYGO T-2CAN Development Board and its included antenna, illustrating the typical package contents.

4. Hardware-Overview

The T-2CAN board integrates various components for its functionality. Familiarize yourself with the layout and pin assignments.

4.1 Platinenlayout

Spitze view of LILYGO T-2CAN Development Board

Bild: Oben view of the LILYGO T-2CAN Development Board, showing the ESP32-S3 module, CAN transceivers, and power input terminals.

Unten view of LILYGO T-2CAN Development Board with pin labels

Abbildung: Unten view of the LILYGO T-2CAN Development Board, displaying the various pin labels for GPIO, CAN, and power connections.

4.2 Komponentenidentifikation

Detailed component identification of LILYGO T-2CAN board

Image: Detailed diagram highlighting key components such as the ESP32-S3 module, USB Type-C port, DC power input, and dual CAN bus interfaces.

4.3 Pinbelegungsdiagramm

The following diagram illustrates the pin assignments for the LILYGO T-2CAN board, including GPIOs, power, and communication interfaces.

LILYGO T-2CAN Pinmap

Image: Pinout diagram for the LILYGO T-2CAN, showing connections for Type-C, QWIIC, DC 12-24V, CAN A/B, GPIOs, and SPI pins.

5. Einrichtung

5.1 Stromversorgung der Platine

  • USB Typ C: Connect a standard 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 and debugging.
  • Gleichstromeingang: For external power, connect a DC power supply (12-24V) to the screw terminals labeled 'DC 12-24V'. Ensure correct polarity.

5.2 Anschließen der Antenne

Attach the included antenna to the IPEX1 connector on the board for optimal Wi-Fi and Bluetooth Low Energy (BLE) performance.

5.3 Software-Setup

  1. Entwicklungsumgebung installieren: Install Arduino IDE or VS Code with the ESP-IDF extension.
  2. Install ESP32-S3 Board Support: Follow the instructions for your chosen IDE to add ESP32-S3 board support.
  3. Obtain Libraries/Examples: Visit the official LILYGO GitHub repository for the T-2CAN board (github.com/Xinyuan-LilyGO/T-2Can) to download necessary libraries, drivers, and exampder Code.
  4. Mit PC verbinden: Connect the T-2CAN board to your computer using a USB Type-C cable. The board should be recognized as a serial port.

6. Bedienungsanleitung

6.1 Programmierung der Platine

After setting up your development environment, you can upload your code to the T-2CAN board:

  1. Open your project in Arduino IDE or VS Code.
  2. Select the correct ESP32-S3 board variant and the serial port corresponding to your T-2CAN board.
  3. Click the 'Upload' button to compile and flash your code to the board.
  4. Use the onboard BOOT and Reset buttons as needed for entering programming mode or restarting the board.

6.2 CAN-Bus-Kommunikation

The T-2CAN board provides two independent CAN bus interfaces (CAN A and CAN B). Connect your CAN devices to the respective screw terminals (CANH, CANL, DGND) for each bus. Refer to the pinout diagram for exact connections. Utilize the MCP2515 libraries from the GitHub repository to implement CAN communication in your code.

6.3 Wireless Functionality

The ESP32-S3 supports 2.4G Wi-Fi and BLE 5. Use standard ESP-IDF or Arduino libraries to develop applications utilizing these wireless capabilities, such as connecting to Wi-Fi networks or establishing BLE connections with other devices.

7. Spezifikationen

BesonderheitSpezifikation
MikrocontrollerESP32-S3
Flash-Speicher16 MB
PSRAM8 MB
Kabellose Konnektivität2.4-GHz-WLAN (802.11 b/g/n), BLE 5
CAN-ControllerMCP2515 (CAN V2.0B, up to 1 Mb/s)
CAN Bus Interfaces2 (CAN A, CAN B)
Andere SchnittstellenSPI, QWIIC
LeistungsaufnahmeUSB Type-C (5V, 500mA), DC 12-24V
Abmessungen (L x B x H)91 mm x 39 mm x 18 mm
Entwickelbare PlattformenArduino IDE, VS Code
LILYGO T-2CAN Development Board with dimensions

Bild: Abgewinkelt view of the LILYGO T-2CAN Development Board, illustrating its physical dimensions: Length (L) 91mm, Width (W) 39mm, Height (H) 18mm.

8. Fehlerbehebung

  • Platine schaltet sich nicht ein: Ensure the USB Type-C cable is securely connected to a 5V power source or that the DC 12-24V input has correct voltage und Polarität.
  • Platine vom PC nicht erkannt: Verify the USB Type-C cable is functional and properly connected. Install necessary USB drivers if prompted by your operating system.
  • Upload-Fehler: Check that the correct board and serial port are selected in your IDE. Ensure all required libraries are installed. Try pressing the BOOT button while connecting USB or during upload if issues persist.
  • CAN-Kommunikationsprobleme: Double-check CANH/CANL connections and ensure proper termination resistors are used in your CAN network. Verify baud rates and message IDs in your code match the connected devices.
  • Wi-Fi/BLE Connectivity Problems: Ensure the antenna is securely attached. Verify network credentials and BLE service UUIDs in your code.

9. Support und Garantie

For technical support, additional resources, or to report issues, please refer to the official LILYGO GitHub repository for the T-2CAN board: github.com/Xinyuan-LilyGO/T-2Can. This repository often contains updated documentation, code examples, and community forums. For warranty information, please consult your point of purchase or the LILYGO official webWebsite.

Manufacturer Contact Information: shenzhenshixinyuandianzikejiyouxiangongsi Bantian, Gangtou Community, No. 2000 Jiaxian Road, Yousuowei Building, Room A803, Shenzhen, longgang, Guangdong, 518000 CN

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.