###Ka-Radio, a WiFi shoutcast player based on ESP8266 and VS1053b chips ##Basic informations
###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 .
See also https://hackaday.io/project/11570-wifi-webradio-with-esp8266-and-vs1053
##History
####Version: 1.0.4
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.
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
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.
- ...
- https://github.com/karawin/ESP8266-WebRadio/blob/Ka-Radio/ESP8266-Firmware/bin/upgrade/user1.4096.new.4.bin
- https://github.com/karawin/ESP8266-WebRadio/blob/Ka-Radio/ESP8266-Firmware/bin/upgrade/user2.4096.new.4.bin
- 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.
Please tell me if you succeded or something more can be done, thanks.
The second step will add some hardware buttons (vol + -, station + -, play ...)
- Based on https://github.com/PiotrSperka/ESP8266-WebRadio
- New development based on the new https://github.com/espressif/ESP8266_RTOS_SDK
- Compiled with esp-open-sdk
- software improved, new web control
- Compatible with mobile
- Stable
- tools to save and restore the stations database
- prototype made with:
-- http://fr.aliexpress.com/item/MB102-Breadboard-Power-Supply-Module-3-3V-5V-For-Solderless-Breadboard/2027279953.html (0.74 euros)
-- http://www.ebay.fr/itm/121775761053?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT (3,09 euros)
-- http://www.ebay.fr/itm/401046111343?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT (6 euros)
-- http://www.ebay.fr/itm/131683794035?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT (1.05 euros)
-- http://fr.aliexpress.com/item/USB-to-TTL-converter-UART-module-CH340G-CH340-3-3V-5V-switch/32392228218.html?detailNewVersion=2 (0.59 euro)
-- some wires ... - Wiring:
From ESP8266_ESP12( 3.3 v) to VS1053 (5 v)
REST
ADC if control panel nut used, this input must be grounded.
CH_PD to 3.3v
GPIO16 (a 1Hz output)
GPIO14 to VS1053 SCK
GPIO12 to VS1053 MISO
GPIO13 to VS1053 MOSI
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