How I2C Communication Works and How To Use It with Arduino

Поделиться
HTML-код
  • Опубликовано: 1 янв 2025

Комментарии • 502

  • @thesauceboss5995
    @thesauceboss5995 3 года назад +52

    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.

  • @rahulfromkerala
    @rahulfromkerala 5 лет назад +308

    2 hours of reading and then here comes this video where everything is well explained in under 10 minutes... You tube is spoiling me...

  • @vijaykumar-hc6jz
    @vijaykumar-hc6jz 4 года назад +12

    The bit sequence was so well explained that I had to print the screenshot of it for future reference.

  • @BatsAwesomeIn2030
    @BatsAwesomeIn2030 4 года назад +4

    To the point, simple and clear, well done! which most people struggle to explain.
    ~This is coming from a Professional Embedded engineer.

  • @kiranbs5057
    @kiranbs5057 4 года назад +1

    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 .

  • @LaurinusPonpon
    @LaurinusPonpon 4 года назад +1

    I watched a few videos and this is the BEST explanation for I2C. Thanks

  • @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!

  • @michaelvogt7787
    @michaelvogt7787 8 лет назад +8

    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

  • @mark879
    @mark879 8 лет назад +36

    Awesome video! I especially appreciated the protocol/packet breakdown. Thanks very much!

  • @elonmuskmtmt886
    @elonmuskmtmt886 6 лет назад +3

    This is by far the most thorough and yet still concise explanation I have found! Awesome video!

  • @nalorin
    @nalorin 3 года назад

    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!!!

  • @Patrick-ky7ez
    @Patrick-ky7ez 4 года назад

    Amazing video. SOO many hours of reading pdfs with unnecessary tech jargon. You explained it perfectly.

  • @GetElectronics
    @GetElectronics 6 лет назад +15

    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.

  • @alextrujillo8861
    @alextrujillo8861 2 года назад +1

    In the circuit diagram at 6:00, I notice GND is connected to the red and blue rail. Is this accurate or am I missing something? I thought I2C was active low? Was this a mistake in the wiring diagram?

  • @nobodyspecial313
    @nobodyspecial313 9 лет назад +74

    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 7 лет назад +1

      Dejan Nedelkovski

    • @Gupatik
      @Gupatik 11 месяцев назад

      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

  • @simplynilsw
    @simplynilsw 7 лет назад +1

    You said 124 devices instead of 1024 devices (0:52 min), but great video it helped me alot, thanks :))

  • @alexpelagaggi
    @alexpelagaggi 7 лет назад

    Dejan Nedelkovski, you are the best. Thank you very much for making this video.

  • @sorenium
    @sorenium 7 лет назад +5

    This is so beginner friendly! Thank you so much. I used the same illustrations to make few students understand the same. :)

  • @kamuizero
    @kamuizero 7 лет назад +19

    What a great video! Very clear explanation and simple demonstration on how to use it.
    Thank you very much.

  • @aubreydebliquy8051
    @aubreydebliquy8051 4 года назад

    Thank you for a clear explanation. I used only SPI to date but now I know how to use I2C ... thanks...

  • @danielrufenacht3722
    @danielrufenacht3722 9 лет назад

    Hello Dejan
    Many thanks for your time to spend in order to explain us these very clear tutorials.
    Daniel from Switzerland

  • @AliHSyed
    @AliHSyed 7 лет назад +2

    OMG thank you so much, I've been so lost with i2c until I watched this video!

  •  8 лет назад +30

    Very useful for beginner like me, thank you! :)

  • @ngkhai5935
    @ngkhai5935 3 года назад +1

    There is an error at the circuit diagram. Instead of 5V you're connected to a GND. However, thank you so much, I learnt a lot from your wonderful video. Merry Christmas

  • @markconger8049
    @markconger8049 4 года назад +1

    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.

  • @maxpolaris99
    @maxpolaris99 4 года назад

    Your examples are very helpful for us slow pokes with little to no insight. Good Job.

  • @alterguy4327
    @alterguy4327 3 года назад

    This channel never gets old

  • @mohanmanoharan1387
    @mohanmanoharan1387 9 лет назад +22

    super, really appreciate for the tutorial. Request similar other Serial protocols SPI explanation. CAN, UART. thanks

  • @erniea5843
    @erniea5843 5 месяцев назад

    this video is still providing value after all these years!

  • @chinhcd
    @chinhcd 8 лет назад

    It saved me so much time and hassle. Good job!

  • @reydus6651
    @reydus6651 4 года назад

    superb video mate. Explained it very easily.

  • @omaralharran
    @omaralharran 2 года назад

    You are the best. Thank you for taking the time to explain I2C on such indepth level.

  • @skeeveskeeve
    @skeeveskeeve 3 года назад

    Best video I have seen on the subject.

  • @EmciGad
    @EmciGad 2 года назад +1

    Very good and clear explanations! well done!

  • @schlo9358
    @schlo9358 2 месяца назад

    Thanks for your example with the wire libary

  • @icarossavvides2641
    @icarossavvides2641 4 года назад +2

    There are a lot of Tubes about I2C but none of them make note of the fact that I2C is an abbreviation of Inter IC Communication, it was invented by Philips to help reduce the amount of communication tracking between IC's on a PCB, consequently it is a reliable communication system when used over short distances in a controlled environment, a PCB, but it was never intended to be sent overlong pieces of wiring (>200mm?). If you use this to connect to devices over long lengths of wire, especially if there are noisy items around like motors etc, be prepared for random communication problems.

  • @SathishKumarbalu
    @SathishKumarbalu 8 лет назад

    Nice ! Now i got a clear idea what is I2C.

  • @danielmarques7279
    @danielmarques7279 Год назад

    Great video, really appreciate it! But I really think that explaining every line of the code would've been great!

  • @henearkrip
    @henearkrip 5 лет назад

    Nice Work! Very clear and simple explanation!!

  • @Gereon_
    @Gereon_ 5 лет назад +1

    Very good explanation! Thank you very much.

  • @jackm416
    @jackm416 5 лет назад +1

    Great job of explanation ! Good graphics and clear explanation of the timing !

  • @naboulsikhalid7763
    @naboulsikhalid7763 5 лет назад +9

    Hi, Mentor. What to say, thank you won't be enough. great, detailed video.

  • @fleshTH
    @fleshTH 7 лет назад +2

    This was extremely well done! Good job! It was very clear and now i'm off to do some new projects.

  • @miguelluisrodrigues3704
    @miguelluisrodrigues3704 4 года назад +1

    Thank you brother, you help me a lot in my projects

  • @tarunrjain9748
    @tarunrjain9748 2 года назад +1

    Macha, I am a big fan of your channel. Macha I think u did a mistake .......in the tinkercad sample which u have shown in the video .....both the power supply are connected to ground.......Shouldn't the VCC one connect to 5v power supply? btw lots of luv from India

  • @MkmeOrg
    @MkmeOrg 9 лет назад

    This is fantastic! Sharing on Mondays live show. Great vid. Cheers!

  • @expectropetronus
    @expectropetronus 8 лет назад

    Simple and lucid explanation... Thank you

  • @stevetobias4890
    @stevetobias4890 4 года назад

    Excellent explanation. Also helps me in a project where I will be using breakout boards for the first time.
    Thank you

  • @roidroid
    @roidroid 9 лет назад +122

    6:00 just a headsup: You have the Arduino connected to two GNDs, with no 5V line.

    • @AdityakrishnaMr
      @AdityakrishnaMr 6 лет назад +4

      Yes, that bothered me too.

    • @AngryRamboShow
      @AngryRamboShow 5 лет назад +3

      @Blondie SL the white race needs you to make blond haired blue eyed babies. Stop being a degenerate and man up.

    • @taimooramin1272
      @taimooramin1272 5 лет назад +1

      Bro thats not a big deal he is also a human and if he has done any mistake that does not matter because if you have used arduino or any other types of microcontroller in past u can correct the connections easily

    • @ksawery6568
      @ksawery6568 5 лет назад +2

      @Blondie SL Well that escalated quickly.

    • @cinibar
      @cinibar 5 лет назад

      @Blondie SL Dark matter....hmmmm I once cut open a dead flashlight battery and found it to be very dark, black as coal in fact. I just figure it got full of the dark that it was displacing with light, and died when it got full. :)

  • @BigyanChap
    @BigyanChap 7 лет назад

    I2C Communication -- Demystified! Thumbs up.

  • @pietrotosoratti799
    @pietrotosoratti799 4 года назад

    Thank you for this useful video !! You explained the topic in such a clear way !!

  • @MrJeppeholt
    @MrJeppeholt 6 лет назад

    OMG dude that was perfect. I have been struggeling with i2c for a while now but this made it click. THANKS! :D

  • @collenfisher3635
    @collenfisher3635 Год назад

    Brilliant, and exceptional narration.

  • @soniyachandran629
    @soniyachandran629 3 года назад

    Thank you for that simplified explanation :)

  • @Syria..
    @Syria.. 3 года назад

    amazingggggg you did save me after reading datasheet for days

  • @ASerenidadeEstoica
    @ASerenidadeEstoica 8 лет назад

    Nice explanation... the protocol I2c is very usefull, fast and need... Thank's for your time and information.

  • @121yahya
    @121yahya 8 лет назад

    very nice video, clear explanation and easy to understand

  • @victorchan8685
    @victorchan8685 8 лет назад

    Appreciate for your excellent video, you speak very clear and explain in detail! You are wonderful! Help a lot!

  • @leuc2475
    @leuc2475 Год назад

    Thank you. It's simple to comprehend

  • @petervanommeren5113
    @petervanommeren5113 6 дней назад

    Exellent explanation, this helpt me a lot. Thank you!👌

  • @youseebruce5426
    @youseebruce5426 6 лет назад

    A very clean and neat explanation... I understood clearly... Thank you very much.

  • @astudyspace7272
    @astudyspace7272 3 года назад

    Thank you very much for this detailed explanation. You made this topic easy to absorb. 🐣

  • @erichertsens
    @erichertsens 9 лет назад

    thanks, appreciated from the Dominican Republic

  • @tahiriqbal8543
    @tahiriqbal8543 7 лет назад

    very good and deep explanation of I2c thanks Brother

  • @totalnewbie8619
    @totalnewbie8619 5 лет назад +1

    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.

  • @iurifrederico8608
    @iurifrederico8608 3 года назад

    Nice! Very good explanation! Well done 👍

  • @templocal
    @templocal 3 года назад

    You explain things very accurately! Thank you!

  • @spbains1966
    @spbains1966 6 лет назад

    Excellent tutorial bringing out the details very clearly

  • @excite236
    @excite236 8 лет назад

    saved me so much time working gy-80
    thanks man

  • @morgard211
    @morgard211 6 лет назад +3

    Thanks! I didn't want to memorize it, but to understand it and it worked! :)

  • @narendravasu6607
    @narendravasu6607 7 лет назад

    Thank you sir
    Your explanation very simple and clearly. Very useful to me . onces again thank you sir

  • @PiCoVienna
    @PiCoVienna 6 лет назад

    Excellent, easy to understand, very precise!

  • @rajsudhirsaran312
    @rajsudhirsaran312 5 лет назад +1

    Very clear explanation

  • @rahazandifar5596
    @rahazandifar5596 3 года назад

    Thanks for this concise refresher video

  • @jokopribadi6462
    @jokopribadi6462 4 года назад

    easier to understand in this video. Thanks

  • @EdisonEBustos
    @EdisonEBustos 5 лет назад

    Very clear explanation. Thanks!

  • @mohamedabdalla-es6ll
    @mohamedabdalla-es6ll Год назад

    Thank you very much for the clear explanation.

  • @suzesiviter6083
    @suzesiviter6083 6 лет назад +3

    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.

  • @BBRR442
    @BBRR442 4 года назад

    best tutorial on youtube thanks

  • @chasenjohnson797
    @chasenjohnson797 5 лет назад

    Great description of I2C. Thanks:)

  • @ExtantFrodo2
    @ExtantFrodo2 9 лет назад

    I now understand what I could not understand previously. Thank you.

  • @ronimine
    @ronimine 8 лет назад +1

    Very clear and instructive. Well done. Thank you !

  • @moussafiradil1700
    @moussafiradil1700 4 года назад +1

    absolutely brilliant @

  • @степаалександров-с5р

    your English is perfect!

    • @ЮжныйКот-м2э
      @ЮжныйКот-м2э 4 года назад

      Что то мне мерещится русский акцент у автора.

  • @krozareq
    @krozareq Год назад

    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).

  • @andrebernardmennicken4685
    @andrebernardmennicken4685 7 лет назад

    Verywell explained, clear, direct to the point, Thank you...

  • @minanovkiril
    @minanovkiril 7 лет назад +1

    дејан секоја чест! браво за споделеното знаење! сеа дознав за твојот канал, ќе разгледам што си споделил со задоволство.

  • @PhDFernandoCoach
    @PhDFernandoCoach 7 лет назад

    Thank you very much for this video, Dejan! The information is clear, well organized and dynamically illustrated!

  • @cmulder007
    @cmulder007 2 года назад +1

    In the breadboard diagram at 5:56 both the + and - are connected to ground on the Arduino

  • @iiDougieii
    @iiDougieii 5 лет назад

    Thank you for this video.
    I needed a refresh of what I already learnt in the past.
    Good work !!

  • @mitkopetrovik259
    @mitkopetrovik259 8 лет назад +1

    Nice, it is desirable in the following tutorials to explain the I2S protocol and what is exactly the difference with I2C

  • @ΝικόλαοςΜελάς-π2γ
    @ΝικόλαοςΜελάς-π2γ 5 лет назад

    Good explanation of the protocols' packet. thanks

  • @lan5053
    @lan5053 5 лет назад +1

    So easy to understand. Thank you!

  • @druggles1
    @druggles1 7 лет назад

    Nice presentation along with a great explanation. Thank you, for sharing, Dejan!!

  • @devarajan2291
    @devarajan2291 8 лет назад

    excellent.
    thanks a lot.
    you helped me in my interview preparation.

  • @sandrosalessales6324
    @sandrosalessales6324 5 лет назад +1

    Very good video !!! Thanks

  • @KunalGautam
    @KunalGautam 7 лет назад

    Thanks, it helped me a lot to understand how I2C works.

  • @ahmedalshekly4899
    @ahmedalshekly4899 5 лет назад +1

    thank you very much fantastic explanation

  • @mikelemon5109
    @mikelemon5109 9 лет назад

    Awesome tutorial thanks a lot where have you been where I didn't understand that communication at all.

  • @harshatechvideos1859
    @harshatechvideos1859 6 лет назад

    Nice work and thank you very much for providing these quality videos.