How to use multiple i2c devices on the same bus with the Arduino

Sdílet
Vložit
  • čas přidán 9. 07. 2024
  • I wire and program two i2c devices on the same i2c bus with the Arduino as the master.
    Complete Arduino kit:
    amzn.to/2qBR2ww
  • Věda a technologie

Komentáře • 39

  • @berniemukonesi2684
    @berniemukonesi2684 Před 2 lety +5

    This is the video I've been looking for!!
    Thanks

  • @pietchavalala7351
    @pietchavalala7351 Před rokem +2

    Thanks. This is exactly what I needed. (Note: pull up resistors its already there) .

  • @sashidharanp.m.sreeadharan9129

    Straight and simple.

  • @myinfo7114
    @myinfo7114 Před 5 lety +2

    Use the photon-pixel coupling method, it is a new approach in science for reading an unlimited number of sensors in parallel. Maybe you can do it with an Arduino. From what I know it supports a cam.

  • @qzorn4440
    @qzorn4440 Před 2 lety

    very very nice. 😎 a wonderful 1st or refresher I2C video. 🥳 thanks a lot 🙂🏋‍♂🐦🌲

  • @TheRealMoviePastor
    @TheRealMoviePastor Před 4 lety +1

    Awesome. I also need to connect a display and rtc for a project. Now I know how. Thanks!

  • @ecsyntric
    @ecsyntric Před 12 dny

    since SCL and SDA are supposed to be common to all devices why not put the yellow and blue wires into the open power rail on the other side? unless both power rails are already connect together internally

  • @beacdc
    @beacdc Před 4 měsíci

    nice video! I was searching for this as I'm also going to use an RTC i2c with a i2c LCD. BTW, just wanted to point out that most of the i2c devices boards already have the pull-up resistors on them so no need to wire that.

    • @mansirajput4224
      @mansirajput4224 Před měsícem

      I also i wanted to do same but does Arduino uno board comes with pull-up resistors ? I really didnt understand how to do this whole shit. It would be really helpful if you give me a short summary for connecting multiple i2c device rtc module and a display

  • @AJDJ108
    @AJDJ108 Před 5 měsíci

    Thanks sir for explaining better 🙏

  • @H2ON_MEA
    @H2ON_MEA Před rokem

    Thank you for share that great information

  • @3d_idea800
    @3d_idea800 Před 5 lety

    Good video :)

  • @dhruvruparelia3361
    @dhruvruparelia3361 Před 5 lety +2

    can you please send the code

  • @wayneswan3092
    @wayneswan3092 Před 2 lety

    I'm sorry, I'm hard of hearing. What size resistors did you say you were using for pull up resistors?

  • @Ian-Threaded
    @Ian-Threaded Před 5 lety +5

    I’m trying to use two of the exact same sensor. Have you ever done that?

    • @Ian-Threaded
      @Ian-Threaded Před 5 lety +1

      Great video by the way. Thanks for making it

  • @CodeXBro
    @CodeXBro Před 5 lety

    thanks

  • @neerajhebbar7313
    @neerajhebbar7313 Před 5 lety +3

    We dont need pull up resistors its already their on the modules i think

  • @amirhoseinaz1969
    @amirhoseinaz1969 Před 4 lety

    Thanks

  • @caribbeanchild
    @caribbeanchild Před 4 lety

    Why do you need pullup resistors?.... when you can do it with code.... "pinMode(PIN,INPUT_PULLUP)"

  • @tristunalekzander5608
    @tristunalekzander5608 Před 4 lety +1

    What kind of resistors are those?

  • @upcycleengineer7825
    @upcycleengineer7825 Před 9 měsíci

    so I am frying displays, is it because I am not using pull up resistors?

    • @torchwork8651
      @torchwork8651 Před 9 měsíci

      I would guess no. The resistors are for signals I think.

  • @mantanitchannel
    @mantanitchannel Před 3 lety

    can you share the codes ?

  • @rolandberendonck3900
    @rolandberendonck3900 Před 5 lety

    Great :)

  • @ezeprojects5425
    @ezeprojects5425 Před 5 lety

    The OLED is really flickering. I've used OLED before, singly, and no flicker like that. Suppose it's because it's sharing the I2C? Probably so.

    • @taufanali3170
      @taufanali3170 Před 4 lety

      @Garan Carter-Woodgate That OLED works at 3.3V no? Hooking it with 5 V supply would wreck it no?

  • @Benmaluco9
    @Benmaluco9 Před 4 lety

    Obrigado

  • @caribbeanchild
    @caribbeanchild Před 4 lety

    Maybe you shouldn't be doing this if you don't know what a pull-up resistor does! Doesn't give much confidence that you actually know what you are doing.

    • @garagegeekguy
      @garagegeekguy  Před 4 lety +17

      You do it then. Starting a CZcams channel is free. Do it