No description
Find a file
2022-12-23 18:40:41 -05:00
examples Create esp32can_rtos.ino 2022-12-23 18:40:41 -05:00
src remove rtos header defines 2022-12-23 17:49:22 -05:00
.gitignore Include Arduino.h 2019-05-08 09:01:34 +02:00
keywords.txt Use correct field separator in keywords.txt 2018-08-03 06:47:16 -07:00
library.properties ESP32 CAN Driver with examples 2018-04-01 20:56:36 +02:00
LICENSE ESP32 CAN Driver with examples 2018-04-01 20:56:36 +02:00
README.md formatting, add todo item 2022-12-13 20:07:06 -05:00

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 TWAI1 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

  • Easily configure the ESP32 TWAI1 peripheral
  • Send and receive CAN Bus messages
  • Various bus speeds
  • Standard (11bit) and extended (29bit) frames
  • CAN Message Filter

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

  • Advanced example with RTOS tasks
  • Release to main branch, no push to miwagner version
  • Implement CAN Message Filter

  1. TWAI is the name that Esperssif uses for the CAN peripheral. It stands for two wire automotive interface ↩︎