# CAN bus library or CAN alternative

**URL:** https://discourse.processing.org/t/can-bus-library-or-can-alternative/20553
**Category:** Electronics (Arduino, etc.)
**Created:** [May 6, 2020, 5:53pm UTC](https://discourse.processing.org/t/can-bus-library-or-can-alternative/20553 "2020-05-06T17:53:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jcduino](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jcduino](https://discourse.processing.org/u/jcduino)
#### Post date: [May 6, 2020, 5:53pm UTC](https://discourse.processing.org/t/can-bus-library-or-can-alternative/20553/1 "2020-05-06T17:53:29Z")

</div>

Hello!

I need to access a CAN Bus from my processing sketch. I have not found any processing library that can do it. I have tried it with java and I have not found anything either.

I have a star topology with different arduinos and a CAN hub. I connect a raspberry to the CAN hub and run my processing sketch on the Raspberry Pi.  
To the CAN network I connect 2 raspberry Pi with screens and 3 Arduinos, although it would be possible to increase it to 4 or 5 Arduinos.

This would be my main idea, with the CAN proposition.

It would be open to other formulas, with certain restrictions:

- It has to be wired.  
-I may need a long cable, about 4 or 5 meters. (Think in a car).

I thought of simply using usb connected to usb hub and this hub connected to a Raspberry pi, but it limits the access of a second or third Raspberry Pi to the data that arduinos offer.

Thank you for your answers!

---

<div class="post-metadata">

### Author: ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)
#### Post date: [May 6, 2020, 10:12pm UTC](https://discourse.processing.org/t/can-bus-library-or-can-alternative/20553/2 "2020-05-06T22:12:44Z")

</div>

Don’t know if this is any good? They have nice APIs, including Java, for all their stuff.

[https://www.tinkerforge.com/en/doc/Hardware/Bricklets/CAN\_V2.html#can-v2-bricklet](https://www.tinkerforge.com/en/doc/Hardware/Bricklets/CAN_V2.html#can-v2-bricklet)

---

<div class="post-metadata">

### Author: ![jcduino](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jcduino](https://discourse.processing.org/u/jcduino)
#### Post date: [May 7, 2020, 10:04pm UTC](https://discourse.processing.org/t/can-bus-library-or-can-alternative/20553/3 "2020-05-07T22:04:56Z")

</div>

Thank you! I think it’s a good alternative. May be a little expensive because I would need 2 “shields” the Brick (Master or Hat) attached to a USB of the Raspberry Pi and the CAN Bricklet attached to the Brick. About 50€ + shipping cost (10€). But there is a really good alternative.

Any other alternative it’s wellcome.

---

<div class="post-metadata">

### Author: ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)
#### Post date: [May 8, 2020, 10:25am UTC](https://discourse.processing.org/t/can-bus-library-or-can-alternative/20553/4 "2020-05-08T10:25:43Z")

</div>

Yes, it’s not necessarily the cheapest solution, but they’re well made / thought out devices, and I like the fact that the whole stack (software and hardware) is open source, and they’re really responsive. I built support directly in to [PraxisLIVE](https://www.praxislive.org) and have built a few interactive projects with them, like [this](https://www.neilcsmith.net/projects/installation/cabinet-of-luminosities/) (using NFC reader to trigger videos, and IR and rotary encoder to play with them).
