2410 views|2 replies

862

Posts

2

Resources
The OP
 

[ESP32-Audio-Kit Audio Development Board Review] Part 3 play_mp3_control [Copy link]

1. Prerequisites

The premise for implementing the contents of this section is that the official ESP-IDF framework and ESP-ADF framework of Espressif have been successfully compiled.

Here we use the esp-related plug-ins in the vscode environment. After successfully stepping on the previous pitfalls, vscode can complete the clone and build of the official example.

Here we select the basic example in exampe to play MP3 audio files. The MP3 files are directly downloaded to the board with the project, without the need for an SD card.

2. Preparation

In vscode, press ctrl+shift+p, enter the example keyword, select "Show example project", select "use current ESP-ADF" in the pop-up options, and then select "play_mp3_control" in get-started in the pop-up window. At this time, some relevant information of this project will be displayed on the right, such as the officially supported development boards, how to use it, etc.

Click the "create..." button on the right to create a backup of this sample project.

3. Pin Adaptation

Here we mainly refer to the official ESP32-LyraT V4.3 development board of Anxinke. The ESP32-Audio-Kit audio development board uses the ESP32-A1S module, which has the same decoding chip 8388 as the ESP32-LyraT, so the driver can be used directly. The main difference is the difference in the pins used.

The above is the official main pin assignment of Espressif

ESP-A1S corresponding pin assignment

Open the esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c file and make the following changes:

I2C interface:

is modified to:

I2S interface:

is modified to:

Then, save the changes.

4. Menuconfig in vscode

Press the key combination ctrl+shift+p, enter the keyword "esp", and find the following options

In the graphical configuration interface that opens, select ESP32-LyraT V4.3 in the "audio HAL" option. Click Save.

5. Compilation

to be continued...

Replenish:

ESP32-A1S environment construction and use https://docs.ai-thinker.com/esp32-a1s/env

ESP32-A1S audio module overview: https://docs.ai-thinker.com/esp32-a1s

ESP32 Audio Product Design Guide https://docs.ai-thinker.com/_media/esp32/docs/esp32_audio_design_guide.pdf

This post is from RF/Wirelessly

Latest reply

Under the official ESP-IDF framework and ESP-ADF framework of Espressif, the ESP-related plug-ins in the vscode environment can complete the clone and build of the official example. The author has verified it. Thanks for sharing.   Details Published on 2021-9-25 10:43
Personal signature水不撩不知深浅 人不拼怎知输赢
 

6593

Posts

0

Resources
2
 

Under the official ESP-IDF framework and ESP-ADF framework of Espressif, the ESP-related plug-ins in the vscode environment can complete the clone and build of the official example. The author has verified it. Thanks for sharing.

This post is from RF/Wirelessly
 
 

862

Posts

2

Resources
3
 
This post was last edited by wo4fisher on 2021-9-27 14:07

Supplement 1: Based on the fact that the original project could be compiled correctly before and the pins were modified, compile again. If nothing unexpected happens, it will pass 100%.

Running the serial port displays the following log information:

There will also be a "da-da-da" noise coming from the speaker.

It’s troublesome to upload videos/or I haven’t learned how to do it yet, so I won’t upload it here.

This post is from RF/Wirelessly
Personal signature水不撩不知深浅 人不拼怎知输赢
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

快速回复 返回顶部 Return list