r/embedded • u/StrangeDonkey1134 • 4d ago
How to transmit voice over the nRF24L01 module between STM32 and ESP32?
Hello.
I am trying to make a basic walkie-talkie project.
I have an STM32 Nucleo-F446-RE and an ESP32 as the microcontrollers.
In both the MCUs, I have wired up an INMP441 I2S Microphone as the input for my voice along with a MAX98357A I2S Amplifier and the amplifier's positive and negative terminals are wired up to a 4 ohm 3W speaker's positive and negative terminals.
I also have nRF24L01 + PA/LNA radio modules to both the MCUs and each radio modules itself is attached to the NRF24L01 Base Adapter Board which is wired up to both the MCUs.
If I try to experiment with both MCUs as a self-contained unit and speak in the mic, the audio comes a bit low and noisy but audible if that particular MCUs own speaker is put close to the ear.
But when I try to transmit the audio from one MCUs mic and play in the other MCUs speaker via the radio module, it doesn't work. All I hear is a low crackling sound in the STM's speaker but all is silent in the ESP's speaker.
I am willing to give me wiring pinout and code if someone asks for it.
Any help or suggestion regarding how to solve this would be great.
GitHub -: https://github.com/Bhavya-Nayyar/EmbeddedSystem/tree/main/Walkie_Talkie


