16 Responses

  1. […] on how to connect Raspberry Pi to CAN Bus. http://youness.net/raspberry-pi/raspberry-pi-can-bus. […]

  2. Michael J. Kidd at | | Reply

    Great write up.

    While I’m sure many appreciate the details of the circuits involved, I’d bet others would appreciate knowing a Pi hat exists for this purpose.

    SKPang had the PiCAN2 board which I’ve used extensively for the past 3 years in various projects. He has single and dual bus board as well as a variety which includes a 12v to 5v SMPS that works great for vehicle projects.

    Note: I’m not affiliated with SKPang other that being a customer.

  3. Michael J. Kidd at | | Reply

    Youness, thanks! That’s what I get for not browsing your blog more… 😉

  4. Yahya EL Gaoual at | | Reply

    Thank you so much, such a great blog

  5. ERAT #36 A talking shield – ZL2KEJ at |

    […] How to Connect Raspberry Pi to CAN Bus […]

  6. Matheus Penido at | | Reply

    Thanks for that great tutorial! I did build the circuit and when plug it over a CAN BUS network based on two Arduinos and MCP2515/TJA1050 raspberry pi read data flow appropriately. But I have one question: Why loopback mode didnt works for me? There are some configurations or modifications on to circuit to get it working? Maybe someone can help me! Thanks…

  7. Martin at | | Reply

    Thanx for the great HowTo.

    Just a remark for a tiny mistake:
    The drawing in chapter 1.1.5 has a bug. The Node B must be twisted. The CAN Transceiver should be connected to the bus and being on the left side, the CAN controller should be on the right side.

  8. Donald Fast at | | Reply

    Hi,

    Should this same process work for the microchip CAN bus analyzer (USB) ?? I followed these steps and after “ip link set can0….” i get
    cannot find device “can0”

    Product details: https://www.microchip.com/Developmenttools/ProductDetails/APGDT002

    I have this device and it works when running under windows. I am trying to monitor some canbus industrial equipment (not a car, data not encrypted).

    Thanks for any help.

  9. Donald Fast at | | Reply

    Built and working.

    Small correction: the schematic in 1.4 is wrong (but the images are correct) Raspberry pin 20 is actually pin23 (Sclk)
    ( Pin 20 is ground. )

Please comment with your real name using good manners.

Leave a Reply