Author Topic: CAN bus wiring  (Read 2125 times)

0 Members and 1 Guest are viewing this topic.

Offline Red_MicroTopic starter

  • Regular Contributor
  • *
  • Posts: 121
  • Country: ca
CAN bus wiring
« on: June 26, 2021, 09:25:55 pm »
In building a small low power CAN network (~1m, ~10 nodes) I'm thinking of how the wiring can be. It has to have four wires (CANH, CANL, Power and GND). The "master" node will power the rest of the nodes. In the attachment there's a high level block diagram and several random wiring ideas. There can be two options: a daisy-chained architecture or a central hub. Given that I have four wires maybe a hub would be more compact, but the daisy chain could give more flexibility depending on the location of the nodes. The IDC one looks good, maybe it can be modified with an smaller connector and twisted ribbon cable. The drawback is that flat ribbon takes more space. So I basically brainstorming right now. Any ideas or suggestions?
 

Offline ChristofferB

  • Frequent Contributor
  • **
  • Posts: 929
  • Country: dk
  • Chemistry phd student!
    • My channel:
Re: CAN bus wiring
« Reply #1 on: June 27, 2021, 11:29:07 am »
Ribbon cable and IDC or DSUB9 connectors would be ideal, in my opinion, as you could add devices into the cable by just crimping on a new connector
--Christoffer //IG:Chromatogiraffery
Check out my scientific instruments diy (GC, HPLC, NMR, etc) Channel: https://www.youtube.com/channel/UCZ8l6SdZuRuoSdze1dIpzAQ
 
The following users thanked this post: Red_Micro

Offline greasemonkey

  • Contributor
  • Posts: 38
  • Country: ch
Re: CAN bus wiring
« Reply #2 on: June 27, 2021, 01:09:14 pm »
If you want to do it properly you need to daisy-chain it and terminate. The standard CAN bus cable impedance is 120Ohm but it is expensive and hard to work with. You may use UTP or STP cable but you need to terminate it with 100Ohm resistors. It will work just as well and you have enough spare wires for power.

Ribbon cable and a central hub topology will probably work too but you may have problems at higher baud rates and would be susceptible to EMI.

I would do it properly.
My moderately uninteresting blog: https://btbm.ch
 
The following users thanked this post: Red_Micro

Online dietert1

  • Super Contributor
  • ***
  • Posts: 2264
  • Country: br
    • CADT Homepage
Re: CAN bus wiring
« Reply #3 on: June 27, 2021, 02:13:47 pm »
On the hardware level CAN is simple and easy to use. USB cable with DSUB9 connectors works well. I think the bus should have no other connectors than those for the nodes. And the bus should include its terminators, so you don't have to think over the terminators again when connecting a node. The terminator fits into the plug.
I remember making a bus with 1 m segments from node to node and with 12V as supply to feed analog circuitry in the nodes.

Regards, Dieter
 
The following users thanked this post: Red_Micro

Online Siwastaja

  • Super Contributor
  • ***
  • Posts: 8362
  • Country: fi
Re: CAN bus wiring
« Reply #4 on: June 27, 2021, 03:10:32 pm »
Daisy chain or short (some 5-10 inches max) stubs work, use whichever is more handy. Do note that daisy chaining is a special case of stubs, just with a smaller stub length down to a few millimeters on a well laid out PCB.
 
The following users thanked this post: Red_Micro


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf