Close
0%
0%

WiFi Webradio on ESP8266 or ESP32

KaRadio
A fully featured wifi web radio player with only low cost boards.
with or without a vs1053 board

Similar projects worth following
Control with any browsers (ie edge, chrome mozilla etc...).
or with an external hardware panel or with the uart interface or with telnet.
Memory for 255 stations
OTA (On the Air) upgrade,
Read direct mp3 or ogg or WMA streams or playlist .pls .m3u, asx and .xspf
Read up to a 320 kb/s stream,
Encoder, IR, lcd ...
Embedded wifi configuration via the web or serial or telnet.
Metadata displayed (ie Title of the current song if given in the stream),
Permanent setting (sound setting, stations, wifi)
Server multi clients with automatic refresh (websocket),
The stations may be downloaded and uploaded within the web site,
Stations sort management by drag drop.
very quick responsive web by caching local information in the browser and websocket.
additional hardware: a led indicates the state of the equipment
Optional: control switches, lcd display, additional ram for buffering

See http://www.instructables.com/id/Wifi-Webradio-With-ESP8266-and-VS1053 for the description of the minimal prototype.

See Github for sources

See github source for the ESP32 version ( vs1053 or i2s or pcm or internal DAC)

See A project derived from KaRadio32 in progress.

See the lcd +IR software's on Github AddOn

See some realizations of users at KaraDio

A nextion touchscreen display for KaraDio from yo2ldk : Here

For more informations or questions, you can enter to the Karadio facebook group


KaRadio32 Release 1.9


KaRadio32:

Release 1.9 Rev4 - Built on 2019/04/28

New:

  • 1.9 R4:
    • wifi.auto command now disable the AP mode if already connected to an AP in the past.
    • I2S corrected for 32bit output stream. Thanks to har-in-air github user.
    • Instant play: new button "Add/Edit", and update fields on cli commands.
  • 1.9 R3:
    • blank password accepted.
    • New lcd types: LCD_I2C_ST7567, LCD_SPI_ST7567_pi , LCD_SPI_ST7567, LCD_SPI_ST7565_NHD_C12864
    • New nvs_partition_generator.sh and nvs_partition_gen.py: comment line # comment, now permitted.
    • cli.list correction.
    • Minor corrections.
  • 1.9 R2:
    • New option for the active level of buttons.
    • Little bug removed on color lcd.
    • Telnet disabled in AP mode.
    • Key Ctrl space, Ctrl left, ctrl right, ctrl top, ctrl bottom on web page for control.
  • 1.9 R1:
    • Labels in the csv hardware configuration.
    • Toggle main/time now permanent. On time display, an event go to the main screen for 3 seconds then return to time screen.
    • More reactive display on lcd.
  • 1.9 R0:
    • Improved encoder for new chinese device (shorter pulses) (reverse A/B in case of reverse way)
    • Better vs1053 detection.
    • No more fall back to i2s when the vs1053 is not detected.
    • RSSI display needed a click of a button to start.
    • AP mode on init: the web page starts on the "Setting" panel and the stations list is skipped.
    • Wifi option: If wifi is disconnected choose to reset or wait for the connection on the same SSID:
    • Command wifi.auto("x") with x = 0: reboot, x=1: wait for the SSID
    • For internal reasons, the touch screen needs to be calibrated again.
    • Many small improvements in the code.

KaRadio: Release 1.9

Release 1.9 R4 - Built on 2019/05/26

New:

  • 1.9 R4:
    • LWIP layer tuned. Better errno 11 computing.
  • 1.9 R3:
    • Instant play: new button "Add/Edit", and update fields on cli commands.
  • 1.9 R2:
    • AP mode no working. A wrong lwip was the cause. Now 192.168.4.1 is working.
  • 1.9 R1:
    • Keyboard on web page correction.
    • cli.list correction.
  • 1.9 R0:
    • Use of the RTOS SDK 2.0.0.

History:

history

For ESP32 see the github page KaRadio32. Release 1.6 R4

ESP8266 Simplest prototype:

... Read more »

user1.4096.new.4.bin

KaRadio 1.9 Rev4 AP corrected

octet-stream - 421.50 kB - 08/02/2019 at 21:04

