ESP32 simple way to create a bell tone? CODEC and ES8388

Thread Starter

Adam Uraynar 1

Joined Mar 1, 2016
14
I got this shield for an Arduino: https://www.sparkfun.com/tutorials/302

It works with an ESP32 too. Although, does the ESP32 have its own CODEC? The datasheet confuses me:
When one or both of the I2S interfaces are configured in the master mode, the master clock can be output to the
external DAC/CODEC.
https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf

Do I need to use something like the ES8388? I need ESP32/8266 access point (AP) function and a way to emit a bell sound to speakers (with their own amp).
 
Last edited:
4 Peripherals and Sensors Interface Signal Pin Function I2S I2S0I_DATA_in0~15 Any GPIO Pins I2S0O_BCK_in I2S0O_WS_in I2S0I_BCK_in I2S0I_WS_in I2S0I_H_SYNC I2S0I_V_SYNC I2S0I_H_ENABLE I2S0O_BCK_out I2S0O_WS_out Stereo input and output from/to the audio codec; parallel LCD data output; parallel camera data input. I2S0I_BCK_out I2S0I_WS_out I2S0O_DATA_out0~23 I2S1I_DATA_in0~15 I2S1O_BCK_in Note: I2S0_CLK and I2S1_CLK can only be mapped to GPIO0, U0RXD (GPIO3), or U0TXD (GPIO1) via IO MUX by selecting GPIO functions CLK_OUT1, CLK_OUT2, and CLK_OUT3. For more information, see Table 4-3. IO MUX Pad Summary in ESP32 Technical Reference Manual. I2S1O_WS_in I2S1I_BCK_in I2S1I_WS_in I2S1I_H_SYNC I2S1I_V_SYNC I2S1I_H_ENABLE I2S1O_BCK_out I2S1O_WS_out I2S1I_BCK_out I2S1I_WS_out I2S1O_DATA_out0~23 I2S0_CLK GPIO0, U0RX
 

bidrohini

Joined Jul 29, 2022
190
I got this shield for an Arduino: https://www.sparkfun.com/tutorials/302

It works with an ESP32 too. Although, does the ESP32 have its own CODEC? The datasheet confuses me:


https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf

Do I need to use something like the ES8388? I need ESP32/8266 access point (AP) function and a way to emit a bell sound to speakers (with their own amp).
The ESP32 microcontroller itself does not have a built-in audio codec. The reference to the master clock being output to an external DAC/CODEC in the datasheet indicates that you can use the ESP32's I2S interface to communicate with an external audio codec chip, such as the ES8388 mentioned.
 

ericgibbs

Joined Jan 29, 2010
18,051
Hi @bidrohini,
It appears that a large number of your posts are ChatGPT generated/based, if that is that case, please desist in making such posts.

Moderation.
Copy off line of the original ChatGbt.
ScreenHunter 33.gif
 
Top