How I2C Communication Works and How To Use It with Arduino

  Переглядів 1,502,988

How To Mechatronics

How To Mechatronics

День тому

howtomechatronics.com/tutoria... ► Find more details, circuit schematics and source codes here.
If you enjoy and find the content that I make useful, please consider supporting me on Patreon: / howtomechatronics
In this tutorial we will learn how the I2C communication protocol works and also we will make a practical example of it with the Arduino Board and a sensor which uses this protocol. You can watch the following video or read the written tutorial below.
Visit HowToMechatronics.com for more Tutorials, Tips, Projects and How It Works videos:
► howtomechatronics.com/
Like my page on Facebook:
► / howtomechatronics
Add me on Google+:
►plus.google.com/+Howtomechatr...
Music: Aduro by Jens Kiilstofte (machinimasound.com/music)

КОМЕНТАРІ: 494
@rahulfromkerala
@rahulfromkerala 4 роки тому
2 hours of reading and then here comes this video where everything is well explained in under 10 minutes... You tube is spoiling me...
@thesauceboss5995
@thesauceboss5995 2 роки тому
This is one of the only videos I've found that explains how pull up resistors can affect the speed at which data can travel on the SDA line. Fantastic video that explains how I2C works. Great job.
@mark879
@mark879 7 років тому
Awesome video! I especially appreciated the protocol/packet breakdown. Thanks very much!
@kamuizero
@kamuizero 7 років тому
What a great video! Very clear explanation and simple demonstration on how to use it. Thank you very much.
@vijaykumar-hc6jz
@vijaykumar-hc6jz 3 роки тому
The bit sequence was so well explained that I had to print the screenshot of it for future reference.
@RamswaroopSorencool
@RamswaroopSorencool 6 років тому
This is so beginner friendly! Thank you so much. I used the same illustrations to make few students understand the same. :)
@nobodyspecial313
@nobodyspecial313 8 років тому
Sweet tutorial! Really like the illustrations that went along with your explanation. After looking at a few cool project videos where people are using Arduinos and other microcontrollers, it makes me wish my college had a class on these!
@iancorcoran7560
@iancorcoran7560 6 років тому
Dejan Nedelkovski
@Gupatik
@Gupatik 3 місяці тому
it's been 8 years now or so, are you still alive bud, and did you learn this arduino and microcontrollers stuff. Anyways, hope you are doing good
@OndrejBakan
@OndrejBakan 7 років тому
Very useful for beginner like me, thank you! :)
@AliHSyed
@AliHSyed 6 років тому
OMG thank you so much, I've been so lost with i2c until I watched this video!
@morgard211
@morgard211 6 років тому
Thanks! I didn't want to memorize it, but to understand it and it worked! :)
@kiranbs5057
@kiranbs5057 3 роки тому
Watched many videos on this protocol I was never able to grab the concept clearly and I found your tutorial and it made my life simple . Thanks man u have explained and visualised the concept neatly .
@mohanmanoharan1387
@mohanmanoharan1387 8 років тому
super, really appreciate for the tutorial. Request similar other Serial protocols SPI explanation. CAN, UART. thanks
@GetElectronics
@GetElectronics 5 років тому
I always like tutorials that show how to use sensores without relying on 3rd party libraries other than the wire one. Very useful for learning.
@elonmuskmtmt886
@elonmuskmtmt886 5 років тому
This is by far the most thorough and yet still concise explanation I have found! Awesome video!
@HowToMechatronics
@HowToMechatronics 5 років тому
Thank you!
@fleshTH
@fleshTH 7 років тому
This was extremely well done! Good job! It was very clear and now i'm off to do some new projects.
@PhDFernandoCoach
@PhDFernandoCoach 7 років тому
Thank you very much for this video, Dejan! The information is clear, well organized and dynamically illustrated!
@ronimine
@ronimine 7 років тому
Very clear and instructive. Well done. Thank you !
@markconger8049
@markconger8049 3 роки тому
Thank you for this tutorial! I knew the overview of how i2c works but not the specifics. It looks similar to packets in TCP/IP.
@ExtantFrodo2
@ExtantFrodo2 8 років тому
I now understand what I could not understand previously. Thank you.
@omaralharran
@omaralharran 2 роки тому
You are the best. Thank you for taking the time to explain I2C on such indepth level.
@excite236
@excite236 8 років тому
saved me so much time working gy-80 thanks man
@MrJeppeholt
@MrJeppeholt 5 років тому
OMG dude that was perfect. I have been struggeling with i2c for a while now but this made it click. THANKS! :D
@devarajan2291
@devarajan2291 7 років тому
excellent. thanks a lot. you helped me in my interview preparation.
@naboulsikhalid7763
@naboulsikhalid7763 5 років тому
Hi, Mentor. What to say, thank you won't be enough. great, detailed video.
@MkmeOrg
@MkmeOrg 8 років тому
This is fantastic! Sharing on Mondays live show. Great vid. Cheers!
@mrcamperon
@mrcamperon 8 років тому
thank you Dejan. great tutorials, very well done the clip too
@stevetobias4890
@stevetobias4890 3 роки тому
Excellent explanation. Also helps me in a project where I will be using breakout boards for the first time. Thank you
@clearwavepro100
@clearwavepro100 8 років тому
Thank you! This is really well done, clear and interesting!
@danielrufenacht3722
@danielrufenacht3722 8 років тому
Hello Dejan Many thanks for your time to spend in order to explain us these very clear tutorials. Daniel from Switzerland
@chasenjohnson797
@chasenjohnson797 4 роки тому
Great description of I2C. Thanks:)
@mitkopetrovik259
@mitkopetrovik259 7 років тому
Nice, it is desirable in the following tutorials to explain the I2S protocol and what is exactly the difference with I2C
@poojithaborra1650
@poojithaborra1650 5 років тому
Clear explanations... Tnx
@thtr9647
@thtr9647 7 років тому
Omg, this is so good animation. Appreciate !
@lan5053
@lan5053 4 роки тому
So easy to understand. Thank you!
@minanovkiril
@minanovkiril 7 років тому
дејан секоја чест! браво за споделеното знаење! сеа дознав за твојот канал, ќе разгледам што си споделил со задоволство.
@user-yw5yr4mk2c
@user-yw5yr4mk2c 4 роки тому
Good explanation of the protocols' packet. thanks
@templocal
@templocal 2 роки тому
You explain things very accurately! Thank you!
@michaelvogt7787
@michaelvogt7787 7 років тому
Dejan, I was looking through youtube for a decent tutorial about the I2C bus as implemented on the Arduino. I have a class of high school students who could use a good demo. I didnt expect to find your EXCELLENT tutorial, one that would be useful even to professional electronics engineers. I wanted to let you know you did a nice job, and it was appreciated. Dr. Michael Vogt - North American Robotics
@ramazans8114
@ramazans8114 6 років тому
Thanks, really very clear explanation and very effective.
@HowToMechatronics
@HowToMechatronics 3 роки тому
I hope you enjoyed this video and learned something new! If you'd like to support me making more content like this, please consider supporting me on Patreon: www.patreon.com/howtomechatronics
@Scudmaster11
@Scudmaster11 2 роки тому
I know you can get composite video out of it or something
@IRgEEK
@IRgEEK 6 років тому
Great and informative video! Thanks so much!
@miguelluisrodrigues3704
@miguelluisrodrigues3704 3 роки тому
Thank you brother, you help me a lot in my projects
@maxpolaris99
@maxpolaris99 3 роки тому
Your examples are very helpful for us slow pokes with little to no insight. Good Job.
@pacokun1
@pacokun1 8 років тому
Thanks, I understand how it's work now :D It's will really help me :D
@chinhcd
@chinhcd 7 років тому
It saved me so much time and hassle. Good job!
@alexpelagaggi
@alexpelagaggi 6 років тому
Dejan Nedelkovski, you are the best. Thank you very much for making this video.
@iiDougieii
@iiDougieii 5 років тому
Thank you for this video. I needed a refresh of what I already learnt in the past. Good work !!
@HowToMechatronics
@HowToMechatronics 5 років тому
Thanks!
@junaidasim1021
@junaidasim1021 5 років тому
Accurate and up to the mark explanation thank you so much
@narekisaghulyan
@narekisaghulyan 6 років тому
amazing tutorial, thank you!!!
@aubreydebliquy8051
@aubreydebliquy8051 3 роки тому
Thank you for a clear explanation. I used only SPI to date but now I know how to use I2C ... thanks...
@pietrotosoratti799
@pietrotosoratti799 3 роки тому
Thank you for this useful video !! You explained the topic in such a clear way !!
@harshatechvideos1859
@harshatechvideos1859 5 років тому
Nice work and thank you very much for providing these quality videos.
@spbains1966
@spbains1966 5 років тому
Excellent tutorial bringing out the details very clearly
@andrebernardmennicken4685
@andrebernardmennicken4685 6 років тому
Verywell explained, clear, direct to the point, Thank you...
@mohamedabdalla-es6ll
@mohamedabdalla-es6ll 9 місяців тому
Thank you very much for the clear explanation.
@glikar1
@glikar1 5 років тому
Thanks, very good in depth tutorial!
@iconofsin1043
@iconofsin1043 7 років тому
Very well explained, thank you very much!
@arvydasstankevicius5277
@arvydasstankevicius5277 5 років тому
So well explained!!! Thanks. Subscribed.
@MathewPendleton
@MathewPendleton 7 років тому
explained perfectly. thanks!
@TurgutSaricam
@TurgutSaricam 6 років тому
This is an amazing tutorial. Thank you very much.
@igorradevski9147
@igorradevski9147 8 років тому
Thanks Dejan for this great tutorial. It helps me a lot! :)
@clirimmurati6183
@clirimmurati6183 5 років тому
AHH such explanations, love it
@thomasalexander1563
@thomasalexander1563 7 років тому
Great Tutorial,,, Make more .. Absolutely waiting for all your tutorials,,
@nalorin
@nalorin 2 роки тому
SUPER helpful tutorial! Thank you so much! I have an ALS31313, and all the code examples I could find online (including the manufacturer's website) don't work. Your tutorial makes things SO much clearer and I managed to get my magnetometer working within 15 minutes of watching your video! THANK YOU!!!
@HowToMechatronics
@HowToMechatronics 2 роки тому
Glad to hear it, cheers!
@aragonv1
@aragonv1 8 років тому
ΤΗΑΝΚ ΥΟU.. ! A VERY CLEAR EXPLANATION OF i2C DEVICES
@erichertsens
@erichertsens 8 років тому
thanks, appreciated from the Dominican Republic
@alterguy4327
@alterguy4327 3 роки тому
This channel never gets old
@SathishKumarbalu
@SathishKumarbalu 8 років тому
Nice ! Now i got a clear idea what is I2C.
@ksawery6568
@ksawery6568 4 роки тому
Great tutorial, thank you!
@alentech6091
@alentech6091 7 років тому
Amazingly well explained!
@PiCoVienna
@PiCoVienna 6 років тому
Excellent, easy to understand, very precise!
@marklowe7431
@marklowe7431 8 років тому
Perfect explanation. Thank you.
@collenfisher3635
@collenfisher3635 4 місяці тому
Brilliant, and exceptional narration.
@fahadmubeen6272
@fahadmubeen6272 4 роки тому
To the point, simple and clear, well done! which most people struggle to explain. ~This is coming from a Professional Embedded engineer.
@HowToMechatronics
@HowToMechatronics 4 роки тому
Glad to hear it, thanks!
@krozareq
@krozareq 11 місяців тому
Good to know how all this works. I've used the Linux i2c and SMbus userspace tools, but never really knew the hardware functionality behind it. GPU lighting is generally i2c and motherboard controllers use SMbus (both very similar though). Knew just enough to be dangerous and change RGB colors or monitor temps with a very light shell script and even shell functions. The OpenRGB project has the addresses for most hardware, including USB (mouse, keyboards, and some mobos use USB for communication to controllers).
@rahazandifar5596
@rahazandifar5596 2 роки тому
Thanks for this concise refresher video
@druggles1
@druggles1 7 років тому
Nice presentation along with a great explanation. Thank you, for sharing, Dejan!!
@EmciGad
@EmciGad 2 роки тому
Very good and clear explanations! well done!
@rafaelmarroquin4429
@rafaelmarroquin4429 8 років тому
really great thanks for your time, and explain this. I show similar to shift register :D
@skeeveskeeve
@skeeveskeeve 3 роки тому
Best video I have seen on the subject.
@TheAkyatbahay
@TheAkyatbahay 6 років тому
thank you! i finally understand now!
@victorchan8685
@victorchan8685 8 років тому
Appreciate for your excellent video, you speak very clear and explain in detail! You are wonderful! Help a lot!
@youseebruce5426
@youseebruce5426 5 років тому
A very clean and neat explanation... I understood clearly... Thank you very much.
@expectropetronus
@expectropetronus 7 років тому
Simple and lucid explanation... Thank you
@leuc2475
@leuc2475 11 місяців тому
Thank you. It's simple to comprehend
@michaelliles6755
@michaelliles6755 8 років тому
Finally someone who knows what he's talking about ! Thank you! Not one person on the Arduino site or any other place online have suggested hooking up scl to scl and sda to sda . Everyone says hook it up to A4 and A5 . I bought two units so far thinking that either I broke it or it was doa. well turns out that both work fine. why is this info missing from the arduino site?? anyway thank you very much!
@Syria..
@Syria.. 3 роки тому
amazingggggg you did save me after reading datasheet for days
@reydus6651
@reydus6651 3 роки тому
superb video mate. Explained it very easily.
@simplynilsw
@simplynilsw 7 років тому
You said 124 devices instead of 1024 devices (0:52 min), but great video it helped me alot, thanks :))
@narendravasu6607
@narendravasu6607 6 років тому
Thank you sir Your explanation very simple and clearly. Very useful to me . onces again thank you sir
@suzesiviter6083
@suzesiviter6083 6 років тому
To clarify; the I2C lines are either high impedance or 0, you never drive the bus line high directly; that is achieved by de-asserting the '0' and letting the internal pull up resistors tie it to Vcc. The high impedance or low state on the bus prevents bus contention; that is a ground connecting to Vcc directly causing a short between any masters or slaves.
@Patrick-ky7ez
@Patrick-ky7ez 3 роки тому
Amazing video. SOO many hours of reading pdfs with unnecessary tech jargon. You explained it perfectly.
@senai_mecatronicabeta3737
@senai_mecatronicabeta3737 7 років тому
Muito bom este tutorial, parabéns.
@henearkrip
@henearkrip 4 роки тому
Nice Work! Very clear and simple explanation!!
@KunalGautam
@KunalGautam 7 років тому
Thanks, it helped me a lot to understand how I2C works.
@warsini5386
@warsini5386 3 роки тому
Wayagkulot
@jokopribadi6462
@jokopribadi6462 3 роки тому
easier to understand in this video. Thanks
@andremendes5116
@andremendes5116 7 років тому
Nice explanation... the protocol I2c is very usefull, fast and need... Thank's for your time and information.
@astudyspace7272
@astudyspace7272 2 роки тому
Thank you very much for this detailed explanation. You made this topic easy to absorb. 🐣
@LaurinusPonpon
@LaurinusPonpon 3 роки тому
I watched a few videos and this is the BEST explanation for I2C. Thanks
@HowToMechatronics
@HowToMechatronics 3 роки тому
Glad it was helpful!
@totalnewbie8619
@totalnewbie8619 5 років тому
This was an informative and helpful video. I also liked how you explained with graphics. It made things easier to understand.Thank you and please keep doing more videos like this for beginners like me. Best regards.
@HowToMechatronics
@HowToMechatronics 5 років тому
Thanks, I'm glad to hear that!
What is I2C, Basics for Beginners
18:30
nandland
Переглядів 158 тис.
I2C Part 1 - Using 2 Arduinos
25:51
DroneBot Workshop
Переглядів 398 тис.
1 класс vs 11 класс (рисунок)
00:37
БЕРТ
Переглядів 3,2 млн
Завтра в школу с... | Шоу-квиз «Вопросики»
00:28
Телеканал СОЛНЦЕ
Переглядів 3 млн
I PUT MY ARMOR ON (Creeper) (PG Version)
00:19
Sam Green
Переглядів 5 млн
Sensors - which one to use
17:06
Electronoobs
Переглядів 1,3 млн
MOSFETs and How to Use Them |  AddOhms #11
7:46
AddOhms
Переглядів 3,7 млн
CAN Bus: Serial Communication - How It Works?
11:25
Electronoobs
Переглядів 184 тис.
We should use this amazing mechanism that's inside a grasshopper leg
19:19
I2C Frame structure Understanding | I2C data transmission
10:26
Foolish Engineer
Переглядів 41 тис.
PROTOCOLS: UART - I2C - SPI - Serial communications #001
11:58
Electronoobs
Переглядів 1,3 млн
Understanding SPI
11:50
Rohde Schwarz
Переглядів 54 тис.
Arduino Uno to ATmega328 - Shrinking your Arduino Projects
37:17
DroneBot Workshop
Переглядів 770 тис.
Solving I2C Address Conflicts - TCA9548A I2C Multiplexer
24:29
DroneBot Workshop
Переглядів 97 тис.
Stepper Motor - How It Works
4:43
How To Mechatronics
Переглядів 436 тис.
1 класс vs 11 класс (рисунок)
00:37
БЕРТ
Переглядів 3,2 млн