SparkFun According to Pete #55 - How CAN BUS Works

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 พ.ค. 2024
  • It’s the first Monday in May, and that means… new ATP! Today, I’m going to talk about CAN bus. What’s that? “CAN” stands for “Controller Area Network”, and it’s a twisted-pair, multi-master data bus that’s really resilient against noise, along with having framing, error detection and lossless bus arbitration built into its spec. If you’re looking for a short-range (40 meters) data bus with good throughput (1Mb/s) and good noise immunity, CAN bus has a lot to offer. So much so that it’s used in automotive and industrial applications where nothing else will work.
    In today’s video, I dig into the CAN bus esoterica to give you a look into how it does what it does. This video also tee’s me up for the next ATP, which is a natural extension to the CAN bus topic: OBD2. (spoiler: CAN bus is sort of a subset of OBD2).
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 79

  • @chrisgonzales
    @chrisgonzales 6 ปีที่แล้ว +9

    Perfect timing on this video working on a project myself and will be attempting to read off of CAN BUS of my '16 Ford Mustang GT

  • @KeithCooper-Albuquerque
    @KeithCooper-Albuquerque 6 ปีที่แล้ว +7

    Excellent video Pete! I am new to the CAN-BUS: This really helped me a whole bunch! I can't wait for your follow-up video!

  • @travelsGivesPeace
    @travelsGivesPeace 3 ปีที่แล้ว

    Love your tutorials Pete! You explain such complex stuff in very simple and joyful way. Thanks mate! very helpful ;)

  • @harshwardhanwadikar793
    @harshwardhanwadikar793 5 ปีที่แล้ว +6

    You are a great teacher. Have to be an awesome guy

  • @TanmayPanchal46
    @TanmayPanchal46 5 ปีที่แล้ว +5

    Amazing job. The way you presented keeps people attached. Thank you.

  • @ahaha731
    @ahaha731 5 ปีที่แล้ว +2

    Thank you. It easy to understand.

  • @krsnadaassa5016
    @krsnadaassa5016 2 ปีที่แล้ว

    this video was absolute fun to watch and easy to understand kudos

  • @NyxOne81
    @NyxOne81 2 ปีที่แล้ว

    Wonderful presentation!!!

  • @devil2005iscool
    @devil2005iscool 4 ปีที่แล้ว +8

    There isnt 120ohms between them, there is 60ohms between the CAN H and CAN L with two 120ohms in parallel = 60ohms, this is useful to know when diagnosing an obd port as you can measure the resitance between pin 6 and 14 and if you have 120ohms then your bus is missing a resistor meaning a module may be shorted to ground. :]

  • @protuningaustralia6795
    @protuningaustralia6795 5 ปีที่แล้ว +3

    I really enjoyed that, both educational and funny.
    The humour keeps you interested in something that can become somewhat brain draining after awhile.
    Top job.

  • @ekanugraha7024
    @ekanugraha7024 2 ปีที่แล้ว

    Really love this video. Great job

  • @MrDawen1997
    @MrDawen1997 6 ปีที่แล้ว +7

    Could you make video About transfer function in complex filters like for low high and bandwith?

  • @33798
    @33798 3 ปีที่แล้ว

    Am a technician when ever there's a no communication with any of the module in cars, I observed the fault code of No comm with particular module is showing up in adjacent module data. The stuff transceiver,nodes, arbitration all are sound that now to me.
    Thanks man for the briefing CAN bus network, loving this so much ❤️

  • @Psi105
    @Psi105 6 ปีที่แล้ว +1

    Good timing, im being pressured to get onto an overdue CAN bus upgrade to an existing product. This video answered a lot of my questions about how CAN bus actually works

  • @lllllltar
    @lllllltar 3 ปีที่แล้ว

    Thanks for this video!

  • @1978jra
    @1978jra 6 ปีที่แล้ว +2

    CAN-bus is called sometimes as "känni-väylä" here in Finland (literally drunk(en)-bus) because of pronunciation.
    Nice video! I was going to make a project where I would have needed to know isobus (ISO 11783), used in agricultural machines, but that did get barely started.... Unfortunately.

  • @davecooper5951
    @davecooper5951 3 ปีที่แล้ว +2

    I think it would be better if you gave some examples - eg Let's turn on the headlights....now let's see how the data changes on the bus. Then you could get deeper into the detail.

  • @KRKUN
    @KRKUN 3 ปีที่แล้ว

    Bro u make electronic studies more funny, i really appreciate that thx :)

  • @ahmedzain6270
    @ahmedzain6270 6 ปีที่แล้ว

    very good illustration i hope to see some code implementation even as a sudo code
    thank you

  • @funkynerd_com
    @funkynerd_com 3 ปีที่แล้ว

    Pfft.. OBD2. I only watched this to learn how nodes know not to stomp on another nodes transmission. Which you answered. Thank you!

  • @JohnnyBorg90
    @JohnnyBorg90 3 ปีที่แล้ว

    To bad i didn't had a teacher like this in school. Really good explanation, Thanks

  • @electron-1979
    @electron-1979 6 ปีที่แล้ว

    Thanks Pete, from Pete

  • @kresha2621
    @kresha2621 7 หลายเดือนก่อน

    Hi. can i power on a car headlights out of car? i have removed full led headlights that are using CANBUS but i'm trying to repair and i want to power on for ex: turn signal, drl etc using a power supply? thanks

  • @Build_the_Future
    @Build_the_Future 4 ปีที่แล้ว +1

    Can you send something like an encoder down a CAN BUS or is CAN-BUS to slow for something like that.

  • @LordPhobos6502
    @LordPhobos6502 ปีที่แล้ว

    5:40 Ppl who like network wossnames are freaky, but we love em.
    They happily deal with the freaky so we can get back to our silicon & soldering irons ❤

  • @jasmany19
    @jasmany19 3 ปีที่แล้ว +2

    It turns out that CAN bus is still being used in large 1100 kVA UPSs (Uninterruptible Power Systems) for module communication.

  • @richeckert5400
    @richeckert5400 5 ปีที่แล้ว

    Great Explanation of Arbitration yet please note examples of actual NODE ID's , the "missing link" not shown: note each NODE is unique by binary address.

  • @UpcycleElectronics
    @UpcycleElectronics 6 ปีที่แล้ว +1

    Wow that seems complicated.
    As a former motorhead prior to disability, your car should be direct injected, the duty cycle of those injectors would be interesting to know IMO.
    -Jake

  • @psy0rz
    @psy0rz ปีที่แล้ว +1

    i also read the ISO specs: they are indeed a mess :)

  • @jonnyestell5708
    @jonnyestell5708 5 ปีที่แล้ว

    I us can a lot in robotics, but have never really understood how it worked so thanks for making it so simple

  • @arjunremesh1395
    @arjunremesh1395 6 ปีที่แล้ว +1

    Can you please do a sample working example using Can modules/can boards .Thankyou for Good information .I have heard theory from every where but I didnt see any one doing a tutorial using Can boards .

    • @snakeoilification
      @snakeoilification 6 ปีที่แล้ว

      Well, the next video is going to be predominantly about OBD2 and connecting to that port and poking around. But have you checked out our hookup guide for the CAN485 board? At least for that hardware, setting up a CAN bus seems a pretty simple exercise. learn.sparkfun.com/tutorials/ast-can485-hookup-guide

    • @arjunremesh1395
      @arjunremesh1395 6 ปีที่แล้ว

      Pete Dokter thankyou.what is the maximum distance between a can transmitter and receiver to trasmit successfully .?

    • @snakeoilification
      @snakeoilification 6 ปีที่แล้ว +2

      ISO 11898-2 gives you a ballpark figure of 1Mbit/s at 40 meters if you follow all the rules laid out in the spec. But if you're cool breaking rules and shunning norms, it really depends on your data rate, and the two are inversely proportional (also depends on the physical config of the network, but we'll assume two nodes at either end). First figure out how far you want to go, then back out a number for your necessary data rate to achieve that distance, dig? It's less about "how far can it possibly go" and more about "how much are you willing to pay to make it go further?"

  • @DTHRocket
    @DTHRocket ปีที่แล้ว

    Where can I buy a CAN cable?

  • @willybee3056
    @willybee3056 6 ปีที่แล้ว

    Oh,, wow,, that brings back memories of school...
    Grampa would s***,,
    Now,, what would be neat,, is to have a lab kit for hands on play.
    Uart a good teacher..
    Sorry,, just had to do that...😆

  • @jasonrussell6534
    @jasonrussell6534 5 ปีที่แล้ว +1

    CAN and OBD2 have no direct relation at all until 2008. Some manufacturers (mostly those that use Bosch parts, go figure) have vehicle specific CAN networks that are not publicly documented and a gateway to put the pertinent information in the OBD2 format on the data link appropriate for that generation (k-line for early OBD, CAN for late OBD). I think it's also imperative to make clear CAN is the network transport but the data can be and is free-form with no standards at all in place with regard to ID and data. That's all up to the engineers designing the system.

    • @magikben
      @magikben 3 ปีที่แล้ว +1

      Yep. I am guessing he researched this and didn’t actually understand the relationship.

  • @12around1
    @12around1 2 ปีที่แล้ว

    now thats what I call a teacher

  • @Mindfuak
    @Mindfuak 4 ปีที่แล้ว

    i still need an explanation about r0 and r1

  • @skrame01
    @skrame01 6 ปีที่แล้ว

    23:45 funny stuff man

  • @MiaKiesman
    @MiaKiesman 6 ปีที่แล้ว +11

    I would think sparkfun would have an ISO subscription so Pete doesn't have to go searching for bootleg documents 😂

    • @snakeoilification
      @snakeoilification 6 ปีที่แล้ว +10

      We're pretty big believers in the idea that information should be free. Or, at least, I am.

    • @willybee3056
      @willybee3056 6 ปีที่แล้ว +1

      Pete Dokter
      Schools are In the business to make money, ,, education is a sideline. ....
      I have to laugh at the commercials that claim friendship... Just how friendly would they be if you had no money.

    • @MiaKiesman
      @MiaKiesman 6 ปีที่แล้ว

      Pete Dokter Of course, and you guys do an amazing job of that. I just assumed that is was almost required to run an electronics company, but if you don't need to, don't give the bastards your money!

    • @LordPhobos6502
      @LordPhobos6502 ปีที่แล้ว

      @@snakeoilification I agree... if these things are 'standards', they should be easily available, otherwise ppl with just make sh** up.
      Roadsigns have the same problem.

  • @kuldeeppatil3370
    @kuldeeppatil3370 5 ปีที่แล้ว

    Suppose we have 2 wire CAN bus. CAN_H and CAN_L if CAN_H fails?
    Is CAN communication still continue ?
    or BUS will become off?
    what will happen?
    Please ans

    • @eddersegura3260
      @eddersegura3260 5 ปีที่แล้ว

      No, on can hi and can lo if one wire is damaged can data will not flow. You can test resistance on these wires when the bus is dormant and you're looking for 60 ohms. LSFT can will allow for data to travel on a single can wire if one is damaged.

    • @717Fang
      @717Fang 4 ปีที่แล้ว

      If you use a fault-tolerant CAN bus, then it can work over a single wire.

  • @carlh8256
    @carlh8256 2 ปีที่แล้ว

    Where are your other CANbus vids?

  • @bhavinrathod406
    @bhavinrathod406 ปีที่แล้ว

    Can layer 2 with 11 but identifier is sam as canbus 2.0 a

  • @TranscendentBen
    @TranscendentBen 4 ปีที่แล้ว

    I'm 20 minutes in, stopping-and-starting the video to write down notes, as it seems this video has as much info as one can get on the CAN bus without going to those shady websites.

  • @vasumadhamala1536
    @vasumadhamala1536 5 ปีที่แล้ว

    👏👏👏👏

  • @martinbankjorgensen
    @martinbankjorgensen 3 ปีที่แล้ว

    WOW you’re great! But dame, you talk fast!! I understand all your saying but when some of the stuff are new knowledge I can’t accumulate both the new knowledge AND concentrate to hear what you saying 😅 but I got about 25% of it 🤣

  • @Product-Prints
    @Product-Prints 2 ปีที่แล้ว

    Hey Pete great video thanks! Helped me understand some core principles for a contract position I’m hiring for. You wouldn’t happen to be interested in some freelance work by chance... would you? If its an option lets chat it up! Regardless be well!

  • @mallemang
    @mallemang 5 ปีที่แล้ว

    you didn't finish the part about arbitration... how nodes are prioritized by their address

  • @jakehealthx
    @jakehealthx 5 ปีที่แล้ว

    what are the nodes? Are they modules?

    • @hereIam1965
      @hereIam1965 5 ปีที่แล้ว

      wizzy wurry things that give orange or red sparks go bang boom wizz wurr

    • @upendergoud8240
      @upendergoud8240 3 ปีที่แล้ว

      Nodes are ECU s

  • @bonkyyumena8582
    @bonkyyumena8582 3 ปีที่แล้ว

    I like you sir.

  • @lasersbee
    @lasersbee 6 ปีที่แล้ว +6

    The wheels of the bus go round and round.....

    • @plageran
      @plageran 4 ปีที่แล้ว

      your reading my mind lmao

  • @AbnormalWrench
    @AbnormalWrench 6 ปีที่แล้ว

    I wouldn't worry about messing with your car. I can speak from experience, they are really robust systems. It is very hard to take out modules.

    • @AbnormalWrench
      @AbnormalWrench 6 ปีที่แล้ว +1

      (and even if you did take out a module, there is no way the techs would know what you did, and they would warranty it)

    • @snakeoilification
      @snakeoilification 6 ปีที่แล้ว

      Noted, thanks much.

    • @AbnormalWrench
      @AbnormalWrench 6 ปีที่แล้ว +2

      No problem. Dealerships treat modules like magical black boxes. They don't question how they became bad. They assume you're a typical customer that can barely successfully insert the fuel nozzle in the fill hole.

    • @allenklingsporn6993
      @allenklingsporn6993 5 ปีที่แล้ว

      @@AbnormalWrench Dealerships actually track failures for the OEM's to follow up on. The OEM's contact guys like me at the Tier 1 suppliers that actually design and manufacture these devices. We work on whatever priorities the OEM has, and we work as hard and as fast as we can to make updates to the product lines and implement those lessons learned on new products.

  • @plageran
    @plageran 4 ปีที่แล้ว

    the can on the bus goes round and round, round and round, round and round. sorry had to get that out lmao XD

  • @ovalwingnut
    @ovalwingnut 4 ปีที่แล้ว +1

    You're hat is on backwards... just saying

  • @blackcat-mp7kh
    @blackcat-mp7kh 3 ปีที่แล้ว

    thanks but lecture would have been more pleasant if you had finished coffee 1st

  • @testuser4365
    @testuser4365 4 ปีที่แล้ว

    Are you gonna drink your coffee?

  • @pepelapew483
    @pepelapew483 5 ปีที่แล้ว

    All of this so we can remove a few signal wires ( thin wire ) hum .

  • @chadkrause6574
    @chadkrause6574 2 ปีที่แล้ว

    Still unsure how arbitration works. Good video otherwise!

  • @OtherDalfite
    @OtherDalfite 3 ปีที่แล้ว

    Ditch the cringe guy fawkes mask. It has literally NOTHING to do with arduino

  • @markmartin5018
    @markmartin5018 5 ปีที่แล้ว

    Useless for real world diagnostics

    • @allenklingsporn6993
      @allenklingsporn6993 5 ปีที่แล้ว +4

      Only if you're an idiot. How do you think we test and engineer these systems in the first place?