SparkFun According to Pete #55 - How CAN BUS Works

  Рет қаралды 132,847

SparkFun Electronics

SparkFun Electronics

Күн бұрын

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 жыл бұрын
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 жыл бұрын
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!
@NyxOne81
@NyxOne81 2 жыл бұрын
Wonderful presentation!!!
@travelsGivesPeace
@travelsGivesPeace 3 жыл бұрын
Love your tutorials Pete! You explain such complex stuff in very simple and joyful way. Thanks mate! very helpful ;)
@TanmayPanchal46
@TanmayPanchal46 5 жыл бұрын
Amazing job. The way you presented keeps people attached. Thank you.
@harshwardhanwadikar793
@harshwardhanwadikar793 5 жыл бұрын
You are a great teacher. Have to be an awesome guy
@protuningaustralia6795
@protuningaustralia6795 5 жыл бұрын
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.
@ahaha731
@ahaha731 5 жыл бұрын
Thank you. It easy to understand.
@Psi105
@Psi105 6 жыл бұрын
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
@snakeoilification
@snakeoilification 6 жыл бұрын
Perfect. Glad I could help.
@krsnadaassa5016
@krsnadaassa5016 2 жыл бұрын
this video was absolute fun to watch and easy to understand kudos
@33798
@33798 4 жыл бұрын
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 ❤️
@devil2005iscool
@devil2005iscool 4 жыл бұрын
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. :]
@lllllltar
@lllllltar 4 жыл бұрын
Thanks for this video!
@ekanugraha7024
@ekanugraha7024 3 жыл бұрын
Really love this video. Great job
@KRKUN
@KRKUN 3 жыл бұрын
Bro u make electronic studies more funny, i really appreciate that thx :)
@1978jra
@1978jra 6 жыл бұрын
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.
@MrDawen1997
@MrDawen1997 6 жыл бұрын
Could you make video About transfer function in complex filters like for low high and bandwith?
@electron-1979
@electron-1979 6 жыл бұрын
Thanks Pete, from Pete
@ahmedzain6270
@ahmedzain6270 6 жыл бұрын
very good illustration i hope to see some code implementation even as a sudo code thank you
@davecooper5951
@davecooper5951 3 жыл бұрын
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.
@JohnnyBorg90
@JohnnyBorg90 3 жыл бұрын
To bad i didn't had a teacher like this in school. Really good explanation, Thanks
@funkynerd_com
@funkynerd_com 4 жыл бұрын
Pfft.. OBD2. I only watched this to learn how nodes know not to stomp on another nodes transmission. Which you answered. Thank you!
@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 ❤
@UpcycleElectronics
@UpcycleElectronics 6 жыл бұрын
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 Жыл бұрын
i also read the ISO specs: they are indeed a mess :)
@jasmany19
@jasmany19 3 жыл бұрын
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.
@Build_the_Future
@Build_the_Future 4 жыл бұрын
Can you send something like an encoder down a CAN BUS or is CAN-BUS to slow for something like that.
@skrame01
@skrame01 6 жыл бұрын
23:45 funny stuff man
@12around1
@12around1 2 жыл бұрын
now thats what I call a teacher
@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
@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 жыл бұрын
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 4 жыл бұрын
Yep. I am guessing he researched this and didn’t actually understand the relationship.
@arjunremesh1395
@arjunremesh1395 6 жыл бұрын
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 жыл бұрын
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?"
@kresha2621
@kresha2621 9 ай бұрын
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
@Mindfuak
@Mindfuak 4 жыл бұрын
i still need an explanation about r0 and r1
@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 🤣
@DTHRocket
@DTHRocket Жыл бұрын
Where can I buy a CAN cable?
@vasumadhamala1536
@vasumadhamala1536 5 жыл бұрын
👏👏👏👏
@MiaKiesman
@MiaKiesman 6 жыл бұрын
I would think sparkfun would have an ISO subscription so Pete doesn't have to go searching for bootleg documents 😂
@snakeoilification
@snakeoilification 6 жыл бұрын
We're pretty big believers in the idea that information should be free. Or, at least, I am.
@willybee3056
@willybee3056 6 жыл бұрын
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.
@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.
@bonkyyumena8582
@bonkyyumena8582 3 жыл бұрын
I like you sir.
@Product-Prints
@Product-Prints 3 жыл бұрын
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!
@lasersbee
@lasersbee 6 жыл бұрын
The wheels of the bus go round and round.....
@plageran
@plageran 4 жыл бұрын
your reading my mind lmao
@bhavinrathod406
@bhavinrathod406 Жыл бұрын
Can layer 2 with 11 but identifier is sam as canbus 2.0 a
@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
@mallemang
@mallemang 5 жыл бұрын
you didn't finish the part about arbitration... how nodes are prioritized by their address
@carlh8256
@carlh8256 2 жыл бұрын
Where are your other CANbus vids?
@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 жыл бұрын
(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 жыл бұрын
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
@pepelapew483
@pepelapew483 5 жыл бұрын
All of this so we can remove a few signal wires ( thin wire ) hum .
@ovalwingnut
@ovalwingnut 5 жыл бұрын
You're hat is on backwards... just saying
@testuser4365
@testuser4365 4 жыл бұрын
Are you gonna drink your coffee?
@blackcat-mp7kh
@blackcat-mp7kh 3 жыл бұрын
thanks but lecture would have been more pleasant if you had finished coffee 1st
@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 жыл бұрын
Only if you're an idiot. How do you think we test and engineer these systems in the first place?
SparkFun According to Pete #56 - How OBD2 Works
37:07
SparkFun Electronics
Рет қаралды 46 М.
CAN Bus Properties and Troubleshooting
18:09
Enovation Controls
Рет қаралды 1,3 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 9 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 14 МЛН
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 106 МЛН
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 4,7 МЛН
Hopping on the CAN Bus
49:10
Black Hat
Рет қаралды 82 М.
eapbg #48 Introduction to CAN (Controller Area Network)
35:08
CAN Bus: A Beginners Guide Part 1
37:36
Hardwire Electronics
Рет қаралды 292 М.
Reverse Engineering Vehicle CAN Bus Signals
15:50
tejas chafekar
Рет қаралды 101 М.
Sniffing any CAN-bus on the cheap(5$) with Arduino, Tested on an VW Polo 9N3
21:57
5 Tips For CAN Bus Diagnostics | Mechanic Mindset
16:55
Mechanic Mindset
Рет қаралды 196 М.
How to hack your car | Part 1 - The basics of the CAN bus
16:57
Adam Varga
Рет қаралды 287 М.
How LoRa Modulation really works - long range communication using chirps
27:38
Gizli Apple Watch Özelliği😱
0:14
Safak Novruz
Рет қаралды 7 МЛН
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 2,2 МЛН