LilyGO is regularly bringing ESP32 boards to market for specific applications, and their latest TTGO T-CAN485 connects ESP32 to CAN bus and RS485 industrial control interfaces.
The board also takes 5 to 12V power input via a 2-pin terminal, comes with a microSD card for data storage, a USB Type-C port and CH340K serial chip for programming and debugging, plus a 12-pin GPIO header, some buttons, and an RGB LED.
TTGO T-CAN485 board specifications:
- SoC – Espressif System ESP32 dual-core processor @ up to 240 MHz with 2.4 GHz Wi-Fi, Bluetooth 4.2 LE connectivity
- Storage – 4MB flash, microSD card socket
- Industrial control interfaces
- CAN bus via 3-pin terminal block
- RS485 via 3-pin terminal block
- Expansion – Unpopulated 12-pin header with 8 GPIOs configurable as UART, SPI, I2C, plus VDD, GND
- Debugging – USB-C port for serial access via CH340K USB to TTL chip
- Misc- Reset and Boot boots, WS2812 RGB LED
- Power Supply – 5 to 12V via 2-pin terminal
- Dimensions – 10.7 x 3.5 x 1.1 cm (including connectors); PCB only: 8 x 3.5 cm
The company provides RS485, RS485-Modbus, and CAN Bus samples for Arduino and PlatformIO on Github. We’re also told CAN bus may not work with some versions of ESP32, and a register must be changed:
Depending on the ESP32 chip, the CAN controller register IER parameter needs to be changed. If it is a V3 version chip, you can use 0xEF, otherwise, use 0xFF.
IER stands for “Interrupt Enable Register”. It would have been extra nice to be a bit more specific, but at least it gives a starting point to what needs to be changed if the CAN bus does not work.
LilyGO sells TTGO T-CAN485 board on Aliexpress for $11.43 excluding shipping and taxes. It’s not the first ESP32 board that supports RS485 or CAN Bus, but it may be the first to support both. Alternative ESP32 CAN Bus boards include CANLite or CAN32, while RS485 is supported on M5Stack Atom DTU LoRaWAN Kit and MiniLink IIoT Node with the last two also featuring LoRaWAN connectivity.
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.