Code Monkey home page Code Monkey logo

esp32radio-v2's Introduction

ESP32Radio-V2

New version of the well known ESP32 Radio. Now optional I2S output and SP/DIF output!

  • Compile time configuration in config.h.
  • Do not forget to upload the data directory to the ESP32.
  • SD cards supported, but still experimental.

SAM_2922

Updates:

  • 05-jul-2024: Correction SPDIF output.
  • 12-mar-2024: Add document with building instructions. New PCB available! See here at PCBWay.
  • 19-feb-2024: SP/DIF (Toslink) output, fixed mono bug.
  • 26-dec-2023: Correct crash with VS1053 and empty preferences.
  • 14-dec-2023: Add "mqttrefresh" command to refresh all mqtt items.
  • 09-oct-2023: Reduced error messages caused by uninitialized GPIO numbers.
  • 16-may-2023: Added sleep command.
  • 05-may-2023: SD card file stored on SD card, mute/unmute, better mutex.
  • 24-mar-2023: Code clean-up
  • 03-nov-2022: Added AI Thinker Audio kit V2.1 suport.
  • 05-oct-2021: Fixed internal DAC output, fixed OTA upload.
  • 06-oct-2021: Fixed AP mode.
  • 26-mar-2022: Fixed NEXTION bug.
  • 12-apr-2022: Fixed queue bug (NEXT function).
  • 13-apr-2022: Fixed redirect bug (preset was reset), fixed playlist bug.
  • 14-apr-2022: Add FIXEDWIFI in config.h to simplify WiFi set-up.
  • 15-apr-2022: Redesigned station selection.
  • 25-apr-2022: Add support for WT32-ETH0 (wired Ethernet).
  • 04-may-2022: OLED with Wire library, should work with Heltec-WIfi board.

esp32radio-v2's People

Contributors

edzelf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp32radio-v2's Issues

enable line in vs1053 and alarm function

hi @Edzelf ,

wondering if records or line in pin in vs1053 works with the radio. i could not find where the line in enable part in the vs1053 driver library. this will allow potential audio in device to be connected to the radio such as common low cost bluetooth receiver that only has audio output.

probably 4 clicks on rotary encoder or new command block will activate the line in jack? nice to have feature.

and one more, i saw few mentions in the issue tracking regarding alarm function. i did not aware if this exist in v1 once i try before. could you shed some light where was this added so i can refer. would like to have the alarm in v2.

thank you!

Simple Question (not an issue)

Great project! Thanks!

I would like to ask what you think is better to use: (less sound glitches, less decoding formats..etc)

  1. The VS1053 to do all the steam decoding on all supported formats
  2. An I2S -> DAC

I would like to design a pcb and I can't choose what is better in the long run.
Thanks

COSTAS

pin_i2s_bck = 5 # GPIO Pin number for I2S "BCK"
pin_i2s_lck = 32 # GPIO Pin number for I2S "L(R)CK"
pin_i2s_din = 4 # GPIO Pin number for I2S "DIN"

I want to use DAC 12S and PCM 5102A and want to make sure this are the correct gpio pins on the ESP32 DEVKIT. PLEASE HELP

Please explain how to upload the "data" directory

Code compiles and uploads perfectly in PlatformIO, whenever I try to access 192.168.4.1 to setup the Wifi, I just get "sorry" which I assume is because the web data in the "data" directory did not upload and I assume it's because of this line "Do not forget to upload the data directory to the ESP32." How do I upload this?

V1 of the ESPradio works perfectly!

Wired Ethernet support?

not an issue :-)

Hello,

is it planned to add wired ethernet support for this great work?

Actually, there are some modified variants of your software with support for e.g. LAN8720. The only difference for the software part is that the SPI bus for the lcd and sd card has to be moved to the second hardware SPI bus (called HSPI) because the RMII pins are needed for the LAN chip. In consequence, some pins have to be switched but this should not be a problem because of the GPIO definition in the NVS text file.

