I am learning to use I2S/PCM to drive speakers with the ESP32-C3-WROOM-02-N4, and I am using an IC to accomplish the DAC and amplification. The IC is the Adafruit I2S 3W Class D Amplifier Breakout - MAX98357A, and I am using it to drive the 931-SPKM.10.8.A-ND from Taoglas Limited.
I have the ESP32 communicating with the IC using I2S, the speaker connected to the output terminal of the IC, and a power supply powering both the ESP32 and IC through a breadboard connection at 5 VDC.
When I transmit a signal to operate the speaker with a 1 kHz sinusoid, I am picking up a 2 kHz, 0.2 Vpp ripple across the + and - rails of my power supply (see image below). This behavior also occurs if I power the ESP32 with a USB cable and power the IC with one of the ESP32 pins.
What could be the reason for this ripple in the voltage?