-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Esp radio - lag of stream with 12 MHz VS1053 #188
Comments
The more I look into this, the more I think it's because of lag. |
Strange. Looks like the clock frequency of the VS1053 is to low. Could you try a spare VS1053? |
Thanks for answer. I thought that, too. Tried another VS1053, same result, but spare module is from the same "bunch" and they both might be faulty. |
Well, for now looks like I have bad luck with VS1053. The different one I can't get to work, but I noticed that frequency written on crystal on the non working VS is slightly higher than on other two (those that play to slow) - 12.288 MHz vs. 12.000 MHz. update: I just found another VS1053 with 12.000 MHz crystal and it plays slow as well. |
OK, I managed to get to work the other VS1053 (the one with 12.288 MHz - MOSI and MISO were mislabeled) and now radio works as it should. Looks like we have to be careful when ordering VS1053s. |
The difference between 12.288 and 12.000 explains the 3 percent difference in playing speed. Maybe you can replace the xtal with the right one. This will cost you 10 dollarcent or so. Chinese manufacturers tend to replace components with ones that are "just as good as the original". |
I'll certainly try that. |
I might have found the solution.
So I modified line 599 from Radio works now correctly with 12 MHz VS1053. At least for mp3 with 44 kHz sampling rate. It appears AAC is not working. One more thing: I was thinking of separate power source for NodeMCU and VS1053 instead same as amplifier. Is 700mA (or maybe even 500mA) enough to power NodeMCU and VS1053? |
Yes, great! |
I will still try to find solution for AAC which is now not working. |
If you have a VS1003, it will not work. |
And it doesn't work. Well in fact I have VS1003 and all the time I thought I have VS1053 🤣 But chip is in fact VS1003b. |
Hello!
Thanks for your great work on this project. And above all on support offered!
I made this project on NodeMCU v3 (esp-12F). Works like intended, except for similar situation than here.
No matter what channel, radio stops and skips to next channel after exactly 25 minutes (1500 seconds). Now, this may be network issue, but went unnoticed till now on other devices - radio keeps playing on other devices without interruptions.
If I manually switch channels the 25 minutes counter resets.
Could it be that built in watchdog is to sensitive? How do I disable it?
update: I'm now investigating into faulty esp direction. Still would like to know how to disable watchdog.
update 2: I now noticed if I start same stream on ESP radio and computer simultaneously, the stream on ESP radio soon starts lagging behind (plays slower) - therefore I suspect buffer is filling and once full stream just stops. Am I right?
The text was updated successfully, but these errors were encountered: