# I2C Pull Up Resistor Selection

**URL:** <https://forums.digi.com/t/i2c-pull-up-resistor-selection/21832>\
**Category:** XBee - Zigbee\
**Tags:** i2c, xbee3, xbee\
**Created:** [September 28, 2020, 12:18pm UTC](https://forums.digi.com/t/i2c-pull-up-resistor-selection/21832 "2020-09-28T12:18:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksonone](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@ksonone](https://forums.digi.com/u/ksonone)\
**Post date:** [September 28, 2020, 12:18pm UTC](https://forums.digi.com/t/i2c-pull-up-resistor-selection/21832/1 "2020-09-28T12:18:58Z")

</div>

I am working on one design with Xbee3.  
I want to add the option for the I2C communication, but wondering what would be the best pullup reistor values I could use.

I do not find any datasheet that specifiy the requirement.

I have XB3-24Z8PT-J and XB3-24Z8PT models

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [September 28, 2020, 12:53pm UTC](https://forums.digi.com/t/i2c-pull-up-resistor-selection/21832/2 "2020-09-28T12:53:59Z")

</div>

Leave the Pull up resistors at defaults for the two lines.

[http://cms.digi.com/resources/documentation/digidocs/90002219/#reference/r\_class\_i2c.htm%3FTocPath%3DMachine%2520module|Class%2520I2C%253A%2520two-wire%2520serial%2520protocol|\_\_\_\_\_0](http://cms.digi.com/resources/documentation/digidocs/90002219/#reference/r_class_i2c.htm%3FTocPath%3DMachine%2520module%7CClass%2520I2C%253A%2520two-wire%2520serial%2520protocol%7C _____ 0)

---

<div class="post-metadata">

**Author:** ![ksonone](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@ksonone](https://forums.digi.com/u/ksonone)\
**Post date:** [September 28, 2020, 5:12pm UTC](https://forums.digi.com/t/i2c-pull-up-resistor-selection/21832/3 "2020-09-28T17:12:24Z")

</div>

Thank you, Mvut, for your response. The link you have provided is talking about software implementation.

I am looking for hardware implementation, as every microcontroller has a specific requirement for the I2C hardware implementation.

The following is the one reference document I am looking into.  
[https://www.ti.com/lit/an/slva689/slva689.pdf](https://www.ti.com/lit/an/slva689/slva689.pdf)

---

<div class="post-metadata">

**Author:** ![backpacker87](https://avatars.discourse-cdn.com/v4/letter/b/edb3f5/32.png) [@backpacker87](https://forums.digi.com/u/backpacker87)\
**Post date:** [September 29, 2020, 1:51pm UTC](https://forums.digi.com/t/i2c-pull-up-resistor-selection/21832/4 "2020-09-29T13:51:43Z")

</div>

I have a I2C air pressure sensor that I am using with the Xbee3. I was able to successfully get it to communicate using 10kohm pull up resistors as follows:

10kohm btw. SDA –\> VCC  
10kohm btw. SCL –\> VCC

Even using the I2C settings via micropython and noting the “automatic” pin settings I still had to add the external pullup resistors to make the sensor work properly.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [September 29, 2020, 1:51pm UTC](https://forums.digi.com/t/i2c-pull-up-resistor-selection/21832/5 "2020-09-29T13:51:17Z")

</div>

The internal resistors on these pins are set via the firmware to be enabled, pull up or down.
