Teensy 4.1 CAN bus

SamiH

Member
I was wondering how many Waveshare SN65HVD230 CAN Board I can connect to teensy a 4.1 and use using the (https://github.com/tonton81/FlexCAN_T4)
library.

Previously I have used 3 of the above mentioned can boards with a teensy 4.1.

On the teensy 4.1 DOCs it says there is 3 CAN Bus. Is there nay way to extend that?

Can I use more than 3, if so how do i start.

TIA
 
I was wondering how many Waveshare SN65HVD230 CAN Board I can connect to teensy a 4.1 and use using the (https://github.com/tonton81/FlexCAN_T4)
library.

Previously I have used 3 of the above mentioned can boards with a teensy 4.1.

On the teensy 4.1 DOCs it says there is 3 CAN Bus. Is there nay way to extend that?

Can I use more than 3, if so how do i start.

TIA

I'm not familiar with this waveshare board you mention but an SN65HVD230 is a transceiver only and thus you could use three of those to get three CAN buses at the same time. You can extend the number of buses by adding SPI connected CAN modules (MCP2518/MCP2518FD). With such modules are you limited only by the SPI bus bandwidth and the number of chip select pins you can use. On a T4.1 you have a lot of digital I/O pins so that's no problem at all. MCP2718FD chips should run fine at a 20MHz SPI rate. So, you should be able to have about 4 of them on a single SPI bus and still be OK. That gives you 7 total CAN buses. Anything more than that is probably a pipe dream.
 
I was wondering how many Waveshare SN65HVD230 CAN Board I can connect to teensy a 4.1 and use using the (https://github.com/tonton81/FlexCAN_T4)
library.

Previously I have used 3 of the above mentioned can boards with a teensy 4.1.

On the teensy 4.1 DOCs it says there is 3 CAN Bus. Is there nay way to extend that?

Can I use more than 3, if so how do i start.

TIA

At the risk of pointing out the obvious, CAN isn't like a UART, you can connect lots of devices to a single CAN bus.
Assuming you don't run out of data rate capacity, have issues with multiple things using the same IDs, or have things that have different fixed baud rates then there is no reason why lots of devices can't all co-exist on the same bus.
 
Back
Top