2x CAN bus support?

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
FransUrbo
 
Posts: 3
Joined: Thu Jul 29, 2021 1:12 pm

2x CAN bus support?

Post by FransUrbo »

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?

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: 2x CAN bus support?

Post by mikeysklar »

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

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

Re: 2x CAN bus support?

Post by FransUrbo »

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

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: 2x CAN bus support?

Post by mikeysklar »

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 356 times

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

Re: 2x CAN bus support?

Post by FransUrbo »

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..

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: 2x CAN bus support?

Post by mikeysklar »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”