An ethernet connection is for most users with an automation systems the best choice. The RMII interface of the ESP32 supports wired ethernet out-of-the-box.

Here is an example schematic showing the new pin definitions - VS1053, Ethernet via RMII and LCD are possible at the same time:

image

WiFi Password not working

hello ed,
when I enter the following password in the web interface:

r@#+_:=47-+23

the + characters are not taken, then there are blanks in these places
the result then looks like this:

r@# _:=47- 23

please help
thank you for the great work

greetings miro

white noise

migrate from vs1053 to pcm5102
has pcm5102 white noise?

build error

Hi Ed!
When building in PlatformIO, with the uncommented #define SDCARD function in config.h, a warning appears in the terminal:
Library Manager: Installing SD(esp32) @ ^1.0.5
Warning! Could not find the package with 'SD(esp32) @ ^1.0.5' requirements for your system 'windows_amd64'
then the build fails with the following error:
Compiling .pio\build\esp32\src\main.cpp.o
Compiling .pio\build\esp32\src\utils.cpp.o
Generating partitions .pio\build\esp32\partitions.bin
Compiling .pio\build\esp32\lib1a0\Wire\Wire.cpp.o
Compiling .pio\build\esp32\libc45\PubSubClient\PubSubClient.cpp.o
Compiling .pio\build\esp32\lib274\SPI\SPI.cpp.o
Archiving .pio\build\esp32\lib1a0\libWire.a
Compiling .pio\build\esp32\libcb0\Adafruit BusIO\Adafruit_BusIO_Register.cpp.o
Archiving .pio\build\esp32\lib274\libSPI.a
In file included from src/main.cpp:616:
include/SDcard.h: In function 'void handle_ID3_SD(String&)':
include/SDcard.h:338:13: error: 'SD' was not declared in this scope
mp3file = SD.open ( path ) ; // Open the file
^~
include/SDcard.h:338:13: note: suggested alternative: 'SS'
mp3file = SD.open ( path ) ; // Open the file
^~
SS
include/SDcard.h: In function 'bool mount_SDCARD(int8_t)':
include/SDcard.h:458:11: error: 'SD' was not declared in this scope
if ( !SD.begin ( csPin, SPI, SDSPEED ) ) // Yes, try to init SD card driver
^~
include/SDcard.h:458:11: note: suggested alternative: 'SS'
if ( !SD.begin ( csPin, SPI, SDSPEED ) ) // Yes, try to init SD card driver
^~
SS
include/SDcard.h:464:36: error: 'CARD_NONE' was not declared in this scope
SD_okay = ( SD.cardType() != CARD_NONE ) ; // See if known card
^~~~~~~~~
include/SDcard.h:464:36: note: suggested alternative: 'INADDR_NONE'
SD_okay = ( SD.cardType() != CARD_NONE ) ; // See if known card
^~~~~~~~~
INADDR_NONE
include/SDcard.h: In function 'void scan_SDCARD()':
include/SDcard.h:485:17: error: 'SD' was not declared in this scope
getsdtracks ( SD, "/", SD_MAXDEPTH ) ; // Build file list
^~
include/SDcard.h:485:17: note: suggested alternative: 'SS'
getsdtracks ( SD, "/", SD_MAXDEPTH ) ; // Build file list
^~
SS
Compiling .pio\build\esp32\libcb0\Adafruit BusIO\Adafruit_I2CDevice.cpp.o
Archiving .pio\build\esp32\libc45\libPubSubClient.a
Compiling .pio\build\esp32\libcb0\Adafruit BusIO\Adafruit_SPIDevice.cpp.o
*** [.pio\build\esp32\src\main.cpp.o] Error 1
How can this be fixed?

2 issues... only one error

First I apologize, I'm NOT a software guy, so i'm a bit lost with the software. I am using PlatformIO and the compiling mostly went ok.
I have a problem with the VS1023 when compiled, I will include the dump.
The second problem is the NEXTION display, it only shows the 'demo mode' of the Nextion and I'm not sure how to get around it. I have 5 v and Ground or the display wouldnt work at at and I have the TX going to Pin 16 of the ESP32 and the TX going to Pin 17 of the ESP32. The Pins are assigned properly (or appear to be looking at the code.

