An Arduino CANFD library for Adafruit Feather M4 CAN #Arduino #canbus
The CANFD Library for Adafruit Feather M4 CAN handles Controller Area Network with Flexible Data (CANFD) for CAN0 and CAN1.
The board contains a CANFD transceiver for CAN1 and the CANH / CANL signals are exposed. For CAN0, TxCAN is D12 and RxCAN is D13.
The library is fully compatible with the MCP2517FD, MCP2518FD CAN Controllers ACAN2517FD library https://github.com/pierremolinaro/acan2517FD, it uses a very similar API and the same CANFDMessage class for handling messages.
The driver supports many bit rates, as standard 62.5 kbit/s, 125 kbit/s, 250 kbit/s, 500 kbit/s, and 1 Mbit/s. An efficient CAN bit timing calculator finds settings for them, but also for exotic bit rates as 833 kbit/s. If the wished bit rate cannot be achieved, the begin method does not configure the hardware and returns an error code.
See more including code and documentation in the GitHub repo.
Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!
Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi
EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey