B4R Library rCAN library

janderkan

Active Member
Licensed User
This wraps the basic functions from CAN library by Sandeep Mistry .

The library makes it simple to communicate between Arduinos AND ESP32s using a 2 wire CAN bus. (fx. 100KBS at 1000m)
You have to use Arduino to install the library.
It supports UNO, MEGA and ESP32. (Tested with all 3)

You can use fx. this shields:
https://www.seeedstudio.com/CAN-BUS-Shield-V2.html
https://www.banggood.com/da/MCP2515...iver-SPI-51-MCU-ARM-Controller-p-1481199.html
The ESP32 also needs a Can transceiver ( SN65HVD230 )

Enjoy
 

Attachments

Last edited:

janderkan

Active Member
Licensed User
Using an ESP32 and only one ESP32, the lib is hanging when you try to send a packet.
You have to power off/on.
There is a fix for this problem in this POST
 

hatzisn

Well-Known Member
Licensed User
Hello,

which CAN library should we install in Arduino (by whom and under what name and version) ?


Edit - Sorry, found it --> The Adafruit fork
 
Last edited:
Top