Novice - stream mic to amp #1925
-
I'm starting a project, utilizing two INMP441 mics, two MAX98357 amps and a Seeed Studio XIAO ESP32-S3. Basically, I want to stream each mic directly to the corresponding speaker, L & R. I connected a single mic and amp for the initial testing. Using examples online, I can see that the mic is working. However, I haven't gotten any sound out of the amp, with a pair of earbuds connected to the amp output. I also tried a different amp, with the same connections - no sound, but I do get a slick 'click' sound in the earbud if I disconnect/connect the amp VDD connection to 3V3 or 5V. Wiring is set up with shared I2S WS and CLK, and a separate GPIO for the data in/out. I loaded up the example from this library to stream i2s-i2s, modified the GPIO assignments in the sketch and uploaded it. I only see constant scrolling for the streamcopy. I get the exact same from the streams-generator-i2s example (I added the pin configs). Pins are: XIAO -> INMP441 What am I missing? Again, these are the provided examples, with only the pin assignments changed |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Just follow these recommendations in the Wiki |
Beta Was this translation helpful? Give feedback.
-
I disconnected everything and only hooked up a single MAX98357A. I opened the streams-generator-i2s code, modified the pin assignments and uploaded it. No sound whatsoever. I honestly don't know what I'm missing. I have double/triple checked, completely rewired, double/triple checked again. No sound. LRC -> D10 (gpio09) Serial monitor output (scrolls nonstop): This is the code I uploaded: `#include "AudioTools.h" AudioInfo info(44100, 2, 16); // Arduino Setup // start I2S // Setup sine wave // Arduino loop - copy sound to out |
Beta Was this translation helpful? Give feedback.
-
This is wrong for output TX: It should be config.pin_data = 6; or config.pin_data_tx = 6; |
Beta Was this translation helpful? Give feedback.
Just follow these recommendations in the Wiki
Also don't ignore the Wiki ADC information