CAN Bus communication explained in 5 minutes

244,980
0
Published 2019-05-05
Enroll in the full version of 'Electronics Crash Course' here: www.udemy.com/electronics-in-a-nutshell/?couponCod…

My introduction to robotics course- tinkerspark.teachable.com/

CAN buses are literally keep you alive when you fly & when you drive. In our increasingly computerized world, we need robust, and relible communications between the hundreds of electronics in situations like airplanes, trains, cars, hospitals, & industrial robots. This communication is critical and failure of this communication can be fatal to human lives. The CAN bus communication protocol is responsible for this reliable communication. Just like I2C and SPI are communication protocols, the CAN bus also carries information between electronics. However, the CAN bus works on a P2P (Peer to Peer) network

In this video we will learn about how CAN buses work, the different types of CAN bus layers, and how the CAN bus messages work.

Resources used + Links for further reading
www.csselectronics.com/screen/page/simple-intro-to…
www.ti.com/lit/an/sloa101b/sloa101b.pdf
tekeye.uk/automotive/can-bus-cable-wiring
sewelldirect.com/learning-center/canbus-technology
news.voyage.auto/an-introduction-to-the-can-bus-ho…

All Comments (21)
  • @saraltayal5005
    A very helpful Reddit user who is much more knowledgeable in this field than I shared a couple of oversimplifications/ inncorect statements I made in this video. I have copied his comment down below. Do check it out. 1:22 you mention bulletproof communication, CAN bus is not considered bulletproof, it is just a physical layer. It is only coupled with appropriate communications monitoring. In this way it's technically better than, say the I2C or SPI, but no more robust than RS485 or LVDS as these are also differential pair communications. 2:08 diagram; CAN is almost never connected in a web like network. It CAN be, through gateways, but these are more considered separate CAN networks at that point. In fact CAN is typically considered sort of a trunk with nodes branching off, where the node branches are called stubs. ISO 11898 specifies a maximum stub length of 0.3m for example. Anything looking like a "web network" is not going to be spec. But also, there are specifically buses that are designed with ring topologies in mind which can suffer a disconnect between any two nodes (but not two disconnects between two different nodes). MOST comes to mind. That's how to implement what you described, which CAN cannot do out of the box. 3:25 you call the CAN ID a tag, but you fix it when you refer to the diagram. I would stick to Can ID. Nobody calls it a tag. 4:45-ish... there are some issues. High speed and CANFD are not the same. Low speed is not traditional. Basically you have CAN 2.0, which operates up to 500kbaud and is the "classic" CAN (1991). It can have either 11 (2.0A) or 29 (2.0B) bits. Then you have low speed can, which is a different physical layer that is more fault tolerant and runs up to 125kbaud. All of this could probably be considered "classic CAN". Then you have CANFD, which was released in 2012, and is basically high speed can with a special negotiating bit that switches into a very high speed data rate in the middle of the data part of the packet. This could be considered a non-traditional CAN bus.
  • @FiestaKing36
    this video is the most helpful i’ve seen about canbus! Awesome job man!
  • @EqualsEdits
    From a person who works on vehicles and diagnosing CAN faults I can say its a nice simple way for people to get a understanding on how vehicle communications work. FYI Flexray is coming up in vehicles now, so it might also make a good video explaining this system.
  • @shan9287
    Nice and well explained. Thank you!
  • @jams8728
    your production quality has improved a lot!
  • @vextrek6036
    Great video. Really appreciate it. Thank you.
  • In short the explanation is clear and precise, thanks for sharing video
  • @aymenakermi4918
    What an awesome nice and quick expalanation i salute you brother :)
  • @rbus
    Great overview! Been looking at using CAN to link small sensors around my property using cheap wiring that supplies power and data.
  • @stevecross9159
    Thank you just getting into CAN Bus communication ver basic but good
  • @kangwafi7
    Good. Clear and easy to understanding 👍🌪