banner



How To Create A Web Radio Station

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.1

Release 2.1 Rev 2 - Built on 2021/03/13

    2.1 R2
    • WIFI Connection by AP signal. If two ssid have the same name, the strongest is chosen.
    • Timezone format changed to hour:minute.
    • DeepSleep mode added (Pull request from acruzde)
    2.1 R1:
    • Better stream read for slow or high speed streams.
    • Mapping of extended latin utf8 fonts for color lcd
    2.1 R0:
    • Security: the ssid passwords are no longer sent on each "Setting" display, but only when changed.
    • New lcd type: #define LCD_SPI_ST7789T 204 // 135x240 Thanks to mfsysprog.
    • wolfsssl improved for some https hard to open. Thanks to mfsysprog.
    • New command: dbg.ssl("x") x from 0 to 3. Log level of the wolfssl software.
    • wifi.auto mode improved. If none ssid is found, the user can skip the infinite try by sendind a character on the serial input.
    • New command: sys.logt("x") to allow all log outputs to be sent also on telnet.
    • Bug fixed: in parse playlist. Possible memory leak. Thanks to HmarikBel
    • Bug fixed: for some type of playlist files. Thanks to Jambola77
    • Bug fixed: Special char in station name was incorrectly sent.
    • New audio buffer size.
    • Some minors improvements.

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

  • https://github.com/karawin/Ka-Radio/blob/master/ESP8266-Firmware/bin/boot_v1.5.bin at 0x0000
  • https://github.com/karawin/Ka-Radio/blob/master/ESP8266-Firmware/bin/upgrade/user1.4096.new.6.bin at 0x1000

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

Read more »

KaRadio32.bin

KaRadio32 2.1 R2

application/octet-stream - 1.69 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

boot_v1.7.bin

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

Download

blank.bin

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

Download

View all 6 files

  • 1 × ESP8266 http://www.ebay.fr/itm/121775761053?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT
  • 1 × VS1053 http://www.ebay.fr/itm/401046111343?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT
  • 1 × USB to TTL http://fr.aliexpress.com/item/USB-to-TTL-converter-UART-module-CH340G-CH340-3-3V-5V-switch/32392228218.html?detailNewVersion=2
  • 1 × MB102 Power supply http://fr.aliexpress.com/item/MB102-Breadboard-Power-Supply-Module-3-3V-5V-For-Solderless-Breadboard/2027279953.html
  • 1 × or nodeMCU clone http://fr.aliexpress.com/item/NodeMcu-Lua-WIFI-development-board-based-on-the-ESP8266-Internet-of-things/32338129505.html

View all 6 components

  • Warning for esp8266 not coming from ai-thinker vendor

    Jean-Pierre Cocatrix 06/08/2017 at 20:33 • 0 comments

    If your esp8266 is not from AI-THINKER and the flash is not concluant in QIO mode for the spi, try the DIO mode.

    Concerned vendors:

    Hysiry
    ESP-F

    to be completed....

  • Some hardware projects based on Karadio

    Jean-Pierre Cocatrix 01/17/2017 at 20:38 • 0 comments

    Many pcb projects are in progress to run KaraDio.

    Dimitris works on a pcb with esp8266, the external ram and the vs1053 with the complete set of option by juumper (a0 and type of ram).
    I hope he can sell it soon (with mounted components).

    discover1977 has made a pcb not yet finished, but with the full hardware including the lcd and more.
    See his project at https://github.com/discover1977/Wi-Fi-WEB-radio


    Christophe has made a minimalist pcb to be used with KaraDio, but can be used in many other projects. The lc soft vs1053 can be plugged directly on the pbc.


  • About the double AP in setting

    Jean-Pierre Cocatrix 01/10/2017 at 11:00 • 0 comments

    A quick note about the AP configurations in setting:

    As you may noticed, now in 1.1.4 release you can specify two AP.

    When the first one is not found, the second one is tried. If not found, karadio is set in SoftAP mode at 192.168.4.1

    Only the AP fields can be configured, not the ip, mask and gateway.

    If you need to have two AP, the best choice is to use the dhcp. But the ip may be difficult to predict, so i recommend to configure a static lease on your router to force dhcp to choose your preferred ip. To do that, I added the mac address of the esp. See the manual of your router about dhcp static lease.

    If you need some other details, write a comment.

    Thanks for your attention.

  • TODO list

    Jean-Pierre Cocatrix 12/22/2016 at 22:28 • 0 comments
    • Add an IR remote control to the lcd pro mini
    • Allow volume adjustment per station
    • Memorize multi AP configurations
    • Add a reset button for the equalizer
    • Add some other LCD equipment (a color one is coming)
    • Add a debug command to choose the uart trace debug level: sys.debug("x") with x=0 No debug trace, to x=5 full verbose debug trace.
    • sys.led("x") with x=0: led blink (default heartbeat), x=1: led on when playing.
    • ...
  • Facebook

    Jean-Pierre Cocatrix 12/12/2016 at 12:54 • 2 comments
  • New video

    Jean-Pierre Cocatrix 11/30/2016 at 19:46 • 0 comments

    A new video of Karadio:

  • What next?

    Jean-Pierre Cocatrix 11/17/2016 at 15:50 • 0 comments
  • Who wants this one?

    Jean-Pierre Cocatrix 11/08/2016 at 17:44 • 23 comments

    A new lcd, a new software.This software runs too with the nokia5110 due to the magic of the u8glib.

    Many other lcd's can now be used with this release ....

    Released on github and http://karadio.karawin.fr/karadioU8glib.zip

    See instructions on the u8glibConf.h file

  • Donate...

    Jean-Pierre Cocatrix 11/05/2016 at 16:12 • 0 comments

    I have added a "paypal Donate" button on the "Settings" panel.
    It will motivate me to buy some hardware and to continue the development of this project.

    Thanks.

    The history page

  • First lcd display

    Jean-Pierre Cocatrix 10/30/2016 at 21:46 • 10 comments

    The very first prototype of the minimal display that Karadio will use.

    It is made with a tiny lcd 84X48 84 * 48 Nokia Module 5110 Lcd

    http://www.ebay.fr/itm/262558872574?_trksid=p2057872.m2749.l2649&ssPageName=STRK:MEBIDX:IT

    The next one (waiting for it) will be a 0.96" I2C IIC SPI Serial 128X64 White OLED LCD LED Display Module for Arduino

    http://www.ebay.fr/itm/191909116703?_trksid=p2057872.m2749.l2649&ssPageName=STRK:MEBIDX:IT

    See it at:

    Source and description (see define.h) at http://karadio.karawin.fr/karadioNokia5110.zip

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

