logo elektroda
logo elektroda
X
logo elektroda

Internet radio and audio file player on ESP32-S3

MAJSTER XXL 152976 1601
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • #1531 21749813
    hevet
    Level 17  
    Thanks for your time. Changing to RST 8 unfortunately didn't help anything, also no idea what else to do. If I've never had a problem with RST-1, then suddenly it couldn't have changed. In version 3.19.19 the sound is there, after switching off/on with the remote control too, so I think there is some babol in the module in the new code and this is where the problem is. Maybe some modules are more robust than mine.
  • ADVERTISEMENT
  • #1532 21749833
    DJCheester
    Level 26  
    Gentlemen the sound is on version 32 when switched off and started from the remote control. I have checked.

    Greetings ...
  • #1533 21749883
    hevet
    Level 17  
    I compiled again, but on the Arduino IDE, same symptom, no sound.
  • #1534 21750518
    ejcon
    Level 14  
    Hello,
    Gentlemen, I have a question regarding the graphic equalizer and the EVO analyser, is there already a version that supports a full 16 point frequency equalizer with +-18dB gain and do you already have the analyser running for this project . If so, how is it activated, from the SD card or does it have to be placed in code? How do you have this implemented if I may know?
  • #1535 21750519
    irysbox
    Level 12  
    Black IRYS audio player with two knobs and an LCD showing Antyradio Katowice info
    Black metal audio device enclosure with antenna, RCA jacks, and USB-C port
    Black electronic enclosure with copper feet and control knobs on light flooring

    this is how I came up with a few small tweaks still but almost final state :)
  • #1536 21750568
    robgold
    Level 21  
    @hevet, I have no idea where the problem is with this audio. I can't reproduce it at my place but as I said I will still try to build your connection configuration. With me, your code works - Platformio compilation. Further to the thread at Wolle's I also have no problems with BBC1 which I listen to, it doesn't reset my radio, the stream works very stably.

    @ejcon The Evo has the 3 point basic equalizer that the i2s library provides (Hi, Mid, Low). There is also no spectrum analyser. There is only a VU.

    @irysbox Very nice design. That lettering at the top is a laser engraving ? I was just wondering how an engraved case description would come out. Write something more. Oh well and brag about the contents what is inside :)
  • ADVERTISEMENT
  • #1537 21750597
    hevet
    Level 17  
    @robgold At Evo radio we use an older version of the library and this problem was not with the BBC, it appeared in some newer version and I use the latest one in my radio on ili9488. The author has already fixed the error.

    Ok, thanks for trying to solve the problem. The only solution for now is to change to deep, disable the clock and clock timer at sleep so it doesn't turn on Disadvantages the radio wakes up with every button (probably something can be added to fix this), but at least the sound isn't lost....
  • #1538 21750626
    robgold
    Level 21  
    @hevet my Evo is running on 3.4.3 and patches from 8.11 so fairly fresh. I've seen the buffer patches it did today. I've already downloaded (have a copy of the repo at my place) and will be testing. As a matter of convenience now in the latest Evo 3.19.38 one variable switches whether you want to use SD card or SPIFFS.
  • #1539 21750631
    hevet
    Level 17  
    Ok, the error may have been in some commit from the last few days.
  • ADVERTISEMENT
  • #1540 21750656
    ejcon
    Level 14  
    >>21750568 I managed to get such an equalizer in YoRadio and it works with the previous audio library. Is it not possible to do this with this audio library?

    Attached is Tom's YoRadio soft with my added graphic equalizer and analyzer in the form of bars. Maybe you guys will find it useful for something.
  • #1541 21750683
    robgold
    Level 21  
    >>21750656 yoRadio uses a very old version of the same library. I don't know how it is implemented there. Show the code how you did it we can think about it.

    Added after 20 [minutes]:

    @hevet For that, in the latest commit from today, google voice doesn't work, i.e. the clock ;) Always something.
  • #1542 21750726
    irysbox
    Level 12  
    The middle is moderately beautiful because on a universal plate. There's nothing to be proud of with the usual cableology :) On the top it's a laser engraving so that it's minimally recessed and I pulled on the groove with an oil pen. If it was plexiglass it might have come out better, because because of the grooves after printing it blurs a bit on these irregularities, but don't pour too much. It is ok laser I have 24w. I was doing on a setting of 45 per cent power and 5000mm speed.

    I once tried to resuscitate a Unitra avs103, but it didn't work the first time because my panel shifted and it started to smoke wrong where it needed to :) I had to grind off the oxidation and it went black already. A matter of feeling the power so that it doesn't melt the plastic but minimally sculpts it. Then white lacquer and it comes out not bad, but the adrenaline before starting is :) Before that you have to scan or graphically recreate the letters :)
  • ADVERTISEMENT
  • #1543 21751049
    wieh76
    Level 12  
    Radio final version completed. Once again, many thanks to Majstra and Robgold for all their work and making the code available.
    Regards.

    Top-down view of DIY radio internals with ESP32 and connected electronic modules
    Back panel of DIY black radio case with audio and power connectors
    Internet radio player showing Smoothjazz.com.pl on its display
  • #1544 21751160
    efi222
    Level 20  
    Very nice workmanship. I am also considering a housing for the radio. Some idea is already there. Time will tell what will come out of it.... 😁
    In general, nice enclosures are a problem for all builders.
    What is the size of the front?
  • #1545 21751179
    wieh76
    Level 12  
    @efi222 exchange is 42 x 230 mm. You can read about this enclosure a few posts earlier.
    Greetings
  • #1546 21751202
    efi222
    Level 20  
    Read, read. The case is nice, just the price is a bit high.... I'll rather hit the 3D printing direction with additional machining.
  • #1547 21751587
    robgold
    Level 21  
    @wieh76 Class case. Looks great, very professional.

    As for this second arduino, in the current version of the radio you already have power OFF mode. You only need to set one output depending on the mode. Eventually there will be one in the software so you can control the relay directly from EPS. Current consumption in Standby is uA.

    The second thing is that I have introduced support for SPIFFS memory so that in versions where the card is in the middle you can omit it completely. For those files that are required for the radio, 1.5Mb of space in ESP is enough.

    The third issue is that there will be a second encoder option so you can connect it.
  • #1548 21751601
    bolszoy
    Level 10  
    Forgive the question, but I haven't found anything clever. How to save the compilation in Arduino as bin instead of uploading to the board?

    To DJCheester: "Aha, if you want to upload the soft coll Majster, you will need other libraries, which you have to download yourself via the library manager, but I can write you about that tomorrow, because today I can't remember them by heart."

    I would be very grateful. And by the way, looking at GitHub, and the pix you need to upload /depending on the version/, I guess there are some inconsistencies?
    Because, for example, I don't know which libraries and how edited to use for which version. And V1 is probably already completely wrong - unless I'm mistaken.
    I wonder if anyone else is having problems like me?

    I hope I don't get hit :)


    To wieh76 -- Nice workmanship I like it.
  • #1549 21751632
    robgold
    Level 21  
    @bolszoy no stupid questions, everyone learned at some point. Tab Sketch -> Export Compiled Binary and you have a BIN file in the directory where you have sketch.
  • #1552 21751666
    robgold
    Level 21  
    @ejcon There is a "Page1" in the code for testing just so that something can be quickly uploaded to the SD card and the HTML frontend can be fired up.


    Code: C / C++
    Log in, to see the code
  • #1553 21751683
    wieh76
    Level 12  
    @robgold as for the arduino I used it because I didn't want the radio to be powered from usb only from a regular power supply via a regular mains cable😀.
    The arduino disconnects the main power supply transformer. This little inverter next to the arduino draws less like 0.3 watts so not much. I tried to do this on some attiny but failed. I think that if I had discovered this thread on the electrode earlier, I would probably have designed it differently, no knobs, just remote control operation and a front like yours, i.e. plexiglass with the width of the display over the entire height of the front panel.
    I'm waiting for you to add support for the 2nd encoder in the code and as far as I'm concerned that will be all I expect from a radio😀.
  • #1554 21751685
    ejcon
    Level 14  
    Thanks for the hint
    The problem will be with the equalizer at the FLAC decoder does not work out processing and cuts very much can be done in two ways as it detects the waveform only 8 point equalizer works or turn off the eq completely.
  • #1555 21751690
    robgold
    Level 21  
    @wieh76 Isn't it simpler to power the ESP from a small inverter it needs only 150mA with the OLED and then control yourself in standby mode with this big relay and trafo to the amplifier ?
    You are quite rid of the little Atmel which does the same thing as the EPS in sleep mode.

    Wait, I'm looking and looking...what is on that big board with that huge heatsink ? The power supply for the ESP ? Only ?
  • #1556 21751704
    wieh76
    Level 12  
    @robgold you guessed it😀. That transformer and heatsink only look huge in the photo. The trafo is small just compare to the nano. The heatsink fact I could have trimmed a bit. In my trial current measurements, the meter showed a current of 0.2 to 0.5A depending on how much information is shown on the display, so I was worried that this converter would not be able to handle it. Besides, at the time, this was the only way I could implement on/off, because I can program myself a flashing diode😀
  • #1557 21752084
    irysbox
    Level 12  
    :) with this transformer and heatsink you could probably make a nice amplifier with 20W that would make sense :)
  • #1558 21752107
    wieh76
    Level 12  
    @irysbox no exaggeration the trafo is 10W. Apart from that, the topic is already out of date😀. After a late night discussion with robgold this remains:

    Interior of a DIY internet radio with ESP32, power supply and external Wi-Fi antenna

    I have also added an external wi-fi antenna socket as the range halves when the case is closed.
    The ESP with the antenna socket is already flying from China🙂 .
  • #1560 21752189
    DJCheester
    Level 26  
    Fellow @bolszoy I have described the installation procedure from scratch below

    https://www.elektroda.pl/rtvforum/viewtopic.php?p=21748612#21748612

    These libraries given there are for the Robgold software

    If you want to load the Mayster software you also need to have the libraries listed above and for this you need 3 libraries

    Adafruit BusIO by Adafruit 1.17.4
    Adafruit GFX Library by Adafruit 1.12.3
    Arduinojson by Benoit Blanchon. 7.4.2

    You have it all nicely in the pdf manual what I attached above.

    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