lilygo T-CAN485

Contents

LILYGO® TTGO T-CAN485 ESP32 CAN RS-485 Development Board User Manual

Model: T-CAN485 | Brand: LILYGO

1. Introduction

The LILYGO® TTGO T-CAN485 is an advanced development board integrating an ESP32 microcontroller with CAN bus and RS-485 communication capabilities. Designed for industrial control, Internet of Things (IoT) applications, and engineering projects, it offers versatile connectivity including Wi-Fi, Bluetooth, and support for TF cards. This manual provides essential information for setting up, operating, and maintaining your T-CAN485 module.

LILYGO T-CAN485 ESP32 development board
Figure 1: LILYGO T-CAN485 ESP32 Development Board

2. Features

  • Microcontroller: ESP32
  • Communication Interfaces: CAN Bus, RS-485, UART, SPI, I2C, I2S, SDIO
  • Wireless Connectivity: Wi-Fi (802.11 b/g/n), Bluetooth (BRV4.2+BLE)
  • Storage: Supports TF (MicroSD) card
  • Onboard Components: RST (Reset) and BOOT buttons, WS2812 RGB LED (GPIO04)
  • USB to TTL Chip: CH9102F (variants may use CH340K)
  • Power Input: DC 5~12V
  • Compact Design: Suitable for integration into various projects.

3. Specifications

Specifications table for LILYGO T-CAN485
Figure 2: LILYGO T-CAN485 Specifications Overview
FeatureDetail
MCUESP32
Flash Memory4MB
TF Card SupportYes
Bus InterfacesUART, SPI, I2C, CAN, I2S, SDIO
Wireless ConnectivityWi-Fi (802.11 b/g/n), Bluetooth (BRV4.2+BLE)
Onboard ButtonsRST, BOOT
RGB LEDWS2812 (GPIO04)
USB to TTL ChipCH9102 (or CH340K for some variants)
Power InputDC 5~12V
Dimensions (approx.)10.70cm (L) x 3.50cm (W) x 1.10cm (H)

4. Product Pin Diagram

Understanding the pin assignments is crucial for proper integration and programming of the T-CAN485 module. Refer to the diagram below for detailed pinout information.

Detailed pinout diagram for LILYGO ESP32 CAN RS485
Figure 3: LILYGO ESP32 CAN RS485 Pinmap

Key Pin Assignments:

  • CAN Bus:
    • CAN_TX: I027
    • CAN_RX: I026
    • CAN_SE: I023
  • RS-485:
    • RS485_TX: I022
    • RS485_RX: I021
    • RS485_SE: I019
    • RS485_EN: I017
  • SD Card Interface:
    • SD_MOSI: I015
    • SD_MISO: I002
    • SD_SCLK: I014
    • SD_CS: I013
  • Power:
    • 5~12V POWER DC Input
    • GND (Ground)
    • VDD (Voltage Drain Drain)
  • Other:
    • BOOT Button
    • RESET Button
    • WS2812 RGB LED: I004
    • USB Type-C Port (for power and data)

5. Setup

5.1. Initial Inspection

Upon receiving your T-CAN485 module, carefully inspect it for any visible damage. The standard package includes one T-CAN485 module.

Shipping list showing 1 X T-CAN485 module
Figure 4: Standard Shipping List

5.2. Power Connection

The T-CAN485 module can be powered via its USB Type-C port or through the dedicated DC 5~12V power input terminals. Ensure the power supply voltage is within the specified range to prevent damage.

5.3. Data Connection (USB)

Connect the module to your computer using a USB Type-C cable. This connection provides power and enables serial communication for programming and debugging. You may need to install the appropriate USB to TTL drivers (CH9102 or CH340K, depending on your module's variant) for your operating system.

5.4. CAN and RS-485 Wiring

Utilize the screw terminals for connecting to CAN bus and RS-485 networks. Ensure correct polarity and termination resistors as required by your specific network setup.

LILYGO T-CAN485 board connected for industrial control, showing CAN and RS485 wiring
Figure 5: Example CAN and RS-485 Wiring for Industrial Control

5.5. TF Card Insertion

If your application requires data logging or external storage, insert a TF (MicroSD) card into the dedicated slot on the underside of the board. Ensure it is inserted correctly and fully seated.

LILYGO T-CAN485 ESP32 development board, top and bottom view showing components and TF card slot
Figure 6: Top and Bottom View with TF Card Slot

6. Operating Instructions

6.1. Programming the ESP32

The LILYGO T-CAN485 uses an ESP32 microcontroller, which can be programmed using the Arduino IDE, ESP-IDF, or other compatible development environments. Connect the board via USB Type-C, select the correct board and port in your IDE, and upload your code.

6.2. CAN Bus Communication

Implement CAN bus protocols in your ESP32 code to send and receive messages over the CAN network. Refer to ESP32 CAN libraries and examples for guidance.

6.3. RS-485 Communication

Utilize the RS-485 interface for robust serial communication over longer distances and in noisy environments. Ensure your code correctly handles the RS485_EN pin for transmit/receive control.

6.4. Wi-Fi and Bluetooth

Leverage the ESP32's integrated Wi-Fi and Bluetooth capabilities for wireless data transmission, remote control, and IoT cloud integration.

6.5. TF Card Usage

Program the ESP32 to read from and write to the inserted TF card for data logging, configuration storage, or firmware updates.

7. Maintenance

  • Cleaning: Keep the board clean and free from dust and debris. Use a soft, dry brush or compressed air. Avoid liquid cleaners.
  • Storage: Store the module in a dry, anti-static environment when not in use.
  • Environmental Conditions: Avoid exposing the module to extreme temperatures, high humidity, or corrosive substances.
  • Firmware Updates: Regularly check the official LILYGO GitHub repository for firmware updates and bug fixes to ensure optimal performance and security.

8. Troubleshooting

8.1. Module Not Powering On

  • Verify that the 5-12V DC power supply is connected correctly and providing the specified voltage.
  • If using USB, ensure the USB Type-C cable is fully inserted and connected to a working USB port.

8.2. Unable to Upload Firmware

  • Ensure the correct USB to TTL drivers (CH9102 or CH340K) are installed on your computer.
  • Check that the correct ESP32 board and serial port are selected in your development environment.
  • Try holding down the BOOT button while pressing and releasing the RST button, then release BOOT to enter programming mode.
  • Verify the USB Type-C cable is a data-capable cable, not just a charging cable.

8.3. CAN/RS-485 Communication Issues

  • Double-check all wiring connections for correct polarity and secure terminals.
  • Ensure proper termination resistors are used on the CAN bus and RS-485 network if required.
  • Verify that your software implementation of the communication protocols is correct.
  • Check for conflicts with other GPIOs if you are using custom pin assignments.

8.4. TF Card Not Detected

  • Ensure the TF card is correctly inserted and fully seated in its slot.
  • Verify that your ESP32 code correctly initializes and accesses the TF card.
  • Test with a different TF card to rule out card issues.

9. User Tips

  • ESP32 Integration: The T-CAN485 is built around an ESP32, providing powerful processing and wireless capabilities for your projects.
  • Driver Installation: Depending on the specific variant of your T-CAN485 (CH9102F or CH340K), you might need to install the corresponding USB-to-serial drivers for your operating system to ensure proper communication with your computer.

10. Warranty and Support

For technical support, documentation, and community resources, please refer to the official LILYGO GitHub repository:

https://github.com/Xinyuan-LilyGO/T-CAN485

For any product-related inquiries or issues, please contact the seller or LILYGO customer service directly. Keep your purchase records for warranty claims.

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.