AI-Thinker A1S Audioboard

Recurrent H/W and software problems
RonS
Posts: 115
Joined: Thu Mar 02, 2023 10:15 pm
Location: germany
Has thanked: 64 times
Been thanked: 23 times

Re: AI-Thinker A1S Audioboard

Post by RonS »

Ok what do you say when I tell you that the board works now !!!!!
Have doing the effect again-change from Arduino to Annex without the power off..?????!!!!!
now it runs is this possible? with your theory?

after power off and one again.. nothings to hear anymore
Modules : 3xESP32-Cam MB (Chip"DM ESP32 S" ),AI-Thinker Audio Kit (ES8388), ESP32 Dev Kit with Display
User avatar
cicciocb
Site Admin
Posts: 1900
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1271 times
Contact:

Re: AI-Thinker A1S Audioboard

Post by cicciocb »

Interesting. Maybe the gpio0 must be simply put to high
RonS
Posts: 115
Joined: Thu Mar 02, 2023 10:15 pm
Location: germany
Has thanked: 64 times
Been thanked: 23 times

Re: AI-Thinker A1S Audioboard

Post by RonS »

hmmm did you read this ? posted the link obove too:

https://pcbartists.com/firmware/stm32-f ... -i2c-setup

Quote:
"MCLK Requirements Many codecs will not communicate via I2C if an MCLK signal is absent! ES8388 does not need MCLK for I2C operation though"

There the initiation is simply described but I need something to start
Modules : 3xESP32-Cam MB (Chip"DM ESP32 S" ),AI-Thinker Audio Kit (ES8388), ESP32 Dev Kit with Display
User avatar
cicciocb
Site Admin
Posts: 1900
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1271 times
Contact:

Re: AI-Thinker A1S Audioboard

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Wed Mar 22, 2023 8:20 pm hmmm did you read this ? posted the link obove too:

https://pcbartists.com/firmware/stm32-f ... -i2c-setup

Quote:
"MCLK Requirements Many codecs will not communicate via I2C if an MCLK signal is absent! ES8388 does not need MCLK for I2C operation though"
The ES8388 is a codec (not a simple DAC) and it has I2C / I2S and SPI interfaces
The statement above is about the I2C and not the I2S!

I did a quick look and it is not only a question of MCLK but the driver for the ES8388 must be integrated as it must be programmed before using it as a DAC using I2C commands
RonS
Posts: 115
Joined: Thu Mar 02, 2023 10:15 pm
Location: germany
Has thanked: 64 times
Been thanked: 23 times

Re: AI-Thinker A1S Audioboard

Post by RonS »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Thu Mar 23, 2023 10:30 am
I did a quick look and it is not only a question of MCLK but the driver for the ES8388 must be integrated as it must be programmed before using it as a DAC using I2C commands
That's exactly what I've been trying to say all the time.
Modules : 3xESP32-Cam MB (Chip"DM ESP32 S" ),AI-Thinker Audio Kit (ES8388), ESP32 Dev Kit with Display
User avatar
cicciocb
Site Admin
Posts: 1900
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1271 times
Contact:

Re: AI-Thinker A1S Audioboard

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Thu Mar 23, 2023 12:35 pm That's exactly what I've been trying to say all the time.
And what I'm trying to say is that it is not supported :roll:
User avatar
cicciocb
Site Admin
Posts: 1900
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1271 times
Contact:

Re: AI-Thinker A1S Audioboard

Post by cicciocb »

Hi RonS,
try this version and let me know.
I included an experimental support for the ES8388 CODEC.
This version has the LITTLEFS so, if you are using an old version with FFAT, make a backup of the files before.
You do not have the required permissions to view the files attached to this post.
RonS
Posts: 115
Joined: Thu Mar 02, 2023 10:15 pm
Location: germany
Has thanked: 64 times
Been thanked: 23 times

Re: AI-Thinker A1S Audioboard

Post by RonS »

many thanks Ciciocb i will try it..

I have not been idle in the meantime and have dealt with the configuration and its settings via I2C, but I have not yet had any success in reading and writing the I2C addresses
and since this morning we have no telephone and no cable internet here - that should take until this evening
No one can currently shop or refuel with a cash card

I'll get back to you when everything goes again and I can continue here
greetings Ron

PS ;Would this example work or do I have a syntax or other errors in it??
--------------------------------------------------------------------------------------------------------------
' Define ES8388 I2C address ( ist angegeben : 0x20 or 0x22)??
es8388_addr = &h20
i2c.setup 33, 32, 400000
' Set up ES8388 registers via I2C
I2C.Begin(es8388_addr)

' Read and print some ES8388 registers
print "Register 0x02: "; Hex$(I2C.ReadRegByte(es8388_addr, &h02))
print "Register 0x03: "; Hex$(I2C.ReadRegByte(es8388_addr, &h03))
print "Register 0x04: "; Hex$(I2C.ReadRegByte(es8388_addr, &h04))
print "Register 0x05: "; Hex$(I2C.ReadRegByte(es8388_addr, &h05))
print "Register 0x06: "; Hex$(I2C.ReadRegByte(es8388_addr, &h06))
print "Register 0x07: "; Hex$(I2C.ReadRegByte(es8388_addr, &h07))
print "Register 0x08: "; Hex$(I2C.ReadRegByte(es8388_addr, &h08))
print "Register 0x09: "; Hex$(I2C.ReadRegByte(es8388_addr, &h09))

' End I2C communication with ES8388
I2C.End
Modules : 3xESP32-Cam MB (Chip"DM ESP32 S" ),AI-Thinker Audio Kit (ES8388), ESP32 Dev Kit with Display
RonS
Posts: 115
Joined: Thu Mar 02, 2023 10:15 pm
Location: germany
Has thanked: 64 times
Been thanked: 23 times

Re: AI-Thinker A1S Audioboard

Post by RonS »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Fri Mar 24, 2023 3:07 pm Hi RonS,
try this version and let me know.
I included an experimental support for the ES8388 CODEC.
This version has the LITTLEFS so, if you are using an old version with FFAT, make a backup of the files before.
Hello
copied the bin file into the buildfolder of annextoolkit1.1..
got the module in AP Mode, but never in station mode it isnt visible...no access
Modules : 3xESP32-Cam MB (Chip"DM ESP32 S" ),AI-Thinker Audio Kit (ES8388), ESP32 Dev Kit with Display
User avatar
cicciocb
Site Admin
Posts: 1900
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1271 times
Contact:

Re: AI-Thinker A1S Audioboard

Post by cicciocb »

What is shown in the console?
What is the version shown?

It works for me, obviously not the codec but the my esp32 connects properly to the wifi.

Maybe you should format the module and program again
Post Reply