Here is the VS1023 errors (almost at the bottom .

Any assistance would be appreciated for this great looking project.

Cheers

[Starting] Opening the serial port - COM8
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_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:0x3fff0030,len:1184
load:0x40078000,len:12784
load:0x40080400,len:3032
entry 0x400805e4

D: Starting ESP32-radio running on CPU 1 at 240 MHz.
D: Version Sun, 15 May 2022 10:30:00 GMT. Free memory 110580
D: Display type is NEXTION
D: SPIFFS is okay, space 1378241, used 33634
D: Found partition 'nvs ' at offset 0x009000 with size 20480
D: Found partition 'otadata ' at offset 0x00E000 with size 8192
D: Found partition 'spiffs ' at offset 0x290000 with size 1507328
D: Read 48 keys from NVS
D: pin_ir set to 35
D: pin_enc_clk set to 25
D: pin_enc_dt set to 26
D: pin_enc_sw set to 27
D: pin_tft_cs set to 15
D: pin_tft_dc set to 2
D: pin_vs_cs set to 5
D: pin_vs_dcs set to 32
D: pin_vs_dreq set to 4
D: Pin 5 is already reserved!
D: pin_i2s_bck set to 5
D: Pin 32 is already reserved!
D: pin_i2s_lck set to 32
D: Pin 4 is already reserved!
D: pin_i2s_din set to 4
D: pin_spi_sck set to 18
D: pin_spi_miso set to 19
D: pin_spi_mosi set to 23
D: GPIO0 is HIGH
D: GPIO2 is LOW, probably no PULL-UP
D: GPIO4 is HIGH
D: GPIO5 is HIGH
D: GPIO12 is HIGH
D: GPIO13 is HIGH
D: GPIO14 is HIGH
D: GPIO15 is HIGH
D: GPIO16 is HIGH
D: GPIO17 is HIGH
D: GPIO18 is HIGH
D: GPIO19 is HIGH
D: GPIO21 is HIGH
D: GPIO22 is HIGH
D: GPIO23 is HIGH
D: GPIO25 is HIGH
D: GPIO26 is HIGH
D: GPIO27 is HIGH
D: GPIO32 is HIGH
D: GPIO33 is HIGH
D: GPIO34 is HIGH
D: GPIO35 is HIGH
D: GPIO39 is HIGH
D: gpio_00 will execute uppreset = 1
D: gpio_12 will execute upvolume = 2
D: gpio_13 will execute downvolume = 2
D: gpio_14 will execute stop
D: gpio_34 will execute station = icecast.omroep.nl:80/radio1-bb-mp3
D: Enable pin 35 for IR
D: Start NEXTION display
D: Init Nextion, pins 16, 17
D: Nextion command cls BLACK
D: Nextion command page 0
D: NEXTION output 'Starting......' to 1
D: NEXTION output 'Sun, 15 May 2022' to 2
D: NEXTION output 'By Ed Smallenburg' to 3
D: Create list with acceptable WiFi networks
D: Added MYWIFI to list of networks
D: Added SSID1 to list of networks
D: Added SSID2 to list of networks
D: Scan Networks
: Scan completed
D: Number of available networks: 7
D: 1 - Spare Hub Signal: -67 dBm, Encryption WPA_WPA2_PSK,
D: 2 - New_Setup Signal: -75 dBm, Encryption WPA2_PSK,
D: 3 - NewSetup2_guest Signal: -77 dBm, Encryption WPA_WPA2_PSK,
D: 4 - NTGR_VMB_1473370562 Signal: -78 dBm, Encryption WPA2_PSK,
D: 5 - MK Signal: -91 dBm, Encryption WPA2_PSK,
D: 6 - Worldline4062B7 Signal: -91 dBm, Encryption WPA_WPA2_PSK,
D: 7 - BELL826 Signal: -95 dBm, Encryption WPA2_PSK,
D: End of list
D: updateNr 0 <= 0 to 6, relative is 0
D: updateNr result is 0
D: nextPreset is 0
D: Slow SPI, Testing VS1053 read/write registers...
D: VS1053 not properly installed!
D: Connect to network
D: NEXTION output 'Connect to network' to 4

Sound with major interrupts on VS1003

I am using VS1003 insted of VS1053.

The Terminal shows correct about using VS1003, but when the stream starts it is interrupted a lot.
Like 0.5 sec sound, 5 sec - no sound.
On every stations.

What could be the issue? Did someone else used VS1003 ?

Also:

When it can not connect to the network and tried to create hotspot ESP32Radio, it reboots with this log:

WiFi Failed! Trying to setup AP with name ESP32Radio and password ESP32Radio.
D: IP = 192.168.4.1
D: Start server for commands
D: Rotary encoder is enabled
D: STOP requested
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x4018d92b PS : 0x00060e30 A0 : 0x800d211b A1 : 0x3ffb1f10
A2 : 0x00000000 A3 : 0xa3a2e1c9 A4 : 0x3f400a96 A5 : 0x3ffb1f30
A6 : 0x3ffb1f00 A7 : 0x00000004 A8 : 0xa3a2e1c9 A9 : 0x3ffb1ea0
A10 : 0x00000001 A11 : 0x00000001 A12 : 0x3ffd75e8 A13 : 0x00000001
A14 : 0x00000000 A15 : 0x00000001 SAR : 0x00000020 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000

ELF file SHA256: 0000000000000000

Backtrace: 0x4018d92b:0x3ffb1f10 0x400d2118:0x3ffb1f30 0x400d4654:0x3ffb1f50 0x400d7366:0x3ffb1f90 0x400eb2c4:0x3ffb1fb0 0x4008a586:0x3ffb1fd0
#0 0x4018d92b:0x3ffb1f10 in AsyncClient::connected() at .pio\libdeps\esp32doit-devkit-v1\AsyncTCP\src/AsyncTCP.cpp:1118
#1 0x400d2118:0x3ffb1f30 in stop_mp3client() at src/main.cpp:1323
#2 0x400d4654:0x3ffb1f50 in mp3loop() at src/main.cpp:2925
#3 0x400d7366:0x3ffb1f90 in loop() at src/main.cpp:3130
#4 0x400eb2c4:0x3ffb1fb0 in loopTask(void*) at C:\Users\moni.platformio\packages\framework-arduinoespressif32\cores\esp32/main.cpp:23
#5 0x4008a586:0x3ffb1fd0 in vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)

Rebooting...

Preset Stations

Hello,
I used v1 of this wonderful software and had problems switching from one preset to another by using previous/next in web interface or with the rotary switch: the current station does not change.

Now I tried v2: Similiar problem. The switching works only between preset 6 and 7 and some other stations of the defaultprefs. And switching to a other new presets/station/stream (which worked in v1!) leads to a crash and reboot.

Are there any new prerequisits for the urls of the stations? Or any other ideas?
Best regards.

Songs audio play OK but announcer auudio is garbled.

Hi,
I have implemented ESP32Radio-V2 and it mostly works. I have added some stations I want, but problem is, while music is playing, it sounds fine. But when the song stops and the announcer comes on, the audio is garbled. An example is tuning into "wwfm.streamguys1.com/live-mp3." Here is the terminal output:

D: Start server for commands
D: Network found. Starting mp3 client, mqtt and OTA
D: MDNS responder started
D: Command: status (without parameter)
D: Command: status (without parameter)
D: Command: status (without parameter)
D: Command: status (without parameter)
D: Rotary encoder is enabled
D: STOP requested
D: New preset/file requested (11/0) from wwfm.streamguys1.com/live-mp3
D: Connect to new host wwfm.streamguys1.com/live-mp3
D: Connect to wwfm.streamguys1.com on port 80, extension /live-mp3
D: Song stopped correctly after 0 msec
D: Connected to MP3 host at 216.246.14.119 on port 80
D: send GET command
D: Switch to HEADER
D: Headerline: Accept-Ranges: none
D: Headerline: Content-Type: audio/mpeg
D: audio/mpeg seen.
D: Headerline: icy-br:128
D: Headerline: ice-audio-info: channels=2;samplerate=44100;bitrate=128
D: Headerline: icy-br:128
D: Headerline: icy-description:WWFM
D: Headerline: icy-genre:Misc
D: Headerline: icy-name:/live-mp3
D: Headerline: icy-pub:1
D: Headerline: icy-url:WWFM
D: Headerline: Server: Icecast 2.4.0-kh1
D: Headerline: Cache-Control: no-cache, no-store
D: Headerline: Pragma: no-cache
D: Headerline: Access-Control-Allow-Origin: *
D: Headerline: Access-Control-Allow-Headers: Origin, Accept, X-Requested-With, Content-Type
D: Headerline: Access-Control-Allow-Methods: GET, OPTIONS, HEAD
D: Headerline: Connection: close
D: Headerline: Expires: Mon, 26 Jul 1997 05:00:00 GMT
D: Headerline: icy-metaint:16000
D: Switch to DATA, bitrate is 128, metaint is 16000
D: Command: status (without parameter)
D: Metadata block 16 bytes
D: Streamtitle found, 15 bytes
D: StreamTitle='';
D: Command: status (without parameter)
D: Command: status (without parameter)
D: Command: status (without parameter)
_

The song stopped and the announcer came on after the second to last line in the log. Is it possible that the stream changes mode to 'MONO' or something when the announcer is on?

This URL plays music and announcer just fine in Winamp and VLC.

Nextion display does not work

I have the VS1053 module (MP3/ACC decoder), VS1338B module (IR), KCX_BT_EMITTER module (Bluetooth transmitter), BUT not the Nextion NX4024T032_011 display is not working. Other than the display the radio works fine.

I connected a oscilloscope to the RX2 in on the ESP32 module and see the signal displayed in the attached picture. The signsl stays the same after switching to another signal. I don't know what the signal should look like at the RX2 pin but this is what I see.

Is there anyone who built this project using a Nextion display and got the display working. I have tried everything I know but can't fix the problem. The display is brand new. I will greatly appreciated any help I can get.

DSCF1012

Crashens on mp3 stop

The version I downloaded on 1/4/2022 did work well.
The actual version has some problems:

  • 'stop' command gives 'D: ESP32-Radio called with illegal parameter: stop'
  • same for 'resume' and 'settings'
  • changing preset (rotary, remote control, command) crashes (and reboots with same preset)

crash.txt

using VS1053, VS1838B, rotary encoder, NEXTION

SD File playback failed

hi @Edzelf ,

D: SD okay, start scan
D: Locate mp3 files on SD, may take a while...
D: DIR : mp3_folder
[ 19936][E][vfs_api.cpp:29] open(): mp3_folder does not start with /
D: Failed to open directory
D: Space 179124
D: 0 tracks on SD
D: Radiofuncs cmd is 1

i am getting error during sd directory scan. could not understand how the file and folder mapping work to fix it myself.
sd call will only read file name and first level directory or the sub directory per scan and not able to play playback of file stored without full path so the file path need to be stored in the mp3spec variable. so far my test the mp3spec files only stored the file name and not full path.

in this function: getsdtracks(const char * dirname, uint8_t levels) and addToFileList( file.name()))
file.name() only return file name and not path. and during scan the directory are not being map.
wondering how it was done to recall back directory of the sub mp3 files.

