CAN bus for ESP32 or RP2040? #9584
Replies: 3 comments 5 replies
-
This is as close as I have found by searching - #9532 |
Beta Was this translation helpful? Give feedback.
-
As you no doubt know, the RP2040 doesn't have a CAN peripheral but it's quite straightforward to get an external MCP2515 chip (and family members) working. Adafruit has a CircuitPython library and I have been doing some work to port an Arduino C++ library across. It's just reading and writing registers over SPI, as documented in the datasheet. The problem is finding a module that works at 3.3V, if you can't make your own. I have a Pico 'hat' PCB design, if you can do surface mount assembly. |
Beta Was this translation helpful? Give feedback.
-
A company, CANIS, has exactly what I'm after - https://kentindell.github.io/2021/03/10/micropython-can-api Not sure if they have been able to release source yet but they are using the newer MCP2518FD with CAN ID filters. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to search for "CAN" in the old forums is pretty much impossible! I found a few threads were the discussion of CANbus libraries for boards other than the Pyboard came up but some of these threads are 6 years old. Does anyone know of work being done to get a CAN library working on the ESP32 or RP2040 boards? I have been successful with CANbus on STM32F405 dev boards but would like to do some prototyping on the ESP32 (due to network access) but need working CANbus for my design.
Beta Was this translation helpful? Give feedback.
All reactions