I2C Part 1 - Using 2 Arduinos

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 พ.ค. 2024
  • I2C communications is a very important topic, so important that I’ve decided to do several videos about it. In this first video, I will explain what I2C is and how to use it to communicate between two Arduino's.
    Full article at dronebotworkshop.com/i2c-ardu...
    More articles and tutorials: dronebotworkshop.com
    Join the conversation on the forum: forum.dronebotworkshop.com
    Subscribe to the newsletter and stay in touch: dronebotworkshop.com/subscribe/
    Today we will discuss I2C, or “Inter-Integrated Circuit” communications.
    I2C is a two-wire, low-speed serial communications format that was originally developed by Phillips (now NXP) in 1982. Although its original use was to allow integrated circuits in televisions to communicate with one another it has evolved into a standard communications method used by a myriad of devices.
    I2C works with the concept of “Master” and “Slave” devices. The master device provides the clock signal and initiates communications with the slaves. An I2C bus can have multiple masters and slaves, but only one master can be active at any given time.
    We have used I2C devices in lots of projects and tutorials before. Today we will use I2C to communicate between two Arduinos.
    In future videos I will show you more about using I2C:
    Creating your own I2C devices out of common sensors and small Arduino's.
    Communicating between Raspberry Pi and Arduino with I2C.
    Using multiple masters on an I2C bus.
    Today we will just cover the basics. We will first exchange information between two Arduinos and then we will use a potentiometer on one Arduino to control an LED on a second one via I2C.
    Here is what is in today's video:
    00:00 - Introduction
    04:28 - Understanding I2C
    07:40 - Exchanging data between two Arduino's
    15:25 - Controlling one Arduino with another one
    As always you can get the sketches on the article that accompanies this video. While you're on the website feel free to check out the other articles I have, and be sure to sign up for my newsletter .
    As always I appreciate your support, thanks for watching!
  • แนวปฏิบัติและการใช้ชีวิต

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

  • @TalkingGIJoe
    @TalkingGIJoe 3 ปีที่แล้ว +8

    If my shop was this clean, I'd never get any work done... I'd just sit there and stare at how beautiful it is! Nice video too...

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

    Very professional, perfect pace, top quality presentation.

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

    Good example, good editing and a clean and organized lab!

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

    GREAT choice of topic(s)!!!
    This is a perfect match with what I'm fiddling with on my robot, and there's a lot to take into account and many choices to make, so I am very excited about you taking up I2C on your channel.

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

    This was a fantastic video and explanation. Def looking forward to part 2!!

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

    Thank you. It’s evident you have put a lot of effort to document your presentation and present it very well. Bravo sir!

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

    This is the best video I found on the web! Thank you very much, exactly what I was looking for, because I am running out of pins on my arduino, with this master-slave via I2C I could "expand" my pins via another arduino! GREAT!

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

    Wow, This is an eye opener for me. Thanks for this clear presentation. Appreciation to your work ! Many Thanks !

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

    Excellent video as always. The quality of your production is unsurpassed. I am really looking forward the follow up videos. Bob

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

      as much as i agree with you, GreatScott is better

  • @anonymous.youtuber
    @anonymous.youtuber 3 ปีที่แล้ว +5

    Thank you so much . You truly have the gift of teaching. Respect. 🙏🏻

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

    Fantastic Series. I am currently familiarizing myself with Arm Cortex M Microprocessors using a TI Launchpad. For the last several weeks I have been watching your Arduino videos to learn the concepts and then figure out how to implement them on the launchpad.

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

    Thanks for the video, I'm learning
    I²C so great timing. I bought a
    I²CDriver monitor board to help understand signaling and commands.

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

    It is one of the best videos I have seen when it comes to explaining anything related to electronics. EXCELLENT WORK!!

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

    As always, another great video. Thank you!

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

    You make learning about i2c simple. Love it.

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

    That was the best description & explanation of I2C I've found. Excellent work, and thanks for the video!

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

    You are the best teacher I have ever seen. Fantastic job. Love it

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

    Great job and Excellent explanations as usual. Can’t be more clear...

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

    Loved the video, cant wait for the video where you explain the integration of i2c with a normal sensor

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

    excellent tutorial. I now get how to do both sides of the Wire protocol.

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

    Top class video as usual. Thanks very much. I've just taken my box of Arduino bits'n'bobs out of retirement and following your vids from the start trying all the experiments that I have the modules for.

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

    Very informative and clear explanation. Can’t wait for the up coming videos!

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

    Excellent demo of using I2c, exactly what I was looking for

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

    People like you make the world a better place

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

    Good pacing and great introduction into I2C. Thanks!

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

    best teacher of the universum, thanx sir

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

    Thank you, professional and clear explanations! EXCELLENT!!!

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

    I enjoyed this lesson and found it very helpful, thank you.

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

    Another time against, it's excellent. We need someone like you. Thanks

  • @AgeingBoyPsychic
    @AgeingBoyPsychic 4 ปีที่แล้ว +35

    Just started with Arduino recently and this channel is a godsend! Clear, concise and really well produced. Thank you for making these!

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

    Great work! Thank you for the beautiful video.

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

    Excellent video and crystal clear explained ! Well done !

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

    Great Series!!! Please continue the great work!!

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

    Thanks Bill. Very thorough introduction.

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

    Hope all is well, thanks, as always!

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

    Great video. Really helped me with my arduino adventure

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

    Another great video.thanks again
    Waiting for the next one

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

    your videos are really interesting and well explain, thanks !

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

    Very excellent video, calm voice and pace, as it's easy to follow - keep up the god work.

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

    Great one! Clearified some questions I had on using wire. Thanks.

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

    I've been playing with circuits and microcontrollers for a couple decades at this point... but thanks to your videos, a lot of things which I had previously learned to do 'by rote' I now have a better fundamental understanding of. You importantly explain not only the 'how' but also the 'why' when you do something, and that 'why' is what really allows ME to engage my own creativity!

    • @afah6850
      @afah6850 8 หลายเดือนก่อน

      hey im doing my diploma in computer engineering but what job could i get if im really good at this circuits and microcontrollers, Im really interested in them

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

    Thank you for your work! Much appreciated.

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

    Thank you so much for this tutorial. Very excellent video.

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

    Thanks for all the hard work you do. Just wanted to let you know that the example code on the website for the LED slave example has some extra code included, there are two setup() code blocks.

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

    I literally JUST started a project where I wanted to use this! Perfect timing, thanks! :)

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

      What a coincidence, me as well

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

    Thanks for the code and the tutorial which helped me solve a challenging problem. Your information is acknowledged in code and information I've posted on my own channel; most helpful!

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

    Wielkie dzięki za konkretną informację . Pozdrawiam.

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

    Many thanks for sharing your expirience with us!

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

    Wonderful video. Thank you so much!
    I've never heard the clock line referred to as "SDC", only "SCL".

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

    Very clear to the point video! Thanks for uploading

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

    thank you, I needed to find a method of 1 wire communication on Arduino

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

    nice one. always wanted to know more about I2C

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

    Good video, quality and thoroughness

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

    Your just such a good teacher!

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

    Excellent explanation

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

    Thanks, it's very clear and easy to understand.

  • @Nick-ye5kk
    @Nick-ye5kk 2 ปีที่แล้ว

    Please keep making these excellent videos.

  • @p.g.pg38
    @p.g.pg38 5 ปีที่แล้ว +1

    Thanks a lot for this video (and for the futures) and thank you for the full article which is essential for those whose English is not the native language.😜

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

    Excellent tutorials sir, became a fan!

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

    Love your videos. Thank you. I use cheap Chinese Arduino UNO's. I had to put in the pull up resistors to 5V before communications could work. Thank you.

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

    Bonjour,
    Excellent vidéo, langage clair et agréable. Merci pour tes video.
    bonne journée

  • @erinasimpson4289
    @erinasimpson4289 8 หลายเดือนก่อน

    I have no idea who you are, but I would like you to know that you have saved my life

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

    Really excellent video! Great job and thank you so much!

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

    I am from Holland and I injoy all what I see here Thank you Smile2U

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

    Nice video. Exactly what I was looking for. Thanks!!!

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

    Very cool and excellently demonstrated.

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

    Excellent explanation.

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

    Great teaching skills & content quality! 👍👍 jus a tiny detail: NXP, Philips has a single L...
    Thank you sir!

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

    I love your videos!! Keep making such great videos. They are very helpfull, too. :)

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

    Best tutor online!

  • @mr.bianchirider8126
    @mr.bianchirider8126 5 ปีที่แล้ว

    Great video. I hope you be covering the use of the TCA9548A multiplexer with two or more identical I2C sensors (like the BME280) on one Arduino Uno.

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

    Excellent explanation!

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

    thank you for your effort , It is a wonderful video

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

    What a nice and fine explanation.. Thank you :)

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

    wow. amazing. the best video on i2C. sir please make a video on SPI. waiting for your new videos

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

    Well presented again , cool video.

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

    wait is over.... i was waiting for this topic since a couple of months

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

      Hold on to your hat; you're in for a ride. This is a multi- part series so more is coming down the road. Plus if you're not a long time viewer, you can always go back and watch his previous I2C videos. Sadly I did not see a playlist, but he did say at the beginning of the videos which devices he has already covered that use I2C. You might be able to find them that way. Good luck, and have a great week waiting for the next video.

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

      @@vonries thanks. I've seen every video of dronebot workshop. i remember first video was IR sensor

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

    very good video; looking forward to the next one :)

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

    thank you for this vid. Merry xmas

  • @JerryEricsson
    @JerryEricsson 4 ปีที่แล้ว +3

    Thanks a billion, I have been using and loving the I2C for years now, but never really understood how it worked, I just knew it did and loved the way it did. Now I have a much better understanding of the history and actions capable using the bus, it all makes much more sense now.

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

    Very informative. Thanks!

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

    thank you very much your Videos are the best.

  • @n.h.300al-ashqar8
    @n.h.300al-ashqar8 5 ปีที่แล้ว

    thanks for your efforts

  • @LtShifty
    @LtShifty 8 หลายเดือนก่อน

    Thanks so much for this video, ots exactly what i wanted to learn. Im looking to build a home cockpit and one of my requirements is to use a single USB (or a max of 3) for the entire thing.
    This looks perfect to wire up all of thr switches and controls on micro pros and then run them all from just one or two masters. The coding for this is remarkably simple as well.

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

    Great explanations sir

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

    thanks for large print helps a lot

  • @user-hj4bm1kz2l
    @user-hj4bm1kz2l ปีที่แล้ว

    Just perfect. Thanks

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

    Sir make part 2 of this session....

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

    perfect ... i had a lot of examples passing by, but your clip gives a little hope. just think of the pinout of each esp32, that is droped on a pcb, but with different wireing .... have a good day ...

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

    nice work! very easy to understand

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

    Sir, Great video

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

    Quality content.

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

    What a beauty! Magical!

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

    Excellent video! Thank you so much for making this tutorial, it really helped me!

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

    Ur literally a legend.

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

    Awesome, thanks for sharing!!!!

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

    Thanks , great info

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

    Great intro video. I did think the pull-up resistors were glossed over (or I missed it) other than the initial diagram. I assume the Arduino library applies internal pull-ups, but to use other micros the clock and data lines need to be pulled up externally. Loosing one of the pull-ups can quickly make the bus less reliable and should have been stressed a little more - such as the pull-up resistor size.
    That said this was video has your typically excellent production values.

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

    very nice explanation!

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

    Best videos ever sir keep that awosm work❣💓