ESP32 .WAV File Playback | PAM8302 Audio Amplifier

Поділитися
Вставка
  • Опубліковано 4 гру 2024

КОМЕНТАРІ • 44

  • @devtasingh
    @devtasingh 2 роки тому

    Wonderfull, I will use this to make some noise to avoid wild animals that come to eat the growceries in the garden, thanks.

  • @JLNweb
    @JLNweb 2 роки тому +1

    Hello, the library XT_DAC_Audio don't work with IDE Arduino, why ?

  • @marizuokereke7347
    @marizuokereke7347 5 років тому +2

    Thanks for the video, I really enjoyed it.
    I will build this at some point!
    It looked like the data that was exported from Audacity was stereo. Did the Mac command that converted it into hex fix this or is there twice as much data in the file?
    It wasn't clear where the sample rate was specified within the ESP project.

  • @AshiqurRahman
    @AshiqurRahman 3 роки тому

    can I make it like bluetooth beadphone

  • @OlivierCR
    @OlivierCR 4 місяці тому

    I've been trying to get an ESP32-S2 to play sounds for about 2 months now without success, using the Arduino IDE. It seems all libraries were made for old versions of the ESP core and arduino IDE and trying to get them to work in 2024 is a real challenge. I used to program small projects in arduino nano without any problems, but switching to ESP32 has been a nightmare. I started with a QT PY ESP32-S3 from Adafruit, only to realize it does not have a DAC pin, so I switched to a Lolin/HiLetGo ESP32-S2, and even though I have 2 DAC outputs, its been impossible to make it work. Don't want to give up but its really frustrating

  • @clydealcott3379
    @clydealcott3379 2 роки тому +2

    Am I the only one who get this error...?
    PlayWav.ino:10:27: error: 'Force' was not declared in this scope

  • @henkakhucommodore6798
    @henkakhucommodore6798 4 роки тому

    I don’t know if the little box attached to wires and board is included in store catalog page.??? And your pins on the amp are 90 angle not 0, the screw terminal was not included with purchase? shows on picture? Screw terminal connector?

  • @tranceonline
    @tranceonline 2 роки тому

    Dude this saved me!
    With this i can finish the X-Mas Present for my gf :*

  • @Dhfhdksldicj
    @Dhfhdksldicj 2 роки тому

    I am making an alarm clock. I want to make the WAV file uploaded to SPIFFS pause. What should I do?

  • @dqj999
    @dqj999 2 роки тому

    Can we have a link to the code that you used in the example to save having to retype it all from the video? Thanks Derek

  •  5 років тому +1

    For high quality sounds you can use DFPlayer Mini module (or your own solution based on voice chips like XY6xxx (eg YX6100) or JQ6xxx (eg JQ6500).

    •  5 років тому

      Or even ES8388 (present on ESP32-LyraT Dev board)

    • @datasith
      @datasith  5 років тому

      Yup, yup. Thanks for sharing!

    • @mitchell5267
      @mitchell5267 2 роки тому

      @@datasith I tried the DFPlayer. The problem with using it for sound effects is that you have a pretty decent delay before the sound plays and reacts to new commands. This brought me back full circle to using the PAM and the internal ESP32 DAC.

  • @tseckwr3783
    @tseckwr3783 3 роки тому

    keep up the good work.

  • @ismail_aydemir_youtube
    @ismail_aydemir_youtube 2 роки тому

    In nodemcu, I have an alarm clock. When it is equal to the time, how can I play my wav extension sound in the viola tab in the program when the alarm is equal. thanks

  • @lukecamilleri1995
    @lukecamilleri1995 3 роки тому

    What is the maximum sound level you were able to produce at 10cm?

  • @brettyoung6223
    @brettyoung6223 2 роки тому

    I know this is a long time ago... I see the current version is 4.2.1. When I go to compile I see an error it can't locate esp32-hal-timer.h file. Any ideas?
    Thanks in advanced!

  • @junhaozhang533
    @junhaozhang533 2 роки тому

    It is possible to play 2 wav at the same time?

  • @anoopcc2361
    @anoopcc2361 4 роки тому

    Hey can we send the .wav file stored in flash memory of 1 ESP32 to another ESP32?

  • @fjnavarretemartin
    @fjnavarretemartin 4 роки тому +1

    Muy buen trabajo. Felicidades. He intentado compilar el mismo ejemplo en mi WEMOS D1 esp32 y no compila. Me pone error de compilación para WEMOS lolin32
    ¿Cuál puede ser el error?
    Mi Arduino ide es versión 1.8.5

    • @josecarlosmatus
      @josecarlosmatus 3 роки тому

      Lograste resolverlo? Tengo el mismo problema.

    • @fjnavarretemartin
      @fjnavarretemartin 3 роки тому +1

      Finalmente no. Lo siento.

    • @josecarlosmatus
      @josecarlosmatus 3 роки тому

      @@fjnavarretemartin El error es de la librería, descargué una versión anterior y la reemplacé y ya compiló.

    • @fjnavarretemartin
      @fjnavarretemartin 3 роки тому

      Muchas gracias. Te lo agradezco. Lo probaré

  • @EDGARDOUX1701
    @EDGARDOUX1701 5 років тому +2

    Excelente!! Vi los videos anteriores pero se me paso comentar :(, dont know what happened to me haha. Un fuerte abrazo Bro argento

    • @datasith
      @datasith  5 років тому +1

      Gracias capo, no worries, se que el aguante no falla!

    • @EDGARDOUX1701
      @EDGARDOUX1701 5 років тому

      You bet on it!

  • @Carolina-yo1kw
    @Carolina-yo1kw 4 роки тому

    Is it possible to play a complete song ? or maybe a few minutes?

    • @datasith
      @datasith  4 роки тому

      Hey, Carolina. Yes, it is possible. The main constraint is the memory size, but you can add an SD card to the project for extra storage. HTH!

  • @DocMicha
    @DocMicha 5 років тому

    You have written in the title also for windows, but how to convert the .wax to .h in windows?

    • @romiolover6852
      @romiolover6852 5 років тому

      i think there is some free programs to do that, just use google.

    • @artiumnihamkin9206
      @artiumnihamkin9206 5 років тому +1

      I have a python script to do this:
      gist.github.com/alkhimey/55eb4d4b03b680b1f5742ec513aeb071
      You can also see my take on the WAV through ESP8266 ides here: www.nihamkin.com/playing-wav-files-on-esp8266.html#playing-wav-files-on-esp8266
      ACROBOTIC actually did a really good job, showed many ideas I did not think of when writing that blog post.

    • @BBoHK
      @BBoHK 5 років тому +1

      You can use WAVToCode.
      www.softpedia.com/get/Multimedia/Audio/Other-AUDIO-Tools/WAVToCode.shtml

    • @datasith
      @datasith  5 років тому

      Thank you all for sharing your insights!

    • @DocMicha
      @DocMicha 5 років тому

      @@artiumnihamkin9206 Superb!!

  • @christopherlawes9286
    @christopherlawes9286 4 роки тому +1

    Please make a video on using 3.5mm audio jack and playing files from SD card.

  • @sachinpagar413
    @sachinpagar413 4 роки тому

    sir, please make a video for ESP8266

    • @datasith
      @datasith  4 роки тому

      Hey, Sachir. Sorry, the library doesn't work on the ESP8266. You need quite a bit of computational power to decode the .wav files, and as far as I know, this is very hard to do on the ESP8266. An alternative would be to use an .mp3 external chip, you can load your sounds on an SD card as well. HTH!

  • @Steve_be
    @Steve_be 5 років тому

    What are the commands on the Mac to create the .h file from wave file. I use windows mainly but I do have a iMac .. which would seem the easiest way to convert the files.

    • @datasith
      @datasith  5 років тому

      I'm not into advocating for Apple devices, so I'll just state that having an OS that includes these tools by default saves me a bit of time in my electronics tinkering. So yes, if you have an iMac it should be straight forward. The command I used is:
      xxd -i lightsaber_idle.wav > lightsaber_idle.h
      Thanks so much for watching!

  • @shrikantnikam2426
    @shrikantnikam2426 4 роки тому

    How to record sound and send to API?

  • @berkeozkir
    @berkeozkir 2 роки тому

    Too fast! I constantly needed to pause and play and rewind back.

  • @crazytronics9917
    @crazytronics9917 3 роки тому

    How you add 'PROGMEM' ?
    Since it is only for AVR boards.
    I am not getting it for esp32 how i get it?