ESP8266 Audio | Play audio file with Esp8266 or Nodemcu without SD CARD

Sdílet
Vložit
  • čas přidán 13. 09. 2020
  • #electronicGURU #electronic_guru #esp8266
    ______________________________________________________
    Join PCBGOGO to get the benefits now :
    www.pcbgogo.com/5th-anniversa...
    Up to $150 Coupons, Stylish Souvenirs
    Campaign Duration: Aug. 25th - Sep. 25th, 2020
    Though PCBGOGO is only 5 years old, their factories have been providing PCB manufacturing and assembly for domestic customers in China for more than 10 years. The PCB fabrication and assembly services from prototype to mass production is fast, affordable and reliable.
    ______________________________________________________
    Support me on PayPal :
    paypal.me/electronicguru007
    electronicGURU Instagram :
    electronicguru0...
    electronicGURU FB page : - / electronicguru001
    visit my site :
    electronicguru.in
    __________________________________________
    Buying Links :
    Nodemcu (esp8266)-
    www.banggood.com/NodeMcu-Lua-...
    www.banggood.com/3Pcs-NodeMcu...
    www.banggood.com/Wemos-NodeMC...
    Speaker -
    www.banggood.com/2-Pcs-3-Inch...
    www.banggood.com/50MM-0_5W-Cu...
    www.banggood.com/3-Pair-4-Ohm...
    TIP 120 transistor -
    www.banggood.com/10pcs-TIP120...
    www.banggood.com/30pcs-TIP120...
    www.banggood.com/50pcs-TIP120...
    Buy Arduino starter kit:
    www.banggood.in/Geekcreit-UNO...
    www.banggood.in/Geekcreit-Meg...
    www.banggood.in/Geekcreit-UNO...
    Sensor Kits :
    www.banggood.in/Geekcreit-37-...
    www.banggood.in/45-IN-137-IN-...
    _____________________________________________
  • Věda a technologie

