Coder Social home page Coder Social logo

sound comes out in chunks about esp-radio HOT 7 CLOSED

edzelf avatar edzelf commented on September 27, 2024
sound comes out in chunks

from esp-radio.

Comments (7)

Edzelf avatar Edzelf commented on September 27, 2024

It looks like you have the diodes mounted in reverse.
For testing you could do without the reset circuit.
First step is to get rid of the error messages. Are you sure that the GND of the VS1053 is tightly connected to the GND of the ESP?

While not playing, ringbuf 0, stream 0 is okay (no streem, nothing buffered).
During playing the ringbuf is mostly filled up to 20000 bytes and the stream should also have some bytes in it.

from esp-radio.

tomtobback avatar tomtobback commented on September 27, 2024

Hi Ed, i got rid of some errors; Slow SPI is working, but the Fast SPI test still fails as below
CPU is set to 160MHz, not sure where the speed issue comes from. the ESP-12 that i am using is quite old, maybe a hardware issue, i'll buy a new one to try. or any other ideas?
Thanks a lot- Tom

D: Reset VS1053...
D: End reset VS1053...
D: Slow SPI,Testing VS1053 read/write registers...
D: Fast SPI, Testing VS1053 read/write registers again...
D: VS1053 error retry SB:07E9 R1:07E9 R2:0000
D: VS1053 error retry SB:13E9 R1:13E9 R2:0000
D: VS1053 error retry SB:17A9 R1:17A9 R2:0000
D: VS1053 error retry SB:1929 R1:1929 R2:0000
D: VS1053 error retry SB:1AA9 R1:1AA9 R2:0000
D: VS1053 error retry SB:1C29 R1:1C29 R2:0000
D: VS1053 error retry SB:1DA9 R1:1DA9 R2:0000
D: VS1053 error retry SB:2FA9 R1:2FA9 R2:0000
D: VS1053 error retry SB:3009 R1:3009 R2:0000
D: VS1053 error retry SB:3069 R1:3069 R2:0000
D: VS1053 error retry SB:37E9 R1:37E9 R2:0000
D: VS1053 error retry SB:38A9 R1:38A9 R2:0000
D: VS1053 error retry SB:3A29 R1:3A29 R2:0000
D: VS1053 error retry SB:3BA9 R1:3BA9 R2:0000
D: VS1053 error retry SB:3EA9 R1:3EA9 R2:0000
D: VS1053 error retry SB:43E9 R1:43E9 R2:0000
D: VS1053 error retry SB:47A9 R1:47A9 R2:0000
D: VS1053 error retry SB:4929 R1:4929 R2:0000
D: VS1053 error retry SB:4AA9 R1:4AA9 R2:0000
D: VS1053 error retry SB:4C29 R1:4C29 R2:0000
D: endFillByte is 0

from esp-radio.

Edzelf avatar Edzelf commented on September 27, 2024

Looks like an SPI problem.
Did you check the ground connections?
You may try to run the ESP on 80 MHz, change line 1382 to:
system_update_cpu_freq ( 80 ) ; // Set to 80/160 MHz.
You may also try to disconnect the TFT display, it shares the SPI bus and maybe there is something wrong there.

from esp-radio.

tomtobback avatar tomtobback commented on September 27, 2024

Hi Ed,
It seems i have identified the cause of the problem: the VS1053 i am using is an Arduino shield, with a SD card, and when an SD card is inserted, it interferes with the SPI. As soon as i unplug the SD card, it works without a glitch! I tried pulling the chip select of the SD card high but that does not solve it. Maybe you have any ideas?
Thanks a lot for this great project.

from esp-radio.

Edzelf avatar Edzelf commented on September 27, 2024

Yes, that makes sense. Maybe you can find out what GPIO is used for the SD card and then redefine the pins used in the project.
Have you noticed the new version of Esp_radio (with MQTT and new configuration setup)?

from esp-radio.

tomtobback avatar tomtobback commented on September 27, 2024

hi Ed, all working fine now with the new version, without display, one button on GPIO0 for next station. It seems the next station function does not check for the number of defined stations so it just keeps going up, trying even when there's no presets - is this easy to fix?
Another note; the code as GPIO0 as INPUT_PULLUP so the 10K resistor in the schematics is not necessary, right?
And in the VS1053.begin, the test for slow SPI says 2MHz in the comments but the number is 200,000 so that is rather 200kHz, right?

from esp-radio.

Edzelf avatar Edzelf commented on September 27, 2024

tomtobback:
1 - Will return to preset 0 now after highest preset.
2 - Pull-up not necessary (but doesn't harm).
3- Slow SPI test is at 200 kHz indeed.

Current version has some loose ends, as I am trying to make uploads more stable and I am busy to support stand-alone mp3 files.

from esp-radio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.