B4R Library rCAN library

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

  • TestCAN.zip
    1 KB · Views: 215
  • rCAN.zip
    2.6 KB · Views: 80
Last edited:

peacemaker

Expert
Licensed User
Pardon me, but where is v.1.12 of lib ?
1622208676756.png
 

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
 
Top