

The LILYGO XY_32_CAN+RS485 V1.1 is a versatile microcontroller board designed for applications requiring robust communication protocols. It features both CAN (Controller Area Network) and RS485 interfaces, making it ideal for IoT (Internet of Things) applications, industrial automation, and other scenarios where reliable data transmission is critical. The board is based on the ESP32 microcontroller, which provides powerful processing capabilities, integrated Wi-Fi, and Bluetooth connectivity.








The LILYGO XY_32_CAN+RS485 V1.1 is equipped with the following key features and specifications:
| Parameter | Value |
|---|---|
| Microcontroller | ESP32 (dual-core, 240 MHz) |
| Communication Interfaces | CAN, RS485, Wi-Fi, Bluetooth |
| Operating Voltage | 3.3V |
| Input Voltage Range | 5V (via USB-C) |
| Flash Memory | 4MB |
| SRAM | 520KB |
| Dimensions | 56mm x 25mm |
The board features a variety of pins for communication, power, and general-purpose I/O. Below is the pinout description:
| Pin Name | Description |
|---|---|
| 3V3 | 3.3V output for external devices |
| GND | Ground |
| VIN | Input voltage (5V via USB-C) |
| Pin Name | Description |
|---|---|
| CAN_TX | CAN bus transmit pin |
| CAN_RX | CAN bus receive pin |
| RS485_A | RS485 differential signal (A) |
| RS485_B | RS485 differential signal (B) |
| Pin Name | Description |
|---|---|
| GPIOxx | General-purpose I/O pins |
| ADCxx | Analog-to-digital converter pins |
CAN_TX and CAN_RX pins to connect to the CAN bus.RS485_A and RS485_B pins to connect to the RS485 network.Below is an example of how to use the LILYGO XY_32_CAN+RS485 V1.1 with the Arduino IDE for CAN communication:
#include <CAN.h> // Include the CAN library
void setup() {
Serial.begin(115200); // Initialize serial communication for debugging
while (!Serial);
// Initialize CAN communication at 500 kbps
if (!CAN.begin(500E3)) {
Serial.println("Starting CAN failed!");
while (1);
}
Serial.println("CAN initialized successfully.");
}
void loop() {
// Send a CAN message
CAN.beginPacket(0x123); // Set CAN ID
CAN.write("Hello"); // Write data to the CAN bus
CAN.endPacket(); // Send the packet
delay(1000); // Wait for 1 second before sending the next message
}
The board does not power on:
CAN communication is not working:
CAN_TX and CAN_RX pins are correctly connected.RS485 communication issues:
RS485_A and RS485_B connections.Unable to upload code to the board:
Q: Can I use this board for Wi-Fi and Bluetooth applications?
A: Yes, the ESP32 microcontroller on the board supports both Wi-Fi and Bluetooth communication.
Q: What is the maximum baud rate for CAN and RS485?
A: The maximum baud rate for CAN is 1 Mbps, and for RS485, it depends on the network configuration but typically supports up to 10 Mbps.
Q: Is the board compatible with 5V logic devices?
A: No, the board operates at 3.3V logic levels. Use level shifters if interfacing with 5V devices.