logo elektroda
logo elektroda
X
logo elektroda

Internet radio and audio file player on ESP32-S3

MAJSTER XXL 153726 1608
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • #1351 21700670
    amrowek
    Level 12  
    DJCheester wrote:
    Well for this board you must have a 12V power supply about 2A hello
    .
    I have such a power supply , ok thanks for the information that is rather d...a
  • ADVERTISEMENT
  • #1352 21700696
    DJCheester
    Level 26  
    Hello why do you need to combine all you need is a regular 5V charger from your phone and a USB C cable.
    You get 3.3V from the ESP32S3 module

    5V will also appear on the pins when you connect this jumper on the ESP

    Close-up of ESP32S3 board with jumper marked between USB-C ports .

    You will power the OLED display and the PCM converter from the pins marked 5V
    And the memory card reader from pin 3v3 of the ESP

    Greetings...
  • #1353 21700735
    amrowek
    Level 12  
    DJCheester wrote:
    Well for this board you must have a 12V power supply of about 2A hello
    .
    I have such a power supply , ok thanks for the information that is rather d...a

    Added after 17 [minutes]:

    Slowly step by step and question if this pcb is suitable for this project developed in this topic and if these two screens are suitable for this project.... ?
  • ADVERTISEMENT
  • #1354 21700781
    hevet
    Level 17  
    Displays as far as I can see are not. You need an SSD1322 or ili9488.
  • #1355 21701663
    DJCheester
    Level 26  
    PCB I don't know I don't know the design of YoRadio is unlikely to work because you have other pins I see an inverter and a mosfet which are not used here.

    Why don't you order yourself a PCB for this project mate Robgold has a gerber file on github I have recently made my version available, you solder you win and everything works straight away.

    You are combining all the time uphill. As I see on the picture you have ESP32 pcm and card module, all you need is a display order yourself an OLED 2.08 or 3.12 inches for my PCB project and you will have a radio, these displays are not that expensive.

    Unless you absolutely want to have a colour one, I have seen the foreman making a new version, but I think I will soon make a PCB project for his version with a LCD screen.

    Regards...
  • #1356 21701781
    amrowek
    Level 12  
    DJCheester wrote:
    Why don't you order yourself a PCB for this project mate Robgold has a gerber file on github I recently made my version available, you solder you win and everything works right out of the box.

    I have:-) ), only these SMD's I have to weld to it....a here it was already ready so....thought that , ...yet no shortcut is possible.
  • #1358 21701847
    grzes_dst
    Level 11  
    Colleagues in Robgold's version of radio_Evo3 is it possible to save several wifi networks on the SD card?
  • #1360 21703285
    MAJSTER XXL
    Level 29  
    My v3 version has gained an SD card file player - as usual in an early development version. Support for switching the selection of radio <-> player from the IRmenuButton from the remote control, then the program loads the contents of the SD card - it lists alphabetically found folders from the main directory, then there is the possibility of scrolling the list of folders with the buttons from scrolling the banks (IRbankUp and IRbankDown), the selected folder is confirmed with OK and the playback of the first file starts. Then, you can skip +1 and -1 track with the left/right arrows on the remote control. During playback, you can scroll through the list of folders and select one to play again.
    For now, the songs are played in order one after the other, then after the last file it moves on to the next folder. In general I see that the flac decoder returns incorrect bitrate values.
    In preparation, scrolling the list of files for free selection and patching the strange different behaviour of the program.

    https://github.com/sarunia/ESP32_internet_radio_v3

    Internet radio and audio file player on ESP32-S3 Internet radio and audio file player on ESP32-S3 Small LCD screen displaying details of an MP3 file played from an SD card ESP32 display showing FLAC file playback info from SD card .
    ESP32 project screen displaying MP3 file playback info from SD card .
  • #1361 21703351
    DJCheester
    Level 26  
    I'm rooting for Majster especially I'm interested in the changes to the code regarding the player, how do you manage to make the buttons from the remote 0-9 like the Robgold radio i.e. from the keyboard you type e.g. 105 and confirm and that song from the folder flies.
    If I may, I would suggest that you make two lists with the remote control, one displaying a list of folders when you click a button and the other listing the MP3s in the current folder - it would be a beautiful operation.
    In addition, there should be a Mode option, i.e. normal playback (in sequence), repeat one song, repeat all songs in a folder, a Random option, i.e. random playback from a selected folder.
    And possibly a Time mode option, i.e. time from 0.00 to the end of the song, from the end of the song to 0.00 and if possible after counting the time of all songs in the folder from 0.00 to the end of the connected value of all songs and vice versa. Analogous to how it used to be in the first CD players.
    And my suggestion is to add a 3-point equalizer like the one in Robgold's radio. I intend to connect this player permanently to the amplifier (home-made tube amplifier without EQ, so this option would be convenient for me).

    If you would be able to do something from this list, I still need to take your code to the workshop, because I want to do it with OLED radio, because I have such a display 3.12 inches and PCB already made for V2 version.

    Because you probably will not return to V2 ??

    Greetings and cheers....
  • #1362 21703444
    amrowek
    Level 12  
    So now you need to buy a card slot that spits it out, not pull it out....
  • #1364 21710178
    MAJSTER XXL
    Level 29  
    I have today added support for selecting from a drop down list of files during active playback with both the up/down buttons and free number entry from the remote control keyboard up to 99. I am testing playback of the contents of almost 200 files from a folder - the program is doing well, I will add more folders to the card tomorrow for a trial, so you can play around....


    LCD screen showing audio file playback info from a microcontroller device LCD screen MP3 player displaying info about Black Or White track LCD screen with MP3 file list, highlighted selection, and playback details Small screen displays MP3 file list with playback details of selected file. LCD screen displaying audio playback info and technical parameters Small LCD screen showing MP3 file list with song and audio playback details. Small LCD screen showing MP3 file list with song and audio playback details.
  • ADVERTISEMENT
  • #1365 21711465
    DJCheester
    Level 26  
    I'll have to get back to the project after the holidays, of course I'll transplant some of the code for the song selector, and if I can get the playback options and the time display working it'll be great 😀

    And the issue of remembering the last song when switching off the power so that when you switch it on again it starts with that song.

    Best regards....
  • ADVERTISEMENT
  • #1366 21711538
    Slawek K.
    Level 35  
    Oled is definitely more atmospheric than this :) but it's a matter of taste, you know, everyone has a different :) .
  • #1367 21712369
    nouki
    Level 25  
    DJCheester wrote:
    Standby yes but hourly no because oleds wear out and a clock running 24 hours will eat up the Oled quite quickly. In my case it just displays the logo for a while and then the screen goes blank.

    Greetings....
    .
    I've been away for a long time. The clock just needs to be moved left and right - I have every minute. For example, the display is 130 pix wide so we give the clock 100pix and every minute 5pix to the left and so 6 times and then to the right on the same principle. I mentioned this earlier.
  • #1368 21712982
    efi222
    Level 20  
    hevet wrote:
    I have this 76x284 display under Yoradio. It has only one myk, The backlight is connected to GND.
    .
    This display actually has 302 px horizontally, not 284 as stated by the seller.I agonised a bit before getting it to work because of this error....
  • #1369 21714389
    DJCheester
    Level 26  
    Hello and did you run it with this our radio ? Can you upload some photos ?

    Greetings ...
  • #1371 21714398
    DJCheester
    Level 26  
    Which is a shame because this display would have suited me very well for our project. Greetings....
  • #1372 21714571
    Mis
    Level 14  
    As if anyone would be interested in a modification to yoRadio that pushed this project a little forward, I committed something like this.
    A lot of changes and fixes, SPDIF, OPUS and VORBIS decoders, station finder, full polish, naming, weather ect.
    The code is on github: https://github.com/romekb/yoRadio_spdif
    And this is what it looks like:
    yoRadio display screen showing station, song, weather, date, and time .

    And a short video:
    https://youtu.be/0B93uhm7WAI

    I have two such radios made based on two versions of Chinese CYD displays on a standard ESP32 (with a PSRAM cube glued on the wires, because without PSRAM it runs poorly). Of course on ESP32S3 there will be no problem as well as on WROVER modules. Now a Chinese panel with ESP32S3 and a 3.5'' 480x320 IPS display + capacitive touch, but with a slightly unusual TFT controller, is coming to me. I should be able to get it working, and of course the code will be on github.
  • #1373 21714701
    DJCheester
    Level 26  
    Also picnic 😀 is your radio, for me such a square LCD does not fit into the casing no and the issue of data on the screen weathervane I do not need, but the radio as a free-standing looks beautiful. Greetings ...
  • #1374 21714791
    hevet
    Level 17  
    I have currently taken on the project with the MajsterXXL colour display.

    - I removed the weather and the calendar sheet (day of the week and date display instead)
    - I removed the player
    - I removed the SD card, data is saved in SPIFFS
    - successfully removed pixel storm and overlapping subtitles after changing stations
    - added display of description information
    - added 3-step equalizer
    - added brightness control (0-100%)
    - instead of the wifimanager a simple AP portal, you can add and save an unlimited list of wifi networks
    - connection resumption after wifi loss (after 5 attempts it starts the AP portal)
    - connection retry after stream breakage
    - signal level indicator
    - one volume instead of individual volumes for each station (it doesn't work for me, when you adjust the volume with the radio, for example it's nighttime, you set the volume of a station to 5, you change to the next station and its volume was set to 20 - the household members get up and you get hit on the head :P )
    - volume recording delay after 3 seconds
    - on start-up screen shows IP address after connection
    - added support for audio library version 3.4.3
  • #1375 21715016
    efi222
    Level 20  
    DJCheester wrote:
    Hello and did you run it with this our radio ? Can you upload some photos ?
    .
    I'll probably be making the radio in a bit. The required ESP32 S3 has just arrived.
    DJCheester wrote:
    A pity because this display would suit me very well for our project. Greetings....
    .
    But this is probably for the minimalist version. The active height of this display is about 15 mm.
    And here I must apologise for the confusion about its resolution. I'm experimenting a bit with the TFT_espi library and had problems setting it up for him. You have to set a weird resolution of 302px, but with an offset of 18px. Deducting this offset comes out to 284px. The resolution is what the vendors and datasheet state.
    I have a slightly different idea for the radio when it comes to the housing. One that is more modular. I am a light maniac and will probably add an audio spectrum analyser on these narrow displays (76x284px) as an additional module. I've only been dealing with TFTs for a short time, so my experience isn't too great in this matter.
    What bugs me most is the poor blacks and viewing angles....
    Here a stereo spectrum analyser sample (TFT_espi library, AdafruitGFX is terribly slow)
    2x multiplexed TFTs with 17 bands each controlled from ESP32. ( Bar resolution up 1px, down 2px.
    I got about 70 FPS on each display. Or at least that's the measured frequency of the data loop per display (143Hz, the displays alternate). I've strayed from the topic, but maybe someone will be willing to have such radio "bytes" :D .
    If anyone wishes, I'll throw up pictures of the viewing angles of this narrow display.


    .
  • #1376 21715081
    Mis
    Level 14  
    I have found a solution for stuttering FLAC stations :-) .
    The problem is the ESP32 libraries.
    To fix it:
    1. In the Arduino board manager, do a downgrade/upgrade of the esp32 package version to version 3.0.5 (current version is 3.2.1).
    2. after installing the package, replace the two esp32 library files. Copy the two files "liblwip.a" and "libesp_netif.a" attached in the zip to a directory (replace the original files):
    - for ESP32 to:
    - for ESP32S3 to:

    Now set up the board options (partitions, PSRAM ect), recompile the soft and upload.
    On my ESP32 after this change the FLACs play perfectly without interruptions or jams.
    It should work not only with yoRadio software.
    LIB_for_..C.zip Download(1.04 MB) .
  • #1377 21715088
    hevet
    Level 17  
    We know about this solution, @robgold has these files on his github.
  • #1378 21715318
    MAJSTER XXL
    Level 29  
    My v3 version on this colour screen works with the latest version of the esp32 board manager, same with the latest version of the audio library and the latest version of the Arduino IDE, no problems with playing flac files, no audio jams, I have currently increased the read support to 192 directories on the SD card and as many files per directory, I am using a 128GB card.
    I need to eventually do some sort of manual on how to use it all.
    I've generally come out with the idea of keeping a list of stations and banks on github from the start, and so far this is the best option for me. The source codes for all versions and wiring diagrams are publicly available on github as well, so that anyone who wants to can use it as much as they like and modify everything as they like without restriction.
    I make the display layout according to my needs and preferences, I also avoid too many water features like floating text, because it tires the eye, I prefer to use a timer to cycle the lines, I am not interested in the webservice, because I assume that it should be autonomous and simple, volume rulers and vumeters are also unnecessary for me. It is gratifying that the topic on the electrode for more than a year and a half does not leave the top of the DIY section.
  • #1379 21715328
    hevet
    Level 17  
    @MAJSTER XXL I have the same, I won't do vumeter either.
    And all the FLAC from the 16 bank works for you without jamming?
  • #1380 21715338
    MAJSTER XXL
    Level 29  
    @hevet no, but it's not the decoder's problem but the poor streaming of these stations itself, I just play a lot of flac files from the card and it's stable here, and radio stations some bush, but then you have a message on the serial about a poor stream.
