Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record and playback without Mic on ES8388 #31

Open
gerthalberg opened this issue Oct 22, 2021 · 18 comments
Open

Record and playback without Mic on ES8388 #31

gerthalberg opened this issue Oct 22, 2021 · 18 comments

Comments

@gerthalberg
Copy link

Does anyone know the configuration for recording and playback from the line-in jack - without having the microphones active also. That is short of desoldering the microphones?

@afaber999
Copy link

Hi I got the same question, when I select channel 1 I get MIC1 and MIC2 and Line1 mixed, when selecting channel 0, I get MIC3/MIC4 (which are not populated on my board, but hear that input is active when I touch the PCB pads with my fingers)

@gerthalberg
Copy link
Author

Good info, then maybe I can solder a new line in jack to those pads

@xuhongv
Copy link
Member

xuhongv commented Nov 8, 2021

did you solve it ?

@gerthalberg
Copy link
Author

No - Haven't had the time yet.

@xuhongv
Copy link
Member

xuhongv commented Nov 12, 2021

we update the readme document.

@pschatzmann
Copy link

pschatzmann commented Dec 15, 2021

I have the same issue and don't find any update!
If I select AUDIO_HAL_ADC_INPUT_LINE2, I also get both the microphone and line in. With AUDIO_HAL_ADC_INPUT_LINE1 I don't get any input at all. I was double checking Register 10 - but it is set up correctly.

https://www.pschatzmann.ch/home/2021/12/15/the-ai-thinker-audiokit-audio-input-bug/

@GillesLACAUD
Copy link

Same issue for me :-( . I have route the ADC line2 in the register ADC CONTROL2 and on some board this seem to work fine...but with new board now a have also the MIC in the audio input . It is a ESP32-A1S 2974.
@xuhongv please could you send a link to this readme document and tell us if we can have only the line input and how to set this.

@TakesTheBiscuit
Copy link

+1

@johermohit
Copy link

did anyone solved it yet?

@GillesLACAUD
Copy link

Yes i have solved this....i have bypass the mic, just sold the 2 pins of the mics.
It is an hardware issue on the board, you can't have only the line in .

@massa007
Copy link

Would be great if anyone could pls upload an example code for recording and saving to SD! Fighting with this board for a while already...

@KlausMu
Copy link

KlausMu commented Apr 23, 2023

Some time ago, this worked for me:
https://randomnerdtutorials.com/esp32-microsd-card-arduino/

Instead of
if(!SD.begin(5)){
you need
#define CS 13
#define MOSI 15
#define MISO 2
#define SCK 14
SPIClass spi = SPIClass(HSPI);
spi.begin(SCK, MISO, MOSI, CS);
if(!SD.begin(CS, spi, 4000000)){

@massa007
Copy link

Thanks a lot! I got the SD part working but I’m mainly struggling with utilizing the microphones.. I can play stuff from SD but how do I use the mics?

@KlausMu
Copy link

KlausMu commented Apr 23, 2023

Never tried it, but here you can find an example for using microphones:
https://github.com/pschatzmann/arduino-audiokit

@massa007
Copy link

That’s my missing part!! Awesome :)
Thanks a lot!!

@pschatzmann
Copy link

The AudioKit is just a HAL for the Audio Tools Library. You will find there much more and examples....

@Jerzeek
Copy link

Jerzeek commented Mar 9, 2024

There is a great discussion about this problem on @pschatzmann's website: https://www.pschatzmann.ch/home/2021/12/15/the-ai-thinker-audiokit-audio-input-bug/ here someone suggested moving 2 capacitors, I tried this and it worked perfectly!
Thank you Phil!

@schrab
Copy link

schrab commented Oct 27, 2024

ESP32-A1S cap mod
In my case after moving caps there's still signal from line in, so I've also removed two caps marked with blue. Now I have separate stereo line-in and microphones.
Also Line-in jack have swapped L/R channels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests