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 2.3

Release 2.3 Rev 0 - Built on 2022/02/23

New:

  • 2.3 R0:
    • RAM optimization
    • Audio buffer size incremented.
    • Bugs correction: HTML chunks processing and Meta computing
    • Stack crash on http instant command removed
    • AAC Decoding improved
  • 2.2 R1:
    • Introducing WIFI QoS Ip precedence AC_VI
    • SPDIF output improved
    • DAC bugs removed.
    • AAC Decoding improved (but not perfect)
    • New patch for the vs1053. Play OGG too.
  • 2.2 R0:
    • Many internal optimizations
    • ascii unicode #&xxxx; decoded
    • aac decoder improved.
    • Added html commands volume+ and volume-

    KaRadio: Release 2.1

    Release 2.1 R0 - Built on 2021/02/15

    • 2.1 R0:
      • Security: the ssid passwords are no longer sent on each "Setting" display, but only when changed.
      • Bug fixed: in parse playlist. Possible memory leak. Thanks to HmarikBel
      • Bug fixed: Special char in station name was incorrectly sent.
      • Some minors improvements.
    • 2.0 R0:
      • Better handling of the large "header moved"
      • Better monitoring
      • timezone suggestion on the setting page

    History:

    history

    For ESP32 see the github page KaRadio32.

    ESP8266 Simplest prototype:

    - Optional external ram (23LCV1024) support (1:CS/=GPIO16 2:MISO=GPIO12 3:NC 4:GND 5:MOSI=GPIO13 6:SCK=GPIO14 7:GND 8:3.3v)

    Attention:
    The optional led is now on GPIO2. The blue led on the ESP8266 is blinking at the same rate.
    GPIO16 is now the Chip select for the external ram if any.
    The external ram is detected at boot time if present.

    To upgrade to this release, please flash user1.4096.new.4.bin at 0x1000 ,
    user2.4096.new.4.bin at 0X81000 and blank.bin at 0x7e000 & 0x3fe000
    After that, all next updates are done with the On The Air (OTA) feature.
    New binaries are hosted at http://karadio.karawin.fr .

    Loading the esp8266

    First use

    • If the access point of your router is not known, the webradio initializes itself as an AP. Connect your wifi to the ssid "WifiWebRadio",
    • Browse to 192.164.4.1 to display the page, got to "setting" "Wifi" and configure your ssid ap, the password if any, the wanted IP or use dhcp if you know how to retrieve the dhcp given ip (terminal or scan of the network).
    • In the gateway field, enter the ip address of your router.
    • Validate. The equipment restart to the new configuration. Connect your wifi to your AP and browse to the ip given in configuration.
    • Congratulation, you can edit your own station list. Don't forget to save your stations list in case of problem or for new equipments.
    • if the AP is already know by the esp8266, the default ip at the first start is 192.168.1.254
    • a sample of stations list is on https://github.com/karawin/Ka-Radio/blob/master/ESP8266-Firmware/WebStations.txt . Can be uploaded via the web page.

    Feedback

    Please tell me if you succeeded or something more can be done, thanks.
    The second step will add some hardware buttons (vol + -, station + -, play ...)

    Wiring:

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

    REST

    ADC

    CH_PD to 3.3v

    GPIO16 (a 1Hz output)

    D5:GPIO14 to VS1053 SCK

    D6:GPIO12 to VS1053 MISO

    D7:GPIO13 to VS1053 MOSI

    TXD to CH340G UART rx

    RXD from CH340G UART tx

    D1:GPIO05 to VS1053 XDCS

    D2:GPIO04 to VS1053 DREQ

    D3:GPIO00 to VS1053...

Read more »

KaRadio32.bin

KaRadio32 2.3R0

application/octet-stream - 1.49 MB - 01/01/2021 at 21:11

Download

user2.4096.new.4.bin

KaRadio 2.1 R1 Partition 1

application/octet-stream - 424.75 kB - 01/11/2020 at 18:13

Download

user1.4096.new.4.bin

KaRadio 2.1 R1 Partition 2

application/octet-stream - 424.75 kB - 01/11/2020 at 18:13

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

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 Alexandru 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 Alexandru 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 Alexandru 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 Alexandru 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 Alexandru 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 Alexandru 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 Alexandru 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 Alexandru 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 Alexandru 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 Alexandru 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

Dirk Spiller wrote 11/10/2016 at 04:49 point

Why did you use an additional Arduino for connecting the display? 

I built your radio (some weeks ago without display) and this one: https://github.com/Edzelf/Esp-radio with a color tft connected directly to the nodemcu. Both work, but I prefer yours for the OTA functionality.

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 11/10/2016 at 08:34 point