📢 Listen (AI):

Topic summary

The discussion centers on the development of an internet radio and audio file player based on the ESP32-S3-WROOM-1 module, featuring a custom-designed prototype PCB with OLED display and user controls including rotary encoders and buttons. Key challenges addressed include pin spacing discrepancies in the ESP32-S3 module footprint, integration of Wi-Fi connectivity with dynamic station list updates, and handling of Polish character encoding on the OLED display. The project uses Arduino IDE (version 2.3.2) with ESP-IDF support and requires enabling PSRAM. Audio playback supports MP3, AAC, and FLAC streams, with the ESP32-audioI2S library recommended over the incompatible Audio library. Users reported issues with SPI MISO pin assignment causing bootloader conflicts, resolved by reassigning MISO to pin 35. The project incorporates WiFiManager for network configuration, EEPROM and SD card storage for saving last played station and settings, and includes plans for tone control via an external KA2107 equalizer and a CS8673 amplifier module. Problems with encoder input stability and memory limitations for Bluetooth A2DP on ESP32-S3 were noted. The community suggested alternatives like KaRadio and ESP32-MiniWebRadio projects. Debugging tips include serial terminal logs for HTTP errors and flash memory erasure to resolve boot loops. The project is open-source on GitHub, encouraging forks and modifications. Additional features under development include browser-based updates, directory navigation, and potential audio recording to SD card.
Summary generated by the language model.
ADVERTISEMENT