Discussions

Log In/Sign up to comment

Become a Hackaday.io Member

Create an account to leave a comment. Already have an account? Log In.

josefburgersanktmartin wrote 01/26/2021 at 18:46

The O-led with arduino mini  addon work now , but the  date display  only  "01-01-2000' and the clock work like a function time counter , it count the time from powering on  .What can i do to fix this ?  Thank you !

Are you sure? yes | no

josefburgersanktmartin wrote 01/31/2021 at 08:43

in my schematic the wire mini tx ---- rx esp not exist ,   only tx from ESP 8266 to rx mini , i have only 3 wires from radio to mini , 3,3V GND and  tx esp to rx mini

Are you sure? yes | no

hehaipeng wrote 12/14/2020 at 05:15

hank you! Production completed. It's just that China's radio streaming media does not support the display of radio program information, and the display screen looks ugly and harmonious. I want to adjust the screen display layout and enlarge the font, but I'm not very familiar with programming, and I'm only good at hardware. Hope under the guidance, thank you!

Are you sure? yes | no

Vanya Venikov wrote 09/23/2020 at 11:31

Hello, there is a bug in KaRadio32_19R7.bin - ogg vorbis streams does not work. Using KaRadio32_19R6.bin works correctly. Could you fix the bug in future release?

Are you sure? yes | no

Marco wrote 05/19/2020 at 14:28

Hello,

I would like to add a I2C display to my Karadio. Do I need an Arduino micro or can I connect it directly to the ESP32?

Thanks!

Are you sure? yes | no

josefburgersanktmartin wrote 04/19/2020 at 17:42

Hello,

I want to add to my KaRadio with ESP8266 and VS 1053 an 16x2 (or 20x4 )  liquid crystal display  with Arduino uno (or Nano )supplied with 5V . Can i connect RX-TX from Arduino and ESP8266 direct or I need a level adaptor ?Can you help with schematic ?

Are you sure? yes | no

Jimsonweed wrote 02/14/2020 at 15:44

Hello, is it possible of implementing flac stream for karadio32 with vs1053 decoder? And wma parcing with "mms:" stream, since vs1053 is support all of it.

Are you sure? yes | no

ifcristian wrote 12/09/2019 at 19:38

Hi! Nice job! Nice job!

I need help with one idea... i want to implement auto start chanel from day and hour. One day at 10 listen x chanel other day y chanel from y hour. You can help me? Regards !

Are you sure? yes | no

simon wrote 08/27/2019 at 15:07

Hello,

I have installed your Software on two ESP32 systems and booth working very well, i have only two suggestions.

