ESP32_Arduino_CAN/README.md

26 lines
1.4 KiB
Markdown
Raw Permalink 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
2022-12-14 02:07:06 +01:00
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 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.
2018-04-01 16:21:55 +02:00
2022-12-14 02:02:47 +01:00
## Features
* Easily configure the ESP32 TWAI[^1] peripheral
2022-12-14 02:07:06 +01:00
* Send and receive CAN Bus messages
2022-12-14 02:02:47 +01:00
* 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
2022-12-24 00:42:23 +01:00
- [x] Advanced example with RTOS tasks
2022-12-24 00:55:42 +01:00
- [x] Release to main branch, no push to miwagner version
2022-12-14 02:02:47 +01:00
- [ ] 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*