raspberry pi can bus hat
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Other 100.0%
10 1 0

Clone this repository

https://tangled.org/dunkirk.sh/can-hat https://tangled.org/did:plc:krxbvxvis5skq7jj6eot23ul/can-hat
git@knot.dunkirk.sh:dunkirk.sh/can-hat git@knot.dunkirk.sh:did:plc:krxbvxvis5skq7jj6eot23ul/can-hat

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

CANopy#

the main schematic the branch schematic

The canonical repo for this is hosted on tangled over at dunkirk.sh/CANopy

BOM#

Name Purpose Quantity Total Cost (USD) Distributor
2×20 40-pin stacking female header 15-16mm pin length to clear Pi 5 active cooler, hand solder 1 $9.90 Amazon
10kΩ 0603 MCP2518FD RESET pull-up and MCP2562FD STBY pull-down, PCBA 100 $0.18 LCSC
1kΩ 0603 EEPROM write-protect pull-up to 3.3V, PCBA 100 $0.16 LCSC
3.9kΩ 0603 EEPROM SDA/SCL pull-ups to 3.3V, PCBA 100 $0.16 LCSC
120Ω 0603 CAN bus termination resistors, one per channel, PCBA 100 $0.09 LCSC
10µF 0805 Bulk caps for 3.3V and 5V rails, PCBA 20 $0.43 LCSC
1µF 0603 X5R Decoupling caps for all ICs, PCBA 100 $0.56 LCSC
15EDGRC-3.5-02P (plug & header) PCB-side right-angle pluggable terminal block, 3.5mm pitch, 2-pin, hand solder 10 $3.21 LCSC
AT24C32D-SSHM-T 32Kbit I2C EEPROM for HAT ID, SOIC-8, hand solder 5 $1.48 LCSC
OVETGLJANF-40MHZ 40MHz active oscillator, 3.3V, SMD5032-4P, hand solder 11 $6.14 LCSC
MCP2562FDT-E/SN CAN FD transceiver with VIO pin, SOIC-8, hand solder 11 $12.87 LCSC
MCP2518FDT-H/SL CAN FD SPI controller, SOIC-14, hand solder 11 $27.07 LCSC

For use with the SystemCore the RSL can be emulated via the following

# pseudocode
gpio = /sys/class/gpio/gpioXX/value
while True:
  enabled = read("/sys/kernel/can_heartbeat/enabledro")
  gpio.write(enabled)
  # add blink pattern logic for disabled state
  sleep(0.05)

todo#

  • add testpoints on i2c and can rx/tx 0.1" header
  • add termination resister jumper (dip switch block)
  • add rsl mosfet switching ground
  • 5v 5a pololu
  • new screw blocks DEGSON DG500-5.08-02P-14-00A(H)
  • esd diodes on the gpio pins for rsl
  • 120 ohm differential pairs for can

© 2026-present Kieran Klukas