CoretechR / Retro-Audio

Portable MP3 Player for Music and Audiobooks
https://hackaday.io/project/185994
GNU General Public License v3.0
126 stars 21 forks source link

Question gain #6

Closed olup closed 10 months ago

olup commented 10 months ago

Hi, I am using your schematics as an inspiration to design an audio product, and I am wondering where is the GAIN management (and SD_MODE). The label in the sheet goes nowhere:

image

Could you give some detail about it ?

Many thanks !

CoretechR commented 10 months ago

Hi the gain is fixed to around 8dB by leaving the pin floating.

image

The audio volume is set via the i2s data. That's handled by the i2s library.

olup commented 10 months ago

Many thanks. Same for the SD MODE ? You leave it floating for channel mixing ?

May I ask what is your experience with the max98357a with the headphones ? Is that good enough ?

Finally, I was meant to ask - what is the speaker you used in your project ? Are you happy with it ?

CoretechR commented 10 months ago

Yes, the SD mode is set to mono audio, because there is only one audio driver. I built this mainly for listening to audiobooks and that works very well even with the internal speaker. But the audio quality is not so great. As there are only 21 volume levels, you really only have 5 or so levels for headphones because they are louder. It really depends on what you want to make.

olup commented 10 months ago

Indeed - I am making a story/podcast player. I guess this does the trick nicely then. Any Intel on the speaker part you used ? I am considering the options.

Thanks a lot anyway

CoretechR commented 10 months ago

No problem, this is the speaker I used: https://www.mouser.de/ProductDetail/490-CDS-40304-L100

olup commented 10 months ago

Thanks again. Is that fine if I use this channel for a few more questiosn ?

For instance, to keep a wide array of gain in the headphone mode, could I plug the GAIN pin of the max on a esp32 gpio to programmatically change the gain multiplier (GPIO low acting as GND connexion - high as VCC) ?

Another one - you seemed to have use SPI interface for the SD over sdmmc - is that fast enough in your experience ?

Thanks again