ESP32 Webradio

Gaz0rp
Posts: 6
Joined: Sat Aug 25, 2018 7:07 pm

Re: ESP32 Webradio

Postby Gaz0rp » Tue Dec 18, 2018 8:34 pm

Hi,

i've found this: https://www.waveshare.com/uda1380-board.htm
Would that work? Looks good, Line IN Line OUT and MIC IN ;-)
It has I2S, but not sure about the MCLK

axk123
Posts: 4
Joined: Mon May 06, 2019 7:37 pm

Re: ESP32 Webradio

Postby axk123 » Mon May 06, 2019 7:49 pm

Dear all,

I'm trying to run ESP32_MP3_Decoder with a MAX98357A board from Aliexpress and a 4R speaker from Aliexpress.
The speaker measures 4R with my multimeter.
I'm powering the whole thing from a 1A USB charger.
I've tried powering the MAX98357A board from the regulated 3.3V from the ESP32 board and directly from Vin on the ESP32 board (4.5V in my case).
make monitor shows that a stream is playing (buffering at about 95-99%).
I've measured LCR, BCLK and DIN with an oscilloscope and these look good (see the screenshots), but there's no audible output on the speaker.
Measuring the speaker output with an oscilloscope shows some regular gibberish with frequencies of 250KHz and above.
What can I be doing wrong?
Is it possible that the USB charger doesn't give enough current to power the MAX98357A?
DS1Z_QuickPrint65.png
DS1Z_QuickPrint65.png (54.91 KiB) Viewed 1339 times
DS1Z_QuickPrint64.png
DS1Z_QuickPrint64.png (54.68 KiB) Viewed 1339 times

axk123
Posts: 4
Joined: Mon May 06, 2019 7:37 pm

Re: ESP32 Webradio

Postby axk123 » Tue May 07, 2019 9:57 am

Please ignore my previous message.
This was an issue with the MAX98357A board.
OUT(-) on the QFN was not soldered, Do'h!
Never happened to me before on a factory assembled board.

axk123
Posts: 4
Joined: Mon May 06, 2019 7:37 pm

Re: ESP32 Webradio

Postby axk123 » Mon May 27, 2019 10:45 pm

Hi Guys!

How difficult is it to modify the source code so that it saves the currently selected station between power-ons?

I can write C code but I'm not familiar with ESP32, so not sure how much time it will take me to figure it out , so I would appreciate a hint on where I should add this state-saving/restoration code if it is possible and roughly what it should look like and what ESP32 APIs it should use.

Thank you for your help!

Aleksey

karawin
Posts: 5
Joined: Sat Oct 07, 2017 3:07 pm

Re: ESP32 Webradio

Postby karawin » Tue May 28, 2019 1:02 pm


axk123
Posts: 4
Joined: Mon May 06, 2019 7:37 pm

Re: ESP32 Webradio

Postby axk123 » Tue May 28, 2019 7:51 pm

Thanks!

Does it work with just the ESP-WROOM-32 board + I2S amp with no LCD or anything else?

I'm still hoping it is possible to easily update ESP32 Web Radio's source to save the selected station, probably easier then compiling and deploying a new project.

karawin
Posts: 5
Joined: Sat Oct 07, 2017 3:07 pm

Re: ESP32 Webradio

Postby karawin » Tue May 28, 2019 10:22 pm

Yes from the simplest configuration: only the esp32 with internal dac output to the full one with lcd, encoders buttons vs1053 or external dac.

PepeESP32
Posts: 9
Joined: Tue Jun 04, 2019 7:41 am

Re: ESP32 Webradio

Postby PepeESP32 » Thu Jun 13, 2019 11:59 am

Hello Guys,

I am still pretty new to the ESP32 and I think it has a very capable set of features. Impressive part really.

In a project I am working on a webbased radio. I know there are implementations with the ESP32. The two main approaches I found are:
- ESP32 with ext. VS1053 audio Decoder and Display
- ESP32 with intenal SW audio decoding and no Display

I was wondering if the ESP32 is able to decode audio without the additional HW, run an SPI based Display (like matrix 128x64 or TFTs with max 320x240 or less resolution) in parallel with no stream disconnects or buffer lags. PSRAM will be set given.

Ontop of that equalizers in SW would be the "kings class", basically they are possible as the ESP audio development framework shows (10 band EQ).

Any thoughts on reducing the VS1053 from this project and directly deode Audio on the ESP32??

Thanks!

BuddyCasino
Posts: 262
Joined: Sun Jun 19, 2016 12:00 am

Re: ESP32 Webradio

Postby BuddyCasino » Thu Jun 13, 2019 12:04 pm

All of those things have been done, so they are possible. With PSRAM you should have no issues with buffer underruns.

PepeESP32
Posts: 9
Joined: Tue Jun 04, 2019 7:41 am

Re: ESP32 Webradio

Postby PepeESP32 » Thu Jun 13, 2019 12:48 pm

True :)
But all at once in one project? But sorry, don't waat to hi-Jack this thread...

Who is online

Users browsing this forum: No registered users and 1 guest