ESP32 S3 and ES8388 #2
-
Hi!
|
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 6 replies
-
In your sketch the sout begin call is missing. I suggest to use this sketch, which is much simpler as starting point. Please also update the audio-tools and the audio-driver library since there were quite a lot of changes lately |
Beta Was this translation helpful? Give feedback.
-
No, that's not how things work: the audio signal is in all cases sent out via the i2s interface. The I2SCodecStream sets up both: i2s and the codec and when you write data to it, it gets forwarded to or from i2s (of the codec) The i2s connection can be douplex: you can write to the DAC and read from the ADC of the codec. If you want a reading sketch you just copy from the I2SCodecStream to the output (e.g. csv) |
Beta Was this translation helpful? Give feedback.
-
I'm starting to play with this new library too. I thinkis a wonderfull idea, anyway i'm trying the sample: [examples/audiotools/audiotools-standard](url) 9:56:17.337 -> [D] StreamCopy.h : 97 - copy I'm doing something wrong or maybe the library is still work in progress? |
Beta Was this translation helpful? Give feedback.
-
You are right missing call to begin on GeneratedSoundStream |
Beta Was this translation helpful? Give feedback.
-
Hi, Phil , I am also working on exact same setup i.e. esp32 s3 with es8388, with Hardware and software with below code Based on audiotools-custom-max sketch with few changes -
Thank you for sharing this library. JAY |
Beta Was this translation helpful? Give feedback.
-
Hi @pschatzmann I wanted to connect es8388 to esp32 s3 and I am interested in raw data from i2s,
So after setting i2c and codec and i2s can we use
or do I need to use audio-tools library ? |
Beta Was this translation helpful? Give feedback.
-
No, you don't need the AudioTools library, but I would strongly recommend to use it. The I2S API that you mention is obsolete and when you upgrade the ESP32 core to > 3.0, it will not work any more... ps. this library just sets up the codec chip and not I2s: so you will still need to do this yourself if you don't use the AudioTools CodecStream or AudioBoardStream |
Beta Was this translation helpful? Give feedback.
-
Hi Phil, @pschatzmann I am using Wire for an i2c sensor (BMA400 accelerometer) and for ES8388 driver I am doing,
In this case none of them works i.e. i2c can't find ES8388 and BMA400 , They works fine separately, |
Beta Was this translation helpful? Give feedback.
-
You would need to analyze why this is not working: Activating leg level debug in the Arduino Tools menu might give some hints. Or you can just use separate connections with the predefined Wire and Wire1. |
Beta Was this translation helpful? Give feedback.
-
Hi, Phil @pschatzmann
This happens only when Already Wire is initialized by other sensor library. |
Beta Was this translation helpful? Give feedback.
In your sketch the sout begin call is missing.
I suggest to use this sketch, which is much simpler as starting point.
Please also update the audio-tools and the audio-driver library since there were quite a lot of changes lately