Due to high demand, expect some shipping delays at this time - orders may not ship for up to 2-3 business days.
0

AS7341 i2c address clash with CLUE's APDS9660
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

AS7341 i2c address clash with CLUE's APDS9660

by kevinjwalters on Mon Jan 24, 2022 7:33 pm

I just plugged an Adafruit AS7341 into my CLUE using a STEMMA QT cable and found the library did not want to recognise it.

Code: Select all | TOGGLE FULL SIZE
>>> sensor = AS7341(i2c)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "adafruit_as7341.py", line 301, in __init__
RuntimeError: Failed to find an AS7341 sensor - check your wiring!


My wiring was fine - turns out my luck ran out and I've walked into my first i2c address clash with the CLUE's onboard APDS9960 light sensor at 0x39.

I'd like to use the AS7431 with a board with a colour display. I've never tried it but if the CLUE can't do hardware i2c on alternative pins on the edge connector then CircuitPython's bitbangio seems like an option if I want to go via the less elegant edge connector route?

It looks like the relatively large SparkFun Quiic MUX (multiplexor) is another solution to my problem if I want to still use the CLUE?

Have there been any thoughts on how to reduce the likelihood of users buying incompatible STEMMA QT combinations?

kevinjwalters
 
Posts: 1011
Joined: Sun Oct 01, 2017 3:15 pm

Please be positive and constructive with your questions and comments.