Skip to content

Raspberry pi hat

Powering via type-c and having a separate USB CAN adapter is frustrating. Do everything with a simple "hat".

CAN

/boot/firmware/config.txt
# canbus
dtoverlay=mcp2515-can0,oscillator=8000000
dtoverlay=spi-bcm2835-overlay
sudo apt install can-utils
sudo systemctl start systemd-networkd
sudo systemctl enable systemd-networkd

$ cat /etc/systemd/network/can.network
[Match]
Name=can0

[CAN]
BitRate=500000
RestartSec=100ms

[Link]
ActivationPolicy=up

$ systemctl enable systemd-networkd

EEPROM

whatever the hat standard requires...

Power supply

  • Low voltage shutdown?
  • AP63301WU-7
    • can only do 3A, this will require USB current limiting

Serial port

  • Connector for lidar module