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.40073 жыл бұрын
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!
@rawanlankesh52832 жыл бұрын
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
@regenesisiot74662 жыл бұрын
that's one hell of pretty beaten up little veteran speaker ... don't you thing it's time to retire him?
@andrewandrosow47973 жыл бұрын
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 Жыл бұрын
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.
@ysir-k2m12 күн бұрын
Thank you so much ! I findly this!
@englishrupe014 жыл бұрын
Wow...that's cool! Great project....thanks!
@electronicGURU4 жыл бұрын
Your welcome 😃😃
@elisabethandarge11944 жыл бұрын
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?
@electronicGURU4 жыл бұрын
Yes you can.
@elisabethandarge11944 жыл бұрын
Thank you
@electronicGURU4 жыл бұрын
Your welcome
@abrandrozario900211 ай бұрын
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.
@techprolet3 жыл бұрын
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).
@unitedrobotics73774 жыл бұрын
I really appreciate ur work.. ... ..
@electronicGURU4 жыл бұрын
Thanks buddy ☺️👍
@shrikantnikam24264 жыл бұрын
I am looking for this, subscribed
@electronicGURU4 жыл бұрын
Thanks buddy 😁☺️
@c3celea3 жыл бұрын
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
@electronicGURU3 жыл бұрын
Well sir this will not be possible with ATTINY there are alot of restrictions .
@ceciliakoochoy44843 жыл бұрын
@@electronicGURU oh ok. Thanks for answering
@electronicGURU3 жыл бұрын
Your welcome 😃
@hfe18333 жыл бұрын
Very good video bro, awesome, can you make video producing engine car sound using this
@electronicGURU3 жыл бұрын
Well you can do it on your own , download some engine audio from web and use it here.
@jayaram000013 жыл бұрын
This is really useful. Do you know a way to use an amplifier like pam8403 instead of TIP120 transistor ?
@electronicGURU3 жыл бұрын
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
@surflaweb2 жыл бұрын
what's the value of the resistor? 42 ohm?
@isidrorosales4764 ай бұрын
bro, can i use 2N2222 npn instead of TIP?
@Neruppuda4366 ай бұрын
Hi this is amazing, but I'm trying to do the same with esp32 and it's not working
@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
@pawelwojcik75503 жыл бұрын
hi, have you turorial with playing some samples from sd card by uno or esp?
@electronicGURU3 жыл бұрын
No sir ,very sorry but i don't have.
@abhishekreddy24254 жыл бұрын
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?
@electronicGURU4 жыл бұрын
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.
@abhishekreddy24254 жыл бұрын
@@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...
@electronicGURU4 жыл бұрын
I haven't tried but i think it could work. Or try to begin it in loop as well.
@abhishekreddy24254 жыл бұрын
Thanks, I'll give a try!
@maremike26912 жыл бұрын
@@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
@gauninha123 жыл бұрын
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.
@electronicGURU3 жыл бұрын
To be honest noticable delay would be there and audio could be okay okay types but not very pleasant.
@gauninha123 жыл бұрын
@@electronicGURU Thank you for the feedback! :)
@electronicGURU3 жыл бұрын
Your welcome 😃
@FehnrirX3 жыл бұрын
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?
@electronicGURU3 жыл бұрын
Well try to put all things in one , and it is better if you play only one file.
@bxeagle39322 жыл бұрын
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, 😔😔
@anonymouseanonymous25333 жыл бұрын
how to set rx to antoher pin ? and how to set the volume why is to samll sound, iam using 0.5 watt speaker
@electronicGURU3 жыл бұрын
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.
@anonymouseanonymous25333 жыл бұрын
@@electronicGURU can you give me link?
@rittikn8 ай бұрын
Please share the link to the source code. Thanks
@niroshachamali6122 Жыл бұрын
Can we play many songs at one time
@eat3dhonduras287 Жыл бұрын
Dear instructor, how do you star the sound with a puch botton_? or just connec and is aways playing?
@Neruppuda4367 ай бұрын
Im also searching for the same, no solution
@G-Code_official2 жыл бұрын
How would you play sound and keep scanning for any inputs?
@belajardanberbagiapapunitu42469 ай бұрын
what if you use 2 voices, please help friends, thank you in advance.
@anonymouseanonymous25333 жыл бұрын
Schema like that it can be in speaker 0.5 watt? Pls make video for esp32 because i allways failed
@prithviraj-13013 жыл бұрын
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
@rameshr91103 жыл бұрын
sir i am using Nodemcu. but example code not working..sir website not open well
@electronicGURU3 жыл бұрын
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
@nizamachmady16828 ай бұрын
How to increase the volume?
@technolabcreation4 жыл бұрын
Nice project
@electronicGURU4 жыл бұрын
Thanks Buddy 😊👍
@cikaldev3 жыл бұрын
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
@electronicGURU3 жыл бұрын
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
@kannadanudi84442 жыл бұрын
How can we, play continuously (infinite)
@markandeysinghyt4 жыл бұрын
Great job buddy.
@electronicGURU4 жыл бұрын
Thanks 👍
@leonel9510003 жыл бұрын
La librería también es compatible con el ESP32?
@electronicGURU3 жыл бұрын
I haven't tried but i think it should work with ESP32.
@Rk_954 Жыл бұрын
Hey friend I am going to store bihari voice ..... Jaldi waha se hato and play it in my school...
@AlexAmayaGuitar Жыл бұрын
Hi!! great proyect, mine not compiles :(
@ernestsbrigis10043 жыл бұрын
my wemos sounds like it is too loud. when i convert hex back to mp3 and open in pc it sonds normal
@electronicGURU3 жыл бұрын
ok so when you edit the audio in audcity decrease the sound simply.
@ernestsbrigis10043 жыл бұрын
@@electronicGURU I tried it and with no luck. Anyway I already fixed the problem I just wrote NoDAC :d
@electronicGURU3 жыл бұрын
ok is also doable but it great idea to make the wave amplitude small in audacity which will reduce the sound for sure
@ernestsbrigis10043 жыл бұрын
@@electronicGURU but before I changed it to NoDAC there was no difference between original audio file and -40db audio
@electronicGURU3 жыл бұрын
oh might be DAC error it should be normalizing the audio i guess
@skylersell42193 жыл бұрын
how long of a file can you play
@electronicGURU3 жыл бұрын
It depends on the audio what is the sample rate and such
@AUDIOLABS2 жыл бұрын
How to make output clear without noise
@HaiNguyen-cf1ji3 жыл бұрын
What if I want the output to be stereo instead of mono
@electronicGURU3 жыл бұрын
Well as of now it can't be done.
@meenakshiagarwal67243 жыл бұрын
How long file can be saved in its memory?
@electronicGURU3 жыл бұрын
It will be stored until you program it again.
@ParodieHecker-mobile2 жыл бұрын
@@electronicGURU I think you misunderstood the question :D
@carlanwray8718Ай бұрын
Thanks
@tamil6607 Жыл бұрын
working thanks a lot man
@jimbrooks73273 жыл бұрын
Nice!
@Locuslokalokuza3 жыл бұрын
This is awesome
@electronicGURU3 жыл бұрын
Thank you 😊😊👍
@mpkumar7786 Жыл бұрын
Wonderful.
@deeproy53533 жыл бұрын
need a little help to play the audio in loop
@electronicGURU3 жыл бұрын
Ok add a while loop
@deeproy53533 жыл бұрын
@@electronicGURU thanks, but I just ESP.restart after audio stoped 😎
@electronicGURU3 жыл бұрын
But why you wanna do that? Or you can play the audio in code void loop() that will also make it play again & again
@deeproy53533 жыл бұрын
@@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.
@electronicGURU3 жыл бұрын
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.