Can2040 on Arduino Due

I want to use this lib in an Arduino sketch. It claims that

This library is compatible with all architectures so you should be able to use it on all the Arduino boards.

but it seems to be dependent in some Pico SDK, could I use it on an Arduino Due? (I know due already has a CAN controller)

The MERG CBUS is a high level messaging layer that sits on top of the CAN transport layer so in theory you could create a wrapper for the due that emulates the API of the Pico CAN bus library.

Alternatively just buy a Pico and write a communications interface that allow the Due (or any other microcontroller) to send/receive data using the Pico as a proxy. This will insulate you from needing to know anything about the low level aspects of CBUS or CAN.

maybe simpler to use a MCP2515and the MCP_CAN_lib library with the Due or even a Adafruit RP2040 CAN Bus Feather

1 Like