Electrical – Connecting multiple microcontrollers to a CAN bus

canmicrocontrollerNetwork

I want to set up a network of microcontroller communicating via the CAN protocol. How do I go about the wiring? Do I directly connect all the RX/TX wires together; will it work and be reliable? Or is there a specific/better way to build a CAN bus?

Best Answer

schematic

simulate this circuit – Schematic created using CircuitLab

There are no Rx/Tx on a CAN bus; there is CAN high and CAN Low. You need to use a CAN Transceiver between the CAN bus and the micro's Rx and Tx signals. Devices should be connected to the bus with stubs as short as practical, and the bus must have a 120 ohm termination resistor at each end.