Another subject recently suggested by my YouTube channels followers was CAN (Controller Area Network) protocol, which is what well focus on today. Its important to explain that CAN is a simultaneous serial communication protocol. This means the synchronism between the modules connected to the network is performed in relation to the beginning of each message sent to the bus. Well start off by introducing the basic concepts of the CAN protocol and perform a simple assembly with two ESP32s.
In our circuit, the ESPs can act as both Master and Slave. You can have multiple microcontrollers transmitting simultaneously, because the CAN deals with the collision of everything automatically. The source code of this project is super simple. Check it out!”