Download

user2.4096.new.4.bin

KaRadio 1.9 Rev4 AP corrected

octet-stream - 421.50 kB - 08/02/2019 at 21:04

Download

KaRadio32.bin

KaRadio32 1.9 Rev 4

octet-stream - 1.40 MB - 06/05/2019 at 13:27

Download

octet-stream - 3.98 kB - 09/17/2017 at 10:26

Download

octet-stream - 4.00 kB - 07/21/2016 at 15:19

Download

View all 6 files

View all 6 components

View all 11 project logs

  • 1
    Step 1

    Wiring:

    From ESP8266_ESP12( 3.3 v) or nodeMCU(5v) to VS1053 (5 v)

    REST:

    ADC : gound if control panel not used

    CH_PD to 3.3v

    GPIO16 led output

    D5:GPIO14 to VS1053 SCK

    D6:GPIO12 to VS1053 MISO (or so)

    D7:GPIO13 to VS1053 MOSI (or si)

    TXD to CH340G UART rx

    RXD from CH340G UART tx

    D1:GPIO05 to VS1053 XDCS

    D2:GPIO04 to VS1053 DREQ

    D3:GPIO00 to VS1053 XRST

    GPIO02

    D8:GPIO15 to VS1053 XCS

View all instructions

Enjoy this project?

Share

Discussions

Antimaster wrote 12/24/2016 at 13:45 point

I've build the radion in a nice wood case. If some one can say me how to insert pictures i can show you my case.

  Are you sure? yes | no

Thomas wrote 12/27/2016 at 11:07 point

We woukd realy like toll See your Radio.

Upload your picture here and integrate Link into your Post here.

http://tinypic.com

Regards Thomas

  Are you sure? yes | no

mangup wrote 12/22/2016 at 22:12 point

Nice project. I made it! As a user I have opion that there is missing config for alternative wifi connection.  I made portable speaker with this webradio client and I am limited to small radius where is first of two AP that I have. Thanks to make this project and share with others!!!!

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/22/2016 at 22:20 point

Thanks, It is in the todo list. If an AP is successfully connected, it will be added in an internal history list. If the equipment is moved away from the current AP, the list will be tried before the default AP. I have to improve the speed of the detection and make a not too long history of AP ;-)

  Are you sure? yes | no

mangup wrote 12/22/2016 at 22:25 point

Super! 

Thanks Dejan

  Are you sure? yes | no

mangup wrote 12/28/2016 at 00:16 point

I have one question. I don't understend function Monitoring in Main section. What that function do?
Thanks.

  Are you sure? yes | no

mangup wrote 12/30/2016 at 10:01 point

I found some bug. I make two webradio. One to play streeming on work and one for home (differend ip). I use phone to access and control both webradio. They don't have same playlist. But when I connect I have just last refreshed list from cache. Maybe we should each device to have its own id and through him to read his list from cache?

  Are you sure? yes | no

Thomas wrote 12/28/2016 at 08:06 point

With Monitoring you can hear the selected station on the device which is running the frontend. Try to access Karadio with you Mobile. Select a station press monitoring and increase the volume of your mobile. Then you will see.

Regards

Thomas

  Are you sure? yes | no

mangup wrote 12/28/2016 at 09:16 point

Thanks for explanation. Work how you said.

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/30/2016 at 10:55 point

"I found some bug. I make two webradio. One to play streeming on work and
one for home (differend ip). I use phone to access and control both
webradio. They don't have same playlist. But when I connect I have just
last refreshed list from cache. Maybe we should each device to have its
own id and through him to read his list from cache?"

It should not be a problem if ip are different between both because the browser "local storage" for the stations cache is per ip.

What browser do you use on the mobile?

  Are you sure? yes | no

mangup wrote 12/30/2016 at 11:23 point

I try firefox and some integratet in samsung s4

  Are you sure? yes | no

totalizator wrote 12/20/2016 at 13:17 point

After upgrade to 1.1.3 I can no longer play my liquidsoap mp3 stream. Has something changed? When playing it in an external player I have to add http:// prefix but I can't add it here. It worked in 1.1.2. Any ideas?

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/20/2016 at 13:22 point

