Hackaday.io Hackaday.io
Projects
Discover Contests Courses Stack
More
Courses Tutorials Events Hackerspaces Hackaday.com Tindie Marketplace
Sign up Log in
Close
0%
0%

Simple ESP32 SD audio player (internal DAC / PDM)

Discrete component audio out

ronaldRonald
Following Follow project
Liked Like project

Become a Hackaday.io member

Not a member? You should Sign up.

Already have an account? Log in.

Sign up with Github
Sign up with Twitter
OR
Forgot your password?

Just one more thing

To make the experience fit your profile, pick a username and tell us what interests you.

Pick an awesome username
hackaday.io/
Your profile's URL: hackaday.io/username. Max 25 alphanumeric characters.
Pick a few interests
Projects that share your interests
People that share your interests

We found and based on your interests.

Choose more interests.

OK, I'm done! Skip
Join this project
Similar projects worth following
3.9k views
1 comments
0 followers
0 likes
  • Description
  • Details
  • Files 0
  • Components 0
  • Logs 2
    • View all
  • Instructions 0
  • Discussion 1
View Gallery
3.9k
1
0
0

Team (1)

  • ronaldRonald

Join this project's team
researching project

This project was created on 01/10/2021 and last updated 5 years ago.

Description

Looking for a simple (as in: using only additional components that are in my stock) way to play audio, I found not what I wanted. Trying to gather info here.

Project Logs
Collapse

  • Gathering info - playing sound

    Ronald • 01/10/2021 at 14:14 • 0 comments

    WAV library: https://www.xtronical.com/basics/audio/digitised-speech-sound-esp32-playing-wavs/

    A github project that probably plays a wav file: https://github.com/LilyGO/TTGO-T8-ESP32

    A micropython project playing WAV (though I'm quite sure I read somewhere that the internal DAC wasn't yet supported on micropyton): https://m5stack.hackster.io/lukasmaximus89/play-wav-files-on-your-m5stack-3bee7e

    internal *ADC* code: https://github.com/espressif/esp-idf/commit/2fceec4d858c62a489496678c765ae1a2d68645c

  • Gathering info - PDM output

    Ronald • 01/10/2021 at 13:38 • 0 comments

    Well, I started typing, and then lost everything.

    There are some projects on hackaday that have simple audio output (and even video), but none of them connects to a speaker directly.

    This is how I connected my SD card:

    https://github.com/espressif/arduino-esp32/tree/master/libraries/SD

    There's this project that does PDM: https://github.com/karawin/Ka-Radio32. It tells to connect a speaker to GPIO 25 for PDM/internal DAC, but I think that would way exceed the 12 mA of max output current.

    I found a 40xx/74xx logic buffer circuit for PDM sound somewhere (lost the link...), and a mention that a MOSFET would be a good idea. Somewhere else I found adding a 100 uF / 47 uF capacitor between output and speaker should do the trick.

    There's this video:https://www.youtube.com/watch?v=oCmfpJNDPn8 that shows an ESP32 with audio out over PDM

    This shows something about how to use PDM: https://github.com/earlephilhower/ESP8266Audio/issues/138 (and also notes that for a long time, PDM hasn't worked)

    This project also mentions PDM: https://github.com/MrBuddyCasino/ESP32_MP3_Decoder. The source seems based on Ka-Radio32 - or probably the other way around.

View all 2 project logs

Enjoy this project?

Share

Discussions

Log In/Sign up to comment

Become a Hackaday.io Member

Create an account to leave a comment. Already have an account? Log In.

Sign up with Github
Sign up with X
OR
Pierre-Loup M. wrote 01/11/2021 at 10:23 • point

I'm using this library on an ongoing project : https://github.com/earlephilhower/ESP8266Audio
The library is easy to use and quite versatile, although there are some "bugs".

If using an esp32 is not mandatory, then there is Teensy from JPRC, and their powerfull audio lib.

  Are you sure? yes | no

Similar Projects

An interactive, life-sized sculpture with embedded audio components that plays a story from the 1001 Nights when a person approaches.
Project Owner Contributor

The moon upon its fourteenth night

pansee-attaPansee Atta

Beyond '67 SMPTE timecode: YaLTC is a new GPS based AUX syncing track format for dual-system sound based on affordable hardware
Project Owner Contributor

Atomic Synchronator => TicTacSync

raymond-lutzRaymond Lutz

Analog & DSP
Project Owner Contributor

Audio FX | Effects

gintaras-valatkaGintaras Valatka

In this project we will make our own audio player with esp 32. This project is a simple project to test a voice output from esp 32.
Project Owner Contributor

ESP 32 Based Audio Player

electronicsworkshopselectronicsworkshops

Does this project spark your interest?

Become a member to follow this project and never miss any updates

Going up?

About Us Contact Hackaday.io Give Feedback Terms of Use Privacy Policy Hackaday API

© 2026 Hackaday

Yes, delete it Cancel

Report project as inappropriate

You are about to report the project "Simple ESP32 SD audio player (internal DAC / PDM)", please tell us the reason.

Send message

Your application has been submitted.

Remove Member

Are you sure you want to remove yourself as a member for this project?

Project owner will be notified upon removal.