Open renardeinside opened 1 year ago
Hi Ivan (@renardeinside ),
Do you have another way to test the I2C "Wire" interface? The TMF882X library defaults to using the "Wire" I2C interface. Maybe the XIAO has more than one Wire port (e.g. Wire1)? Do you have another I2C sensor you can try? Or can you run a Wire port scanner example - it should detect the TMF8821 at address 41 Hex, 65 Decimal?
I hope this helps, Paul
hi @PaulZC , it seems like your clues are correct. I'm not entirely sure what's happening under the hood, but I was able to identify the following behavior:
Wire.beginTransmission(address);
error = Wire.endTransmission();
The only thing I understand is that the issue is irrelevant to the sensor itself - it's somehow related to the way how shield attachment works with the Wire library.
Hi Ivan,
The I2C Scanner should still work when you attach the Shield (but do not attach the sensor). Please check your soldering and wiring. Is SCL or SDA shorted to GND (or 3.3V)?
Best wishes, Paul
Hi SparkFun team,
I have a project with the following hardware:
I was unable to find a quick and simple connector between Qwik and shield pins (not entirely sure what they're called), therefore soldered out the following (sorry for the image quality):
Now in my project, I'm trying to initialize the sensor as follows:
But on the serial output I see:
So I suppose that something is missing here. Probably I've misconfigured something. Any help would be appreciated, and please note I'm quite a beginner so any explanation or clue would be helpful.