bertr2d2
Posts: 98
Joined: Wed Aug 08, 2012 10:12 pm

RPi galvanic isolated CAN-Bus Interface

Fri Sep 14, 2018 2:13 pm

Hi,

if you are looking for a cheap, easy to build and galvanic isolated RPi CAN-Bus interface please have a look at:
Image
https://github.com/GBert/misc/tree/master/RPi-MCP2515

PCB files are part of the git. If you prefer ready to use PCBs you can buy a proto pack (8+ PCBs - share it with you friends ;-) ) at Dirty-PCBS

Setup is easy:

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install can-utils
edit /boot/config.txt

Code: Select all

; uncomment
dtparam=spi=on
; add
dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25
; RPi 3
dtoverlay=spi-bcm2835-overlay
reboot

Code: Select all

sudo shutdown -r now
Setup (e.g 250k)

Code: Select all

sudo ip link set can0 up type can bitrate 250000 restart-ms 100
Regards

Gerd

PS: PCB also contains I2C Busextender (top - left side) which is optional
Easy to build CAN-Bus interface:
http://lnxpps.de/rpie

Return to “Interfacing (DSI, CSI, I2C, etc.)”