Yes, the ota is useful and about the stations management and the html page?
To explain why another cpu, at the beginning I wanted to use only bare  boards without additional components to do some tricks to add a GPIO, but after thinking (a lot)):

Pro:

You can adapt many different lcd hardware with a simple board with only 3 wires (+5v, gnd and Rx) for every interface (spi, i2c, serial, or parallel bus)

You can adapt the look you want on the lcd with a simple arduino sketch.

You are independent of the big nodeMcu software evolution.

You can add many lcds on one webradio at the same time.

The lcd may be easily deported away from the webradio with only 3 wires

You can imagine an interface with a touch screen (even if i wonder if it is useful if you buy a chineese very low cost android phone for that)

Cons:

Yes, it is a 2$ additional cost.

Thanks for your interest.

  Are you sure? yes | no

Dirk Spiller wrote 11/10/2016 at 22:01 point

Thanks for the quick response. As a little contribution, I created a Fritzing drawing of the Radio with Arduino Mini Pro and Nokia display and posted it on your instructable page. I hope it is useful, if you like, I can send you the fritzing file as well.

  Are you sure? yes | no

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

Great.. Yes send me the file please.

Just a remark on the raw input of the mini pro: It is better to connect the +5v to it because it have an internal regulator that lower the voltage to 3.3V.

Otherwise, vcc will only reach 3.1V. It is enough but....

Thanks

  Are you sure? yes | no

ldv82 wrote 11/06/2016 at 19:58 point

On the Nokia 5110 displays Cyrillic?

  Are you sure? yes | no

ldv82 wrote 11/06/2016 at 20:08 point

Thank you.

  Are you sure? yes | no

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

What can i do with this sequence?

3fffab38 d0 a0 d1 83 d0 ba d0 b8 20 d0 92 d0 b2 d0 b5 d1
3fffab48 80 d1 85 21 20 2d 20 d0 a3 20 d1 80 d0 b5 d0 ba
3fffab58 d0 b8 20 d0 b4 d0 b5 d0 b2 d1 87 d0 be d0 bd d0
3fffab68 ba d0 b0 00 00 00 00 00 c0 ac ff 3f 28 00 00 00
##CLI.META#: Руки Вверх! - У реки девчонка

  Are you sure? yes | no

ldv82 wrote 11/08/2016 at 18:29 point

It is very difficult to answer your last question.
You have already done too much for us.

  Are you sure? yes | no

ldv82 wrote 11/09/2016 at 08:54 point

 that it is Source coding cp1252 translation to utf8. The hexadecimal is written in Russian language Руки Вверх! - У реки девчонка

  Are you sure? yes | no

ldv82 wrote 11/05/2016 at 20:23 point
Hello jp cocatrix
Cyrillic text display is not showing? Song title, for example?

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 11/05/2016 at 21:26 point

Don't know. Do you have an url?

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 11/06/2016 at 18:42 point

http://karadio.karawin.fr/screenshot_20161106_193554.png

?

  Are you sure? yes | no

yo2ldk Alexandru wrote 11/05/2016 at 05:19 point

Can be added this lib on firmware, for IR remote control?

https://github.com/markszabo/IRremoteESP8266

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 11/05/2016 at 08:35 point

