espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.48k stars 7.26k forks source link

peripherals/i2s_adc_dac unclear instructions (no output on earphones) (IDFGH-4257) #6109

Open shirogeek opened 3 years ago

shirogeek commented 3 years ago

Hello all,

I have a question (issue potentially ?) regarding peripherals/i2s_adc_dac. Upon successful compilation and flashing (output as expected on monitor) of the example, I cannot hear anything coming out of my earphones ( plugged as suggested in the example to GPIO25 26). I tried 3 pair of small earphones (need lower power than speakers ? or what is even considered a speaker, an active one ?) with no succes, all I can hear is white noise. Now I understand a DAC is not supposed to drive directly because of its low power output. But the instructions specify only the microphone needs to be amplified, not the speakers. The other example from ESP-ADFget-started/play_mp3_dac also suggests a similar setup, but I can't get that working at all as I don't have any of the boards mentioned and it won't work with mine (TinyPico). I received conflicting reports about people being able to drive their earphones from the GPIOs 25 26. Also, I do not care about quality or background noise as long as I can output something. Are the instructions clear and my understanding about DAC not being able to drivecorrect ? Or is there a need to specify that the speakers should be active ?

Thanks in advance

PilnyTomas commented 2 years ago

I would suggest using an external audio amplifier. Simply search your favorite electronics parts shop for "audio amplifier" and pick anything cheap. For example, I'm using one with PAM8403 and a potentiometer and it works ok.