remind me the url?

  Are you sure? yes | no

Thomas wrote 12/20/2016 at 14:43 point

Try to reimport your webstations.txt

This helped myself with non working stations after updating.

Regards

Thomas

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/20/2016 at 15:28 point

or do a refresh local list to read again the station list from the esp to the browser.

  Are you sure? yes | no

totalizator wrote 12/20/2016 at 23:37 point

Thank you but none of this helped. The fact is that it stopped working after the upgrade but there is a positive outcome. I have been using Liquidsoap to stream music from Mopidy https://www.mopidy.com/ but apparently this is not the best choice for a streaming frontend so I have switched to Icecast. Few seconds to configure it like here http://desmart.com/blog/music-as-part-of-positive-work-environment and it works even better - it's very lightweight (Icecast, contrary to what I have thought) and the stream starts immediately now.

  Are you sure? yes | no

Thomas wrote 12/19/2016 at 11:01 point

No Ide if it is possible, but what is about a functionality to syncronise playback of two or more KaRadios?

Regards

Thomas

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/20/2016 at 08:40 point

I don't think it is feasible due to the buffering technique of the stream. With equivalent memory the result may be acceptable but not perfect.

  Are you sure? yes | no

yo2ldk wrote 12/16/2016 at 06:31 point

Hi all radio fan !

 check this:

http://radio.garden/live/

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/16/2016 at 08:04 point

Amazing. Thanks

  Are you sure? yes | no

totalizator wrote 12/18/2016 at 21:31 point

Check this attachment if you need "a few" radio stations urls: http://talk.maemo.org/showpost.php?p=1461456&postcount=46 There is like ...all of them.

  Are you sure? yes | no

Thomas wrote 12/19/2016 at 07:24 point

Hi Totalizator,

great, thanks a lot.

Thomas

  Are you sure? yes | no

yo2ldk wrote 12/19/2016 at 12:19 point

nice collection, thank you !

  Are you sure? yes | no

Thomas wrote 12/12/2016 at 10:41 point

Soon i'm able to move my Karadio into the retro radio.
I itegrated all components to one board.

For final testing i assembled all in a box.

Sounds very good. Now some final adjustments on the LCD Software and im ready.
Regards

Thomas

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/12/2016 at 12:44 point

[I Like] button;-)

  Are you sure? yes | no

Thomas wrote 12/10/2016 at 20:14 point

Dear JP, Hope you are fine. What is the setting for the external DAC ? Does a higher sampling Rate increases the Sound Quality?

Regards Thomas

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/10/2016 at 21:04 point

Fine yes thanks. Just a cataract removed on 19....

I am not an expert of DAC.

May be discover1977 may answer?

  Are you sure? yes | no

Thomas wrote 12/12/2016 at 05:19 point

Oh, hope they could remove it to your satisfaction. I think this question is not longer important. I read a bit about it and realize that i dont use a external DAC. I thougt it maybe is integrated in the vs1053. Anyway, what is a simple way to identify Stream Url on a Website with its own Radio Player? Thanks Thomas

  Are you sure? yes | no

discover1977 wrote 12/13/2016 at 11:35 point

Hi Thomas! Yes, external DAC may sound better than the DAC built in VS1053. I have a D-class amplifier with S/PDIF input, to which I connect the radio. At this point, I'm almost fully completed the development of the PCB. I order the production of PCB, how to get will be collected. Well, of course, I share the results :-)
Regards, Ivan!

  Are you sure? yes | no

Thomas wrote 12/13/2016 at 13:04 point

Hi Ivan,

i wait eagerly what you came up with :-)

In the beginning i tried also to make a pcb, but it was to time intensive for me

Regards and have fun

Thomas

  Are you sure? yes | no

totalizator wrote 12/07/2016 at 22:47 point

Thank you so much for this project! So neat! You have made my kitchen a better place ;). Everything tastes better when listening to my favourite chiptunes radio. 

I hid it in a tea box, connected to an active usb hub. Together with an usb powered tiny speakers - it's a blast! 

I had a few problems when wiring the thing as it turned to be that my nodemcu is a version 2 and it has i bit different pinout. This site proved to be very helpful: http://frightanic.com/iot/comparison-of-esp8266-nodemcu-development-boards


  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/08/2016 at 15:28 point

Earl grey is a must ;-)

Thanks for your donation.

  Are you sure? yes | no

ldv82 wrote 12/07/2016 at 19:21 point

https://ru.aliexpress.com/item/ALIENTEK-VS1053-Module-MP3-Player-Audio-Decoding-STM32-Microcontroller-Development-Board/32709880343.html?spm=2114.13010608.0.0.yjWVMn

I'm waiting for this board. I want to aac playback. I have this as the first photo. It works with firmware 1.1.3. But I closed the 33-34 pins of the chip. It can also help.

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/07/2016 at 19:25 point

No, the patch is done by software to start in mp3 mode and not in midi mode.

  Are you sure? yes | no

yo2ldk wrote 12/07/2016 at 17:29 point

   I can confirm:
this modules (vs1003b) do NOT WORK  - i have two modules like this

nor it do not work


but this, (also with vs1003b) work well :

and this (vs1053) is VERY GOOD 


I hope this help you, friends.

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/07/2016 at 19:26 point

With the 1.1.3?

  Are you sure? yes | no

yo2ldk wrote 12/09/2016 at 06:09 point

I think is 1.1 or 2 not upgraded yet.

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/09/2016 at 10:00 point

1.1.3 is supposed to be compatible with vs1003.

Try it. (just a click to the Upgrade Now button on the settings panel).

  Are you sure? yes | no

yo2ldk wrote 12/12/2016 at 06:56 point

I know to make upgrade  :)  but now I run with VS1053 (last picture board), who have 1.1.3 version, the others boards is unused for the moment.

  Are you sure? yes | no

tvlab wrote 12/08/2016 at 13:45 point

I have a module VS1003 as in the third photo, but the sound comes intermittently. Don't understand :-(

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/08/2016 at 15:31 point

You don't answered: do you  speedtest with your phone without mobile data and with only wifi?

Try karadio closer of your ap to be sure.

  Are you sure? yes | no

yo2ldk wrote 12/09/2016 at 06:06 point

Also here, but only on 360Kb stations

  Are you sure? yes | no

tvlab wrote 12/09/2016 at 09:50 point

Sorry, I don't understand the question, so answered. Yes, I speetest only with wifi. And I wrote that karadio placed a meter away from AP.

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/11/2016 at 22:44 point

To all users of vs1003 and vs1053, in case of problem, check if  the pin 32 (test) if connected to vdd (pin 6 for example). Some old boards are missing this connection.


  Are you sure? yes | no

totalizator wrote 01/17/2017 at 16:34 point

The last one (red) - why is it better? Do they differ in sound quality?

  Are you sure? yes | no

yo2ldk wrote 01/17/2017 at 19:38 point

with that I not have any interrupts 

  Are you sure? yes | no

ldv82 wrote 12/06/2016 at 19:06 point
Maybe will be useful to someone. A small program on the windows Stream What You Hear (SWYH) http://www.streamwhatyouhear.com/
You can broadcast to the local network all the sounds from the computer. After starting the flow we get an address on the local network and prescribes it in Karadio.

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/06/2016 at 19:44 point

Interesting. I do that with vlc
Not sure for upnp and dlna. support with karadio.... 

Yes it works. just a volume problem and glitch  (100% cpu)

  Are you sure? yes | no

akpanda74 wrote 12/03/2016 at 07:53 point

Hi JP,

Thank you for the reply.

As suggested , did OTA to 1.1.3 and guess what ? I am hooked to the radio with a pair of headphones. The sound quality is surely good from the VS 1053. 

The other problem I am still facing is the loose connections in the connector cables that I am using to connect the ESP to the VS1053.

For all other users , please note that a single loose connection will spoil the day.  Make sure that all connections are as solid as possible.

I am thinking of putting the ESP and VS1053 on a PCB and solder the connections instead of using the jumper wires.

Thank you once again for the wonderful work !!

Regards,

Ashis

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/03/2016 at 13:43 point

Great. Yes soldering is far better than jumpers.

  Are you sure? yes | no

