# Trouble with i2c on Pynq-z2

**URL:** <https://discuss.pynq.io/t/trouble-with-i2c-on-pynq-z2/655>\
**Category:** Support\
**Created:** [November 12, 2019, 10:35am UTC](https://discuss.pynq.io/t/trouble-with-i2c-on-pynq-z2/655 "2019-11-12T10:35:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkbyrne](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@dkbyrne](https://discuss.pynq.io/u/dkbyrne)\
**Post date:** [November 12, 2019, 10:35am UTC](https://discuss.pynq.io/t/trouble-with-i2c-on-pynq-z2/655/1 "2019-11-12T10:35:49Z")

</div>

Hello, I have been having trouble using i2c on the Pynq board.

I am using the BME280 6 pin sensor. I am unable to detect it in i2c-detect from the linux terminal and unable to get information from it using the jupyter notebook I created based on the rpi base with the microblaze.

I have the pins connected to GPIO pins 2, 3 on the raspberry pi header and am using 10k pull up resistors.

Any advice on this topic would help. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [November 12, 2019, 6:06pm UTC](https://discuss.pynq.io/t/trouble-with-i2c-on-pynq-z2/655/2 "2019-11-12T18:06:38Z")

</div>

You won’t be able to detect it in linux terminal; it is only visible to your microblaze - I assume you are using the base overlay. There are examples of using i2c devices on rpi header. e.g.

> <https://github.com/Xilinx/PYNQ/blob/image_v2.5/boards/Pynq-Z2/base/notebooks/rpi/rpi_touchpad.ipynb>
