Page 1 of 3

Is it true that the ESP32 S3 will remove the DAC?

Posted: Sun Aug 15, 2021 9:40 am
by sere_dev
Looking at some of the datasheets that were posted in the forum it seems like the block diagram of the ESP32 S3 won't have a DAC (the og ESP32 had 2x8bit DACs).

The original block diagram released in January had one :(

Are there plans to add any DAC functionality before release?

Re: Is it true that the ESP32 S3 will remove the DAC?

Posted: Thu Aug 19, 2021 11:37 am
by dmaxben
I would be surprised if the ESP32-S3 removed the DAC....but I guess if thats the case, you could still do pseudo-DAC with PWM/LEDc and an RC filter...?

Re: Is it true that the ESP32 S3 will remove the DAC?

Posted: Fri Aug 20, 2021 3:21 am
by ESP_krzychb
Hi sere_dev and dmaxben,
The upcoming ESP32-S3 does not have DAC1 and DAC2 peripherals.

Re: Is it true that the ESP32 S3 will remove the DAC?

Posted: Fri Aug 20, 2021 3:20 pm
by sere_dev
@
ESP_krzychb wrote:ESP_krzychb
Oh that's sad to hear :( the dac was so useful!

Re: Is it true that the ESP32 S3 will remove the DAC?

Posted: Tue Aug 24, 2021 8:27 am
by Vader_Mester
ESP_krzychb wrote:
Fri Aug 20, 2021 3:21 am
Hi sere_dev and dmaxben,
The upcoming ESP32-S3 does not have DAC1 and DAC2 peripherals.
That's a bummer. Are you going to provide something else instead of the DAC? I wanted to use it as embedded audio, or we are left with an external DAC and I2S?

Re: Is it true that the ESP32 S3 will remove the DAC?

Posted: Wed Aug 25, 2021 1:35 am
by ESP_Sprite
I2S will have a PDM option; this is more-or-less the same idea as PWM but better. You can effectively feed your audio into the I2S peripheral, have a RC-filter (or ideally a better one, but RC should be sufficient) on the output pins, then connect a speaker to that.

Re: Is it true that the ESP32 S3 will remove the DAC?

Posted: Thu Aug 26, 2021 7:20 am
by Vader_Mester
ESP_Sprite wrote:
Wed Aug 25, 2021 1:35 am
I2S will have a PDM option; this is more-or-less the same idea as PWM but better. You can effectively feed your audio into the I2S peripheral, have a RC-filter (or ideally a better one, but RC should be sufficient) on the output pins, then connect a speaker to that.
Thanks Jeroen!
It is a good idea. On vanilla ESP32, I wanted to use the ULP to feed data to the DAC, simillar to Bitluni's approach.
Now comes the question: Can the DMA handle the LCD/CAM interface and I2S simultaneously? I'm using DMA heavy stuff with LCD peripheral. According to the latest S3 TRM (From July), if I just put the LCD and I2S into 2 different DMA channels, that should do the trick?

Re: Is it true that the ESP32 S3 will remove the DAC?

Posted: Thu Aug 26, 2021 7:25 am
by ESP_Sprite
Yeah, should work.

Re: Is it true that the ESP32 S3 will remove the DAC?

Posted: Fri Aug 09, 2024 6:43 pm
by eriksl
And what if I just want to output a simple DC voltage (yes it needs to be purely DC, it cannot be an rectified oscillating voltage). That would mean using PWM and adding quite a high quality R-C-L filter which I'd rather avoid. Bummer!

Re: Is it true that the ESP32 S3 will remove the DAC?

Posted: Fri Aug 09, 2024 11:52 pm
by ESP_Sprite
eriksl wrote:
Fri Aug 09, 2024 6:43 pm
And what if I just want to output a simple DC voltage (yes it needs to be purely DC, it cannot be an rectified oscillating voltage). That would mean using PWM and adding quite a high quality R-C-L filter which I'd rather avoid. Bummer!
It depends. PDM can work at pretty high frequencies, so depending on what you need, you may be able to get away with a simple sallen-key lowpass filter.