tvlab wrote 12/02/2016 at 03:48 point

Oh, it's great! With the new firmware 1.1.3 VS1003 module started to output sound, but he is constantly interrupted. It does not depend on the bitrate of the radio station - I have tried on different. It may be still possible to improve the firmware to work properly?

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/02/2016 at 08:11 point

Before thinking of a software improvement, are you sure that you are close enough from the ap, do you have enough bandwidth? This is the main reason for interruption.

  Are you sure? yes | no

tvlab wrote 12/02/2016 at 08:53 point

ESP8266 for test put a meter from the router. From another room on the phone started "speedtest" - he showed a receipt 28.56 Mbps and transmission 48.91 Mbps, that is stock speed is enough. Interrupts sound happen more often than once per second.

If the slider Spacialization move at minimal, then the sound completely disappears. The sound in the off position.

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/02/2016 at 09:36 point

On pure wifi without mobile data?

The spatialization didn't exist on VS1003.

The SCI_MODE (RW) register is not the same. I have to enforce the compatibility

http://www.vlsi.fi/fileadmin/app_notes/migrate03to53.pdf

  Are you sure? yes | no

tvlab wrote 12/02/2016 at 09:57 point

Speedtes is app for Android Phone, searches the web server and it exchanges information, so measures the speed. I have 100 Mbps router to the provider, so interested in WiFi speed in the house.

  Are you sure? yes | no

akpanda74 wrote 11/29/2016 at 14:47 point

Hi JP,

Tried my hands on this nice project as I was looking for such a project for quite sometime.Got the ESP running ,but could not get the sound from the VS1053. It seems to start (like some switching action and as if the playback will start), but... no luck .. The UART trace shows up - 

=> extraram state: 0 0xff ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
data  : 0x3ffe8000 ~ 0x3ffe88d4, len: 2260
rodata: 0x3ffe88e0 ~ 0x3ffea9e4, len: 8452
bss   : 0x3ffea9e8 ~ 0x3fff1898, len: 28336
heap  : 0x3fff1898 ~ 0x40000000, len: 59240
Heap size: 31456
t0 task: 3fff86d0
t1 task: 3fff8868
t4 task: 3fff8c90
t3 task: 3fff92b0
t2 task: 3fffa000
mode : sta(18:fe:34:f1:f4:cb)
add if0
I2S Speed: 0
SCI_Mode (0x4800) = 0x4802
SCI_Status (0x48) = 0x48
VS Version (VS1053 is 4) = 4
SCI_ClockF = 0x6000
UART READY TO READ
 Station Ip: 192.168.0.109
DHCP: 0x1
Device: Ip: 192.168.0.109

I: 0 status: 0
In I: 0 status: 1
In I: 1 status: 1
In I: 2 status: 1
scandone
state: 0 -> 2 (b0)
In I: 3 status: 1
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 1
pm open phy_2,type:2 0 0
cnt

connected with ASHIS_PANDA, channel 7
dhcp client start...
ip:192.168.0.109,mask:255.255.255.0,gw:192.168.0.100
autostart: playing:0, currentstation:24
I2S Speed: 0
##CLI.STOPPED#
##CLI.NAMESET#: 24 California 101
##CLI.URLSET#: www.california101radio.com
##CLI.PATHSET#: /california101.pls
##CLI.PORTSET#: 80
##CLI.URLSET#: cs1.california-101.com
##CLI.PATHSET#: /
##CLI.PORTSET#: 80
##CLI.STOPPED#

Am i missing something ?

regards,

ashis

  Are you sure? yes | no

ldv82 wrote 11/30/2016 at 17:14 point

It was possible to solve the problem? I have the same problem. I have described below. Waiting for a new card VS1053.

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 11/30/2016 at 21:19 point

ldv82, please do an other ota, i tried to be compatible.

  Are you sure? yes | no

ldv82 wrote 12/01/2016 at 13:37 point

Many thanks. The sound will start automatically. Great gift for my birthday. Previously, I was not like this. The UART everything was normal, but there was no sound. Streams pcradio is not played, but the UART indicates that there are no problems. Most likely this is AAC streams, and I have VS1003.

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 12/01/2016 at 13:45 point