Thanks,

i2c LCD2004 display not displaying title or radio station

Hi,

I have connected a LCD2004 display to my ESP-wroom-32 with an encoder. Audio via i2s #define DEC_HELIX .

The display only shows date and time. When I press the encoder (singleclick) it says Mute in the 2nd line.
When I doubleclick it shows the station and after 2 seconds the text "Turn to select station Press to confirm".
The preset is not shown when I turn the encoder. Also the Mute is not going away when I unmute. Volume bar is also not shown when turning the encoder.
photo_2022-05-12_20-29-26
photo_2022-05-12_20-29-29
photo_2022-05-12_20-29-31

Do you have any tips for me where to search the problem in the source code?

uppreset and downpreset not working

uppreset always selects preset 1
downpreset always selects preset -1 (!)

D: IR code A05F received. Will execute uppreset = 1
D: Preset is now 1
D: Radiofuncs cmd is 1
...
D: IR code A05F received. Will execute uppreset = 1
D: Preset is now 1
D: Radiofuncs cmd is 1
...
D: IR code A05F received. Will execute uppreset = 1
D: Preset is now 1
D: Radiofuncs cmd is 1
...
D: IR code E21D received. Will execute downpreset = 1
D: Preset is now -1
D: Radiofuncs cmd is 1
...
D: IR code E21D received. Will execute downpreset = 1
D: Preset is now -1
D: Radiofuncs cmd is 1

