TERRIBLE noise with basic sine wave example on XIAO ESP32 C6 #1921
-
I have a XIAO ESP32C6 + a MAX98357 I2S Amplifier board. I uploaded this sine wave example to it (with minor modifications):
The result is rather interesting 😉 I get a ultra loud terrible noise from the speaker, which sounds nothing like a sine wave (more like a broken vintage radio). So I guess I must be doing something fundamentally wrong... Can anyone help? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Not sure what the MAX39857 would be: google does not provide any information. Did you read the Wiki about DACs ? |
Beta Was this translation helpful? Give feedback.
-
I also had some troubles getting a decent result with a MAX98357 - with the gain pin not connected, and config.i2s_format = I2S_LSB_FORMAT, it runs fine now. You could also test generating the sine with sineWave(6000) - when I had the gain pin connected to achieve +3dB gain, this seemed to be the max I could get before the sound really got distorted. |
Beta Was this translation helpful? Give feedback.
Not sure what the MAX39857 would be: google does not provide any information.
Did you read the Wiki about DACs ?
My guess would be that you just provide the wrong i2s_format.