Skip to content

Pinout & Interfaces

The RS485 CAN HAT connects to the Raspberry Pi through the standard 40-pin GPIO header, using SPI for CAN bus communication and UART for RS-485. This page documents every signal the HAT uses and the terminal block pinout for field wiring.

The CAN interface is driven by the MCP2515 controller over SPI, with an interrupt line on GPIO 25.

FunctionRaspberry Pi (BCM)Description
3V33V33.3V Power Input
GNDGNDGround
SCKSCKSPI Clock Input
MOSIMOSISPI Data Input
MISOMISOSPI Data Output
CSCE0Chip Select
INTGPIO 25Interrupt Output

The RS-485 interface uses the Pi’s UART and, optionally, a direction-control GPIO.

FunctionRaspberry Pi (BCM)Description
3V33V33.3V Power Input
GNDGNDGround
RXDRXDUART Receive
TXDTXDUART Transmit
RSEGPIO 4TX/RX Direction Control

The board exposes two screw-terminal blocks on the edge for field wiring.

TerminalSignal
HCAN High
LCAN Low
TerminalSignal
ANon-inverting (D+)
BInverting (D-)