Yes, a VS1003  can only decode:

Decodes MP3 (MPEG 1 & 2 audio layer III) (CBR +VBR +ABR);
WMA 4.0/4.1/7/8/9 all profiles (5-384kbit/s);
WAV (PCM + IMA ADPCM);

So when receiving another encoded stream: no output at all.

A VS1053:

Decodes multiple formatsOgg Vorbis
MP3 = MPEG 1 & 2 audio layer III (CBR+VBR+ABR)
MP1 & MP2 = MPEG 1 & 2 audio layers I & II optional
MPEG4 / 2 AAC-LC(+PNS), HE-AAC v2 (Level 3) (SBR + PS)
WMA4.0/4.1/7/8/9 all profiles (5-384 kbps)
FLAC lossless audio with software plugin (upto 24 bits, 48 kHz)
WAV (PCM + IMA ADPCM)
General MIDI 1 / SP-MIDI format 0

I tried to load the plugin for flac, but the 1Mb stream is too much for the wifi of the esp8266. Even in local with vlc i can receive at 840Kb max. Too bad.
May be with the esp32?

Happy birthday ;-)

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 11/30/2016 at 19:53 point

The CLI.STOPPED shows that you have a problem when receiving the stream or do you pressed the stop?

This station works well here.

0 0xff ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
data  : 0x3ffe8000 ~ 0x3ffe88d4, len: 2260
rodata: 0x3ffe88e0 ~ 0x3ffea9e4, len: 8452
bss   : 0x3ffea9e8 ~ 0x3fff1898, len: 28336
heap  : 0x3fff1898 ~ 0x40000000, len: 59240
Heap size: 31456
t0 task: 3fff86d0
t1 task: 3fff8868
t4 task: 3fff8c90
t3 task: 3fff92b0
t2 task: 3fffa000
mode : sta(5c:cf:7f:1c:75:ab)
add if0
I2S Speed: 0
SCI_Mode (0x4800) = 0x4802
SCI_Status (0x48) = 0x48
VS Version (VS1053 is 4) = 4
SCI_ClockF = 0x6000
UART READY TO READ
 Station Ip: 192.168.1.253
DHCP: 0x0
Device: Ip: 192.168.1.253



I: 0 status: 0
In I: 0 status: 1
scandone
state: 0 -> 2 (b0)
In I: 1 status: 1
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 4
pm open phy_2,type:2 0 0
cnt
In I: 2 status: 1



connected with karawin2, channel 11
ip:192.168.1.253,mask:255.255.255.0,gw:192.168.1.70
autostart: playing:0, currentstation:90
I2S Speed: 0
##CLI.STOPPED#
##CLI.URLSET#: www.california101radio.com
##CLI.PATHSET#: /california101.pls
##CLI.PORTSET#: 80
##CLI.URLSET#: cs1.california-101.com
##CLI.PATHSET#: /
##CLI.PORTSET#: 80
##CLI.STOPPED#
Header: Moved
##CLI.STOPPED#
##CLI.URLSET#: 194.150.236.178
##CLI.PATHSET#: /
##CLI.PORTSET#: 8000
##CLI.ICY0#: California-101 The Westcoast Radio
##CLI.ICY1#:
This stream requires Winamp<\/a>



##CLI.ICY2#: SHOUTcast Distributed Network Audio Server\/win32 v1.9.2



##CLI.ICY3#: http:\/\/www.california101radio.com
##CLI.ICY4#: Rock - Pop - Californian music
##CLI.ICY5#: 128
##CLI.PLAYING#
##CLI.META#: Kazu Matsui Project - Me On The One Side

Header: Moved  means that the stream is redirected to another address. This redirection is handled by karadio.

And yes, for this station the move response is long to be received.

ry the direct ip

194.150.236.178  port 8000 path /

  Are you sure? yes | no

Thomas wrote 11/29/2016 at 09:44 point

Here some impressions of mine.

Actually i build my 2. Webradio.




The first one was a simple prototype,  and after building it I thought a bit how to add WAF to it (Woman Acceptance Factor) In
our Dinning Room is Retro FM Radio which sound quality is really poor , so we don’t
use it. My plan is to integrate the Karradio into it and I’m on a good way.

