0

2x CAN bus support?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

2x CAN bus support?

by FransUrbo on Thu Jul 29, 2021 1:36 pm

I'm looking to do some CAN bus hacking on my car and I need at least two busses.

I've never done any hardware hacking or coding (other than the occasional one on my C64 "back in the day" :). I have however worked with Linux as a developer, administrator/operator and architect for the last 30+ years, so I'm not completely useless :).

I'm a bit of a loss to what device I need. All these seem to have at least two CAN bussees


The last two seems most interesting, but have I missed anything? I don't really care what system it uses (RPi/Arduino/etc), as long as it have support for Python and/or C (preferred). An ultra small size (like these three) is nice, but a requirement.

However, looking at the PJRC page for the last two, it say:

3 ports for CAN bus allow connecting to automotive & industrial control systems which use CAN communication. A CAN transceiver chip must be added to complete the electrical interface between Teensy 4.1 and the CAN bus.


Where do I find this "CAN transceiver chip"?


I do see a future need for GPS and 3/4/5G, but can I add a module for that?

FransUrbo
 
Posts: 3
Joined: Thu Jul 29, 2021 1:12 pm

Re: 2x CAN bus support?

by mikeysklar on Fri Jul 30, 2021 1:02 pm

Take a look at our Feather M4 CAN. It has the transceiver chip built in. You could consider this board over the Teensy or review the design files for it.

https://learn.adafruit.com/adafruit-fea ... s/overview


https://learn.adafruit.com/adafruit-fea ... /downloads

mikeysklar
 
Posts: 5588
Joined: Mon Aug 01, 2016 8:10 pm

Re: 2x CAN bus support?

by FransUrbo on Fri Jul 30, 2021 1:16 pm

Yes, those where the first I looked at, but it only have ONE CAN bus. I need *at least* two.. Hence subject..

FransUrbo
 
Posts: 3
Joined: Thu Jul 29, 2021 1:12 pm

Re: 2x CAN bus support?

by mikeysklar on Fri Jul 30, 2021 1:39 pm

Take a look at the schematic for the Feather M4 schematic I linked to above.

You can see the transceiver chip we use. Will two of these TCAN1051HGV make sense with your setup?

F6FADCE6-D5D2-4C00-90F2-C0B0657CA22B.jpeg
F6FADCE6-D5D2-4C00-90F2-C0B0657CA22B.jpeg (209.1 KiB) Viewed 129 times

mikeysklar
 
Posts: 5588
Joined: Mon Aug 01, 2016 8:10 pm

Re: 2x CAN bus support?

by FransUrbo on Fri Jul 30, 2021 1:43 pm

No idea! Hardware isn't my thing.. Would that work with the Teensy 4.1? Not sure how that would be used with the Teensy.. I can solder, surface mounted AND "old-school" just fine, but I'd need more exact and "simple" instructions..

FransUrbo
 
Posts: 3
Joined: Thu Jul 29, 2021 1:12 pm

Re: 2x CAN bus support?

by mikeysklar on Mon Aug 02, 2021 10:23 am

I've not seen a Teensy 4.1 example with the TCAN1051HGV CAN transceiver so simple instructions are out.

You would need to review some Teensy 3.2 examples or our M4 CAN board for hookup. Looking at the design files it seems like a UART connection is the critical component so a dual UART chip (Teensy / M4) could buy you dual CAN transceivers.

https://web.wpi.edu/Pubs/E-project/Avai ... Report.pdf

https://www.adafruit.com/product/4759

mikeysklar
 
Posts: 5588
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.