diff --git a/README.md b/README.md index 8309ca7..eb0ee67 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,21 @@ # ESP32Radio-V2 -New version of the well known ESP32 Radio. Now optional I2S output! +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](https://github.com/Edzelf/ESP32Radio-V2/assets/18257026/a58f7b7e-cdd4-4d7f-96b8-62fa487de906) + Updates: +- 17-oct-2024: Experimental support for ESP32-S3. SP/DIF tested. +- 05-jul-2024: Correction SPDIF output. +- 12-mar-2024: Add document with building instructions. New PCB available! See [here at PCBWay](https://www.pcbway.com/project/shareproject/W652317AS2P1_Gerber_ESP32_Radio_PCB_ESP32_Radio_fab8a6d9.html). +- 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. diff --git a/archive/ESP32Radio.zip b/archive/ESP32Radio.zip new file mode 100644 index 0000000..4b5af64 Binary files /dev/null and b/archive/ESP32Radio.zip differ diff --git a/archive/readme.md b/archive/readme.md new file mode 100644 index 0000000..ae73b8c --- /dev/null +++ b/archive/readme.md @@ -0,0 +1,7 @@ +ESP32Radio.zip Contains the project as an Arduino sketch. +Edit config.h for your configuration.... +Enable core debug level "Info" in the tools menu. + +There is no simple way to upload the SPIFFS files in version 2 of the Arduino IDE, so use version 1. + + diff --git a/data/about.html b/data/about.html index de2d240..4a05580 100644 --- a/data/about.html +++ b/data/about.html @@ -16,14 +16,13 @@


-

** ESP32 Radio **

+

** ESP32 Radio V2 **

ESP32 Radio V2 -- Web radio receiver for ESP32, Color display and VS1053 MP3 module.
- I2S output instead of VS1053 is also supported.
+ I2S and SPDIF output instead of VS1053 is also supported.
This project is documented at Github.

Author: Ed Smallenburg (ed@smallenburg.nl)
- Webinterface design: Sander Jochems
App (Android): Sander Jochems
- Date: January 2022

+ Date: January 2022 - May 2023

diff --git a/data/config.html b/data/config.html index 8f52cdb..46ed51b 100644 --- a/data/config.html +++ b/data/config.html @@ -19,9 +19,6 @@

** ESP32 Radio **

You can edit the configuration here. Note that this will be effective on the next restart of the radio.

-

Available WiFi networks - -


@@ -31,11 +28,11 @@

Available WiFi networks

- + diff --git a/data/defaultprefs.txt b/data/defaultprefs.txt index 934ed5a..078a863 100644 --- a/data/defaultprefs.txt +++ b/data/defaultprefs.txt @@ -1,12 +1,15 @@ # Example configuration # Programmable input pins: gpio_00 = uppreset = 1 -gpio_12 = upvolume = 2 -gpio_13 = downvolume = 2 -gpio_14 = stop +gpio_25 = upvolume = 2 +gpio_33 = downvolume = 2 +gpio_16 = stop gpio_17 = resume -gpio_34 = station = icecast.omroep.nl:80/radio1-bb-mp3 +gpio_21 = station = icecast.omroep.nl:80/radio1-bb-mp3 # +# Battery monitor +batt100 = 2950 +batt0 = 2600 # MQTT settings mqttbroker = none mqttport = 1883 @@ -27,37 +30,38 @@ preset = 6 # Some preset examples preset_00 = 109.206.96.34:8100 # 0 - NAXI LOVE RADIO, Belgrade, Serbia preset_01 = airspectrum.cdnstream1.com:8114/1648_128 # 1 - Easy Hits Florida 128k -preset_02 = us2.internet-radio.com:8050 # 2 - CLASSIC ROCK MIAMI 256k +preset_02 = stream.hitfm.de:9050/live # 2 - 89 HIT FM - Munichs Power Station, 128k preset_03 = airspectrum.cdnstream1.com:8000/1261_192 # 3 - Magic Oldies Florida preset_04 = airspectrum.cdnstream1.com:8008/1604_128 # 4 - Magic 60s Florida 60s Classic Rock preset_05 = us1.internet-radio.com:8105 # 5 - Classic Rock Florida - SHE Radio -preset_06 = icecast.omroep.nl:80/radio1-bb-mp3 # 6 - Radio 1, NL +preset_06 = icecast.omroep.nl:80/radio1-bb-mp3 # 6 - Radio 1, NL, 192k preset_07 = 205.164.62.15:10032 # 7 - 1.FM - GAIA, 64k -preset_08 = skonto.ls.lv:8002/mp3 # 8 - Skonto 128k -preset_09 = 94.23.66.155:8106 # 9 - *ILR CHILL and GROOVE -preset_10 = ihr/IHR_IEDM # 10 - iHeartRadio IHR_IEDM -preset_11 = ihr/IHR_TRAN # 11 - iHeartRadio IHR_TRAN +preset_08 = www.doowopradio.com:8000 # 8 - Doo-Wop Radio, 96k +preset_09 = server-27.stream-server.nl:8192/stream # 9 - 192 Radio Nederland, 320k # # Clock offset and daylight saving time clk_server = pool.ntp.org # Time server to be used clk_offset = 1 # Offset with respect to UTC in hours clk_dst = 1 # Offset during daylight saving time (hours) -# Some IR codes +# Some example IR codes ir_40BF = upvolume = 2 ir_C03F = downvolume = 2 # GPIO pinnings pin_ir = 35 # GPIO Pin number for IR receiver VS1838B -pin_enc_clk = 25 # GPIO Pin number for rotary encoder "CLK" -pin_enc_dt = 26 # GPIO Pin number for rotary encoder "DT" -pin_enc_sw = 27 # GPIO Pin number for rotary encoder "SW" +pin_enc_clk = 12 # GPIO Pin number for rotary encoder "CLK" +pin_enc_dt = 14 # GPIO Pin number for rotary encoder "DT" +pin_enc_sw = 13 # GPIO Pin number for rotary encoder "SW" # -pin_tft_cs = 15 # GPIO Pin number for TFT "CS" -pin_tft_dc = 2 # GPIO Pin number for TFT "DC" +pin_tft_cs = 2 # GPIO Pin number for TFT "CS" +pin_tft_dc = 4 # GPIO Pin number for TFT "DC" # +# define pins for decoder. Examples for VS1053, I2S and Toslink pin_vs_cs = 5 # GPIO Pin number for VS1053 "CS" pin_vs_dcs = 32 # GPIO Pin number for VS1053 "DCS" -pin_vs_dreq = 4 # GPIO Pin number for VS1053 "DREQ" +pin_vs_dreq = 15 # GPIO Pin number for VS1053 "DREQ" # -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" +#pin_i2s_bck = 15 # GPIO Pin number for I2S "BCK" +#pin_i2s_lck = 27 # GPIO Pin number for I2S "L(R)CK" +#pin_i2s_din = 26 # GPIO Pin number for I2S "DIN" +# +#pin_i2s_spdif = 15 # GPIO Pin number for I2S/SPDIF (Toslink) diff --git a/data/index.html b/data/index.html index def2728..b31e13f 100644 --- a/data/index.html +++ b/data/index.html @@ -21,9 +21,12 @@

** ESP32 Radio **

- +
+ + + @@ -139,10 +142,10 @@

** ESP32 Radio **



Find new radio stations at http://www.internet-radio.com
or use the Search function from the menu.

-

Examples: us5.internet-radio.com:8121, 1a-60er.radionetz.de/1a-60er.mp3, 85.17.121.103:8800


+

@@ -63,21 +66,21 @@

** ESP32 Radio **