jp Cocatrix 编写的 Ka-Radio esp32 版 (https://GitHub.com/karawin/Ka-Radio)
jp Cocatrix 编写的 Ka-Radio esp32 版 (https://GitHub.com/karawin/Ka-Radio)
Release 2.4 R1 Stable
ESP-IDF v3.3.6
See also the version for ESP-IDF v4.4 at
https://github.com/karawin/KaRadio32_4
Works on any esp32 board.
See the boards directory for a list of pre-configured boards.
See : Hardware configuration partition
A new android application is born:
It is an easy and fast WiFi remote control for your KaRadio or KaRadio32 hardware.
With this android app you can select the WebRadio station you want to play, set the volume and get the station information such as Station name, Genre, Bit rate, Meta data and more.
Found it at
https://play.google.com/store/apps/details?id=com.serasidis.karadio.rc
Thanks Vassilis.
https://www.facebook.com/groups/162949914181385
Just register and talk to other users.
Work with i2s, internal DAC or a vs1053.
Output mode set in Setting panel on web page of KaraDio32 :
| CPU | vs1053b | other |
|---|---|---|
| Wroom | mp3 aac ogg | mp3 |
| Wrover | mp3 aac ogg | mp3 aac |
| CPU | vs1053b | other |
|---|---|---|
| Wroom http | 60k | 45k |
| Wroom https | 50k | 25k |
| Wrover http | 400k | 400k |
| Wrover https | 400k | 400k |
If the default configuration doesn't fit your needs, you can externally configure the software to fit your hardware and peripherals to suit your needs.
The configuration file is to be flashed only one time. After, the standard delivery will become compatible with your hardware gpio use and peripherals configuration. A future standard OTA will automatically works for your configuration.
See : Hardware configuration partition
For a wrover cpu you need a csv file with psram in the name. Without it, the default configuration will fail.
=======
To build your own release if you want to do some improvments, you must install the idf https://github.com/espressif/esp-idf and the toolchain. The esp-idf release is the 3.3.5
Since the 3.3.5 and upper releases there is a bug with CONFIG_SPIRAM_IGNORE_NOTFOUND You need to patch the esp\esp-idf\components\esp32\spiram.c line 128 to
esp_spiram_size_t esp_spiram_get_chip_size()
{
if (!spiram_inited) {
#if CONFIG_SPIRAM_IGNORE_NOTFOUND
ESP_EARLY_LOGE(TAG, "SPI RAM not initialized");
return ESP_SPIRAM_SIZE_INVALID;
#endif
abort();
}See https://github.com/espressif/esp-idf/issues/6063#issuecomment-1010899552
To flash all build output, run 'make flash' or :
…The default configuration is given below. It includes an encoder, an IR remote and a LCD or OLED.
To add or edit GPIO definitions and add or remove some devices, you may need a hardware configuration file. Some examples are in the boards directory.
See the file main/include/gpio.h and main/include/addon.h
WARNING: this configuration will not work for a wrover processor.
You need an adapted csv configuration.
…You can configure the kind of display used in your configuration with the command
'sys.lcd("x")' with x:
…To flash your KaRadio32 without generating it, you will need the files in the binaries directory.
The tool to use is here :
http://espressif.com/en/support/download/other-tools
(change the security of the installation directory to permit all)
See the image at :
http://karadio.karawin.fr/karawin32Flash.jpg
WARNING: the standard_adb.bin must be changed for a wrover processor or another configuration.
Just an example of a realization.
In the Setting panel on the webpage of KaraDio32 you can set the desired output method for audio.
For output on a simple speaker or a general analog amplifier :
For output via addional I2S or VS1053 hardware :
You can connect the GPIO25 (left audio channel), GPIO26 (right audio channel) and Ground directly to a small loudspeaker, a simple earphone (like from an mp3 player) or the input of an analog amplifier. The quality is less perfect than using an I2S or VS1053 board, bit it is very simple hardware-wise.
Connect like this :
…If the audio signal level is too high for your speaker, earphone or amplifier you can add a potentiometer to decrease the level. Connect the potentiometer like this (only pictured for 1 audio channel, for stereo you need 2 potentiometers or a stereo-potmeter.
…An analog DAC signal always has some noise that may cause some distortion on the audio output, especially on low volume passages in the sound. This noise can be decreased with a low-pass filter. The digital PDM signal needs allways low pass filter to convert the digital signal to an analog signal. Fortunately the speaker and earphone acts as a low pass filter, although not in a perfect way.
You can improve the analog signal with an external low-pass filter. A simple low-pass RC filter can be find on the internet, f.i. here :
http://www.pavouk.org/hw/usbdac/en_index.html.
If Karadio32 is configured to use ADC, PDM or I2S output (to an external dac) it can play audio streams in mp3 format. Other formats like AAC and WMV require too much dynamic memories and can not be played this way.
When you want to play other formats you add an external VS1053 decoder to Karadio. Details on the features of this decoder can be found here : http://www.vlsi.fi/en/products/vs1053.html
Many boards can be found at :
https://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20180113141636&SearchText=vs1053b
Normally a radio station is played without interruption.
But when a connection to the server of the radio station is (temporarily) disrupted (due to internet problems or server problems) Karadio behaves as follows:
暂无开放 Issues,或尚未同步最近议题。