Hey! If your VEML7700 works directly on the Pi but not through the TCA9548A, it’s likely the channel isn't being selected correctly.
Make sure to enable the TCA channel before accessing the sensor:
bus.write_byte(0x70, 1 << channel) # e.g., channel = 2
Then scan with i2cdetect or try accessing the sensor normally.
Check wiring too—sensor should be connected to the correct C# output on the TCA.
For a quick visual guide, search “TCA9548A Raspberry Pi” on YouTube—there are solid walkthroughs.
Make sure to enable the TCA channel before accessing the sensor:
bus.write_byte(0x70, 1 << channel) # e.g., channel = 2
Then scan with i2cdetect or try accessing the sensor normally.
Check wiring too—sensor should be connected to the correct C# output on the TCA.
For a quick visual guide, search “TCA9548A Raspberry Pi” on YouTube—there are solid walkthroughs.
Statistics: Posted by fatirsahi — Sun Jun 22, 2025 11:16 am