Connecting Arduino with multiple I2C devices

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 142

  • @forwardphysx6167
    @forwardphysx6167 7 років тому +10

    If you need to connect more devices but the resistance becomes too low, just desolder the resistor from the breakout boards which lower the resistance too much.. With I2C you want about ~2K Ohms so that you can transmit data much faster :D
    I see a bunch of comments where people think this video is "useless" but he explains this at the end, Resistance in parrallel is divided! Hope this helps

    • @ColinJWiens
      @ColinJWiens 6 років тому

      He said you can measure the resistance of the whole bus by measuring between VCC and SCL or SDA, but I tried that on a little screen and it read overload, and I tried that on a single gyroscope and it reads 3 megaohms (even though the pull-ups are 22 kiloohms). Am I measuring something wrong or do I have to use his equation near the end?

  • @rajcodes100
    @rajcodes100 5 років тому +5

    The best explanation of I2C in the least amount of time with great clarity - thanks Sir and kudos for such a presentation.

  • @KeirBriscoe
    @KeirBriscoe 5 років тому +5

    Very well explained with a lot of detail that many others simply omit. The diagrams showing how a pull up resister works, and how to calculate its value, are so simple to understand. Great job!

  • @queenidog1
    @queenidog1 6 років тому +4

    This was a fantastic video and I say that as a former educator and amateur cinematographer! Great job buddy.

  • @lucasalexandre2043
    @lucasalexandre2043 7 років тому

    The best material about I2C I've found in 3 days of search! Looking in blogs, videos and articles.

  • @alistairdrozario3590
    @alistairdrozario3590 7 років тому +3

    bloody amazing - now that's what I call an explanation

  • @michaelcostello6991
    @michaelcostello6991 4 роки тому +1

    Just measured an Adafruit BNO055 sensor and got 10K ohms on clock and data lines. THANKS for excellent short video. Really interesting.

  • @kishoreysn7801
    @kishoreysn7801 4 роки тому +3

    Man, you should be making more Videos. Very nice explanation.

  • @ThomasHaberkorn
    @ThomasHaberkorn 6 років тому +6

    So.. How do I increase the resistance above the minimum value if I've got (too) many I2C devices connected?

  • @frankgrudge8823
    @frankgrudge8823 4 роки тому +4

    Best i2c vid ive ever seen.

  • @lucasalexandre2043
    @lucasalexandre2043 7 років тому +2

    You should make more videos man! You're good on it

  • @robertlongoria765
    @robertlongoria765 3 роки тому +2

    Excellent explained pull up resistors in I2C applications.

  • @mousumimandal5464
    @mousumimandal5464 5 років тому +1

    Fabulous awesome.... this kind of explanations can even make a child understand about arduino no matter how much he is able to understand anything else... he he

  • @FabiusKadett
    @FabiusKadett 4 роки тому +2

    Awesome I have 4 i2c devices and when I connect the fourth the sketch freezed randomly now after seeing this video I will definetly check the total I2C bus resistance since all are breakout boards

  • @DD-ci1iw
    @DD-ci1iw Рік тому +1

    Great insights - but depending on what you are doing, the limit is even lower ;)
    Break-Out Boards usually give you the option to configure the used I2C-Adress by connecting a pin to GND, VCC, SLA or SLC.
    And that's another hard limit: You can only use 4 addresses for these kind of boards.
    If you want a fifth, you'll need to find another vendor who has preloaded his device with a different address or even offers some way
    to freely configure it beside the classic way of using 4 different voltage levels through an extra pin.

  • @GeekMustHave
    @GeekMustHave 7 років тому +1

    Most excellent! Love your graphics and animation, they add so much to the learning experience.

  • @biamanuel
    @biamanuel 5 місяців тому +2

    omg what an amazing channel!! thanks for the video, helped tons!

  • @RoadRunnerMeep
    @RoadRunnerMeep 5 років тому +2

    Great article, making a home made weather station and it helps clarify things a lot

  • @samudrajs5409
    @samudrajs5409 2 роки тому +2

    Great explanation, thanks a lot. I was facing problem with loadout resistors

  • @bjarneappel125
    @bjarneappel125 7 років тому +2

    You deserve more views

  • @kaoshavoc
    @kaoshavoc 5 місяців тому

    I tried to like this video while watching it on my 'smart' tv. wasn't fast enough, so here I am to both like this video and subscribe because THIS was an awesome video and I learned something I hadn't even known I needed to know. Thank you.

  • @877cms
    @877cms 5 років тому +2

    Excellent video. I was hoping for something to do with the addresses as well though...

  • @jagadeeshdhoni438
    @jagadeeshdhoni438 4 роки тому +1

    bluedot, you are awesome man! very nice presentation.
    the solution must be "TO SOMEHOW ATTAIN A EFFECTIVE RESISTANCE OF 1.5K OHM"
    you could try removing the pull up resistors in the slave(s) and adding a 1.5k resistor seperately

    • @jagadeeshdhoni438
      @jagadeeshdhoni438 4 роки тому +2

      if could maintain effective resistance @1.5k, then theoretically you can connect upto 128 devices

  • @TheAbhro
    @TheAbhro 5 років тому +3

    Very precisely and accurately explained!!

  • @fxbootstraps
    @fxbootstraps 5 років тому +1

    one of the best explanations I have seen

  • @ericaskari
    @ericaskari 6 років тому

    fantastic, thanks.
    I never thought about the parallel resistors

  • @akashwaitage8051
    @akashwaitage8051 4 роки тому +6

    how many mpu6050 sensors we can connect with ardiuno uno??

  • @tomcatmeow69
    @tomcatmeow69 5 років тому +1

    excellent presentation , I have only one question because I was thinking about this very question of how many devices can I put on the I2C bus or more specifically I want to know how many arduino nanos I can put on the I2C bus ? I am thinking to use a raspberry pi as the master I2C bus and have nanos looking after individual sensors with their own isolated I2C busses or sensors directly connected to nanos with out using the isolated I2C bus. Nanos don't as far as I know have any resistors on the SDA or SCL . If what I'm thinking is correct then you could have an unlimited number of sensors connected to a main I2C bus of a master Pi or Arduino and just isolate the sensors with arduino nanos which are so cheap to buy.

  • @ingenierocristian
    @ingenierocristian 3 роки тому +1

    Hi, I need to make an I2C communication between an Esp 32 and Esp8266, where can I find info about?

  • @Singh-rt1zq
    @Singh-rt1zq 5 років тому +3

    best video on this topic.........make another please on spi and other topics......

  • @akshayn3926
    @akshayn3926 6 років тому

    very informative ,never realised all these,untill now
    thanks

  • @cw4608
    @cw4608 4 роки тому

    I enjoy your presentation and flow. Make more if possible. Hope all is well with you.

  • @polisidor7414
    @polisidor7414 5 років тому +2

    Perfecet explanation..with lot of details..thx

  • @PeterAbt
    @PeterAbt 7 років тому

    great video thanks!!!
    why do these breakout boards even have he pull up resistors already build inside? Wouldn't be a big deal to plug them in yourself and spare all the trouble...

  • @Robmart05
    @Robmart05 7 років тому +1

    Great job! Can you make more videos?

  • @logicawe
    @logicawe 6 років тому

    Extremely clear presentation, thank you for sharing!

  • @mikeoliver3254
    @mikeoliver3254 7 років тому

    great job you just helped me understand a problem I had been having. subscribed.

  • @ralpholiver2889
    @ralpholiver2889 6 років тому +1

    Can you effectively connect 7 i2c devices to a nano? Will it work?

  • @davewreski6900
    @davewreski6900 5 років тому

    Great information - How about more of the same type ? Keep up the good work - I like the way you make it short and to the subject. Thank you.

  • @LifeGeneralist
    @LifeGeneralist 4 роки тому +4

    But what is the solution?

  • @Sailingon
    @Sailingon 2 роки тому +2

    Very nicely explained. Subscribed

  • @firstplacelast2
    @firstplacelast2 4 роки тому

    Great job. Perfect pace right amount of detail. Thanks!

  • @Stepanhuge
    @Stepanhuge 6 років тому +1

    Nice tutorial! we want more like that pleasee

  • @trevorcook1427
    @trevorcook1427 2 роки тому

    Thanks, have been trying to understand this for a while, perfect explaination ;-)

  • @makethingsmove8275
    @makethingsmove8275 7 років тому +1

    More video please. Very well explained (Y)

  • @tryifwecanadiychannel5628
    @tryifwecanadiychannel5628 6 років тому +1

    Great tutorial. Lots of good knowledge!

  • @BrianThomas
    @BrianThomas 5 років тому

    Published in 2016 and it's still providing great information. Nice video. I do have a question. How would you power 11 or more sensors all at once if I wanted to use battery as a backup and not as a main source of power?

  • @manuelmundaca5322
    @manuelmundaca5322 3 роки тому

    Hello! Do you know if it is possible to connect two displays, but SH1106 and with another library (I use Adafruit's)? The solution I have at the moment is to use 2 arduinos, but the expense would be higher.

  • @shiftyjesusfish
    @shiftyjesusfish 3 роки тому +1

    This really helped in my understanding, but I was wondering (hopefully this is not a stupid question) but would this be considered analog multiplexing? And would this allow the arduino to communicate with 2 devices with the same MAC address at the same time?

    • @zacmilne9423
      @zacmilne9423 2 роки тому

      I don’t think two devices with the same MAC address would work. I think the thumbnail for this video is misleading.

  • @sto2779
    @sto2779 4 роки тому

    could this be the reason why my SPI LCD shows artifacts right at the moment when the SPI communicates to another SPI device such as SD card?

  • @d.g.m.04
    @d.g.m.04 Рік тому +1

    Then add a really big resistor in parallel, will solve the issue right?

    • @stark_energy
      @stark_energy Рік тому +2

      Adding any resistor in parallel will always reduce the overall resistance. To solve this I2C pull-up resistor problem, desolder all the built-in pull-up resistors on every device and place your own.

  • @bitsurfer0101
    @bitsurfer0101 2 роки тому

    Can you disconnect the pullup resistors to make the logic low voltage drop?

  • @RovanRCTube
    @RovanRCTube 6 років тому

    Have you ever used the TCA9548 i2c multiplexor?

  • @damainx
    @damainx 5 років тому

    How do you handle the addressing if 2 devices have the same I2C address?

  • @qqreeeeeeeeeeeeeeeee
    @qqreeeeeeeeeeeeeeeee 6 років тому

    so all i have to do to connect multiple I2C devices on arduino is to connect resistors between Vcc-SDA and Vcc-SCL the pull-ups right?

  • @colinroye5833
    @colinroye5833 7 років тому

    Very interesting, hope to see more videos!

  • @tom53332
    @tom53332 Рік тому

    couldn't the 'low-voltage' be reduced further by adding an extra resistor to the clock-line?

  • @siddharthpasupuleti7136
    @siddharthpasupuleti7136 7 місяців тому

    I am in a situation where I need 68 temperature sensors that use I2C comms and only 1 SDA and SCL line, how would I know if it will work?

    • @fredchen9572
      @fredchen9572 7 місяців тому

      Just try it from 2x sensor prototype, then 3, then 68...

  • @walthermatthau9537
    @walthermatthau9537 4 роки тому +2

    Excellent explanations!

  • @cwgreenley
    @cwgreenley 7 років тому +7

    Excellent info

  • @raajsuriyaroychoudhury1587
    @raajsuriyaroychoudhury1587 6 років тому

    Really cleared a lot of my doubts!

  • @prathmeshghodke4872
    @prathmeshghodke4872 5 років тому +2

    Plz make videos on this topic

  • @ZookeeperJohnG
    @ZookeeperJohnG 2 роки тому +2

    GREAT explanation!

  • @seanocansey2956
    @seanocansey2956 5 років тому +2

    Really Well explained 😎👍🏾

  • @charlesklein7232
    @charlesklein7232 6 років тому +1

    its been 2 years i dont think hes coming back.

  • @Lumrog8
    @Lumrog8 6 років тому +1

    You are a Craack! I dont speak english, but I inderstood this

  • @TooSlowTube
    @TooSlowTube 6 років тому +5

    This was a really good presentation, but you left out the most important part - what do we do about it?
    It seems to me, we need to remove the pull up resistors from all but one of the devices. There probably comes a point where that isn't enough, so we would need to remove ALL of the pull up resistors, and fit the appropriate size for that number of devices - those would be bigger value resistors, to get a good logic low level, surely?
    There is also this video, which may be helpul:
    ua-cam.com/video/sGZe0aJsqBQ/v-deo.html

    • @ColinJWiens
      @ColinJWiens 6 років тому +2

      I found a comment lower that said "If you need to connect more devices but the resistance becomes too low, just desolder the resistor from the breakout boards which lower the resistance too much.. With I2C you want about ~2K Ohms so that you can transmit data much faster"
      If you want a more thought-out approach, near the end of the vid it explains using the parallel resistor equation, which you can use if you can see the values on your pull-up resistors. It didn't work for me to measure the resistance between VCC and SCL because I tried it on a little screen and it reads overload, I tried it on a single gyroscope and it reads 3 Megaohms which seems high.

  • @jithin_isaac
    @jithin_isaac 4 роки тому +4

    Brilliant content...

  • @pakojaure
    @pakojaure 7 років тому

    So the resistor for both ( SDA and SCL) Is the same? Thanks

    • @bluedot9606
      @bluedot9606  7 років тому +1

      Well, yes, the resistors usually have the same value. 10k, 4.7k or 2.2k are very common values.
      But of course, you need one resistor for the SDA and for the SCL line.

  • @qzorn4440
    @qzorn4440 3 роки тому

    very well done...😀 i learned a little bit more... 😀 great info... 👍👍👍

  • @dennischan8663
    @dennischan8663 4 роки тому

    it is possible to connect with two TSL 2561 sensor ?

  • @NostromoVA
    @NostromoVA 6 років тому +3

    Very well done! Thank you.

  • @leandro3710
    @leandro3710 7 років тому +1

    This video is awesome, THANK YOU!

  • @charlesklein7232
    @charlesklein7232 6 років тому +3

    hate to tell you this, but this is his only video! in fact their is nobody home. i suspect he returned home to his other planet.

  • @abhaynaik2534
    @abhaynaik2534 4 роки тому

    How do i connect 10 Arduino togather. Is that any possibility to do this ?

  • @armanmaulana2290
    @armanmaulana2290 7 років тому +3

    GREAT VIDEO SIR

  • @legudep
    @legudep 6 років тому

    How long distance maximum sir?

  • @ChrisHalden007
    @ChrisHalden007 4 роки тому +1

    This was an excellent video!!!! Thx

  • @ramazans8114
    @ramazans8114 6 років тому +4

    Talking should to be a bit slowly , on the end no one running from behind!

  • @justinmckenzie7100
    @justinmckenzie7100 5 років тому

    Informative, just subbed, thankyou!

  • @추형석-r3t
    @추형석-r3t 7 років тому +1

    Video explains much easiers.Thanks for nice thing

  • @sennabullet
    @sennabullet 5 років тому +1

    Awesome!! Very clear presentation of great information.

  • @bopala85
    @bopala85 7 років тому +2

    Great video, thanks.

  • @amirhoseinaz1969
    @amirhoseinaz1969 4 роки тому +1

    Great explanation, thanks

  • @ralpholiver2889
    @ralpholiver2889 6 років тому

    GREAT material by the way, subscribed (Y)

  • @ashanayase1085
    @ashanayase1085 7 років тому

    How many device can control

  • @CRCR7
    @CRCR7 6 років тому

    Great video kindly do more videos

  • @CoolKoon
    @CoolKoon 6 років тому +4

    While this was definitely an informative video, it didn't explain me how do I connect Arduino with multiple I2C devices....

  • @aimexx1
    @aimexx1 4 роки тому

    Thank you, Sir! Great Video

  • @Graham1904
    @Graham1904 4 роки тому +5

    Plenty explanation as to what is wrong but no explanation as to how to correct it!!!

  • @KM-ey4lg
    @KM-ey4lg 7 років тому +1

    Thank you. Great job.

  • @gudimetlakowshik3617
    @gudimetlakowshik3617 4 роки тому

    which software did you use to make this video man??

  • @JacobKrajewski
    @JacobKrajewski 3 роки тому +1

    good video for me, thank you!

  • @3DavyJones
    @3DavyJones 6 років тому

    This is amazing information, thanks

  • @galerivs
    @galerivs 7 років тому +1

    great video

  • @datod100
    @datod100 6 років тому

    Very good video!

  • @jesperkped
    @jesperkped 2 роки тому +4

    Why do people say i two c when it is "i square c" ?

    • @tanoryjakaperdana1419
      @tanoryjakaperdana1419 2 роки тому +3

      Coz its "inter intregated circuit" or some says IIC.. as you can see there are 2 pieces of I.. so its like 2 x I or I x 2 or I2, but not I square

    • @jesperkped
      @jesperkped 2 роки тому +1

      @@tanoryjakaperdana1419 but it is wrong. It is even officially written
      I2C (Inter-Integrated Circuit, eye-squared-C), where the 2 is written as squarered
      web.archive.org/web/20210813122132if_/www.nxp.com/docs/en/user-guide/UM10204.pdf
      When teaching things to people i think it is important to be technically correct even in the terms used.
      I know these videos are not paid training videos - but instead of arguing for something being okey being mislabeled it's better to just say oops - i did not pay attention to that

    • @tanoryjakaperdana1419
      @tanoryjakaperdana1419 2 роки тому +1

      @@jesperkped lol im not saying you are wrong or i am on the right side.. you ask why do people say i2c instead "i square c".. im just answering your qestion.. coz im one of those people.. 😅

    • @jesperkped
      @jesperkped 2 роки тому

      @@tanoryjakaperdana1419 ah okey. Well... Stop doing that 😂

    • @tanoryjakaperdana1419
      @tanoryjakaperdana1419 2 роки тому +1

      @@jesperkped hahaha.. anyway, thanks for the information.. 👍

  • @markusaurelius4015
    @markusaurelius4015 3 роки тому

    Great video!

  • @tech-german1806
    @tech-german1806 6 років тому

    Wow. Pls post more video.

  • @piotrlenarczyk5803
    @piotrlenarczyk5803 3 роки тому +1

    Thank you for video.