No free gpio, so no. But with a little cpu connected to the serial interface, it is feasable like the lcd one (and may be the same but with a better processor ( 16 or 20MHz)

  Are you sure? yes | no

Sergio wrote 11/04/2016 at 23:09 point

Excelent, with IP Address in the start on the LCD Display

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 11/05/2016 at 08:37 point

Yes, thanks for the idea. The ip is written on the eeprom when read for the first time and changed if any at the next webradio restart so it if always up to date.

  Are you sure? yes | no

Sergio wrote 11/05/2016 at 12:16 point

Excelent!!!!!!!, 

  Are you sure? yes | no

Thomas wrote 11/04/2016 at 21:10 point

Hi JP, its me again.

Is the capability to comunicate with the Pro Mini already implemented in the Esp8266 Firmware? Is it possible to do the control oft the display with a more tiny uC like Attiny85. Pins are there enough but it has no Hardware UART so it has to be done in Software as well. The beneefit would be a more smaller arrangement and could be added in the Main cirquit board.

Regards

Thomas

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 11/04/2016 at 21:27 point

Yes it is based on the serial interface, so it is already implemented.
The Atttiny85 is too small on sram. Minimum is 1400.

I work on another one with a better lcd, but on the same cpu (but 5V 16MHz).
Many lcd can be connected to this one with the help of the U8glib fantastic library.

The big one will be based on another esp12 with touch control.
Yes, a wifi or wired complete remote control.

Regards

  Are you sure? yes | no

Thomas wrote 11/16/2016 at 14:57 point

Hi jp cocatrix,

i love the your Display version with the SSD1306 based OLED.

It is tiny, but crital clear. Size is big enough for orientation.

Regards

Thomas

  Are you sure? yes | no

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

Thanks

  Are you sure? yes | no

Sergio wrote 11/03/2016 at 14:32 point

When i load the soft to Arduino mini pro, i have this error.

Arduino:1.6.8 (Windows 10), Tarjeta:"Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"

C:\Users\Banghouser\Downloads\karadioNokia5110\ScrnFuncts.ino: In function 'void setup()':

ScrnFuncts:66: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

 ,{0x40, 0x40, 0x40, 0x40, 0x40} // 5f _

                  ^

ScrnFuncts:137: error: initializing argument 1 of 'void LcdString(char*)' [-fpermissive]

 void LcdString(char *characters)

      ^

C:\Users\Banghouser\Downloads\karadioNokia5110\ScrnFuncts.ino: In function 'void scroll(char*, unsigned int*, byte, byte)':

ScrnFuncts:91: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

 ,{0x44, 0x28, 0x10, 0x28, 0x44} // 78 x

                          ^

ScrnFuncts:137: error: initializing argument 1 of 'void LcdString(char*)' [-fpermissive]

 void LcdString(char *characters)

      ^

ScrnFuncts:103: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

 

                          ^

ScrnFuncts:137: error: initializing argument 1 of 'void LcdString(char*)' [-fpermissive]

 void LcdString(char *characters)

      ^

C:\Users\Banghouser\Downloads\karadioNokia5110\ScrnFuncts.ino: In function 'void displayStr(char*, byte, byte)':

ScrnFuncts:117: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

     LcdWrite(LCD_C, 0x0C );  // LCD in normal mode.

                         ^

ScrnFuncts:137: error: initializing argument 1 of 'void LcdString(char*)' [-fpermissive]

 void LcdString(char *characters)

      ^

C:\Users\Banghouser\Downloads\karadioNokia5110\ScrnFuncts.ino: In function 'void parse(char*)':

ScrnFuncts:146: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

       LcdCharacter(*characters++);

                          ^

ScrnFuncts:137: error: initializing argument 1 of 'void LcdString(char*)' [-fpermissive]

 void LcdString(char *characters)

      ^

exit status 1
invalid conversion from 'const char*' to 'char*' [-fpermissive]


  Are you sure? yes | no

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

My target is 3.3V  8MHz 
It must be 3.3 to be compatible with the lcd or you need some resistor to divide the tx-rx line.

I have the arduino1.6.10, avr bord 1.6.14 no error at all.

Ah ok, in the preference, i have compilator warning to none. So, it say nothing.

I will make changes, but it work already like that.

Thanks

  Are you sure? yes | no

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

OK

Change these line to

char  msg[]       = {"Karadio for nokia 84*48 (c) KaraWin  "}; //
   char  BlankLine[]  = {"            "};  // Nokia 12 x 6 (84 * 48)
//   char  anim = {"-\\|/"};

  Are you sure? yes | no

Sergio wrote 11/03/2016 at 23:36 point

Thanks for your support, all is ok now, i'm updated the AVR to 1.6.12 connect correctly the pro mini to arduino uno to upload the sketch, and all is ok

  Are you sure? yes | no

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

Just released an update to format a bit and compute the utf8 char.

  Are you sure? yes | no

Sergio wrote 11/02/2016 at 20:01 point

Excelent development, can you add the code to play this kind of links, wit user and pass, like in Winamp

for example: http://user:pwd@radioclassics.no-ip.org:9000/stream1. 

This is only example, this for Icecast servers with users administration.

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 11/02/2016 at 20:41 point

 Usefull?
If I understand,  the url must be parsed to extract the user:pwd, convert it in base64

and add an Authorization: header field.

It is feasible but not a priority.

  Are you sure? yes | no

Sergio wrote 11/02/2016 at 23:31 point

Some streams providers, used this kind of streams, this very usefull for play this radios

  Are you sure? yes | no

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

A real example to test?

  Are you sure? yes | no

ldv82 wrote 10/31/2016 at 09:50 point
Hello yo2ldk
Excellent development with Nextion. Everything is very beautiful. In the future, will the connection details and the code? additional microcontroller is required to connect? Volume control is?

  Are you sure? yes | no

yo2ldk Alexandru wrote 10/31/2016 at 19:26 point

will be volume ctrl, not require any controller or arduino board, code is as tft (is loaded via SD card (built it on Nextion device) but for 7" enhanced; more expensive I know, but can be loaded many app.

Still need to write on code, and free time is limited  for now...

  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