I am trying to interface more than one sensor with Raspberry Pi Zero W, which communicate using i2c interface.

So far I am able to connect sensor to dedicated i2c and read the data.

Want to know how I can setup software i2c on RPi ZW GPIO pins (any) to connect sensor to my choice of GPIO. I am aware of i2c-gpio kernel module in raspbian, but how can I use it from python.

1 Answer 1


i2c devices can be 'daisy chained' so you only need 2 pins:

enter image description here

Use 'i2cdetect -y 1' to list the addresses of each device:

enter image description here

  • How can I interpret address like this TSL2561: 0x39(57). If 0x39 is TSL2561 address, then what is (57) in this case ?
    – rp346
    Commented Feb 13, 2019 at 15:27
  • 1
    39 in hex is 57 decimal
    – CoderMike
    Commented Feb 13, 2019 at 15:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.