Skip to content

taiyuankejizhu/Ka-Radio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

** ESP8266 & VS1053 Wifi WebRadio**

###Ka-Radio, a WiFi shoutcast player based on ESP8266 and VS1053b chips ##Basic informations PiotSperka merged this software in https://github.com/PiotrSperka/ESP8266-WebRadio.
He implemented an external ram in his board removing the main problem of the esp8266: the lack of room for the audio buffer.
It is the place to go if you want to build a very small board with discret components.
###Release 1.0.5
Never say good bye, I cannot resist to improve this project.
New features:

  • OTA support
  • Autoplay check on page refresh.
  • 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 .

####Version: 1.0.4
Added:
Next and previous buttons,
Autoplay check box
"Now playing" removed, the title is now on the top of the page,
A hardware panel can be built. See ESP8266-WebRadio/Hardware/KiCAD/controles/controles.pdf ,
If not used, ADC input must be grounded.
Optimized software.

This release is the end of the project.
In the future, a remote control will be added (433Mhz RF) based on arduino pro mini.
####Version: 1.0.3
Added:
New html look,
Volume slider is now logarithmic,
Monitoring of the current station in the browser, usefull for mobile
Optimised ram usage.
Read chunked html stream, some stations use this kind of GET
First start updated,
It seems that the 320KB/s is still not perfect due to too few ram on the processor. Not so bad but very sensitive, 256kB/s is perfect.
####Version: 1.0.2
Added: "Now playing" informations are now given with the help of a websocket. The display is immediatly updated on the browser.
Reading 320Kb/s is improved
Stability tested during many days and nights....
Video on https://youtu.be/cT8cGp9pvcs
Hackaday.io page: https://hackaday.io/project/11570-wifi-webradio-with-esp8266-and-vs1053
Github page: https://github.com/karawin/ESP8266-WebRadio
#####Version: 1.0.1
A static ip at the first start is a problem if you are not in 192.168.1.xxx network.
The first start will now be in dhcp mode. See the allocated ip in the uart traces or scan your network.
This can be done with fing for mobile for example:
IOS: https://itunes.apple.com/fr/app/fing-network-scanner/id430921107?mt=8
Android: https://play.google.com/store/apps/details?id=com.overlook.android.fing&hl=fr

#####Version: 1.0.0 (KaraWin)
Status: under design and development

2016, May (KaraWin)

First step, Final release done.

  • Read up to 320 kB/s stream,
  • New web page, Fit well on mobile or computer.
  • Embedded wifi configuration via the web site (see below)
  • Metadata displayed,
  • all settings saved (sound setting, stations, wifi)
  • server multi clients with automatic refresh for all,
  • The stations can be dowloaded and uploaded within the web site,
  • very quick responsive web by caching local information in the browser.
  • additional hardware: a led indicates the state of the equipment (gpo16->resistor->led->3.3volt). Speed blink: init, 90%in 10%out: connexion in progress, 10% in 90%out: Equipment ready.
  • ...

Loading the esp8266

First use

  • If the acces point of your router is not known, the webradio inits 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. Dont 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 is given by dhcp.
  • a sample of stations list is on https://github.com/karawin/ESP8266-WebRadio/blob/master/ESP8266-Firmware/WebStations.txt . Can be uploaded via the web page.

Feedback

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

screenshot

screenshot

screenshot

2016,April (Karawin):


TXD to CH340G UART rx
RXD from CH340G UART tx
GPIO05 to VS1053 XDCS
GPIO04 to VS1053 DREQ
GPIO00 to VS1053 XRST
GPIO02
GPIO15 to VS1053 XCS

##Used hardware WiFi : ESP8266 (ESP-12 with 32Mbits flash)
Additional MCU (as a bridge UART<=>UI): AVR
Audio decoder: VS1053

About

A wifi webradio with only low cost boards ESP8266 and VS1053

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Assembly 81.8%
  • C 13.6%
  • KiCad Layout 1.8%
  • C++ 1.0%
  • Python 1.0%
  • JavaScript 0.2%
  • Other 0.6%