Unable to connect WiFi

i am unable to connect wifi.
Config is nearly empty. Only 2 Wifi networks with correct Password ( i try only numbers)
`
D: Create list with acceptable WiFi networks

D: Added MYWIFI to list of networks
D: Added STV to list of networks
D: Added SGuest to list of networks
D: Scan Networks
D: Scan completed
D: Number of available networks: 11
D: 1 - SGuest Signal: -73 dBm, Encryption WPA2_PSK, Acceptable
D: 2 - STV Signal: -74 dBm, Encryption WPA2_PSK, Acceptable
D: 3 - ....
...
D: Connect to network
D: WiFi Failed! Trying to setup AP with name ESP32-Radio and password ESP32-Radio.
D: IP = 1.0.0.0
D: Start web server
`
What can i do or try?

i2s mode, volume does not work

This is great project , really. The sound output is great!

BUT:

I use I2C mode, I noticed that VOLUME and TONE controls does not work.

Recomended setup for DAC

hi,

anyone could share feedback on using internal/external dac for this radio or maybe using i2s module for this radio.

is it worth to use external circuit for better audio bits and quality audio output? what dac was used?

this could be more question or discussion and not a bug report. move to discussion section if required.

thanks at the earliest!

Right or Wrong ESP32 board

The Hardware section of the ESP32-radio V2.0 Manual states that the ESP32 module is basically an ESP32 on a small print. You used a DOIT ESP32 Development Board.

