sdp8483 / ESP32-Arduino-CAN

An Arduino CAN-Bus library for ESP32
MIT License
9 stars 4 forks source link

Arduino Library for the ESP32 CAN Bus (ESP32-Arduino-CAN)

V2.0

This is a rewrite of the original library created by miwagner. The old version of this library used registry commands to configure the TWAI[^1] peripheral and has not been updated in years. Newer versions of the Espressif IDF have built in functions to configure the TWAI peripheral that are more reliable. V2.0 of this library incorporates these new IDF functions in the original function calls of the ESP32-Arduino-CAN library.

Features

Usage

See the examples in the /examples folder.

Espressif IDF Documentation

The Espressif IDF documentation at the link below should be reference first if you encounter any errors. Make sure you are using the most recent IDF version, V5.0 when writing this.

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/twai.html#examples

TODO

[^1]: TWAI is the name that Esperssif uses for the CAN peripheral. It stands for two wire automotive interface