arduino-audiokit icon indicating copy to clipboard operation
arduino-audiokit copied to clipboard

LyraT 4.3 PA chip works with headphone plugged in

Open hhemmati81 opened this issue 1 year ago • 4 comments

Problem Description

I don't know if this falls under the audiokit repo or your audio-tools but I am having issues with the L/R speakers on the LyraT 4.3. They only activate when I plug a headphone in. Shouldn't this be the other way around?

Device Description

LyraT 4.3

Sketch

Using player-sd_a2dp-audiokit example from audio-tools

Other Steps to Reproduce

No response

Provide your Version of the EP32 Arduino Core

No response

I have checked existing issues, discussions and online documentation

  • [X] I confirm I have checked existing issues, discussions and online documentation

hhemmati81 avatar Dec 06 '23 20:12 hhemmati81

In Audiokit.h you should find the line in the begin method, that activates the speaker. By default the output should go to both the speaker and to the earphones.

pschatzmann avatar Dec 07 '23 05:12 pschatzmann

After reviewing it a bit further it looks like your code is working properly but something is wrong with the way LyraT is handling the audio. The L channel has about half the volume and the R channel has about maybe 10% audio. Now if I short out the pins on the headphone jack I get full audio from both L and R. The amp seems to be software-controlled but something is definitely not right about it unless I have a defective board.

hhemmati81 avatar Dec 08 '23 23:12 hhemmati81

It might be a power issue?

Did you try to select a dac_output value, that would use not both lines?

pschatzmann avatar Dec 09 '23 10:12 pschatzmann

I think my issue is related to this https://esp32.com/viewtopic.php?t=12407 since I am using the Line-in for audio input. I haven't tried to remove the caps as people suggested but I added a couple of 4ohms to short out the headphone jack L/R. It has solved the audio level issue for me and has significantly improved the sound quality as well.

I haven't tried using A2DP as a source yet to see if it is going to work with that as well since I haven't been able to figure out how to make it work with WiFi.

I have to have WiFi on since that's how I communicate with my app and the A2DP that comes with the audio-tools causes a core panic. I used to use the standalone A2DP package before I moved to the LyraT and I didn't have any issues with that one running together with WiFi.

hhemmati81 avatar Dec 10 '23 00:12 hhemmati81