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

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ย. 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-...
    _____________________________________________
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 100

  • @r.z.4007
    @r.z.4007 2 ปีที่แล้ว +4

    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 3 ปีที่แล้ว +2

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

  • @techprolet
    @techprolet 3 ปีที่แล้ว +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).

  • @shivanSpS
    @shivanSpS ปีที่แล้ว +4

    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.

  • @andrewandrosow4797
    @andrewandrosow4797 3 ปีที่แล้ว +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 ปีที่แล้ว +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.

  • @unitedrobotics7377
    @unitedrobotics7377 3 ปีที่แล้ว +2

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

  • @jayaram00001
    @jayaram00001 3 ปีที่แล้ว +1

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

    • @electronicGURU
      @electronicGURU  3 ปีที่แล้ว +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

  • @gauninha12
    @gauninha12 3 ปีที่แล้ว +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  3 ปีที่แล้ว +1

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

    • @gauninha12
      @gauninha12 3 ปีที่แล้ว +1

      @@electronicGURU Thank you for the feedback! :)

    • @electronicGURU
      @electronicGURU  3 ปีที่แล้ว

      Your welcome 😃

  • @shrikantnikam2426
    @shrikantnikam2426 3 ปีที่แล้ว +1

    I am looking for this, subscribed

  • @pawelwojcik7550
    @pawelwojcik7550 3 ปีที่แล้ว +1

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

    • @electronicGURU
      @electronicGURU  3 ปีที่แล้ว

      No sir ,very sorry but i don't have.

  • @hfe1833
    @hfe1833 3 ปีที่แล้ว +1

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

    • @electronicGURU
      @electronicGURU  3 ปีที่แล้ว

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

  • @regenesisiot7466
    @regenesisiot7466 2 ปีที่แล้ว +3

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

  • @markandeysinghyt
    @markandeysinghyt 3 ปีที่แล้ว +1

    Great job buddy.

  • @c3celea
    @c3celea 3 ปีที่แล้ว +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

    • @electronicGURU
      @electronicGURU  3 ปีที่แล้ว

      Well sir this will not be possible with ATTINY there are alot of restrictions .

    • @ceciliakoochoy4484
      @ceciliakoochoy4484 3 ปีที่แล้ว +1

      @@electronicGURU oh ok. Thanks for answering

    • @electronicGURU
      @electronicGURU  3 ปีที่แล้ว

      Your welcome 😃

  • @G-Code_official
    @G-Code_official ปีที่แล้ว

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

  • @FehnrirX
    @FehnrirX 3 ปีที่แล้ว +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  3 ปีที่แล้ว

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

  • @anonymouseanonymous2533
    @anonymouseanonymous2533 3 ปีที่แล้ว

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

  • @prithviraj-1301
    @prithviraj-1301 2 ปีที่แล้ว

    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

  • @rawanlankesh5283
    @rawanlankesh5283 2 ปีที่แล้ว

    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

  • @elisabethandarge1194
    @elisabethandarge1194 3 ปีที่แล้ว +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?

  • @abhishekreddy2425
    @abhishekreddy2425 3 ปีที่แล้ว +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  3 ปีที่แล้ว +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 3 ปีที่แล้ว +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  3 ปีที่แล้ว +1

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

    • @abhishekreddy2425
      @abhishekreddy2425 3 ปีที่แล้ว +1

      Thanks, I'll give a try!

    • @maremike2691
      @maremike2691 2 ปีที่แล้ว

      @@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

  • @eat3dhonduras287
    @eat3dhonduras287 ปีที่แล้ว

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

    • @Neruppuda436
      @Neruppuda436 2 หลายเดือนก่อน

      Im also searching for the same, no solution

  • @cikaldev
    @cikaldev 2 ปีที่แล้ว +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  2 ปีที่แล้ว

      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

  • @bxeagle3932
    @bxeagle3932 2 ปีที่แล้ว

    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, 😔😔

  • @jimbrooks7327
    @jimbrooks7327 2 ปีที่แล้ว

    Nice!

  • @surflaweb
    @surflaweb 2 ปีที่แล้ว +1

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

  • @Neruppuda436
    @Neruppuda436 หลายเดือนก่อน

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

  • @Autoelectro136
    @Autoelectro136 ปีที่แล้ว

    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

  • @mpkumar7786
    @mpkumar7786 ปีที่แล้ว

    Wonderful.

  • @abrandrozario9002
    @abrandrozario9002 6 หลายเดือนก่อน

    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.

  • @simoncarloze2180
    @simoncarloze2180 3 ปีที่แล้ว +1

    This is awesome

  • @user-mz1uh4ju1n
    @user-mz1uh4ju1n 8 หลายเดือนก่อน

    Where can i find the code ? Please help me quickly 🥺

  • @tamil6607
    @tamil6607 8 หลายเดือนก่อน

    working thanks a lot man

  • @nizamachmady1682
    @nizamachmady1682 3 หลายเดือนก่อน

    How to increase the volume?

  • @belajardanberbagiapapunitu4246
    @belajardanberbagiapapunitu4246 4 หลายเดือนก่อน

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

  • @anonymouseanonymous2533
    @anonymouseanonymous2533 3 ปีที่แล้ว +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  3 ปีที่แล้ว

      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 3 ปีที่แล้ว

      @@electronicGURU can you give me link?

  • @kannadanudi8444
    @kannadanudi8444 ปีที่แล้ว

    How can we, play continuously (infinite)

  • @technolabcreation
    @technolabcreation 3 ปีที่แล้ว +1

    Nice project

  • @HaiNguyen-cf1ji
    @HaiNguyen-cf1ji 3 ปีที่แล้ว +1

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

    • @electronicGURU
      @electronicGURU  3 ปีที่แล้ว +1

      Well as of now it can't be done.

  • @leonel951000
    @leonel951000 3 ปีที่แล้ว +1

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

    • @electronicGURU
      @electronicGURU  3 ปีที่แล้ว

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

  • @rittikn
    @rittikn 3 หลายเดือนก่อน

    Please share the link to the source code. Thanks

  • @AlexAmayaGuitar
    @AlexAmayaGuitar ปีที่แล้ว

    Hi!! great proyect, mine not compiles :(

  • @niroshachamali6122
    @niroshachamali6122 10 หลายเดือนก่อน

    Can we play many songs at one time

  • @rameshr9110
    @rameshr9110 2 ปีที่แล้ว +1

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

    • @electronicGURU
      @electronicGURU  2 ปีที่แล้ว

      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

  • @ernestsbrigis1004
    @ernestsbrigis1004 3 ปีที่แล้ว +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  3 ปีที่แล้ว

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

    • @ernestsbrigis1004
      @ernestsbrigis1004 3 ปีที่แล้ว +1

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

    • @electronicGURU
      @electronicGURU  3 ปีที่แล้ว

      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 3 ปีที่แล้ว +1

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

    • @electronicGURU
      @electronicGURU  3 ปีที่แล้ว +1

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

  • @suryagodim8132
    @suryagodim8132 ปีที่แล้ว

    Mantap

  • @AUDIOLABS
    @AUDIOLABS 2 ปีที่แล้ว

    How to make output clear without noise

  • @meenakshiagarwal6724
    @meenakshiagarwal6724 3 ปีที่แล้ว +1

    How long file can be saved in its memory?

    • @electronicGURU
      @electronicGURU  3 ปีที่แล้ว

      It will be stored until you program it again.

    • @ParodieHecker-mobile
      @ParodieHecker-mobile 2 ปีที่แล้ว

      @@electronicGURU I think you misunderstood the question :D

  • @skylersell4219
    @skylersell4219 3 ปีที่แล้ว +1

    how long of a file can you play

    • @electronicGURU
      @electronicGURU  3 ปีที่แล้ว

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

  • @Rk_954
    @Rk_954 11 หลายเดือนก่อน

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

  • @user-np6dm7ks3e
    @user-np6dm7ks3e 2 ปีที่แล้ว

    how can i loop this ????

    • @DrShroom.
      @DrShroom. ปีที่แล้ว

      put in in a void loop();

  • @deeproy5353
    @deeproy5353 3 ปีที่แล้ว +1

    need a little help to play the audio in loop

    • @electronicGURU
      @electronicGURU  3 ปีที่แล้ว +1

      Ok add a while loop

    • @deeproy5353
      @deeproy5353 3 ปีที่แล้ว +1

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

    • @electronicGURU
      @electronicGURU  3 ปีที่แล้ว +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 3 ปีที่แล้ว +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  3 ปีที่แล้ว

      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.