Here it should be build in:



I cabled the pushbuttons to  build them into the housing of the FM Radio.




Also I added the RAM to my build. Yes it is quite expensive approx. 5 € and I didn’t find it
cheaper on any chinese trader. The installing of the RAM makes the whole system
runs smoother.




Actually I’m testing some amplifiers to drive directly my desired speakers.


MAX98306 works well but has not enough power to give it enough bass.

PAM8403 is rocking the hole neighborhood but has terrible noise when loudness is low. This
could be solved when powering it separate but this does not meet my concept. So
I have to still test a bit how to solve this clever.




With display integration I also still have some issues.  The suggested boud rate of 28800 does not please me. After change cli.uart(“28800”)  I have to use Arduino IDE 1.05 to use the serial monitor because newer releases cannot be set at 28800. After changing it is poosible to use the serial monitor @28800 Baud, but after a OTA Update it is set to a unknown value so can’t communicate with it. Even reflashing is not possible because therefore I need to know the correct Baud Value.


Any idea how I can reflash them anyway?

What is the maximum Baudrate which is usable for the pro mini? I tried it with 115200 on
the pro mini, but then the communication does not work. Maybe the pro mini is
not fast enough.

Regards


Thomas

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 11/29/2016 at 10:44 point

Hi Thomas,

The OTA doesn't change the baud rate. But in case of problem in the value read on the eprom, it will revert to 115200.
The default esp after a boot is 76800

28800 is the limit i found for the pro mini without loosing chars.

When i flash with the espressif tool, the baud is in autobaud mode, so no problem.

The pro mini tx must not be connected to the esp for flashing it.

Great job. Reserve a little place for the next extension: the remote control
https://fr.aliexpress.com/item/Hot-Selling-1pcs-New-Infrared-IR-Wireless-Remote-Control-Module-Kits-For-Arduino-Wholesale/32334118062.html?spm=2114.13010608.0.0.dImxzC

I think, i can embed it to the u8glib  so the pro mini will drive the lcd and the  IR.

The tx of the promini must then be connected to the rx of the esp (with a shutdown bridge (5 to 3.3v))

I like the WAF concept ;-)

Regards

jp

  Are you sure? yes | no

Thomas wrote 11/29/2016 at 11:23 point

Hi JP,

thanks for your quick answer. I will try soon.

I have already two of this IR Kits. Be careful with the pinout of the ir receiver.

I grilled my first one. It is important in which of the 3 rows it is soldered.

Each row is diffrent connected to the pins.

I am very looking forward  to your next inventions.:-)

Regards

Thomas

PS: Do you have the RAM installed to?

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 11/29/2016 at 18:02 point

"PS: Do you have the RAM installed to?"

Yes on one of the two proto to test it.

  Are you sure? yes | no

Thomas wrote 12/05/2016 at 12:34 point

Now i got it running. First thing was that the ESP was back on 115200 boud.

Second thing was that i was to stupid to compile it accordingly. I used the 5V/16 Mhz setting for the 3.3V/8Mhz Pro mini. Third thing was that the connection between ESP8266 and Pro Mini on the breadboard was not stabile. After i bended it a bit i finally have a connection :-)

Regards

Thomas

  Are you sure? yes | no

tvlab wrote 11/22/2016 at 13:50 point

Hi! Loved your project - decided to repeat, but I have a problem: does not work. I'm using VS1003, it will work or just the VS1053? In the log writes the following:

=> extraram state: 0 0xff яяяяяяяяяяяяяяяя
data  : 0x3ffe8000 ~ 0x3ffe88d4, len: 2260
rodata: 0x3ffe88e0 ~ 0x3ffea9a8, len: 8392
bss   : 0x3ffea9a8 ~ 0x3fff1850, len: 28328
heap  : 0x3fff1850 ~ 0x40000000, len: 59312
Heap size: 31528
t0 task: 3fff8688
t1 task: 3fff8820
t4 task: 3fff8c48
t3 task: 3fff9268
t2 task: 3fff9f90
mode : sta(18:fe:34:df:08:cb)
add if0
I2S Speed: 0
SCI_Mode (0x4800) = 0xC
SCI_Status (0x48) = 0x38
VS Version (VS1053 is 4) = 3
SCI_ClockF = 0x6000
UART READY TO READ
 Station Ip: 192.168.0.108
