karawin / ka-radio32 Goto Github PK
View Code? Open in Web Editor NEWesp32 version of Ka-Radio (https://github.com/karawin/Ka-Radio) by jp Cocatrix
esp32 version of Ka-Radio (https://github.com/karawin/Ka-Radio) by jp Cocatrix
Hello.
I have a trouble with ESP32-COLOR-ADB from Microwavemont (tindie.com).
This board have PCM5102 DAC and SSD1331 OLED on board.
I checked out this project and flashed it this board with default configuration.
Opened web interface and setup wifi connection and loaded my playlist.
After reboot I was able to connect to web interface and play radio.
OLED was disabled at all.
Than I tried to enable OLED by changing SPI pins for OLED
in main/include/gpio.h this way
@@ -48,9 +48,9 @@
// SPI lcd
//---------
// HSPI pins +
-#define PIN_LCD_CS GPIO_NUM_13 //CS
-#define PIN_LCD_A0 GPIO_NUM_14 //A0 or D/C
-#define PIN_LCD_RST GPIO_NUM_2 //Reset RES RST or not used
+#define PIN_LCD_CS GPIO_NUM_5 //CS
+#define PIN_LCD_A0 GPIO_NUM_16 //A0 or D/C
+#define PIN_LCD_RST GPIO_NUM_17 //Reset RES RST or not used
and flash updated code to the board
Than I set current LCD type via telnet
sys.lcd("197");
and reboot
OLED shows some info and blinking once in 2 seconds.
Board can't connect to the wifi and doesn't respond to web requests, telnet and even ping to its IP.
Could you help with issue?
Should I change something else to enable OLED on this board?
Is my OLED pins configuration OK?
Board pin assignment is here
https://cdn.tindiemedia.com/images/resize/qOo86qvwCBgHBnt77bsAibHUS6k=/p/fit-in/1300x866/filters:fill(fff)/i/73055/products/2018-02-08T01%3A02%3A33.164Z-ESP32-ad2.png
Another question, can I change default LCD type to 197 instead of default 0?
Where is right place in code to set this type?
on v0.8 rotary encoder while pressed skips every second station.
on v0.7 all was ok, now when rotating radio stations are changes ad folows 0->2->4->6 and so on.
Volume increases and decreases by 1, stations by 2.
at first wanted to say thanks for moving to esp32 :)
so i tried esp-idf 2.0 and 2.1, tool-chain 1.22.0-61 and 1.22.0-73 but unable to compile
hanza@ubuntu-test:~/esp/Ka-Radio32$ git submodule init && git submodule update
hanza@ubuntu-test:~/esp/Ka-Radio32$ make
eri.d:1: *** target pattern contains no '%'. Stop.
xi2c.d:1: *** target pattern contains no '%'. Stop.
src/crypto/aes-internal-enc.d:1: *** target pattern contains no '%'. Stop.
wear_levelling.d:1: *** target pattern contains no '%'. Stop.
vfs_uart.d:1: *** target pattern contains no '%'. Stop.
ulp.d:1: *** target pattern contains no '%'. Stop.
tcpip_adapter_lwip.d:1: *** target pattern contains no '%'. Stop.
fonts.d:1: *** target pattern contains no '%'. Stop.
flash_mmap.d:1: *** target pattern contains no '%'. Stop.
esp32/rtc_pm.d:1: *** target pattern contains no '%'. Stop.
sdmmc_cmd.d:1: *** target pattern contains no '%'. Stop.
pthread.d:1: *** target pattern contains no '%'. Stop.
library/ssl_cert.d:1: *** target pattern contains no '%'. Stop.
src/nvs_types.d:1: *** target pattern contains no '%'. Stop.
nghttp2/lib/nghttp2_http.d:1: *** target pattern contains no '%'. Stop.
time.d:1: *** target pattern contains no '%'. Stop.
mp3_decoder.d:1: *** target pattern contains no '%'. Stop.
micro-ecc/uECC.d:1: *** target pattern contains no '%'. Stop.
mdns_task.d:1: *** target pattern contains no '%'. Stop.
mdns.d:1: *** target pattern contains no '%'. Stop.
library/pk_wrap.d:1: *** target pattern contains no '%'. Stop.
websocket.d:1: *** target pattern contains no '%'. Stop.
decoder.d:1: *** target pattern contains no '%'. Stop.
api/pppapi.d:1: *** target pattern contains no '%'. Stop.
log.d:1: *** target pattern contains no '%'. Stop.
port/crypto_hash_sha256_mbedtls.d:1: *** target pattern contains no '%'. Stop.
demux.d:1: *** target pattern contains no '%'. Stop.
libfaad_decoder.d:1: *** target pattern contains no '%'. Stop.
decoder.d:1: *** target pattern contains no '%'. Stop.
library/cJSON.d:1: *** target pattern contains no '%'. Stop.
src//jsmn.d:1: *** target pattern contains no '%'. Stop.
heap_caps_init.d:1: *** target pattern contains no '%'. Stop.
ringbuf.d:1: *** target pattern contains no '%'. Stop.
spiram_fifo.d:1: *** target pattern contains no '%'. Stop.
fdk_aac_decoder.d:1: *** target pattern contains no '%'. Stop.
libAACdec/src/aacdecoder_lib.d:1: *** target pattern contains no '%'. Stop.
src/option/syscall.d:1: *** target pattern contains no '%'. Stop.
library/xmltok.d:1: *** target pattern contains no '%'. Stop.
emac_dev.d:1: *** target pattern contains no '%'. Stop.
esp_adc_cal_lookup_tables.d:1: *** target pattern contains no '%'. Stop.
system_api.d:1: *** target pattern contains no '%'. Stop.
spi_master.d:1: *** target pattern contains no '%'. Stop.
cxx_guards.d:1: *** target pattern contains no '%'. Stop.
linenoise/linenoise.d:1: *** target pattern contains no '%'. Stop.
common_buffer.d:1: *** target pattern contains no '%'. Stop.
libcoap/src/address.d:1: *** target pattern contains no '%'. Stop.
bt.d:1: *** target pattern contains no '%'. Stop.
src/efuse.d:1: *** target pattern contains no '%'. Stop.
audio_renderer.d:1: *** target pattern contains no '%'. Stop.
audio_player.d:1: *** target pattern contains no '%'. Stop.
esp_ota_ops.d:1: *** target pattern contains no '%'. Stop.
app_trace_util.d:1: *** target pattern contains no '%'. Stop.
MerusAudio.d:1: *** target pattern contains no '%'. Stop.
bootloader_start.d:1: *** target pattern contains no '%'. Stop.
esp32/rtc_pm.d:1: *** target pattern contains no '%'. Stop.
micro-ecc/uECC.d:1: *** target pattern contains no '%'. Stop.
spi_flash_rom_patch.d:1: *** target pattern contains no '%'. Stop.
log.d:1: *** target pattern contains no '%'. Stop.
src/efuse.d:1: *** target pattern contains no '%'. Stop.
src/efuse.d:1: *** target pattern contains no '%'. Stop.
/home/hanza/esp/esp-idf/make/project.mk:421: recipe for target 'component-bootloader_support-build' failed
make[1]: *** [component-bootloader_support-build] Error 2
/home/hanza/esp/esp-idf/components/bootloader/Makefile.projbuild:40: recipe for target '/home/hanza/esp/Ka-Radio32/build/bootloader/bootloader.bin' failed
make: *** [/home/hanza/esp/Ka-Radio32/build/bootloader/bootloader.bin] Error 2
hanza@ubuntu-test:~/esp/Ka-Radio32$
This is a suggestion for an additional feature to use the ESP32 "touch" feature in Ka Radio 32.
Now that I have attached an Oled display to my KaRadio-32 I think it would be great to control Karadio without using the webpage.
The use of the “ESP32 touch” feature to control Karadio32 would be a nice addition, ref:
http://esp-idf.readthedocs.io/en/latest/api-reference/peripherals/touch_pad.html
I have seen an addon with mechanical microswitches for controls (the ESP8266 version?) so maybe the basic code is in place and adding touch control is not too complicated.
Looking at my Oled SSD1306 display the use of the metallic islands of the mounting holes would make excellent touch-controls. As far as I can see the islands are not connected to the rest of the PCB. It would require:
I suggested new functions for this project :)
1 add driving gpio (15?) function power on-off over IR
2 add rssi signal on LCD :)
3 add local update over LAN
I did it but my code is not very optimal for displaying the signal. Please support me.
Best regards
Please can anyone instruct me how can i connect the esp32 karadio to an class d amplifier?
thank you.
Command wifi.discon only reconnect connection and print message WIFI.DISCONNECT FAILED
/home/hmurad/esp/Ka-Radio32/build/ucglib/libucglib.a(ucg_karadio32_fonts.o):(.rodata.ucg_font_crox3c+0x0): multiple definition of `ucg_font_crox3c'
/home/hmurad/esp/Ka-Radio32/build/ucglib/libucglib.a(ucg_font_crox3c.o):(.rodata.ucg_font_crox3c+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [/home/hmurad/esp/esp-idf/make/project.mk:411: /home/hmurad/esp/Ka-Radio32/build/KaRadio32.elf] Error
I am trying to compile and seeing this error.
Is it possible to fix?
Hi,
it would be great to select the stations with dedicated Buttons. For example in combination with a MPR121 breakout-board which has a I2C Interface and 12 possible inputs, even with capacitive sensing.
The rotary encoder is great to control the volume, but to switch between the first stations in the list it would be much easier with simple buttons - like on the good old car radios.
Awesome radio project here!
My infra red remote is doing funny things but is working, will have to look at that.
Would be great to have a power off/on via IR, but what would be brilliant is to have MP3 files either from SD card or USB stick via a host board playable as well as the radio.
Bluetooth speaker would be really cool too.
Once again, this is great, thanks for doing it.
Hi,
I saw that the problem with oled display on this device was solved,but I can not make it work.
I changed this pins in gpio.h
#define PIN_I2C_SCL GPIO_NUM_15
#define PIN_I2C_SDA GPIO_NUM_4
#define PIN_I2C_RST GPIO_NUM_16 // or not used
What exactly to add or change in addonu8g2.c to make it work
Exuces my ignorance,I am new in this :-)
wher to tell software to use this oled?
Thanks
I have these i2s DAC PCM5102 : https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSpYA78Iu82clSBfF2pIcEeZu833MCSysnCvBmpJKYrZIjsyMvTjA
BCK Gpio26
LCK Gpio25
DIN Gpio22
Power:
3,3v + to ESP Vin and DAC VCC
3,3v - to ESP GND and DAC GND
The Settings in KaRadio set to i2s Output
My PCM5102 is well wired. On other Applications it works well.
Esp32 is connectet to a station. Volume is on 200
But in KaRadio comes no sound :(
Anyone can help me please?
Can you explain, how to build the version? I can compile it, but I have problems with i2s. I have not replace the i2s.h and i2s.c because it's not compiling with it.
I use ESP32 with PCM5102 I2S DAC.
The project perfectly works with your bin files, too works with the OTA updates.
I want to add the IR codes.
But when I compile the project itself, there are problems with a sound, fast playback with noise and clicks. I have tried esp-idf versions from the last to esp-idf-v2.1. but I don't receive a correct sound.
I am going to build a web radio based alarm clock with ESP-32, and I am very happy with your implementation. However I have found that the Wake function doesn't work as expected. It was 9:30, I paused the radio, set the wake time to 10:00, but the radio started playing in about 3 minutes. Am I doing anything wrong, or is there a bug?
When I find some time, I will also try to implement a week-day dependent waking times. In the mean time, thanks for this great project!
C:/msys32/home/user/Ka-Radio32/components/bt_speaker/bt_speaker.c: In function 'bt_av_hdl_stack_evt':
C:/msys32/home/user/Ka-Radio32/components/bt_speaker/bt_speaker.c:87:36: error: 'CONFIG_BT_NAME' undeclared (first use in this function)
esp_bt_dev_set_device_name(CONFIG_BT_NAME);
^
C:/msys32/home/user/Ka-Radio32/components/bt_speaker/bt_speaker.c:87:36: note: each undeclared identifier is reported only once for each function it appears in
I used new chaintools and actual repository.
Hi! How i can increase a contrast level ssd1306?
Another feature worth looking into is using bluetooth wireless headphones as another possible audio output and playback control? bt headphones like sony wireless headphones MDR-ZX770BN... That way user/ listener can adjust volume or channel via BT headphones. Let me know if you need someone to test!
Hi @karawin
Is it possible to implement volume control on the project page, using the volume up and down buttons of the phone?
Hi @karawin
I use wemos lolin32 board
I am trying to update the version to be able to listen in vs1053, but it does not update the new version.
I tried to upload the bin file again with the esp32 download tool, to update to the R3 version, but only the 0.7 version still appears.
version 0.7 does not allow me to play stations with AAC extension, I do not have sound in my speaker. I have used the pins suggested in the image, but I can not get it working.
The following shows it in the arduino IDE
##CLI.STOPPED# from unsupported mime type
##CLI.STOPPED# from OTA
Starting update ...
must receive:770384 bytes
Connection closed, all packets received
Total Write binary data length : 770384
Update firmware succeded. Restarting
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:2980
load:0x40078000,len:0
load:0x40078000,len:11400
entry 0x40078c38
I (324) main: starting app_main()
I (324) main: RAM left: 171968
E (324) main: Running partition type 0 subtype 16 (offset 0x00010000)
I (354) main: Partition init done...
Log level is now ESP_LOG_ERROR
E (5464) vs1053: VS1053/VS1003 detected. Version: 0
device: 3ffc9e7c
volume: 128
E (5784) wifi: esp_wifi_disconnect 844 wifi not start
DNS: 192.168.1.254
IP: 192.168.1.60
Init .................... Done
autostart: playing:1, currentstation:2
##CLI.NAMESET#: 2 80srock RR (rockradio.com) aac 128 kbps
##CLI.URLSET#: prem3.rockradio.com
##CLI.PATHSET#: /80srock_aac?a75b7607061c2551c187ccbe
##CLI.PORTSET#: 80
##CLI.OVOLSET#: 0
##CLI.VOL#: 128
##CLI.ICY0#: 80s Rock - ROCKRADIO.COM Premium
##CLI.ICY3#: http://www.rockradio.com
##CLI.ICY4#: Rock 80s Classic
##CLI.ICY5#: 128
##CLI.ICY7#: ice-bitrate=128
##CLI.PLAYING#
##CLI.META#: Bruce Springsteen - My Hometown
E (17284) audio_player: failed to start decoder task
##CLI.STOPPED# from unsupported mime type
##CLI.NAMESET#: 1 80 HotMixRadio (80's) mp3 128 kbps
##CLI.URLSET#: streaming.hotmix-radio.net
##CLI.PATHSET#: /hotmixradio-80-128.mp3
##CLI.PORTSET#: 80
##CLI.OVOLSET#: 0
##CLI.VOL#: 128
##CLI.ICY0#: Hotmixradio 80
##CLI.ICY3#: http://www.hotmixradio.fr/80
##CLI.ICY4#: 80s
##CLI.ICY5#: 128
##CLI.ICY7#: ice-samplerate=44100;ice-bitrate=128;ice-channels=2
##CLI.PLAYING#
##CLI.META#: SCORPIONS - Still Loving You
##CLI.STOPPED# from Player stop
##CLI.NAMESET#: 6 alternativerock RR (rockradio.com) aac 128 kbps
##CLI.URLSET#: prem3.rockradio.com
##CLI.PATHSET#: /alternativerock_aac?a75b7607061c2551c187ccbe
##CLI.PORTSET#: 80
##CLI.OVOLSET#: 0
##CLI.VOL#: 128
##CLI.ICY0#: Alternative Rock - ROCKRADIO.COM Premium
##CLI.ICY3#: http://www.rockradio.com
##CLI.ICY4#: Alternative Rock
##CLI.ICY5#: 128
##CLI.ICY7#: ice-bitrate=128
##CLI.PLAYING#
##CLI.META#: Muse - Uprising
E (1196264) audio_player: failed to start decoder task
##CLI.STOPPED# from unsupported mime type
Any idea to resolve the following issue when running this command.
make -j5 clean; make -j5; make flash
issue:
...
..
.
CC build/libsodium/libsodium/src/libsodium/sodium/version.o
CC build/libsodium/port/crypto_hash_mbedtls/crypto_hash_sha256_mbedtls.o
CC build/libsodium/port/crypto_hash_mbedtls/crypto_hash_sha512_mbedtls.o
AR build/libsodium/liblibsodium.a
CC build/main/ClickEncoder.o
In file included from /Users/ossama/esp/Ka-Radio32/main/include/webserver.h:13:0,
from /Users/ossama/esp/Ka-Radio32/main/./ClickEncoder.c:20:
/Users/ossama/esp/Ka-Radio32/main/include/websocket.h:18:27: fatal error: crypto\sha1_i.h: No such file or directory
compilation terminated.
make[1]: *** [ClickEncoder.o] Error 1
make: *** [component-main-build] Error 2
Hi @karawin,
This message is generate sometimes while it is running, other times when changing the radio station. Webradio stops and sound settings is lost and elevate to up range:
E (305395) webclient: Client socket: 56 read: -1 errno:11
##CLI.STOPPED# from try restart
Task watchdog got triggered. The following tasks did not reset the watchdog in time:
i use esp32 live mini kit
It is possible to include network speed information used under karadio version and dbm info?
thanks
I made a small board with Arduino and IR receiver and couple of buttons for favorite preset selection.
After sending a few commands to the Radio like Serial.print("cli.play("5")\r"); or Serial.print("cli.next\r"); the Radio crashes with following error.
It crashes also when sending the commands via serial console from PC.
ERROR A stack overflow in task uartInterfaceTa has been detected.
abort() was called at PC 0x4008b3c0 on core 1
Backtrace: 0x4008b2de:0x3ffdc0e0 0x4008b3a7:0x3ffdc100 0x4008b3c0:0x3ffdc120 0x400877b8:0x3ffdc140 0x4008966c:0x3ffdc160 0x40089622:0x3ffdc9f0
Entering gdb stub now.
Pin 3 on the schematic for ST7735s connections is MOSI but the label on the display for ST7735s is SDA.
please correct schematic.
20180606171940.pdf
First of all, thanks for awesome project and all of the hard work!
I'd like to ask, how to set up the remote control? If I enable log on debug level, I see successfully detected codes of NEC remote control keys in serial terminal. How to link them to certain actions like Volume + or - , switch to station x, etc.? I'm using v0.9 rev 4.
Thank you.
Feature request: add url command to play next station. Now we have to set exact station (command play=123)
It would be great if we had opportunity to play next station by command like this http://{IP}/?next
Hello J.P. I want to use the radio as an alarm clock. And to ensure reliability (I don't want to oversleep!) I need strong feedback, which shows that the stream is really played. Is there something suitable?
Thanks.
P.S. This can also be used for autorestart a "hung" station.
Hi,
it is I again with my oled problems.
My oled diplay stoped working with no reason.I did not update anything.I have tried some other software for this boar and display dod not work.Now I ordered new oled 128x32 and connected it to gpio15 SCL and gpio4 as SDA.I cannot make it work.In gpio.h pins are set correctly.What do I need to do when I chang something in gpio,h for the changes to take effect-only make flash???
.I have changed via serial sys.lcd to display type 6 but it does not work.Now I have version 1.3 R1.Here is serial outpt at start up:
E (4172) vs1053: VS1053/VS1003 detected. MP3Status: 40, Version: 4
device: 3ffd32a8
I2S Speed: 0
volume: 181
E (4532) main: LCD Type 6
X: 128, YY: 32, Y: 7
WIFI TRYING TO CONNECT TO SSID 1
E (5922) wifi: esp_wifi_disconnect 952 wifi not start
E (7182) main:
Wifi Disconnected. Connection tried again
E (7182) main:
Wifi Disconnected.
E (7312) main:
Wifi Disconnected. Connection tried again
E (7312) main:
Wifi Disconnected.
E (7442) main:
Wifi Disconnected. Connection tried again
E (7442) main:
Wifi Disconnected.
E (7582) main:
Wifi Disconnected. Connection tried again
E (7582) main:
Wifi Disconnected.
E (7912) event: invalid static ip
E (7912) main:
Wifi connected
DNS: 192.168.0.1
IP: 192.168.0.48
Init ............... Done
READY. Type help for a list of commands
autostart: playing:1, currentstation:6
##CLI.NAMESET#: 6 Naxie EX YU
##CLI.URLSET#: naxidigital-exyu128.streaming.rs
##CLI.PATHSET#: /listen.pls
##CLI.PORTSET#: 8240
##CLI.OVOLSET#: 0
##CLI.VOL#: 181
##CLI.URLSET#: naxidigital-exyu128.streaming.rs
##CLI.PATHSET#: /
##CLI.PORTSET#: 8240
##CLI.STOPPED# from C_PLIST
##CLI.ICY0#: NAXI EX YU RADIO (NAXI,Belgrade,Serbia, NAXI,Beograd,Srbija) - 128k
##CLI.ICY3#: http://www.naxi.rs
##CLI.ICY4#: EX YU Music
##CLI.ICY5#: 128
##CLI.PLAYING#
Radio works OK,only display not.Do I need to erase everything from board when make new flash.
How can I know which pins it actualy uses for display.What is been changed when I do OTA and disply used to stop working after that.
Thanks
please can anyone explain me how can i use this project in platfromio atom editor?
i clone the project in atom but i can't build it.
thank you.
Hi,
I attached an SSD1306 Oled today on my Ka-Radio32 ESP32. It's an I2C display without an RST line.
The display works (almost) perfectly, but it looks like the pixels that should be in the last column on the right are displayed in the first column on the left (see arrows in my JPG).
It seems like the entire screen is scrolled to the right by 1 pixel, and the last pixel of the line is displayed in the 1st column of the Oled.
I have tried the following, but it makes no difference
Karadio version is V0.9 R2.
Thanks for an excellent piece of software!
A wonderful project!
Thank you very much for your work!
I have a couple of questions and suggestions.
If I specified an incorrect login and password from WiFi, the controller starts an "permanently reboot"
if (getAutoWifi())
{
ESP_LOGE(TAG, "\nWifi Disconnected. reboot");
// esp_restart(); // I comment this line
ESP_LOGE(TAG, "\nWifi Disconnected. Connection tried again"); // uncomment
esp_wifi_connect(); // uncomment
} else
ESP_LOGE(TAG, "\nWifi Disconnected.");
break;
Can return everything back?
Can make control the music playback from the line input/SD card? My VS1053 has it on board.
Сan make a "truncated" version - without a built-in MP3 encoder (only for output on VS1053), but with a large buffer under Stream?
Thank you!
if i use the version 1.3r1 with pcm5102 & ili9341 the sound is not clean. The problem appears with the dynamics on the screen (e.g. the seconds of the clock change). When displaying a static picture (number & name of stations)- everything is ok! I solve the problem only by turning off the screen (set sys.lcd("0")). I think there is not enough memory at the same time to output to the screen and to decode the sound. In older versions of such a problem was not. A few more users of the specialized Russian forum confirm this problem.
Got an error while compiling with the latest sdk. The complete error description is:
Am I missing something?
/home/joao/Programas/esp/Ka-Radio32/build/wpa_supplicant/libwpa_supplicant.a(base64.o): In function `base64_encode':
/home/joao/Programas/esp/esp-idf/components/wpa_supplicant/src/wpa2/utils/base64.c:31: multiple definition of `base64_encode'
/home/joao/Programas/esp/Ka-Radio32/build/main/libmain.a(websocket.o):/home/joao/Programas/esp/Ka-Radio32/main/websocket.c:52: first defined here
collect2: error: ld returned 1 exit status
/home/joao/Programas/esp/esp-idf/make/project.mk:405: recipe for target '/home/joao/Programas/esp/Ka-Radio32/build/KaRadio32.elf' failed
Hi, love your project, first of all!
This is, of course, not really an issue, but more of a feature request. I've been dabbling with the folks at https://www.blynk.cc/ This is one awesome IoT solution.
I'm wondering how hard it would be to integrate this into your amazing Radio solution. I'm not really a coder, so I'm a little hesitant as to making guesses about how you programmed all your stuff. But since the ESP32 has two cores, would it be possible to run the Blynk solution on one core? It requires somewhat big computing time and cannot be mixed with blocking code since it's realtime.
There is an example piece of how this basically works over here: https://examples.blynk.cc/?board=Raspberry%20Pi&shield=System%20default&example=GettingStarted%2FBlynkBlink
In essence, it's a piece of middleware connecting to both an App on your Phone and a Server (whether it be Cloud or a Local server you run on your own time).
Or maybe you can give me a hint how to integrate this and if it's possible to run it on a dedicated core on the Radio.
Thanks very much in advance and if you need more info, I'd be happy to help out :)
Greetings, Bastiaan (from the Netherlands).
Hi,
so far Ka-Radio32 runs well on Heltec LoRa32 Wifo Kit, just the OLED uses different IO. Seems to be using some pins which are currently reserved for ENC & LED. Any change to get that working?
Please find further info here:
https://robotzero.one/heltec-wifi-kit-32/
https://hackaday.io/project/26991-esp32-board-wifi-lora-32
BR,
georg
I've been trying to port your code to this board. The job tasks are simple. It includes changing a couple of IOs, configuring the proper LCD, push buttons, and It should be good. I'm specially interested on this board. Find the schematic here It uses the PCM5102 I2S DAC.
Its the most complete ready-to-run solution I found. relatively low cost.
But now, as I'm trying to do that, I went through one issue, and one question:
How do you think it is a good idea to have a complete board support? Instead of changing individual configs, but having a whole config-set for an specific board? I tough of having some pre-set config structures, that could be changed on the terminal (something like having renderer_config and board_config pre-sets for a given board. How does this sound? I could contribute on that. I'm quiet interested on getting this board to work smoothy.
My other issue, which is more technical one: I've been trying for the last couple of weeks to get the audio playing fine. Issue is that I'm always getting musics playing as if they were in fast-forward, with noise as well. I tried changing sampling rate, master clock, clock sources, etc.. Nothing solves the issue.
I found a fork of the the KaRadio from which, If I flash the binaries already compiled, it works, otherwise, it does not. Really dont know where to look more.
It seems that there is a related issue here, but not sure it solves the issue Im having.
must i load a new bin and upload it to the esp32? but at the bin are no version numbers.
Hello JP. Have a nice day!
I already several times face the following problem. At the first start, I get an error of the RDA module.
E (6729) i2c: Z:/esp/esp-idf/components/driver/i2c.c:1008 (i2c_master_read):i2c data read length error ESP_ERROR_CHECK failed: esp_err_t 0x102 at 0x401360ff
file: "Z:/msys32/home/Alex/Karadio_orig_096/components/RDA5807/common.c" line 67
func: i2c_slave_read_only
expression: i2c_master_read(cmd, buf,len-1, ACK_VAL)
Backtrace: 0x4008b256:0x3ffcbd20 0x4008b61d:0x3ffcbd40 0x401360ff:0x3ffcbd60
0x40136216:0x3ffcbd80 0x4013633a:0x3ffcbda0 0x401359ad:0x3ffcbdc0 0x4010f7cf:0x3ffcbdf0
0x400d0e26:0x3ffcbe40
Entering gdb stub now.
$T0b#e6
The firmware is standard, taken from here. The electrical circuit is also taken here.
It seems to me that this is due to the choice of display. I chose type 0 (do not use). This causes a device conflict on the I2C bus when testing a non-existent RDA module
Tnx. Alex.
I have esp32 but this is too small to using it.
What pins should I use?
Hi,
While experimenting I created some extra description for "Audio output", maybe you can use it for the README.
Thx.
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
+------------------------------------+
ESP32-GPIO25 (left) -----+speaker/earphone/analog-amp (left) +-----+
+------------------------------------+ |
|
+------------------------------------+ |
ESP32-GPIO26 (right) ----+speaker/earphone/analog-amp (right +------+
+------------------------------------+ |
|
ESP32-GROUND --------------------------------------------------------+
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.
+--------------------------------------+
ESP32-GPIO25 (left) -------+ +-----+speaker/earphone/analog-amp (left) +------+
+-+ | +--------------------------------------+ |
+P+ | |
+o+--+ |
+t+ |
+++ |
| |
ESP32-GROUND --------------+-------------------------------------------------------+
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.
Hi,
Would it be possible to restart the Karadio32 Wifi connection to the Wifi router when the connection was lost?
Background:
Karadadio is very stable for me. It often plays a station for < 24 hours without any issue.
But sometimes Karadio32 looses the Wifi connection. On the LCD a.o. the time is displayed in a BIG font, instead of the Radio details. If you try to connect to the webpage it does not connect. So my conclusion is that the software is still running but that the Wifi connection was lost for some reason.
My Wifi signal is not perfect, so that may be the reason why Kardaio32 was disconnected from the Wifi router.
Would be great if Karadio would restart the Wifi connection is the connection was lost for some reason.
Thx for an excellent piece of software!
Hello! I have made my KaRadio32 using ESP32-Pico-D4 board taken from here => https://www.aliexpress.com/item/TTGO-Micro-32-Wifi-wireless-Bluetooth-Module-ESP32-PICO-D4-IPEX/32870840371.html
I have built own firmware (to change some GPIOs), but there's one issue - KaRadio's internal webserver crashes after a couple of webpage updates, seems to be it is out of memory, but music is still playing.
UART output:
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:2980
load:0x40078000,len:0
load:0x40078000,len:11400
entry 0x40078c38
I (91) main: starting app_main()
I (91) main: RAM left: 136052
E (91) main: Running partition type 0 subtype 16 (offset 0x00010000)
I (131) main: Partition init done...
Log level is now ESP_LOG_ERROR
E (1741) vs1053: NO VS1053 detected
E (1741) main: LCD Type 0
X: 128, YY: 64, Y: 9
WIFI TRYING TO CONNECT TO SSID 1
E (3181) wifi: esp_wifi_disconnect 954 wifi not start
E (4431) event: invalid static ip
E (4431) main:
Wifi connected
DNS: 192.168.99.1
IP: 192.168.99.230
Init ............... Done
READY. Type help for a list of commands
autostart: playing:1, currentstation:249
##CLI.NAMESET#: 249 Супердискотека 90х
##CLI.URLSET#: online.radiorecord.ru
##CLI.PATHSET#: /sd90_128
##CLI.PORTSET#: 8102
##CLI.OVOLSET#: 0
##CLI.VOL#: 203
##CLI.ICY0#: \/sd90_128
##CLI.ICY3#: http:\/\/savonet.sf.net
##CLI.ICY4#: Misc
##CLI.ICY5#: 128
##CLI.ICY6#: Liquidsoap Radio!
##CLI.ICY7#: channels=2;samplerate=44100;bitrate=128
##CLI.PLAYING#
##CLI.META#: YAKI-DA - I Saw You Dancing
E (16121) servers: Server low mem. Retrying...
E (18111) rmt: RMT[0] ERR
E (18111) rmt: status: 0x14000040
E (18801) servers: Server low mem. Retrying...
E (28691) servers: Server low mem. Retrying...
E (29091) servers: WebServer Socket fails accept errno: 23
E (30731) servers: WebServer Socket fails accept errno: 23
E (31101) servers: WebServer Socket fails accept errno: 23
E (31211) servers: WebServer Socket fails accept errno: 23
E (31321) servers: WebServer Socket fails accept errno: 23
sys.heap
##SYS.HEAP: 23156 #
After this, webserver is unavailable.
Hello Jean-Pierre,
I just finished a prototype with ESP32. Great work, it works much smoother than the ESP8266 version. However it seems, that the DHCP client is sending espressif as hostname instead of wifiwebradio.
It would be also great, if you could enhance the network setup to allow custom hostnames. This way multiple Ka-Radios could be in the same network.
Robin
I configured addon.h and gpio.h as following:
#define LCD_COLOR 128 //0x80
#define LCD_SPI 194 //0x40
#define LCD_I2C 0
#define LCD_NONE 255
#define PIN_LCD_CS GPIO_NUM_14 //CS
#define PIN_LCD_A0 GPIO_NUM_27 //A0 or D/C
#define PIN_LCD_RST GPIO_NUM_33 //Reset RES RST or not used`
compiled OK, stations receive OK
sys.lcd
##LCD is 194#
but after start I see very very slowly LCD filling with light blue and nothing more.
UPD:
With WROVER-KIT tested ILI9341 and SSD1351. In both cases the same bug, see attachment.
Hi. I wonder if you plan to support monochrome LCDs: 16x2, 16x4 and 20x4.
I have recently purchased one like this https://fr.aliexpress.com/item/Blue-Display-IIC-I2C-TWI-SPI-Serial-Interface-2004-20X4-Character-LCD-Module/32800324987.html
and wonder how can i make it working.
Thanks
Hi,
I would like to try Ka-Radio 32 on my DOIT ESP32 DEVKIT V1 board, but hit a problem.
I downloaded:
http://karadio.karawin.fr/KaRadio32.bin
and
http://karadio.karawin.fr/KaRadio32sup.zip
Since I'm on a Mac I cannot use the Windows flasher so I used ESPTOOL:
imac-van-gerard:ESP32Firmware gerard$ ./esptool -p /dev/cu.SLAB_USBtoUART --baud 921600 erase_flash
imac-van-gerard:ESP32Firmware gerard$ ./esptool -p /dev/cu.SLAB_USBtoUART --baud 921600 write_flash 0x1000 KaRadio32/bootloader.bin
imac-van-gerard:ESP32Firmware gerard$ ./esptool -p /dev/cu.SLAB_USBtoUART --baud 921600 write_flash 0x8000 KaRadio32/partitions.bin
imac-van-gerard:ESP32Firmware gerard$ ./esptool -p /dev/cu.SLAB_USBtoUART --baud 921600 write_flash 0x10000 KaRadio32/KaRadio32.bin
imac-van-gerard:ESP32Firmware gerard$ ./esptool -p /dev/cu.SLAB_USBtoUART --baud 921600 write_flash 0x1d000 KaRadio32/KaRadio32.bin
The uploads are succesfull.
When I reset the ESP I get from the serial port:
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
Falling back to built-in command interpreter.
OK
>ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:2980
load:0x40078000,len:0
load:0x40078000,len:11400
entry 0x40078c38
E (120) esp_image: invalid segment length 0x6f742064
E (120) boot: OTA app partition slot 0 is not bootable
E (120) esp_image: image at 0x1d0000 has invalid magic byte
E (124) boot: OTA app partition slot 1 is not bootable
E (129) boot: No bootable app partitions in the partition table
user code done
Did I make a mistake in uploading, or do you have any other suggestions what to try?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.