Replies: 2 comments 1 reply
-
see: https://github.com/orgs/micropython/discussions/9584 also see Awesome CAN Bus: https://github.com/iDoka/awesome-canbus |
Beta Was this translation helpful? Give feedback.
-
Coincidentally, I've been looking in to CAN (and, more specifically, CANopen) on MicroPython recently for a project at work. The short answer is no, it's currently only implemented for STM32 in pyb.CAN. That API is quite rich but modelled around the STM32 features so may be challenging to implement on other ports. It would be a very welcome feature to define a CAN API generically in CircuitPython has canio; modelling the API on that would be an excellent start! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The ESP32 processor has native CAN capability but there is no support for it in micropython. I noticed some other chips supported by MicroPython DO have a CAN class library, and there must be some C code to drive the CAN on the chip as well. Is anyone aware of work to this end? In particular, I just picked up some QTPY ESP32-C3 board from Adafruit, and I'd sure like to make a CAN controller out of it. (I'm aware I'd need a transceiver chip for true CAN but that's a secondary consideration). I'd rather not use Arduino and C to program it.
(Although if anyone has links to C code for ESP32 CAN, please share and I might look into porting it myself, personal bandwidth permitting).
I'm aware of I2C can interfaces but I was hoping to use native CAN of the ESP32 chip.
Beta Was this translation helpful? Give feedback.
All reactions