DHCP: 0x0
Device: Ip: 192.168.0.108

I: 0 status: 0
In I: 0 status: 1
In I: 1 status: 1
In I: 2 status: 1
scandone
state: 0 -> 2 (b0)
In I: 3 status: 1
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
pm open phy_2,type:2 0 0
cnt 
In I: 4 status: 1

connected with MyHome, channel 8
ip:192.168.0.108,mask:255.255.255.0,gw:192.168.0.1
autostart: playing:255, currentstation:0
I2S Speed: 0

  Are you sure? yes | no

Sergio wrote 11/22/2016 at 22:46 point

Maybe the VS1003 only play mp3 streams, this is the problem. VS1053 play OGG, AAC, AAC+, and MP3, i had the same problem with one VS1003.

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 11/22/2016 at 23:28 point

Sergio do you confirm that a vs1003 will work with Karadio (and mp3 stream only)?
I coded for the vs1053, and not sure it will work. At least the i2s output is different and will not work. I will dig a bit to see if other differences are fatals or not.

VS Version (VS1053 is 4) = 3   yes it is a vs1003.

  Are you sure? yes | no

yo2ldk wrote 11/23/2016 at 06:55 point

I have one board with vs1003 who work well on almost  web list player, and two  who don't. work at all.

  Are you sure? yes | no

tvlab wrote 11/23/2016 at 08:00 point

Thank you all. My VS1003 is running in online radio for Arduino, I know that it only supports mp3. Was hoping that with the esp8266 will work. Will be ordering VS1053.

  Are you sure? yes | no

cmeypoub wrote 11/20/2016 at 19:45 point

Four donators ? .... Disapointed

http://karadio.karawin.fr/history.php

  Are you sure? yes | no

yo2ldk wrote 11/12/2016 at 10:39 point

A new version of touchscreen display is ready !
 you can find it here: 

Display is 7" enhanced mode; and link for software here:

https://drive.google.com/open?id=0Bz_UrkQXxgSBZFM5NnRCVnN6TFk&pageId=100127470115364837114

 some interruptions on WIFI, because of my new router delivered by provider...

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 11/12/2016 at 11:33 point

Great. In a next release, I will add a command to list the stations. May it will be usefull.

  Are you sure? yes | no

yo2ldk wrote 11/12/2016 at 11:45 point

That will be awesome !

  Are you sure? yes | no

ldv82 wrote 11/11/2016 at 15:03 point

I have a problem with vs1053. No sound. Sound appears only if the playback is to start with an open conclusion DREQ. Then it must be closed again. On the Internet there are similar problems, but I could not solve it.

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 11/11/2016 at 16:50 point

check and recheck wires.

Be sure to connect the vs1053 on the 5 volts.

  Are you sure? yes | no

yo2ldk wrote 11/12/2016 at 11:47 point

I buy it 4 modules, only one work OK. One I burn it myself (I think), using Phone headset connector..
and an advice for all : DO NOT put in IN or OUT, the audio jack, until when you power off the module !
It seems that VS is very unprotected on audio output, and burn it very easly.

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 11/12/2016 at 17:17 point

Be sure to connect a good ground between each board.
The vs1053 lowcost board miss the output capacitors....
Many amplified input have capacitors but in case...

  Are you sure? yes | no

ldv82 wrote 11/13/2016 at 13:25 point

Only now I see what I have on the card is a chip VS1003.

  Are you sure? yes | no

cmeypoub wrote 11/13/2016 at 20:56 point

what's yours ESP ? Check your connection ; maybe you have inverted Gpio4 and Gpio5

  Are you sure? yes | no

ldv82 wrote 11/14/2016 at 11:16 point

GPIO4 и 5? If reversed, the ESP8266 not start. ESP8266 checks VS1053 connection?

  Are you sure? yes | no

yo2ldk wrote 11/13/2016 at 13:34 point

here I have the same, and work well; sure 1053 is better, but that 1003 from chinese boards is almost the same

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates