Following this guide, I have installed the 1.7.11 version of the Adafruit SAMD Boards, the Sensirion Core library version 0.6.0, and the Sensirion I2C SCD4x library version 0.4.0. I am running Windows 10 and Arduino IDE 2.1.0. After installing the new board drivers I did a restart of my machine to ensure the drivers were ready to use. With either board plugged in the IDE detects them as expected.
I tested the Metro 328 and the M4 Metro with the 01.Basics -> Blink sketch. Both had their lights respond accordingly.
I then started testing the Qwiic Shield and SCD-41 with the Sensirion I2C SCD4x exampleUsage sketch. With the shield attached to my Metro 328 the sensor initializes and works as expected and I can read the output via the Serial Monitor on 115200. However, when I put the Shield on the M4 Metro the sketch compiles and uploads, but I do not see output in the Serial Monitor. If I move the USB connection around it will randomly transmit the serial signals but all I get for messages are "Error trying to execute stopPeriodicMeasurement(): Received NACK on transmit of data" that message is from this block right after setting up the Serial and Wire connections
Code: Select all
error = scd4x.stopPeriodicMeasurement();
if (error) {
Serial.print("Error trying to execute stopPeriodicMeasurement(): ");
errorToString(error, errorMessage, 256);
Serial.println(errorMessage);
}