1. Úvod
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. Klíčové vlastnosti
- Mikrokontrolér: ESP32-S3 s 16MB Flash a 8MB PSRAM.
- Bezdrátové připojení: 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.
- Rozhraní SPI: Dedicated SPI pins for communication.
- Příkon: Flexible power options via USB Type-C (5V, 500mA) or DC 12-24V terminal.
- Vývojové platformy: Compatible with Arduino IDE and VS Code.
- Funkce na palubě: BOOT and Reset buttons for easy programming and control.
- Rozměry: Compact design measuring 91mm (L) x 39mm (W) x 18mm (H).
3. Obsah balení
Ověřte, zda jsou v balení přítomny všechny položky:
- 1 x LILYGO T-2CAN Development Board
- 1 x Anténa

Image: The LILYGO T-2CAN Development Board and its included antenna, illustrating the typical package contents.
4. Hardware skončilview
The T-2CAN board integrates various components for its functionality. Familiarize yourself with the layout and pin assignments.
4.1 Rozložení desky

Obrázek: Nahoře view of the LILYGO T-2CAN Development Board, showing the ESP32-S3 module, CAN transceivers, and power input terminals.

Obrázek: Spodní část view of the LILYGO T-2CAN Development Board, displaying the various pin labels for GPIO, CAN, and power connections.
4.2 Identifikace součásti

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 Schéma zapojení pinů
The following diagram illustrates the pin assignments for the LILYGO T-2CAN board, including GPIOs, power, and communication interfaces.

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. Nastavení
5.1 Napájení desky
- USB Type-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.
- Vstup DC napájení: For external power, connect a DC power supply (12-24V) to the screw terminals labeled 'DC 12-24V'. Ensure correct polarity.
5.2 Připojení antény
Attach the included antenna to the IPEX1 connector on the board for optimal Wi-Fi and Bluetooth Low Energy (BLE) performance.
5.3 Nastavení softwaru
- Install Development Environment: Install Arduino IDE or VS Code with the ESP-IDF extension.
- Install ESP32-S3 Board Support: Follow the instructions for your chosen IDE to add ESP32-S3 board support.
- 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 exampkód.
- Připojení k PC: Connect the T-2CAN board to your computer using a USB Type-C cable. The board should be recognized as a serial port.
6. Návod k obsluze
6.1 Programování hrací desky
After setting up your development environment, you can upload your code to the T-2CAN board:
- Open your project in Arduino IDE or VS Code.
- Select the correct ESP32-S3 board variant and the serial port corresponding to your T-2CAN board.
- Click the 'Upload' button to compile and flash your code to the board.
- Use the onboard BOOT and Reset buttons as needed for entering programming mode or restarting the board.
6.2 CAN Bus Communication
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. Specifikace
| Funkce | Specifikace |
|---|---|
| Mikrokontrolér | ESP32-S3 |
| Flash paměť | 16 MB |
| PSRAM | 8 MB |
| Bezdrátové připojení | 2.4G Wi-Fi (802.11 b/g/n), BLE 5 |
| Ovladač CAN | MCP2515 (CAN V2.0B, up to 1 Mb/s) |
| CAN Bus Interfaces | 2 (CAN A, CAN B) |
| Ostatní rozhraní | SPI, QWIIC |
| Vstup napájení | USB Type-C (5V, 500mA), DC 12-24V |
| Rozměry (D x Š x V) | 91 mm x 39 mm x 18 mm |
| Developable Platforms | Arduino IDE, VS Code |

Obrázek: Úhlový view of the LILYGO T-2CAN Development Board, illustrating its physical dimensions: Length (L) 91mm, Width (W) 39mm, Height (H) 18mm.
8. Řešení problémů
- Deska se nezapíná: Ensure the USB Type-C cable is securely connected to a 5V power source or that the DC 12-24V input has correct voltage a polarita.
- Deska nebyla počítačem detekována: Verify the USB Type-C cable is functional and properly connected. Install necessary USB drivers if prompted by your operating system.
- Chyby při nahrávání: 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 Communication Issues: 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. Podpora a záruka
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 webmísto.
Manufacturer Contact Information: shenzhenshixinyuandianzikejiyouxiangongsi Bantian, Gangtou Community, No. 2000 Jiaxian Road, Yousuowei Building, Room A803, Shenzhen, longgang, Guangdong, 518000 CN