An Arduino ESP32 library for sending and receiving data using CAN bus.
- Espressif ESP32's built-in SJA1000 compatible CAN controller with an external 3.3V CAN transceiver
Requires an external 3.3V CAN transceiver, such as a TI SN65HVD230.
| CAN transceiver | ESP32 |
|---|---|
| 3V3 | 3V3 |
| GND | GND |
| CTX | GPIO_5 |
| CRX | GPIO_4 |
CTX and CRX pins can be changed by using CAN.setPins(rx, tx).
- Choose
Sketch->Include Library->Manage Libraries... - Type
CANinto the search box. - Click the row to select the library.
- Click the
Installbutton to install the library.
cd ~/Documents/Arduino/libraries/
git clone https://github.com/sandeepmistry/arduino-CAN CANSee API.md.
See examples folder.
This library is licensed under the MIT Licence.