A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By lechiJb
#56329 Hey guys,

I like to introduce my ESP8266 WLAN radio project to you.
This project is based ton he ESP8266_MP3_DECODER example from Espressif.

The radio provides audio-streaming by use of the I2S-interface and an external PCM5102-chip. All settings (stream-URL, stream-Port, WLAN-settings) are adjustable by an integrated HTML-server and stored at the integrated flash chip.

The code is available at github:
https://github.com/lechiJb/myRadio.git

Maybe some parts of the code might help some of you.

Greets,

Christian
User avatar
By jkj@myrun.dk
#56870 Very nice project and documentation. I got it up running in no time.

I do have problems config the i2S format from the ESP8266 to my digital audio input amplifier. Did you play with that or do the PCM5102 just eat what ever and adapt to that.

Regards Jørgen
Merus Audio
User avatar
By lechiJb
#57457 Hello,

first sorry for my late response...

At first I had also some issue to get the i2s running.
But I just need to comment out following line in file playerconfig.h:
ALLOW_VARY_SAMPLE_BITS

If you have another i2s-source (not a pcm5102-chip) maybe you will need some other settings.

Did you already tried to enable the PWM_HACK-feature with a headset-speaker directly connected to i2s pins?

Best regards,
Christian
User avatar
By Warthog
#59210 Hello Christian,
I have problems to get things running. At the beginning I got an error message:

HW init. Wait for WIFI
mode : sta(a0:20:a6:0b:e7:05)
add if0
flash - Header-data does not match -1
flash - Err read header
init - Faild to read Flash

init - Write WLAN-Data
init - Write Channel-Data
channel - SetStream-Count, count=1
channel - StreamCount_old = 0
channel - SetStream-Host
channel - SetStream-Path, i=0, len=28
channel - SetStream-Port 0, port = 80
adc 223
adc - new stream = 0
START CLIENT MODE
scandone
wifi - SSID: Test_Pass
WIFI SSID Test_SSID set
WIFI Pass Test_Pass set
scandone
no Test_SSID found, reconnect after 1s
reconnect

Flashing was done to a new ESP12F with 32Mb flash, I also flashed esp_init_data_default.bin to 0x3fc000.

Maybe you can help? Thanks a lot!