bigtreetech / MMB

57 stars 7 forks source link

CAN bus wiring with EBB SB2209, U2C, and MMB #11

Open ksteddom opened 4 months ago

ksteddom commented 4 months ago

What is the preferred way to wire the CAN bus when you have multiple devices? In my example I have the SB2209 tool head board connected to my pi via a U2C adapter. What order should the three devices be in the bus and which ones get the 120R resistor jumpers?

alidaf commented 3 months ago

120R jumpers go on the start and end points of the CanBUS so on your U2C adapter and SB2209 toolhead board. Your Pi isn't part of the CanBUS - it's just communicating over USB with the U2C, which implements CanBUS.

ksteddom commented 3 months ago

Rereading my question, it was very unclear. I also have the MMB that I need to add to the bus. From your reply and what I have gathered elsewhere, it sounds like both the SB2209 and the MMB connect directly to the U2C making it the middle device. Then I add the 120R to the MMB and SB2209 and remove it from the U2C. Does that sound right?

alidaf commented 3 months ago

I think in your case all signals originate from the U2C so it is the start. If you have 2 cables from the U2C, 1 to the the MMB and 1 to the toolhead then you have a star network, the peripherals are still end devices and both need jumpers along with the U2C. If you have 1 cable from the U2C to the toolhead, and then 1 from the toolhead to the MMB then these would be daisy-chained so only the U2C and MMB need jumpers (the toolhead is in the middle). I've never seen this config in practice as the toolhead would need another CanBUS socket and I've not seen any like this.