I2C communication || pull up resistor in I2C || I2C Bus Capacitance || I2C Rise and Fall Time

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 มิ.ย. 2020
  • I2C communication
    www.embeddeddesignblog.blogspot.com
    www.TalentEve.com

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

  • @raghunathpalla8928
    @raghunathpalla8928 2 หลายเดือนก่อน +1

    well explained!!

    • @Way2Know
      @Way2Know  2 หลายเดือนก่อน

      Thank you 🙂

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

    Very important and practical point covered from I2C. Very well conveyed. Thank You for your effort and time :)

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

      Thank you 😊

  • @TanveerAhmed-sy6dm
    @TanveerAhmed-sy6dm ปีที่แล้ว +1

    It is so useful,
    Explained practically.
    Thank you Sir

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

      Thank you 😊

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

    Excellent explaination mam

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

    Lets say while working with 5v controller what if we directly connect the 5v line to I2C bus without any resistor. Why resistor is necessary?

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

      Series resistor in any scenario controls the current. Without that, pin draws current based on its input impedance. In scenarios where is there is a strong PD internally, pin drawing current for a long time might damage it..

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

      @@Way2Know Thank you very much

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

    very well explained! How do you calculate the fall time?

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

      To keep it simple, can be approximated by the time constant value RC

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

      @@Way2Know Is R the pull-up resistance in this case?

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

      Yes.. the discharge path shall be through pull-up resistor and capacitance

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

      @@Way2Know hmm. I think there's more to it.. if that were true (if it fall time would be proportional to the pull-up resistance) , then if you'd make the pull up resistance higher, the fall time would also increase.. let me think more and get back.

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

      Yes, you are right.. that is why I was saying approximation.. think it this way, if you are increasing the resistance, the charge current is reduced and hence time as well.. vice-versa for fall

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

    Great video, i have a quick question so i have a raspberry Pi 3 and i connect the pull resister of 4.7k and to the I2C Bus i have 34 devices that works well, when i connect the final 6, i start loosing data over the bus, does this mean i can lower my pull-up resistor to 2.2k so that i dont encounter data lost?

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

      When you calculate the RC value, the RC must be such that you should not increase the rise time too much.. incase your circuit, you are increasing the capacitance on the bus by adding additional devices.. So, your RC is increasing all the time.. To bring it under control, you must have to reduce the PU. As you said, you can try with 2.2k and check how it is going..

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

      @@Way2Know Thank you so much for your quick reply. For my master i am using Raspberry Pi 3b+ and all my slaves are Rpi Picos. I will let you know how it turn out.

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

      Ready to help you anytime..

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

      @@Way2Know Thank you so much the 2.2k works, now i have all 40 rpi Picos Slave talking to the Rpi 3B+ Master and not loosing and data through the I2C Bus

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

      Good to know..