logo elektroda
logo elektroda
X
logo elektroda

Internet radio and audio file player on ESP32-S3

MAJSTER XXL 153687 1607
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • #1321 21693088
    hevet
    Level 17  
    The latest version of the audio library is quite demanding, you need a psram to handle it. From what I've seen some major update will be coming.
  • ADVERTISEMENT
  • #1322 21693127
    DJCheester
    Level 26  
    hevet wrote:
    LCD screen showing internet radio info and the time 14:40
    .

    Hevet tell me if you changed the pins to connect this LCD or the pins under the ESP are the same ? What kind of connection do you have ?

    Greetings....
  • #1324 21693146
    DJCheester
    Level 26  
    And why this module when the ESP32 has the ability to decode MP3s and play them from an SD card.

    Internet radio and audio file player on ESP32-S3 .
    Internet radio and audio file player on ESP32-S3

    I modify the code myself by adding an MP3 player to the Robgold version

    You configure the remote control of your choice 38khz in the NEC standard nowadays most remote controls have this standard.

    Greetings ...
  • ADVERTISEMENT
  • #1325 21693173
    amrowek
    Level 12  
    Gentlemen are you combining something with the standby option? So that at standby it displays the time and the weather :-) )
  • ADVERTISEMENT
  • #1326 21693177
    DJCheester
    Level 26  
    Standby yes, but not the time, because oleds wear out and a clock running for 24 hours will wear out an oled quite quickly. I simply display the logo for a while and then the screen goes blank.

    Regards....
  • #1328 21694142
    DJCheester
    Level 26  
    Aha I thought you fired up that LCD on our project.

    Greetings...
  • #1329 21694144
    MAJSTER XXL
    Level 29  
    I have improved support for the timer display, the display runs smoothly, all files including flac go without jamming, patches on my github, feel free to try the code.
  • #1330 21694146
    DJCheester
    Level 26  
    Have you improved the player with this additional function?

    Greetings ...
  • #1331 21694185
    efi222
    Level 20  
    DJCheester wrote:
    Robgold this colour display is after SCL SDA I wonder how with the refresh rate, it is about the uvmeter ?
    .
    I've been experimenting a bit with TFT lately. Below is a demo of 10 animated sprites. The potential is there. ESP32. 3.5" SPI display, 480x320. 10px bar stroke. tft_espi library.
    It will certainly be better with a single display. Here you can see some rubbish on the tips.


    .
  • #1332 21694239
    hevet
    Level 17  
    >>21694144 .
    @MAJSTER XXL . Have you not thought to use the built-in card reader on the display?
  • #1333 21695647
    MAJSTER XXL
    Level 29  
    @efi222 I'm curious to see how you would wrap up FLAC playback on your demo.

    Today, I've further refined the screen for free station selection from the list using the scroll buttons, I still need to work on the rubbish when switching to another station. The fixes have been uploaded to github, below is a video of what it looks like, the most important thing is that it no longer cuts the stream, unless it already squats on the network during transmission - this is beyond us. I'll slowly get around to firing up the file player. I'm thinking of adding a line above the weatherman to display news from a selected RSS feed.

    @hevet I don't think I'd want to top load that SD card next to the screen, I think it's better if the reader is as close to the ESP32 module as possible - less risk of trashing the cables from the screen - I think.

    https://github.com/sarunia/ESP32_internet_radio_v3



    .
  • #1334 21695650
    hevet
    Level 17  
    I am currently assembling a spider for your radio. I wouldn't mind the card at least for testing. The only question is whether there would be a problem with its operation.

    Added after 41 [minutes]: .

    @MAJSTER XXL won't compile, error Compilation error: variable or field 'my_audio_info' declared void
  • #1335 21695684
    MAJSTER XXL
    Level 29  
    >>21695650 @hevet Update audio library


    Library version menu for ESP32-audioI2S with dropdown list of versions
  • #1337 21695710
    MAJSTER XXL
    Level 29  
    @hevet show the logs from the terminal, you probably don't have wifi hooked up, and preferably load on a clean flash to enlist from the start, also don't know about the SD card- best to have one that worked with the previous version of my v2 or a brand new/formatted one.
  • #1338 21695761
    hevet
    Level 17  
    @MAJSTER XXL It just shows an SD card error, this card with this reader worked on the previous version, here it doesn't want to, the connections I checked and they are ok.
  • #1339 21696017
    MAJSTER XXL
    Level 29  
    @hevet I checked again on a clean card, the program starts as expected, creates files when they are not on the card and then uses them already.


    Internet radio and audio file player on ESP32-S3 .
  • ADVERTISEMENT
  • #1340 21696019
    hevet
    Level 17  
    @MAJSTER XXL I've already embraced, got the card working on display, but had to remove three resistors on the lines from the card.

    Added after 55 [seconds]: .

    Switching stations from the numeric keypad on the remote control not working yet?

    Added after 3 [minutes]: Added after 3 [minutes].

    >>21696019 Internet radio and audio file player on ESP32-S3 .
  • #1341 21696140
    MAJSTER XXL
    Level 29  
    @hevet You just reminded me that I was supposed to get this at my place and it has just come true. Now typing in the station number from the numeric keypad shows the numbers typed in on the bottom line, the first press of OK shows the list with the selected station the second press of OK goes on to start the station. It remains a bit for me to refine the idle handling and that short garbage on the screen when switching stations. You can test this free station selection at your place.
  • #1343 21697377
    hevet
    Level 17  
    @MAJSTER XXL a little radio played at my place. Conclusions from use:
    - a couple of times when changing stations, the screen went white
    - when switching stations there is a (hmm, I miss the term) mess of pixels and sometimes the subtitles from the previous station are superimposed
    - sound ok, nothing stutters
    - in the weather information for my city there is no information about gusts of wind, so it shows 0.00 m/s (maybe a better solution is e.g. wind direction?) :)
    - I am missing the equalizer (I hope there will be one in the future), for the time being I have set myself fixed values in the radio code

    Overall positive impressions, especially as it's an early version. :) , I look forward to the next :) .
  • #1344 21698425
    DJCheester
    Level 26  
    Majster or hevet do you have any diagram for connecting this LCD to the ESP32 or is it like the previous one via SPI or I2C ?

    It would be good to include such a schematic e.g. on github, I will tell you that I like this square display more and more, at the beginning I was sceptical about this idea. Now I'm more and more thinking that I would connect this LCD to one of the radios for testing.

    Best regards...
  • #1346 21698561
    DJCheester
    Level 26  
    And actually, my old eye missed it 😀

    Ok I see the encoders have gone out and the data connection to the LCD also different.

    It is possible that I will make myself a PCB for such a version in the future.

    And tell me if I want to mount such a LCD, will it have the same connection to the ESP as your current one?

    https://pl.aliexpress.com/item/1005009148590143.html

    Apart from the issue of the arrangement of the information on the screen ?

    Greetings ...
  • #1347 21698689
    kacha36
    Level 23  
    Hi, I undertook to assemble the radio layout of a colleague Majster XXL, I couldn't compile the github file correctly, I found a post by colleague futek2, after uploading the .bin file to the ESP32 the word "Internet Radio" appeared on the OLED, nothing else happens, I only have the display connected to the ESP, once the rest of the project elements are connected should the radio work correctly?
  • #1348 21698808
    DJCheester
    Level 26  
    Most likely the Major's soft requires an SD card to be connected, see through the serial monitor where the programme stops.

    But most likely it is the uSD card

    Greetings ...
  • #1350 21700296
    DJCheester
    Level 26  
    This is just a stabiliser board from 12v to 5v and from 12v to 3.3v

    To power the radio you really only need 5v because you get 3.3v from the ESP32s3 on this module you have a stabiliser from 5v to 3.3v.

    If you only want to use this for the radio then I think there is no point, I use an old 5v 1A phone charger for the radio.

    If you play with esp32 and expansion board you will get 3.3v and 5v with this board, but keep in mind the current carrying capacity, these SMD stabilisers have a max of 800mA, these are linear stabilisers.

    And for this board you need to have 12V power supply around 2A greetings
    ...
📢 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