Definitely a much cheaper option to connect your Raspberry PI to the CAN bus, compared to a SocketCAN supported USB-to-CAN adapter. At the time of this writing, it is priced at only $14. Those USB-to-CAN adapters work great and if you happen to own one, by all means use it! When using the Raspberry PI, a low-cost alternative exist: the Waveshare RS485/CAN hat. For example a Peak PCAN-USB or a Kvaser Leaf Light. That tutorial assumed that you own a USB-to-CAN adapter, supported by SocketCAN. A previous tutorial already covered how to automatically bring up a SocketCAN interface. SocketCAN consists of drivers and a network protocol stack to bring Controller Area Network support to the Linux kernel. BackgroundĪnytime you think of doing something with CAN on a Linux device, you need to think of SocketCAN. This article explains how to configure the Waveshare RS485/CAN hat as a SocketCAN interface on your Raspberry PI. Looking for a way to connect your Raspberry PI to a Controller Area Network (CAN) bus? With the help of the low-cost Waveshare RS485/CAN hat, you can augment your Raspberry PI such that it can communicate with the traffic on the CAN bus.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |