October 2024 important update, there has been an update to the examples I have shown in the video series. A change to a library had broken the sketches, I discovered this today and fixed the offending sketches.
Arduino CAN Bus Introduction Series Using MCP_CAN Library
The idea is to demonstrate how quickly you can get started using the well-documented Arduino library for controlling the general input and output pins of an Arduino Nano in these examples. This can be easily adapted to other versions of Arduino or even ESP32 when using the MCP2515 modules readily available from various vendors.
There are other libraries available with their own protocols, as mentioned in video 1. However, these require additional libraries to implement some of the advanced features deemed important by their creators.
Learning Structure:
If you take a look at the the Github repository you will see a Wiki tab. once clicked on it will take you to my Wiki for this project. This allows me to improve the documentations as I progress along the journey. My github repository.
https://github.com/johnmholmes/YouTub...
By taking small steps, you will see how, with little knowledge of using CAN, you can send a message to another Arduino on the 2-wire bus.
While the first few sketches may seem pointless, they provide a starting point for building your own knowledge in this useful bus protocol.
Other tutorials often delve straight into the arbitration of CAN Bus and the message frame, which can be challenging to grasp initially. That's why I've kept it quite simple.
I can also be contacted via email at [email protected]