Research Careers Contact

GlossaryCAN bus

CAN bus

CAN bus, short for controller area network, is a serial communication bus that lets many devices share a single twisted pair of wires, with built-in priority and error handling. It was created for vehicles and is widely used in robots, drones, industrial machines and medical equipment. The data link layer is defined in ISO 11898-1.

How it works

Every node connects to the same two wires, CAN high and CAN low, which carry a differential signal. The bus is terminated with a 120 ohm resistor at each end. A transceiver chip at each node converts between the bus and the controller's logic-level signals.

Messages carry an identifier rather than a destination address. Any node can send when the bus is idle. If two nodes start at once, they resolve it bit by bit through arbitration: a dominant bit overrides a recessive one, so the message with the lower identifier wins and continues while the other node stops and retries. That gives CAN deterministic priority without a master. Each frame carries a CRC, and every node checks it and acknowledges valid frames. Nodes that see too many errors take themselves off the bus, so one faulty node cannot jam it.

There are three main frame formats:

  • Classical CAN carries up to 8 data bytes at bit rates up to 1 Mbit/s.
  • CAN FD (flexible data rate) carries up to 64 data bytes and switches to a faster bit rate for the data phase.
  • CAN XL carries up to 2048 data bytes at higher rates still.

CAN defines how frames move, not what they mean. Higher-layer protocols add that meaning. CANopen, maintained by CAN in Automation (CiA), is common in industrial automation and motion control. DroneCAN and Cyphal are used on drones, for ESCs, GPS units, sensors and power modules.

CAN bus vs EtherCAT

EtherCAT runs on Ethernet hardware at 100 Mbit/s and higher, with very tight timing across many nodes, which suits multi-axis motion control. CAN is slower, but it is simpler, cheaper and very robust, with fewer wires and low-cost controllers built into many microcontrollers. Robots often use EtherCAT for high-rate joint control and CAN for slower peripherals, or CAN FD throughout for smaller systems.

Why it matters

CAN lets a robot or drone connect motor controllers, batteries, sensors and the main computer with one bus instead of many point-to-point links. Its priority, error checking and fault confinement make it dependable in electrically noisy machines.

It is also easy to get wrong in hardware. Missing or extra termination, long stubs, poor grounding and unshielded cables near motor wiring cause reflections and errors that appear only under load or at higher bit rates.

How to get it right

  • Terminate at both ends only. Use 120 ohms at each physical end of the bus, and none in between.
  • Keep stubs short. Run the bus as a line from node to node, with short connections to each node.
  • Use twisted pair. Route CAN high and low as a differential pair on the board and as twisted pair in cables, with shielding near motor wiring.
  • Share a reference. Carry a ground or signal reference with the bus, or use isolated transceivers between systems at different potentials.
  • Protect the transceiver. Add ESD and transient protection at connectors, especially on lines that leave the enclosure.
  • Plan the bit rate for the length. Higher rates allow shorter buses. Check timing for the full cable length and node count.

CAN bus in robotics and drone hardware

Robot arms and mobile robots often use CAN or CAN FD to link joint drives, battery management, sensors and the main controller, with CANopen or a custom protocol on top. Drones use DroneCAN for ESCs, GPS, compasses and power modules, which replaces many separate signal wires with one bus.

Board designers for these systems put the CAN transceiver, termination option, protection and connector close together, and they test the bus with motors running, since that is when noise and ground shifts are worst.

Learn more