1. sometimes after power the radio, the ESP32 don´t connect to the wifi and start instead the AP, the router is not far from the ESP... and next time the ESP connect to the WIFI, maybe it is possible to programm a routine, when AP is active, check every 5 minutes to stored WIFI networks.

2. somitimes when i switch a light in the near of the Radio, i hear a knock at the speaker and the radio is loudless, after a restart the radio is working well. Ithink the problem is the VS1053, maybe it is possible to check if the VS1053 is working, if not, give him a reset.

Are you sure? yes | no

Martin Fasani wrote 01/15/2020 at 15:23

I have a suggestion about that: Instead of using WiFi manager, let WiFi configuration come from Bluetooth serial or BLE (Serial is a smaller lib)
Here there is an example: https://github.com/martinberlin/Remora
There is an Android app called "ESP32 WiFi setup over BLE or Bluetooth Serial" and then you can easily setup the Radio via Bluetooth

Are you sure? yes | no

Georde wrote 07/29/2019 at 22:29

Hello. I have a problem: I cannot access the web page (192.168.4.1). Connection to AP is correct. wifi "WifiWebRadio".  My browser, it says "This site can't be reached."

What am I not doing well, what am I supposed to do?

Thank you

Are you sure? yes | no

Curt Parrish wrote 07/25/2019 at 15:35

Hi,

I like this project but haven't had much success. I'm using a nodemcu v.3 with an ESP8266 and a VS1053. After flashing the nodemcu, I can see a response from it in a terminal program. Following the directions in the response, I can connect to WifiKaRadio successfully, but when I enter 192.168.4.1 in my browser, it says "This site can't be reached." There is also no result pinging that IP address, but 192.168.4.2 does respond to the ping. I can't get any farther than this.

Can anyone help?

Are you sure? yes | no

Sera26 wrote 05/13/2019 at 18:52

Hello,

Playing of radio stations are lagging strongly with KaRadio, the streams are unpalatable.

I have already removed control buttons (ADC and GND bridged) and STM32+LCD but radio can't play stations continuously.

What can be the problem?

Are you sure? yes | no

jumpjack wrote 05/13/2019 at 10:34

Can the project work as-is if I do not connect any display or key, or does it require some tuning?

Is any Arduino-IDE version available?

Are you sure? yes | no

Roman Kot wrote 04/30/2019 at 09:54

Is this possible to integrate IR receiver in order to use any remote control. So you can learn commands from your Rc then map it at CSV

Are you sure? yes | no

Sera26 wrote 04/14/2019 at 10:10

Hello,

I would like to use control buttons of KaRadio to Karadio32 instead of encoder.

Is this possible?

Thank you for help in advance.

Are you sure? yes | no

silvercarph wrote 03/11/2019 at 21:35

Hi, I appreciate your effort to create KaRadio. My setup works somehow but I need some help with two issues: poor sound quality and noise.

1. Poor sound quality: I receive only a low quality mono-like sound (with some echo) with no bass unless a GND point (power extension safety GND point) is connected to the V1053 GND. With the external GND connected the sound is excellent but I would prefer to avoid another wire connected so close to 220V.

 2. Low freqency noise -
When powered from a 5V power bank, there is no noise (still needs GND to mains GND to have good quality sound) and works perfectly.
When powered from a 5V phone charger and there is no external GND connection there is a loud low freqency noise. With the external GND connected all noise disappears and works perfectly.
Analog GND is connected to digital GND? Noise from the charger? Any ways to eliminate the noise?

My setup:
- MB102 power supply - powered from 5V power bank or phone charger through USB
- NodeMCU ESP8266 ESP-12E V1.0 - (Ka-Radio-master1.9.zip flashed with flash_download_tools_v3.6.5.exe), powered from MB102 5V, common GND
- VS1053 (red, chip ver. 1815) MP3 with SD Card Slot  - 5V from NodeMCU, GND from NodeMCU, jack connected to HiFi amplifier (which is also connected to UPC TV box)
- STM32F103C8T6 Blue Pill (karadio-addons-master\karadioUCSTM32 ver.07.02.2019 (flashed with HW-597 (CH340)) powered from MB102 5V, common GND
- 1.8" TFT ST7735B - powered from MB102 5V and 3.3V(for LCD), common GND
- KY-040 Rotary Encoder - powered from MB102 3.3V, common GND

  So now I got stuck with an operational radio but the external GND line does not look safe. Any suggestions to improve?

Are you sure? yes | no

How To Create A Web Radio Station

Source: https://hackaday.io/project/11570-wifi-webradio-on-esp8266-or-esp32

Posted by: smallhealf1997.blogspot.com

0 Response to "How To Create A Web Radio Station"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel