Giter Site home page Giter Site logo

Sound Distortion about esp32-radio HOT 5 CLOSED

edzelf avatar edzelf commented on July 16, 2024
Sound Distortion

from esp32-radio.

Comments (5)

derpicknicker1 avatar derpicknicker1 commented on July 16, 2024

Works fine for me.

from esp32-radio.

Edzelf avatar Edzelf commented on July 16, 2024

Sound quality is good, but I do hear some short breaks (average about 2 per minute). @mike: is that the distortion you experience?
This can be heard during the handling of the "streamtitle" in the data stream. The streamtitles is included in the datas tream very often for this station. In my setup this streamtitle is transmitted to my mqtt server, which also takes some time to handle.
I changed the configuration (mqttbroker = none). That makes no difference.
Then I changed the configuration to "no TFT". That also makes no difference.
The conclusion sofar is that there must be some code error in the handling of the streamtitle.
I will test this later.

from esp32-radio.

MMSchneider avatar MMSchneider commented on July 16, 2024

@Edzelf not quite. It is really like over-amplified and like saturation. But since @derpicknicker1 does not have this issue, I sense that it may come from the ESP32 <--> VS1053 SPI connection. Maybe I do not get enough throughput. Interestingly 64kBit Streams do not have this issue. I will replace cables and make them shorter. Lets see.

AND: @Edzelf -> Thanks for this outstanding piece of Code!

from esp32-radio.

koskee avatar koskee commented on July 16, 2024

Sounds pretty good to me too, but like Ed said, the stream has a few hiccups once in a while...

Another thing you might want to look into is noise on your power supply. Sharing a supply with other devices has caused me issues similar to what you're describing in the past.
I've noticed that if I am powering from the USB bus on my laptop, and I plug in another device alongside the radio, I have on occasion got a volume spike/over saturated sound which lasts until manually rebooting the device. After that it is no problem.

You could try beefing up your power supply filter, either by adding more uF (maybe try doubling it) or by adding small ceramic capacitors of various values (for example, 1nF, 10nF, 100nF, 1uF and anything in between. The more, the better) The small ceramic caps serve to filter out specific frequencies, so if you can hit the correct value for any noise you may be encountering, it should filter it out. There's a formula you can use if you know the frequency, but you'd need an oscilloscope to quantify it.

A much simpler approach might be to try a different PS, one rated for a at least 1A, and only attach the radio (if you had other things connected).

Just some food for thought.

from esp32-radio.

MMSchneider avatar MMSchneider commented on July 16, 2024

SOLVED - Just want to mention that the distortion has gone after replacing the wires between ESP32 and VS1053. Seems that a good connection is key.
Thanks for all the help.

from esp32-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.