ESP32_Arduino_CAN/README.md

25 lines
1.3 KiB
Markdown
Raw Normal View History

2018-04-01 16:21:55 +02:00
# Arduino Library for the ESP32 CAN Bus (ESP32-Arduino-CAN)
2022-12-14 02:02:47 +01:00
## V2.0
This is a rewrite of the original library created by [miwagner](https://github.com/miwagner/ESP32-Arduino-CAN). The old version of this library used registry commands to configure the TWAI[^1] peripheral. 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.
2018-04-01 16:21:55 +02:00
2022-12-14 02:02:47 +01:00
## Features
* Easily configure the ESP32 TWAI[^1] peripheral
* CAN Bus messages send and receive
* Various bus speeds
* Standard (11bit) and extended (29bit) frames
* ~~CAN Message Filter~~
2018-04-01 16:21:55 +02:00
2022-12-14 02:02:47 +01:00
## Usage
See the examples in the [/examples](examples) folder.
2018-04-01 16:21:55 +02:00
2022-12-14 02:02:47 +01:00
## 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.
2018-04-01 16:21:55 +02:00
2022-12-14 02:02:47 +01:00
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/twai.html#examples
2018-04-01 16:21:55 +02:00
2022-12-14 02:02:47 +01:00
## TODO
- [ ] Advanced example with RTOS tasks
- [ ] Implement CAN Message Filter
2018-04-01 16:21:55 +02:00
2022-12-14 02:02:47 +01:00
[^1]: TWAI is the name that Esperssif uses for the CAN peripheral. It stands for *two wire automotive interface*