Komentáře • 100

  • @shivanSpS
    @shivanSpS Před 2 lety +5

    This works rather well, dont expect super clear or very loud sound but it can still produce a fairly good sound. For anything better you will need to use a external I2S DAC.
    I would also recomend not to upload to PROGMEN like it is showed here, thats OK for a simple test, but it is way better to use LittleFS on the ESP8266 and SPIFFS on ESP32, for one simple reason, PROGMEN is limited to 1MB and the LittleFS partition can be up to 3MB on a 4MB ROM model (you can select how you partition the ROM on the arduino IDE), by using LittleFS you can upload the file directly to the ESP using the plugin for the arduino IDE. On this way you can also use AAC, FLAC or MP3 files that are way smaller than a WAV. There is even a ESP-01S with a 8MB flash you can partition to have 7MB LittleFS, and this code runs out of the box on it since it uses the RX pin that it is avalible on the ESP-01.

  • @r.z.4007
    @r.z.4007 Před 2 lety +6

    Great project, thank you! What is the amount of flash memory available on the ESP8266 that can be used for the sound file? In other words, how much memory space does the sketch needs without considering the audio file? What I'm trying to find out is how big the audio file can be, before the ESP 8266's storage memory is full... Thanks!

  • @englishrupe01
    @englishrupe01 Před 3 lety +2

    Wow...that's cool! Great project....thanks!

  • @techprolet
    @techprolet Před 3 lety +1

    Thank you for the great tutorial! Have you been able to measure power consumption of the setup? I would be interested to power this with a cr2032 button battery, which would not go above ~80mAh (peak).

  • @unitedrobotics7377
    @unitedrobotics7377 Před 3 lety +2

    I really appreciate ur work.. ... ..

  • @jimbrooks7327
    @jimbrooks7327 Před 2 lety

    Nice!

  • @markandeysinghyt
    @markandeysinghyt Před 3 lety +1

    Great job buddy.

  • @andrewandrosow4797
    @andrewandrosow4797 Před 3 lety +1

    Hello! Good video! Can a esp8266 moduletransmitt audio (for example 8kHz 8bit digital sound ) to another esp8266 module with a speaker? I mean using only NodeMCU (maybe C++), because assembler is very difficult ..especially for me))

  • @brandontechnerd
    @brandontechnerd Před rokem +1

    Is it possible to stream the audio from the SD card using a buffer? This would be theoretically possible due to the ESP8266's massive 80 KBs of RAM.

  • @mpkumar7786
    @mpkumar7786 Před rokem

    Wonderful.

  • @G-Code_official
    @G-Code_official Před rokem

    How would you play sound and keep scanning for any inputs?

  • @tamil6607
    @tamil6607 Před 10 měsíci

    working thanks a lot man

  • @shrikantnikam2426
    @shrikantnikam2426 Před 3 lety +1

    I am looking for this, subscribed

  • @surflaweb
    @surflaweb Před 2 lety +1

    what's the value of the resistor? 42 ohm?

  • @gauninha12
    @gauninha12 Před 3 lety +1

    Hello, sir! What could you say about the audio fidelity? I'm about to build and Loop Station for guitar using ESP866 with and ADC converter (PCM1802), but I'm not sure about the sample rate and possible delay when using esp8266 as a DSP.

    • @electronicGURU
      @electronicGURU  Před 3 lety +1

      To be honest noticable delay would be there and audio could be okay okay types but not very pleasant.

    • @gauninha12
      @gauninha12 Před 3 lety +1

      @@electronicGURU Thank you for the feedback! :)

    • @electronicGURU
      @electronicGURU  Před 3 lety

      Your welcome 😃

  • @pawelwojcik7550
    @pawelwojcik7550 Před 3 lety +1

    hi, have you turorial with playing some samples from sd card by uno or esp?

  • @anonymouseanonymous2533

    Schema like that it can be in speaker 0.5 watt? Pls make video for esp32 because i allways failed

  • @hfe1833
    @hfe1833 Před 3 lety +1

    Very good video bro, awesome, can you make video producing engine car sound using this

    • @electronicGURU
      @electronicGURU  Před 3 lety

      Well you can do it on your own , download some engine audio from web and use it here.

  • @prithviraj-1301
    @prithviraj-1301 Před 2 lety

    sir, iam finding it hard to purchase a 1W,2W,3W speaker..........can u provide me with the link......link in the description isn't working

  • @jayaram00001
    @jayaram00001 Před 3 lety +1

    This is really useful. Do you know a way to use an amplifier like pam8403 instead of TIP120 transistor ?

    • @electronicGURU
      @electronicGURU  Před 3 lety +1

      I mean to be honest i tried but it didn't gave a good output. So this is more of a educational less of a practical use

  • @Locuslokalokuza
    @Locuslokalokuza Před 3 lety +1

    This is awesome

  • @technolabcreation
    @technolabcreation Před 3 lety +1

    Nice project

  • @FehnrirX
    @FehnrirX Před 3 lety +1

    thanks for the tutorial. but i kinda got issue when i want to play more than 1 mp3 files. it keep out of loop. what should i do?

    • @electronicGURU
      @electronicGURU  Před 3 lety

      Well try to put all things in one , and it is better if you play only one file.

  • @eat3dhonduras287
    @eat3dhonduras287 Před rokem

    Dear instructor, how do you star the sound with a puch botton_? or just connec and is aways playing?

    • @Neruppuda436
      @Neruppuda436 Před 3 měsíci

      Im also searching for the same, no solution

  • @regenesisiot7466
    @regenesisiot7466 Před 2 lety +3

    that's one hell of pretty beaten up little veteran speaker ... don't you thing it's time to retire him?

  • @Autoelectro136
    @Autoelectro136 Před rokem

    Sir plz help me and reply.... I m facing a problem.... I have node mcu ch340 driver wala..... When example code compiles error pop up..... Not done for esp8266 I2.... All I have done but code is not compiling and uploading.... Sir I m working on project I need it..... I m ur old fan and subscriber.... Plz help me

  • @isidrorosales476
    @isidrorosales476 Před měsícem

    bro, can i use 2N2222 npn instead of TIP?

  • @rawanlankesh5283
    @rawanlankesh5283 Před 2 lety

    Please give answer
    01. How much seconds long audio we can put in esp
    02. How to apply 3 times loop
    03. How to amplify audio Signal

  • @c3celea
    @c3celea Před 3 lety +1

    Great video! Can you do a tutorial on how to play audio file with attiny85 without SD CARD please? I'm trying to make a device that reproduces 1 song when i press a button but i need it to be as small and compact as posible

  • @kannadanudi8444
    @kannadanudi8444 Před rokem

    How can we, play continuously (infinite)

  • @nizamachmady1682
    @nizamachmady1682 Před 5 měsíci

    How to increase the volume?

  • @bxeagle3932
    @bxeagle3932 Před 2 lety

    It said error uploading to nodemcu, suddenly it worked
    Then i changed the hex audio, now again its not working.
    i changed to old hex ,not uploading
    Tried to upload blink ,its working, 😔😔

  • @suryagodim8132
    @suryagodim8132 Před rokem

    Mantap

  • @AlexAmayaGuitar
    @AlexAmayaGuitar Před rokem

    Hi!! great proyect, mine not compiles :(

  • @abrandrozario9002
    @abrandrozario9002 Před 8 měsíci

    It works! Now It seems like If I made it, then it will not be like something very good. I am unable to get a loud and super clear if I make it.

  • @niroshachamali6122
    @niroshachamali6122 Před rokem

    Can we play many songs at one time

  • @belajardanberbagiapapunitu4246

    what if you use 2 voices, please help friends, thank you in advance.

  • @Neruppuda436
    @Neruppuda436 Před 3 měsíci

    Hi this is amazing, but I'm trying to do the same with esp32 and it's not working

  • @HaiNguyen-cf1ji
    @HaiNguyen-cf1ji Před 3 lety +1

    What if I want the output to be stereo instead of mono

  • @elisabethandarge1194
    @elisabethandarge1194 Před 3 lety +1

    Wow thank you its nice project but i have 2 questions. can i use this code with wemos D1 R1 micro-controller? and the other question is ....... by using NODMCU ESP8266 micro-controller and by modifying the code, can I play 3 different audio sequentially?

  • @cikaldev
    @cikaldev Před 3 lety +1

    Thank you for the video, but i have one question, can be TIP120 replaced by TIP122 ? because i hate to waiting shipping online guy 3-5 day.. i want to test it before asking, but i want to find out more info before something bad happens. :) hope somebody will answer my question. Thank you

    • @electronicGURU
      @electronicGURU  Před 2 lety

      well its a general Darlington pair USE case scenario any Darlington pair transistor would work , even you can use two small BJTs to make a Darlington and it will work. Even you can run with a simple BJT , the only difference you gonna see is in output, depending on transistor power delivery and other characteristics the output would be low or high , clear or unclear, but you will get output no matter what and i think TIP122 will do just okay

  • @abhishekreddy2425
    @abhishekreddy2425 Před 3 lety +1

    Did you notice that it plays only once when NodeMCU is booted? You have to press reset again to play more than once... What's the way to implement in your project code and still be able to playback any no. of times when it is called?

    • @electronicGURU
      @electronicGURU  Před 3 lety +1

      Yes it does that, because the begin method is used in setup and in loop part we put a if condition to stop it so i hope you get the idea.

    • @abhishekreddy2425
      @abhishekreddy2425 Před 3 lety +1

      @@electronicGURU Ok, so if we simply remove the condition to stop from the loop and begin it only once in setup we can call any no. of times right...

    • @electronicGURU
      @electronicGURU  Před 3 lety +1

      I haven't tried but i think it could work. Or try to begin it in loop as well.

    • @abhishekreddy2425
      @abhishekreddy2425 Před 3 lety +1

      Thanks, I'll give a try!

    • @maremike2691
      @maremike2691 Před 2 lety

      @@abhishekreddy2425 Hello. Did you get it to work properly? I am facing the same problem right now and I cannot figure out how to solve it

  • @leonel951000
    @leonel951000 Před 3 lety +1

    La librería también es compatible con el ESP32?

    • @electronicGURU
      @electronicGURU  Před 3 lety

      I haven't tried but i think it should work with ESP32.

  • @AUDIOLABS
    @AUDIOLABS Před 2 lety

    How to make output clear without noise

  • @rittikn
    @rittikn Před 5 měsíci

    Please share the link to the source code. Thanks

  • @anonymouseanonymous2533
    @anonymouseanonymous2533 Před 3 lety +1

    how to set rx to antoher pin ? and how to set the volume why is to samll sound, iam using 0.5 watt speaker

    • @electronicGURU
      @electronicGURU  Před 3 lety

      Well for the there are some amplifier available for this job go the GitHub page of this library and you will find all the info.

    • @anonymouseanonymous2533
      @anonymouseanonymous2533 Před 3 lety

      @@electronicGURU can you give me link?

  • @skylersell4219
    @skylersell4219 Před 3 lety +1

    how long of a file can you play

    • @electronicGURU
      @electronicGURU  Před 3 lety

      It depends on the audio what is the sample rate and such

  • @rameshr9110
    @rameshr9110 Před 2 lety +1

    sir i am using Nodemcu. but example code not working..sir website not open well

    • @electronicGURU
      @electronicGURU  Před 2 lety

      i am not sure what are you trying to , i checked the website its working for me and that is not only website which does the conversion so you can google and find few

  • @Rk_954
    @Rk_954 Před rokem

    Hey friend I am going to store bihari voice ..... Jaldi waha se hato and play it in my school...

  • @ernestsbrigis1004
    @ernestsbrigis1004 Před 3 lety +1

    my wemos sounds like it is too loud. when i convert hex back to mp3 and open in pc it sonds normal

    • @electronicGURU
      @electronicGURU  Před 3 lety

      ok so when you edit the audio in audcity decrease the sound simply.

    • @ernestsbrigis1004
      @ernestsbrigis1004 Před 3 lety +1

      @@electronicGURU I tried it and with no luck. Anyway I already fixed the problem I just wrote NoDAC :d

    • @electronicGURU
      @electronicGURU  Před 3 lety

      ok is also doable but it great
      idea to make the wave amplitude small in audacity which will reduce the sound for sure

    • @ernestsbrigis1004
      @ernestsbrigis1004 Před 3 lety +1

      @@electronicGURU but before I changed it to NoDAC there was no difference between original audio file and -40db audio

    • @electronicGURU
      @electronicGURU  Před 3 lety +1

      oh might be DAC error it should be normalizing the audio i guess

  • @meenakshiagarwal6724
    @meenakshiagarwal6724 Před 3 lety +1

    How long file can be saved in its memory?

  • @user-np6dm7ks3e
    @user-np6dm7ks3e Před 2 lety

    how can i loop this ????

  • @deeproy5353
    @deeproy5353 Před 3 lety +1

    need a little help to play the audio in loop

    • @electronicGURU
      @electronicGURU  Před 3 lety +1

      Ok add a while loop

    • @deeproy5353
      @deeproy5353 Před 3 lety +1

      @@electronicGURU thanks, but I just ESP.restart after audio stoped 😎

    • @electronicGURU
      @electronicGURU  Před 3 lety +1

      But why you wanna do that?
      Or you can play the audio in code void loop() that will also make it play again & again

    • @deeproy5353
      @deeproy5353 Před 3 lety +1

      @@electronicGURU I don't know for some couldn't make to work with IR sencer. I made A door that moans everytime you open or close it. But thanks I appreciate your reply and videos.

    • @electronicGURU
      @electronicGURU  Před 3 lety

      Okay man , well it is not that tough and it shouldn't give you a hard time. Try to switch pins or something? It should work.