Тёмный

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

electronic GURU
Подписаться 23 тыс.
Просмотров 72 тыс.
50% 1

#electronicGURU #electronic_guru #esp8266
______________________________________________________
Join PCBGOGO to get the benefits now :
www.pcbgogo.co...
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/elec...
electronicGURU Instagram :
...
electronicGURU FB page : - / electronicguru001
visit my site :
electronicguru.in
__________________________________________
Buying Links :
Nodemcu (esp8266)-
www.banggood.c...
www.banggood.c...
www.banggood.c...
Speaker -
www.banggood.c...
www.banggood.c...
www.banggood.c...
TIP 120 transistor -
www.banggood.c...
www.banggood.c...
www.banggood.c...
Buy Arduino starter kit:
www.banggood.i...
www.banggood.i...
www.banggood.i...
Sensor Kits :
www.banggood.i...
www.banggood.i...
_____________________________________________

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 100   
@shivanSpS
@shivanSpS 2 года назад
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.
@englishrupe01
@englishrupe01 4 года назад
Wow...that's cool! Great project....thanks!
@electronicGURU
@electronicGURU 4 года назад
Your welcome 😃😃
@unitedrobotics7377
@unitedrobotics7377 4 года назад
I really appreciate ur work.. ... ..
@electronicGURU
@electronicGURU 4 года назад
Thanks buddy ☺️👍
@r.z.4007
@r.z.4007 2 года назад
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!
@regenesisiot7466
@regenesisiot7466 2 года назад
that's one hell of pretty beaten up little veteran speaker ... don't you thing it's time to retire him?
@markandeysinghyt
@markandeysinghyt 4 года назад
Great job buddy.
@electronicGURU
@electronicGURU 4 года назад
Thanks 👍
@shrikantnikam2426
@shrikantnikam2426 4 года назад
I am looking for this, subscribed
@electronicGURU
@electronicGURU 4 года назад
Thanks buddy 😁☺️
@tamil6607
@tamil6607 Год назад
working thanks a lot man
@technolabcreation
@technolabcreation 4 года назад
Nice project
@electronicGURU
@electronicGURU 4 года назад
Thanks Buddy 😊👍
@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
@mpkumar7786
@mpkumar7786 Год назад
Wonderful.
@Locuslokalokuza
@Locuslokalokuza 3 года назад
This is awesome
@electronicGURU
@electronicGURU 3 года назад
Thank you 😊😊👍
@jimbrooks7327
@jimbrooks7327 2 года назад
Nice!
@hfe1833
@hfe1833 3 года назад
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.
@abrandrozario9002
@abrandrozario9002 9 месяцев назад
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.
@brandontechnerd
@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.
@techprolet
@techprolet 3 года назад
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).
@andrewandrosow4797
@andrewandrosow4797 3 года назад
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))
@surflaweb
@surflaweb 2 года назад
what's the value of the resistor? 42 ohm?
@Neruppuda436
@Neruppuda436 5 месяцев назад
Hi this is amazing, but I'm trying to do the same with esp32 and it's not working
@suryagodim8132
@suryagodim8132 Год назад
Mantap
@Rk_954
@Rk_954 Год назад
Hey friend I am going to store bihari voice ..... Jaldi waha se hato and play it in my school...
@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, 😔😔
@belajardanberbagiapapunitu4246
@belajardanberbagiapapunitu4246 7 месяцев назад
what if you use 2 voices, please help friends, thank you in advance.
@c3celea
@c3celea 3 года назад
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 года назад
@@electronicGURU oh ok. Thanks for answering
@electronicGURU
@electronicGURU 3 года назад
Your welcome 😃
@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
@cikaldev
@cikaldev 3 года назад
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 3 года назад
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
@nizamachmady1682
@nizamachmady1682 6 месяцев назад
How to increase the volume?
@jayaram00001
@jayaram00001 3 года назад
This is really useful. Do you know a way to use an amplifier like pam8403 instead of TIP120 transistor ?
@electronicGURU
@electronicGURU 3 года назад
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
@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
@G-Code_official
@G-Code_official 2 года назад
How would you play sound and keep scanning for any inputs?
@isidrorosales476
@isidrorosales476 2 месяца назад
bro, can i use 2N2222 npn instead of TIP?
@FehnrirX
@FehnrirX 3 года назад
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
@rittikn
@rittikn 6 месяцев назад
Please share the link to the source code. Thanks
@gauninha12
@gauninha12 3 года назад
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 года назад
To be honest noticable delay would be there and audio could be okay okay types but not very pleasant.
@gauninha12
@gauninha12 3 года назад
@@electronicGURU Thank you for the feedback! :)
@electronicGURU
@electronicGURU 3 года назад
Your welcome 😃
@pawelwojcik7550
@pawelwojcik7550 3 года назад
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.
@rameshr9110
@rameshr9110 2 года назад
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
@abhishekreddy2425
@abhishekreddy2425 4 года назад
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 4 года назад
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 4 года назад
@@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 4 года назад
I haven't tried but i think it could work. Or try to begin it in loop as well.
@abhishekreddy2425
@abhishekreddy2425 4 года назад
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
@anonymouseanonymous2533
@anonymouseanonymous2533 3 года назад
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)
@elisabethandarge1194
@elisabethandarge1194 3 года назад
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?
@electronicGURU
@electronicGURU 3 года назад
Yes you can.
@elisabethandarge1194
@elisabethandarge1194 3 года назад
Thank you
@electronicGURU
@electronicGURU 3 года назад
Your welcome
@HaiNguyen-cf1ji
@HaiNguyen-cf1ji 3 года назад
What if I want the output to be stereo instead of mono
@electronicGURU
@electronicGURU 3 года назад
Well as of now it can't be done.
@ernestsbrigis1004
@ernestsbrigis1004 3 года назад
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 года назад
@@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 года назад
@@electronicGURU but before I changed it to NoDAC there was no difference between original audio file and -40db audio
@electronicGURU
@electronicGURU 3 года назад
oh might be DAC error it should be normalizing the audio i guess
@AlexAmayaGuitar
@AlexAmayaGuitar Год назад
Hi!! great proyect, mine not compiles :(
@eat3dhonduras287
@eat3dhonduras287 Год назад
Dear instructor, how do you star the sound with a puch botton_? or just connec and is aways playing?
@Neruppuda436
@Neruppuda436 5 месяцев назад
Im also searching for the same, no solution
@AUDIOLABS
@AUDIOLABS 2 года назад
How to make output clear without noise
@niroshachamali6122
@niroshachamali6122 Год назад
Can we play many songs at one time
@leonel951000
@leonel951000 3 года назад
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.
@skylersell4219
@skylersell4219 3 года назад
how long of a file can you play
@electronicGURU
@electronicGURU 3 года назад
It depends on the audio what is the sample rate and such
@meenakshiagarwal6724
@meenakshiagarwal6724 3 года назад
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
@deeproy5353
@deeproy5353 3 года назад
need a little help to play the audio in loop
@electronicGURU
@electronicGURU 3 года назад
Ok add a while loop
@deeproy5353
@deeproy5353 3 года назад
@@electronicGURU thanks, but I just ESP.restart after audio stoped 😎
@electronicGURU
@electronicGURU 3 года назад
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 года назад
@@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.
@user-np6dm7ks3e
@user-np6dm7ks3e 2 года назад
how can i loop this ????
@DrShroom.
@DrShroom. 2 года назад
put in in a void loop();
Далее
гендер пати🩷🩵
00:21
Просмотров 58 тыс.
The coolest robot I've ever built!
19:40
Просмотров 4,6 млн
ESP32 .WAV File Playback | PAM8302 Audio Amplifier
8:18
ESP32 Walkie-Talkie: DIY Audio Magic
8:50
Просмотров 111 тыс.