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

  Рет қаралды 73,353

electronic GURU

electronic GURU

Күн бұрын

Пікірлер: 102
@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.
@r.z.4007
@r.z.4007 3 жыл бұрын
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!
@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
@regenesisiot7466
@regenesisiot7466 2 жыл бұрын
that's one hell of pretty beaten up little veteran speaker ... don't you thing it's time to retire him?
@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))
@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.
@ysir-k2m
@ysir-k2m 12 күн бұрын
Thank you so much ! I findly this!
@englishrupe01
@englishrupe01 4 жыл бұрын
Wow...that's cool! Great project....thanks!
@electronicGURU
@electronicGURU 4 жыл бұрын
Your welcome 😃😃
@elisabethandarge1194
@elisabethandarge1194 4 жыл бұрын
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 4 жыл бұрын
Yes you can.
@elisabethandarge1194
@elisabethandarge1194 4 жыл бұрын
Thank you
@electronicGURU
@electronicGURU 4 жыл бұрын
Your welcome
@abrandrozario9002
@abrandrozario9002 11 ай бұрын
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.
@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).
@unitedrobotics7377
@unitedrobotics7377 4 жыл бұрын
I really appreciate ur work.. ... ..
@electronicGURU
@electronicGURU 4 жыл бұрын
Thanks buddy ☺️👍
@shrikantnikam2426
@shrikantnikam2426 4 жыл бұрын
I am looking for this, subscribed
@electronicGURU
@electronicGURU 4 жыл бұрын
Thanks buddy 😁☺️
@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 😃
@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.
@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
@surflaweb
@surflaweb 2 жыл бұрын
what's the value of the resistor? 42 ohm?
@isidrorosales476
@isidrorosales476 4 ай бұрын
bro, can i use 2N2222 npn instead of TIP?
@Neruppuda436
@Neruppuda436 6 ай бұрын
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
@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.
@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
@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 😃
@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.
@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, 😔😔
@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?
@rittikn
@rittikn 8 ай бұрын
Please share the link to the source code. Thanks
@niroshachamali6122
@niroshachamali6122 Жыл бұрын
Can we play many songs at one time
@eat3dhonduras287
@eat3dhonduras287 Жыл бұрын
Dear instructor, how do you star the sound with a puch botton_? or just connec and is aways playing?
@Neruppuda436
@Neruppuda436 7 ай бұрын
Im also searching for the same, no solution
@G-Code_official
@G-Code_official 2 жыл бұрын
How would you play sound and keep scanning for any inputs?
@belajardanberbagiapapunitu4246
@belajardanberbagiapapunitu4246 9 ай бұрын
what if you use 2 voices, please help friends, thank you in advance.
@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 3 жыл бұрын
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
@rameshr9110
@rameshr9110 3 жыл бұрын
sir i am using Nodemcu. but example code not working..sir website not open well
@electronicGURU
@electronicGURU 3 жыл бұрын
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
@nizamachmady1682
@nizamachmady1682 8 ай бұрын
How to increase the volume?
@technolabcreation
@technolabcreation 4 жыл бұрын
Nice project
@electronicGURU
@electronicGURU 4 жыл бұрын
Thanks Buddy 😊👍
@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
@kannadanudi8444
@kannadanudi8444 2 жыл бұрын
How can we, play continuously (infinite)
@markandeysinghyt
@markandeysinghyt 4 жыл бұрын
Great job buddy.
@electronicGURU
@electronicGURU 4 жыл бұрын
Thanks 👍
@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.
@Rk_954
@Rk_954 Жыл бұрын
Hey friend I am going to store bihari voice ..... Jaldi waha se hato and play it in my school...
@AlexAmayaGuitar
@AlexAmayaGuitar Жыл бұрын
Hi!! great proyect, mine not compiles :(
@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
@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
@AUDIOLABS
@AUDIOLABS 2 жыл бұрын
How to make output clear without noise
@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.
@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
@carlanwray8718
@carlanwray8718 Ай бұрын
Thanks
@tamil6607
@tamil6607 Жыл бұрын
working thanks a lot man
@jimbrooks7327
@jimbrooks7327 3 жыл бұрын
Nice!
@Locuslokalokuza
@Locuslokalokuza 3 жыл бұрын
This is awesome
@electronicGURU
@electronicGURU 3 жыл бұрын
Thank you 😊😊👍
@mpkumar7786
@mpkumar7786 Жыл бұрын
Wonderful.
@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.
@suryagodim8132
@suryagodim8132 Жыл бұрын
Mantap
@محمدمهدیترکمانی-س1ع
@محمدمهدیترکمانی-س1ع 2 жыл бұрын
how can i loop this ????
@DrShroom.
@DrShroom. 2 жыл бұрын
put in in a void loop();
Connect Nodemcu and Micro SD-card Without SD-card Shield
13:20
Wifi Audio Notifier using ESP8266: Play MP3, TTS & RTTL
5:20
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 7 МЛН
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 51 МЛН
Каха и лужа  #непосредственнокаха
00:15
Best power saving mode - Much Deeper Deep Sleep ESP8266
10:30
DIY TECH BROS
Рет қаралды 99 М.
Play MP3 Files on ESP32 Without Codec Chip: Easy Guide
8:51
atomic14
Рет қаралды 89 М.
Forget WiFi! This Wireless Method is WAY Better?
12:14
GreatScott!
Рет қаралды 662 М.
Running ChatGPT on ESP32 with Audio Output 🔉🔊
10:50
techiesms
Рет қаралды 70 М.
Building a Digital Music Player with I2S?! What is I2S! EB#45
10:24
✅ Música Digital Dentro del ESP32 esta genial para hacer proyectos
9:41
ESP32 .WAV File Playback | PAM8302 Audio Amplifier
8:18
datasith
Рет қаралды 53 М.
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 7 МЛН