Projects / Ideas / CAN bus priority demo

CAN bus priority demo

IntermediateCommunicationIdeaReviewed
In short

How do you build a CAN bus priority demo?

Two Nano boards with CAN modules both try to send at the same moment, and the message with the lower ID wins while the other waits its turn. Print what each board sees. It is the neat idea that lets cars share one pair of wires safely. You need Arduino Nano × 2, MCP2515 CAN bus module × 2, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

Level
Intermediate
Time
About 90 min
Parts
4
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

See how CAN lets the lower ID win.

Parts list

How to build it

  1. Wire both modules to the SPI pins
  2. Give the boards two different message IDs
  3. Send on both at once
  4. Print the order that arrives
  5. Swap the IDs and repeat

Related projects

Common questions

What parts do I need for the CAN bus priority demo?

Arduino Nano × 2, MCP2515 CAN bus module × 2, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

How long does the CAN bus priority demo take to build?

About 90 minutes for a intermediate maker.