In the Arduio IDE version 1.8.19, the closest board I could select is the DOIT ESP32 DEVKIT V1. Unfortunately the vitrifaction of the sketch stops with the this error message: exit status 1 error compiling for board DOIT DEVKIT V1.

This probably indicates that I have selected the wrong ESP32 board. Do you know which ESP32 board I should select?

Vs1053

Hello Ed,
The radio with the v2 software is running.
It took me quit a lot of time get signal out of the amplifier!
In the config file i have to outmark # the not used mp3 boards.
Surprisingly the system gives signal by unmarked vs1053 board.
While there is fitted a vs1001 board?
The radio with the naked ninja pcb
Fyi
Kind regards ilioSS

SD card MP3 playback

Can you bring back the SD card MP3 playback support from version 1 of the radio, please?

And it is removed in the first place?

ST7789

I added support for ST7789 myself - finally! ;-)

SD Card Mount Failed!

Hi @Edzelf , to raise issue regarding sd implementation.

i was unable to load/start sd for unknown reason. i have swapping sd library, using different lib version and add some modification to the codes. i guess this is related to use shared spi bus for sd, tft with no cs connected, and the vs on a wrover module. am using spi instance with vspi pin definition.

D: Starting ESP32-radio running on CPU 1 at 240 MHz.
D: Version Thu, 05 May 2022 09:25:00 GMT.  Free memory 113792
D: Display type is BLUETFT
D: SPIFFS is okay, space 1378241, used 33634
D: Found partition 'nvs     ' at offset 0x009000 with size    20480
D: Found partition 'otadata ' at offset 0x00E000 with size     8192
D: Found partition 'spiffs  ' at offset 0x290000 with size  1507328
D: Read 39 keys from NVS
D: pin_ir set to 5
D: pin_enc_clk set to 35
D: pin_enc_dt set to 34
D: pin_enc_sw set to 39
D: pin_tft_dc set to 2
D: pin_tft_scl set to 14
D: pin_tft_sda set to 13
D: pin_sd_cs set to 33
D: pin_vs_cs set to 15
D: pin_vs_dcs set to 32
D: pin_vs_dreq set to 4
D: Pin 14 is already reserved!
D: pin_spi_sck set to 14
D: pin_spi_miso set to 12
D: Pin 13 is already reserved!
D: pin_spi_mosi set to 13
D: GPIO0 is HIGH
D: GPIO2 is HIGH
D: GPIO4 is HIGH
D: GPIO5 is HIGH
D: GPIO12 is HIGH
D: GPIO13 is HIGH
D: GPIO14 is HIGH
D: GPIO15 is HIGH
D: GPIO16 is HIGH
D: GPIO17 is HIGH
D: GPIO18 is HIGH
D: GPIO19 is HIGH
D: GPIO21 is HIGH
D: GPIO22 is HIGH
D: GPIO23 is HIGH
D: GPIO25 is HIGH
D: GPIO26 is HIGH
D: GPIO27 is HIGH
D: GPIO32 is HIGH
D: GPIO33 is HIGH
D: GPIO34 is HIGH
D: GPIO35 is HIGH
D: GPIO39 is HIGH
D: Enable pin 5 for IR
D: Start BLUETFT display
D: Create list with acceptable WiFi networks
D: updateNr 0 <= 0 to 5, relative is 0
D: updateNr result is 0
D: nextPreset is 0
D: Slow SPI, Testing VS1053 read/write registers...
D: This is not a VS1053, but a VS1003 instead!
D: Fast SPI, Testing VS1053 read/write registers again...
D: This is not a VS1053, but a VS1003 instead!
D: Connect to network
D: Start web server
D: Network found. Starting mp3 client, mqtt and OTA
D: MDNS responder started
D: Rotary encoder is enabled
D: Sync TOD
D: Sync TOD, new value is 21:33:01
D: SD Card Mount Failed!
D: updateNr 0 <= 2 to 5, relative is 0
D: updateNr result is 0
D: nextPreset is 0
D: Radiofuncs cmd is 1
D: Connect to host 109.206.96.34:8100
D: Song stopped incorrectly!
D: REG   Contents
D: ---   -----
D:   0 -   808
D:   1 -    33
D:   2 -     0
D:   3 -  6000
D:   4 -     0
D:   5 -  AC45
D:   6 -  5084
D:   7 -  1E06
D:   8 -     0
D:   9 -     0
D:   A -     0
D:   B -  F8F8
D:   C -     0
D:   D -     0
D:   E -     0
D:   F -     0
D: send GET command
D: Switch to HEADER
D: Headerline: icy-name:NAXI LOVE RADIO (NAXI,Belgrade,Serbia, NAXI,Beograd,Srbija) - 128k
D: Headerline: icy-genre:Love and Romance
D: Headerline: icy-url:http://www.naxi.rs
D: Headerline: content-type:audio/mpeg
D: Headerline: icy-pub:0
D: Headerline: icy-metaint:8192
D: Headerline: icy-br:128
D: Switch to DATA, bitrate is 128, metaint is 8192
D: Streamtitle found, 47 bytes
D: StreamTitle='Ja biram sta slusam';StreamUrl='';

