I have also had issues. I started with the qwiic connectors, and that didn’t work. I was using Nate’s library, and tried multiple codes. The code would hit the lines that checked if the sensor was active, and freeze:
if (sensor.begin() == false)
{
Serial.println(“Sensor does not appear to be connected. Please check wiring. Freezing…”);
while (1);
}
I then commented out the while(); (and added a small delay) just to force it to move on and show me what data it would take. I would then get zeroes for the data approx. 10 out of 11 times. But that one time, it would work (example below). I could move my hand across the sensor and it responded; it also would respond to various colors of light from my phone (i.e. the appropriate values would increase or decrease). Once it did work, it would continue working; the values would not spontaneously return to zeroes.
This <10% working-time happened with both re-uploading as well as simply hitting the UNO reset button. I then soldering in headers and tried the I2C there, and got the same result. I have only used 3.3V, never 5V. I have removed and reinstalled the library.
Any help would be appreciated.
AS7265x Spectral Triad Example
Sensor does not appear to be connected. Please check wiring. Freezing…
A,B,C,D,E,F,G,H,R,I,S,J,T,U,V,W,K,L
0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
…
0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
AS7265x Spectral Triad Example
Sensor does not appear to be connected. Please check wiring. Freezing…
A,B,C,D,E,F,G,H,R,I,S,J,T,U,V,W,K,L
0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
…
AS7265x Spectral Triad Example
A,B,C,D,E,F,G,H,R,I,S,J,T,U,V,W,K,L
16.54,112.41,283.59,174.29,321.45,435.27,388.18,290.40,680.18,119.49,225.43,60.01,35.70,26.54,54.24,40.33,6.49,5.95,
16.54,112.41,283.59,174.29,321.45,435.98,388.18,290.40,680.18,119.49,225.43,60.01,35.70,26.54,54.24,39.24,6.49,5.95,
16.54,112.41,283.59,0.00,321.45,433.86,387.29,289.11,677.84,119.49,225.43,59.66,35.70,26.54,54.24,39.24,6.49,5.95,
15.71,112.41,283.59,0.00,322.19,435.98,389.52,291.26,684.86,119.49,225.43,60.01,35.70,26.54,54.24,40.33,6.49,5.95,
16.54,112.41,284.49,0.00,322.19,435.27,389.52,290.83,683.69,119.86,226.46,60.01,35.70,26.54,54.24,40.33,6.49,5.95,
16.54,112.41,283.59,174.29,322.19,435.27,389.07,290.40,683.69,119.86,225.43,60.01,35.70,26.54,54.24,40.33,6.49,5.95,