-->
Page 1 of 2

ESP8266 WLAN radio

PostPosted: Mon Oct 10, 2016 2:11 pm
by lechiJb
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

Re: ESP8266 WLAN radio

PostPosted: Thu Oct 20, 2016 4:59 pm
by jkj@myrun.dk
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

Re: ESP8266 WLAN radio

PostPosted: Mon Oct 31, 2016 1:48 pm
by lechiJb
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

Re: ESP8266 WLAN radio

PostPosted: Wed Dec 07, 2016 8:01 am
by Warthog
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!