I seem to be having some interference from an alphanumeric display when playing mp3 files with the mp3 trigger.
Setup:
Redboard qwiic (DEV-15123) power via usb connection to computer
Qwiic real time clock module (BOB-16281), INT connected to D2 on redboard
Qwiic Alphanumeric Display (SPX-16427)
Qwiic mp3 trigger (DEV-15165) connected to speaker (COM-09151)
Whenever I play anything on the mp3 trigger (via mp1.playFile()) I hear a buzzing sound coming from the speaker along with the mp3. It I remove the alphanumeric display, I no longer hear the buzzing with playing a mp3.
I tried changing the order the qwiic components were connected, adjusting the brightness on the display, and changing how many segments were lit on the display. None of that seem to affect the amount of noise.
If I remove the speaker and use headphone jack I no not hear the buzzing.
I’m not really sure what might be causing this unfortunately.
Software wise there isn’t any reason why activity on the bus would be causing noise on the Qwiic MP3 Trigger. The only thing I can think of to try would be to move the components around or change the order they appear on the I2C bus to see if that helps. Keep the display as far away as possible from the MP3 Trigger and if that still won’t work, you might have to use an external amp connected to the headphone socket.
The display is a multiplexed display, so it is drawing quite a bit of current, and the current changes as each digit get scanned. This could easily bounce the voltage on the qwiic bus, and since the mp3 trigger is also powered from that bus, it could be affected. Long lengths of 28AWG qwiic wires won’t help.
Two things I would try:
Add some bulk capacitance to the display, say 470uF or so
Use PRT-14425 and power it from the Arduino directly; this way the mp3 board should get cleaner power