Using a Qwiic Buzzer with a RedBoard Nano

I have already asked the same question, but it was not resolved.
So I will ask them one by one. Please help me until this situation is resolved.

question 1 : Is it possible to connect Qwiic buzzer to Redboard nano board using qwiic cable?
question 2: if yes to question 1, can I use qwiic buzzer example(from GitHub)?

The reason I ask this question is because, although this buzzer says, “ATtiny84 Pre-programmed with Custom Firmware”,
however, RedBoard Artemis Nano is based on Apollo3.

If it is ‘No’ to question2, please tell me how to use the buzzer in Apollo3 too.

The root cause is clockstretching which an ATtiny84 does (and some other devices). about 3 years ago I did a deep-dive on this issue. In attached document a write-up with detailed information.
The short answer: The way to get the scanner to work correctly with an Apollo3 is a small change in the sketch example5
change on line 107 /108 :

    Wire.beginTransmission(address);
    error = Wire.endTransmission();

to

    Wire.beginTransmission(address);
    Wire.write(0x21);    // add writing a dummy byte
    error = Wire.endTransmission();

I2C_clock_stretch.pdf (1016.1 KB)

1 Like

Thanks paulvha~!