ESP32 Audio Kit AC101 codec failure - Get synthesizer projects working based on ES8388

  Рет қаралды 4,772

Marcel Licence

Marcel Licence

Күн бұрын

Пікірлер: 58
@marcellicence
@marcellicence 3 жыл бұрын
Some comments are filtered by KZbin somehow. Please check if it is visible. I can see that sometimes comments are written but I don't have any access to read the complete comment. In addition to that the comment will also not appear below the video =(
@crazylp2763
@crazylp2763 3 жыл бұрын
Seems like my comment is not visible. Probably because it contains links, smh KZbin... But here again: Thank you so much for porting the ES8388 to Arduino! Tried the esp-adf framework from espressif, but Arduino is still far better for fast prototyping. A spec sheet from Ai-Thinker does not have a reference to those pins (IO32 & IO33), seems like they are also not exposed. This sheet can be found via "esp32-a1s_v2.3". The LyraT 4.3 board from expressif seems to use those for simple IO. Was thinking about combining your sampler with a sequencer, I think that this combination is great for this board. But I have to see as how far I will come with this... Thank you again!
@marcellicence
@marcellicence 3 жыл бұрын
I've seen in my notifications that another comment was filtered (I guess links are not allowed). But yes the I2C scanner does also help if you also using the correct SDA, SCL pin configuration. There is also some discussion in the discussion area on GitHub.
@gerthalberg9735
@gerthalberg9735 3 жыл бұрын
Thanks, same probem as CrazyLP. I tried to add a link to Faust github as they have an ES8388 driver for ESP32. Faust can in fact generate code to run on the ESP32 - in case you didn't know.
@John2009R
@John2009R 2 жыл бұрын
Very impressive. I found this video looking for technical info on using the board but stayed for the synth demo. I have ordered one of these boards for a much simpler app but didn't realize there were different versions. I'll have to see what arrives.
@marcellicence
@marcellicence 2 жыл бұрын
Thank you very much! Please let me know if you get a new version. I tried to cover some more I2C and I2S configurations on GitHub.
@IrregularShed
@IrregularShed 3 жыл бұрын
This is very interesting, thank you for your work! The ES8388 is also used on the ESP-LyraT boards, which I believe is Espressif's reference board for audio development (I have one but haven't done much with it yet because ESP-ADF is scary!)
@marcellicence
@marcellicence 3 жыл бұрын
I've seen the LyraT boards. But I think they are a bit expensive in comparison. The processing power is still the same. It would be possible to port parts of the ESP-ADF to use it in arduino.
@Slider2732
@Slider2732 3 жыл бұрын
Good detective work. The 2x AudioKit here were bought recently for your projects, both have blank copper antennas. Both work with the original AC101 code. Interesting screen info on the left. ILI9341? Thanks for another weekend update :)
@marcellicence
@marcellicence 3 жыл бұрын
You are welcome =) Yes its a IL9341. But it takes a lot of time to swap a complete image. I found some 320x240 windows screenshots online xD
@gerthalberg9735
@gerthalberg9735 3 жыл бұрын
@@marcellicence There's a considerable time difference between using the Adafruit screen driver and TFT_Espi. Suggest you give it a try - also doesn't need addition libraries.
@NicholasRadina
@NicholasRadina Жыл бұрын
Excellent work! Thanks!
@marcellicence
@marcellicence Жыл бұрын
Thank you! You are welcome 😀
@fabiendostie
@fabiendostie 2 жыл бұрын
which pin should i use for Midi In? RX0 doesn't seem to work for me: ive used : #define MIDI_PORT2_ACTIVE #define MIDI_RX2_PIN 03 /* U2RRXD */ #define MIDI_TX2_PIN 01 esp32 a1s ES8388 codec. thanks in advance
@marcellicence
@marcellicence 2 жыл бұрын
RX0 and TX0 are used for the serial interface, programming, debug messages. You can use RX2 (PIN 16) with the ESP32 DOIT Devkit. In your case using the ESP32-A1S you can use another free pin which is not used by I2C, UART0, etc.. Hope this helps
@gilleslacaud
@gilleslacaud 3 жыл бұрын
Same Issue for me with the codec. Now i have an ES8388 codec but the I2C is on 33/32 pins (not 18/23) and i am not sure for the I2S connections...But the I2C init work fine.All the schematics in the AI web site show an I2C at 18/23 for Es8388...i am pretty sure their schematics are not update.
@chinjuassish
@chinjuassish Жыл бұрын
Dear Sir, Thank you for your video, it was very helpful. I am using the Esp32 AI thinkers Audiokit V2.2 board. Could I use an external microphone and record the sound as well as listen to it in headphones? any Arduino code for the same is available? Sir, kindly help me
@marcellicence
@marcellicence Жыл бұрын
It might depend a little bit of your board version. In general I think you can use the external input for dynamic microphones (I am not sure if the internal amplifier of the codec is good enough). Another option would be to remove the on board microphones and connect a wire to the pads.
@chinjuassish
@chinjuassish Жыл бұрын
@@marcellicence " Thanks for the reply , i will try this way "
@marcellicence
@marcellicence 3 жыл бұрын
Quick update: it looks like that a new revision using the ES8388 with another pinout is on the market. I2S_BCLK is connected to IO27 instead of IO5 😵
@brianharper9798
@brianharper9798 2 жыл бұрын
Marcel, HELP I'm really struggling with this. Not quite sure which version board I have, I do know there is a device attached on 32,33 when I run scan code. But if I try to run your code all I get is- Initialize Synth Module Initialize I2S Module Connect to ES8388 codec... 0x00: 0x00 0x01: 0x00 Failed! I feel I'm just missing somthing simple, I just can't see it. many thanks......
@marcellicence
@marcellicence 2 жыл бұрын
@@brianharper9798 When running the scanner you will get also the I2C address of the found device. This helps also to identify the right codec.
@brianharper9798
@brianharper9798 2 жыл бұрын
@@marcellicence Not at the PC at the moment but I think it reports address hex 10.
@marcellicence
@marcellicence 2 жыл бұрын
@@brianharper9798 Hm 0x10 sounds like ES8388. I would recommend to check if SDA and SCL in the scanner are really 32, 33 and also that the ES8388 driver is using the same setting.
@brianharper9798
@brianharper9798 2 жыл бұрын
@@marcellicence yes definitely on 32,33 on the scanner. Not 100% sure of all the configuration settings in your software. Thanks....
@gerthalberg9735
@gerthalberg9735 3 жыл бұрын
Marcel, thank's for the video. I need to confirm but it probably means that I have an extra audio kit. I received one that couldn't initialize the codec and got a refund. I suspect that I received an ES8388.
@marcellicence
@marcellicence 3 жыл бұрын
You are welcome. Yes it looks like recent delivered Audio Kits have are equipped with the ES8388 (ESP32-A1S containting the ES8388 instead of AC101). The I2C scanner helps to ensure which codec is placed on the hardware.
@marcellicence
@marcellicence 3 жыл бұрын
By the way, I can see a little preview of your comments you've made before (but just a short snippet). I think they were blocked automatically. I cannot read the complete comment. If you use GitHub feel free to use the discussion are =)
@MrNoorino
@MrNoorino 2 жыл бұрын
mine v2.2 3378 has working successfully on port scl 32,sda 33, The bit clock 27, Word select LRCK 25, Data out 26, data in 35
@huangkun4527
@huangkun4527 3 ай бұрын
Thank you for your open-source project. I've encountered some issues. After uncommenting the es8388 in the esp32_midi_sampler, I received the following error message: Connect to ES8388 codec... SDA: 18 SCL: 23 freq: 400000 0x00: 0x00 0x01: 0x00 Failed! It may be possible that SCL and SDA are incorrect In boards/board_audio_kit_es8388.h you can change the define ES8388_CFG_I2C to use another pin setting 0x00: 0x00 0x01: 0x00 What could be the reason for this?
@marcellicence
@marcellicence 2 ай бұрын
You are welcome. It looks like a wrong I2C setting. I put some options into the header file which can be selected (You will find some defines at the top of the file to select a configuration: github.com/marcel-licence/ML_SynthTools/blob/main/src/boards/board_audio_kit_es8388.h) Hope this helps
@muctex
@muctex 2 жыл бұрын
thanks a lot🙏🙏🙏
@marcellicence
@marcellicence 2 жыл бұрын
You are welcome 😄
@MrNoorino
@MrNoorino 2 жыл бұрын
Mic and line in being one line this is very confusing for me too, hahaha
@marcellicence
@marcellicence 2 жыл бұрын
After that video I recognized new variations of the Audio Kit xD
@MrNoorino
@MrNoorino 2 жыл бұрын
@@marcellicence Please can you explain this, to select input between mic and line
@MrNoorino
@MrNoorino 2 жыл бұрын
What register should I send to ES8388
@marcellicence
@marcellicence 2 жыл бұрын
@@MrNoorino In ES8388.ino in some of my projects there is some volume control implemented. In addition to that you will find ES8388_SetInputCh and ES8388_SetMixInCh. The file is a bit messy but I think it might help. I used this for testing.
@marcellicence
@marcellicence 2 жыл бұрын
@@MrNoorino It seems that on some hardware the mic is connected to the same input than the line in of the ES8388
@arscreativebekasi1941
@arscreativebekasi1941 3 жыл бұрын
Thanks sir. .
@marcellicence
@marcellicence 3 жыл бұрын
You are welcome
@arscreativebekasi1941
@arscreativebekasi1941 3 жыл бұрын
Next Request soundfont .... Hahahaha....
@marcellicence
@marcellicence 3 жыл бұрын
@@arscreativebekasi1941 Still in progress xD
@arscreativebekasi1941
@arscreativebekasi1941 3 жыл бұрын
❤️❤️❤️🤩
@marcellicence
@marcellicence 3 жыл бұрын
@@arscreativebekasi1941 Perhaps you happened to recognize the sounds used in this video. =)
@hastyman
@hastyman 4 ай бұрын
Hi there. I really want to make this a successful project, but I'm having difficulty getting the program to compile. I keep getting the same error message. Any thoughts or tips? I've checked just about everything I can think of, even a websearch, and I can't seem to figure this out. This is with the AI Thinker es8388 board. Arduino/libraries/ML_SynthTools/src/i2s_interface.h:534:15: error: 'PIN_CTRL' was not declared in this scope 534 | REG_WRITE(PIN_CTRL, 0xFFFFFFF0);
@marcellicence
@marcellicence 4 ай бұрын
Hi thank you for your message. Which ESP32 Board Version do you use in Arduino?. You can try to comment out the line to get rid of the error. I am not sure if I need some replacement for the line there.
@hastyman
@hastyman 4 ай бұрын
@@marcellicence that was a super helpful suggestion. I've never been so happy to look at my serial monitor output. Initialize Synth Module Initialize I2S Module Connect to ES8388 codec... SDA: 27 SCL: 28 freq: 400000 Next step... figure out where to hook up the MIDI input, none of my visibile pins match anything I'm expecting to find. Back to the readme files! Thanks again.
@marcellicence
@marcellicence 3 ай бұрын
@@hastyman Did you get audio with this change? I would be happy to update my library. Please let me know if information is missing. I am happy that you could make progress =)
@hastyman
@hastyman 3 ай бұрын
@@marcellicence not yet. I'm tyring to get my MIDI connection sorted. I can't tell if the RX0 pin is incapable of communicating, or if my 6N138 is bad. The Audio Kit board is neat, but does not have a lot of available pins to choose from so I'm trying to read and compare.
@marcellicence
@marcellicence 3 ай бұрын
@@hastyman You can use any pin you want as MIDI input. RX0 might be connected to the UART via USB which can lead into issues when connecting a second source to it.
Playing around with the ESP32 A1S Module
20:00
NA5Y
Рет қаралды 8 М.
Бенчик, пора купаться! 🛁 #бенчик #арти #симбочка
00:34
Симбочка Пимпочка
Рет қаралды 3,9 МЛН
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 2,7 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
SISTER EXPOSED MY MAGIC @Whoispelagheya
00:45
MasomkaMagic
Рет қаралды 18 МЛН
ESP32 DIY polyphonic MIDI synthesizer module for Arduino
9:46
Marcel Licence
Рет қаралды 30 М.
Sounds mit dem ESP32 ausgeben - Klingel-Gong, TTS und mehr
17:11
haus:automation
Рет қаралды 30 М.
ESP32 A1S. Placa desarrollo
4:04
Los Inventos de Almogu
Рет қаралды 637
ESP32 A1S with Arduino Audio Tools
17:07
NA5Y
Рет қаралды 6 М.
#195 DIY Internet Radio using an ESP32 (Arduino IDE)
16:51
Andreas Spiess
Рет қаралды 324 М.
ESP32 and PCM3060 with Arduino Audio Tools
23:20
NA5Y
Рет қаралды 4 М.
Бенчик, пора купаться! 🛁 #бенчик #арти #симбочка
00:34
Симбочка Пимпочка
Рет қаралды 3,9 МЛН