Problems at compilation Arduino IDE 1.8.20

Hi, I'm moving to version 2 but at compilation time I get the following error messages:

/var/folders/jm/8ykp7mhd767fgdf5t617f21c0000gn/T/arduino_build_301023/sketch/LCD2004.cpp.o:(.bss.dline+0x0): multiple definition of dline' /var/folders/jm/8ykp7mhd767fgdf5t617f21c0000gn/T/arduino_build_301023/sketch/LCD1602.cpp.o:(.bss.dline+0x0): first defined here /Users/fabriziobianchi/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: Warning: size of symbol dline' changed from 40 in /var/folders/jm/8ykp7mhd767fgdf5t617f21c0000gn/T/arduino_build_301023/sketch/LCD1602.cpp.o to 80 in /var/folders/jm/8ykp7mhd767fgdf5t617f21c0000gn/T/arduino_build_301023/sketch/LCD2004.cpp.o
collect2: error: ld returned 1 exit status

I've a BLUETFT display, the rotary encoder and IR receiver. The hardware works fine with version 1 even if I'm experiencing some problems but they may be subject of another post.
Has anybody any suggestion?
Thank you

Search config

Hello Ed,

You succeded to launch an even more usable ESP32 based internet radio.
After you pushed me on the richt track in order to download and install. the software by use of platformio I was playing with the new version.
Complete different than the original.
During changing from ops. mode search and config I noticed that the both swapped place?
Also some times the esp32 will restart during swapping between config and search.
In the search webpage a lot of music catagories you can choose nice. For soul&jazz lovers a seperate button will give them a lot of joy.
Again a nice piece of usable equipment.
I love it.
Kind regards,
ilioSS

