MicroPython CAN bus for ESP32

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
dnhkng
Posts: 5
Joined: Mon Oct 06, 2014 9:45 am

Re: MicroPython CAN bus for ESP32

Post by dnhkng » Fri Mar 05, 2021 10:29 am

Great work! I'm really looking forward to using CAN is some ESP32-Wrover projects. Could you upload the binaries?

wthie
Posts: 3
Joined: Sun Feb 16, 2020 9:30 pm

Re: MicroPython CAN bus for ESP32

Post by wthie » Sat Mar 06, 2021 8:41 pm

Just confirmed loopback testing ok (rx/tx IO4, IO0) with the file esp32_can.py present in the example folder of fork

https://github.com/nos86/micropython

Make sure to select branch 'esp32-can-driver-harmonization' in the fork mentioned above to get the proper versions of the relevant files.

The binaries I compile are for the LilyGo board family, I'm not sure what's wanted concerning what gets compiled and linked in?

The board configs currently present in MP V1.13 (with uasyncio present) are
  • GENERIC
  • GENERIC_D2WD
  • GENERIC_OTA
  • GENERIC_SPIRAM
  • TINY_PICO

ihornehrutsa
Posts: 26
Joined: Sat Oct 26, 2019 8:38 pm

Re: MicroPython CAN bus for ESP32

Post by ihornehrutsa » Tue Jun 22, 2021 6:12 am


Shayan
Posts: 2
Joined: Sun Mar 28, 2021 4:49 am

Re: MicroPython CAN bus for ESP32

Post by Shayan » Tue Jun 22, 2021 6:45 pm


gregger2k
Posts: 1
Joined: Thu Jun 24, 2021 3:56 am

Re: MicroPython CAN bus for ESP32

Post by gregger2k » Thu Jun 24, 2021 4:11 am

ihornehrutsa wrote:
Tue Jun 22, 2021 6:12 am
WIP: esp32 CAN(TWAI) driver
https://github.com/micropython/micropython/pull/7381
ihornehrutsa I appreciate your working on the patch. I have built the firmware using your fork and have the machine CAN module loaded but I am having trouble to get anything to work. I have explored your updated documentation but I can't get the loopback to work, I just get timeouts on receive.

Do you have some simple examples using the new patch syntax I could try?

Thanks again,
Greg

Post Reply