Xinyuan-LilyGO / T-CAN485

MIT License
82 stars 26 forks source link

🌟LilyGo T-CAN485🌟

Introduce

Onboard functions

Product 📷:

Product Product Link
T-CAN485 AliExpress

Quick Start

Arduino

  • Click "File" in the upper left corner -> Preferences -> Additional Development >Board Manager URL -> Enter the URL in the input box https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

  • Click OK and the software will be installed by itself. After installation, restart the Arduino IDE software.

  • Arduino Setting img

PlatfromIO

  • PlatformIO plug-in installation: Click on the extension on the left column -> search platformIO -> install the first plug-in
  • Click Platforms -> Embedded -> search Espressif 32 in the input box -> select the corresponding firmware installation

Udev Setup (Linux)

If your board isn't present on the device tree, create a file with this content:


$ sudo cat /etc/udev/rules.d/70-lilygo.rules

SUBSYSTEM=="tty", GROUP="plugdev". MODE="0660"
SUBSYSTEMS=="usb", ATTRS{idProduct}=="55d4", ATTRS{idVendor}=="1a86", SYMLINK+="lilygo"

Then reload the rules as follow:

sudo udevadm control --reload-rules && sudo service udev restart && sudo udevadm trigger

Un-plug your Lilygo then plug it back, the device should be accessible on /dev/lilygo

Q&A

  1. CAN bus protocol does not work properly.