Feature Inquiry: NFS/SMB Streaming

Similar to #17, I'm unsure if this is even tenable on this platform:
Is this hardware capable of streaming files served on a pre-defined network location(s) hosted by NFS/SMB? This would enable users with NAS drives to stream music from within their local network via the ESP-Radio-V2.

Feature Inquiry: MPD Client

I'm not well-versed on the ESP32 Platform's capability, so this might be a dumb question:
Is it tenable with this class of hardware to support mpd (https://www.musicpd.org/) client functionality to play music streamed within a local network?

ESPAsyncWebServer vs Arduino WebServer

hi @Edzelf ,

what would be the reason on using ESPAsyncWebServer over WebServer that already build in Arduino?
using existing WebServer implementation will simplify the codes, reduce the app size and compatible with OTA and HTTPS update.

Thanks!

Bluetooth A2D

Hi @Edzelf,

do the Bluetooth A2D feature ready?
it does mean we could pair mobile phone to esp as external speaker right?

looking forward to try this awesome feature
thank you!

dbgprint

Problem verifying sketch in Arduno IDE. Stops at line 4030. Error message is: exit status 1 'dbgprint' was not declared in this scope. I don't understand why this error message occurs and how to correct it.

Cyrillic support

Hi, Ed!
So there will be Cyrillic support or not, please answer.

audio encoding guide

I have been following your Internet Radio project and thank you very much. But lately I've found that encoding the audio upto the icecast is also a good idea. Do you have any tutorials for this project?

Fails Setting Up Access Point

I purchased a new ESP32 DOIT DEVKIT. Used the pio run -t upload and pio run -t uploadfs commands to upload the current sketch and preferences. Both were successful. Nothing was connected to the ESP32 except power, a capacitor from ESP32 EN pin to ground and USB cable to computer COM7. It's not working. See attached file...
Power Up Serial Monitor 2.txt

Version2

Hi Ed,

loaded the version 2 in platformio.(no errors )
The network list on my pc showed ESP32Radio. the "eigenschappen" gives no ip adres?
The display blank
I only changed the ssid and passwd in the ESP_32 init.ino file
This means that old school via arduino ide it is ok. platformio still no succes.
A bootloader and wroom32 upload done.
Which log do you need to have a better understanding ?

Greetz Theo

btw. what do you mean in the read.me do not forget to upload the date folder????? is this not done by platformio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.