0

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

2

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

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

Your Answer

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

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