2025-03-05 7:27 PM
Hello,
I am a beginner trying to create my first STM32 project using the STM32F407G Discovery Board. I am trying to receive audio input through I2S, delay one of the channels, and then output the result to the audio jack. I can get a simple sine wave to play through the headphones, but when I try to use two SPH0645LM4H-B microphones, I only get a beeping noise through the headphones. This even happens when I don't use the delay and simply try to play the microphone input through the headphones. Sometimes making noise near the microphones has an effect on the volume of the noise. I have the microphones connected just like it says to on the datasheet and I have been trying to fix the problem for weeks with no progress. Any help or suggestions would be greatly appreciated, I am coming up on a deadline for the project and I don't know what to do. I've attached the main file and the I2C drivers to this post. Thank you for any help!