logo elektroda
logo elektroda
X
logo elektroda

Internet radio and audio file player on ESP32-S3

MAJSTER XXL 226437 2413
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • #2401 21854409
    DJCheester
    Level 27  
    >>21854386

    As far as my eye can see, it's an IPS.

    In your code I suggest you add the lines under IPS

    Code: Arduino
    Log in, to see the code


    Greetings....

    Added after 7 [minutes]:

    supsak wrote:
    Nevjem, assz to u mne dzivne dzala, unless it is mosze dzalacz bialy vysvjetlacz....
    And what else would be good, that it would be in menu-setting to set the LINE OUT... signal for power amplifier.


    I suggested to Robold to add option Speakers ON/OFF in web settings, and hardwarer to add some pin where in option Speakers OFF state on line is low what in connection with logic inputs of amplifiers like PAM8610 or TPA3110 or similar will give disconnection of speakers. And with Speakers ON only a low state when the mute is activated. Or when the radio is in the POWER OFF state.

    As for the level of the PAM8403 actually for the station from 2-6 volume is enough with my PCBs, in future versions I will add a resistive divider to limit the audio signal on the L and R inputs of the amplifier.

    Regards...
  • ADVERTISEMENT
  • #2402 21854437
    ejcon
    Level 16  
    kula350 wrote:
    I committed a crime on @MAJSTER XXL, I admit it. Thanks for the code, the work you put in. Based on your design I have adapted to my needs. This is not fixing or crashing your project I brought it to the state I would like to have. And I have. But your design is released to the world for people, maybe my redesign for the worse will be useful to someone. Here it is:

    // -------------------------------------------------------------------------------------
    // Modification from MajterXXL - Kula350 (Francis W.) Majetr always knows better and does.
    // -------------------------------------------------------------------------------------
    // Cut out RSS - I didn't need it because I can see poorly
    // I got rid of the mp3 recording to SD card, although at first I converted and it recorded.


    I have a question about recording this MP3 how long can you record on SD and does it not give errors what is the load on the CPU ? you wrote that you checked the recording
  • #2403 21854488
    robgold
    Level 23  
    >>21853751 And have you tried changing the volume range in the settings ? There is a special option when the radio is working with an amplifier to extend the control range from 0-42 instead of 0-21.

    Also, it won't be long now. Version 3.20.xx is already on the new audio library and it already has logarithmic control. That is to say, it adjusts the initial range by a very small degree and only at the end of the volume scale does it take "big steps". This is why some people might think that the previous volume 10 is not the same as volume 10 on the new library.

    Radio settings screenshot with “Volume Steps 1-21/1-42” option highlighted by a red box

    Added after 38 [minutes]:

    >>21851397 Hevet, I don't know why this is terribly secret knowledge because no one anywhere provides their own sdkconfig ;)
    In the latest compilation (the so called settings5 and this one will most likely be made permanent) the changes are:

    CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=8
    CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=64
    CONFIG_LWIP_MAX_ACTIVE_TCP=16
    CONFIG_LWIP_MAX_LISTENING_TCP=16
    CONFIG_ESP32_WIFI_TX_BA_WIN=8
    CONFIG_TCP_SND_BUF_DEFAULT=8192
    CONFIG_LWIP_TCP_WND_DEFAULT=32768
    CONFIG_LWIP_TCP_RECVMBOX_SIZE=32
    CONFIG_LWIP_TCP_ACCEPTMBOX_SIZE=6
    CONFIG_LWIP_TCP_OOSEQ_MAX_PBUFS=12


    With these settings there are no problems with FLAC files, I also send myself some debug information via wifi and esp is fine. It is important to remember that more does not mean better. We have limited resources, lwIP shares many of them. I left the priority of the shuffle at 18; Wolle has it raised to 20.
  • #2404 21854564
    supsak
    Level 12  
    Czech, yes I tried ... but with this change I have a very strong sound ..., bruczanje v gloszniki v stopnu 1-6.... potem jusz z vjeksou glosznosczou to brzecenje /probably from przetvornici vyswjetlacza / is not hearable. Also the buzzer is very audible at "mute", or at "OFF" of the radio where the clock is showing ... where the switch is connected to this section on 5 V constant.

    Settings table with the “Volume Steps 1-21 [Off]” checkbox checked and circled in red

    ustavjenje v stopni 1-21/offf/ for mne is take better....
    Also in front of vzmjacznacz , or on vyjscze LINE OUT I added trzimre 100kohm on doregulovanje budzenja vzmjacznaca.
    I have regulated the volume in such a way that I have a sound in degrees 0-2..then it disappears.
    Maybe it would be good to configure some GPIO... with ESP32 that would at MUTE or at radio OFF state disconnect the 5V supply to PAM 8403- memory. Only my poznanje...
  • ADVERTISEMENT
  • #2405 21854607
    robgold
    Level 23  
    >>21854564 Yes it is the display inverter. Put a 10 Ohm resistor in the ground of the DAC PCM5102 supply and you won't hear it.
  • ADVERTISEMENT
  • #2407 21854748
    hevet
    Level 18  
    @robgold thanks a lot. I found some instruction in Hungarian for yoradio, the settings are different, for practice I tried to do with your settings, seemingly everything went through correctly, compiled, but FLACs don't work properly. Did you do according to some kind of instructions? I'm using your settings2 files for now.
    https://github.com/VaraiTamas/yoRadio/blob/main/Lib_tools/esp32_tcp_buffer_lib_rebuild.md
  • #2408 21854752
    supsak
    Level 12  
    supsak wrote:
    Ok, I'll try ..


    Vstavilem , but still it is the same -brzecenje but when I look on the board with PCM line out is GND and power supply is the same. GND is common to main board and it is probably bypass, this resistor there then in GND power supply is unknown
  • #2409 21854797
    robgold
    Level 23  
    >>21854748 Send me the sdkconfig file on priv I will compare. Impossible that it does not work.

    Added after 1 [minute]:

    >>21854752 This means you have a badly routed ground and are forming a ground loop. Show a photo of your connections, the board.
  • ADVERTISEMENT
  • #2410 21854819
    DJCheester
    Level 27  
    As for the board itself, interference only occurs when the radio connects to wifi then in my case the OLED inverter is slightly audible when it is mute (because the PAM amplifier is powered all the time) with normal radio operation there is no audible hum or interference.

    To improve this situation you could try giving a 100uh choke in series and a capacitor on the power supply of the OLED itself.

    Regards...
  • #2411 21854849
    dawidkosciesza
    Level 9  
    I'm also struggling with that slight buzz at volume 1. It's not that easy :D
    A separate power supply for the amp and a separate one for the radio works best.

    I subscribe to the thread for an additional output from the esp32 which would give a signal for the relay to switch on the amp when the radio is switched on. Unfortunately now when switching the radio off with the remote the amp is still running and you can hear that slight buzz.
  • #2412 21854872
    ArturAVS
    Moderator
    dawidkosciesza wrote:
    Unfortunately, now when turning off the radio using the remote control, the amplifier is still running and you can hear this slight buzzing.


    Change the type of amplifier. From class D, to class A, AB for example. Any amplifier in class D, will "sap" the power supply. Such are their (amplifiers') charms.
  • #2413 21855073
    robgold
    Level 23  
    The interference occurs depending on how many and how brightly lit pixels you have on the OLED display. In the display, the inverter manages to generate 14V with great difficulty, and to make things funnier it does so with 3.3V and not 5V.

    A solution commonly used in audio equipment is to simply isolate the power supply already at the power supply stage and generate these approximately 15-18V for the OLED in the power supply itself. Therefore, it is ideal to have a 24V switching power supply and then to reduce this voltage linearly to 15-18V for the OLED, and with small converters to 5V and 3.3V. If you have the space for large heatsinks, you can also do all this with linear regulators, but losses, especially at 3.3V, will be very high.

    Here it doesn't matter whether you have a class A, AB or D amplifier. Class D is very good here, it is just a matter of correct routing of the power supply and possibly cutting off the amplifier in power OFF mode. Unfortunately, everyone has their own application for this radio, some have an amplifier, others have a line-out, others have added a digital output. Everyone has to adapt the design individually. If there is enough GPIO, I will add one #MUTE output for amplifiers.
  • #2414 21855128
    DJCheester
    Level 27  
    I wanted to run and test the Kuli350 soft today as long as the compilation went through without a problem and the upload too, but unfortunately the remote control cannot be defined in a simple way - it's a pity that there are no buttons defined in one place just the codes are hard-pressed throughout the sketch.

    Code: Arduino
    Log in, to see the code


    This is such a downside to the software, as I am currently ill so I don't have the head to look it up and figure it out right now.

    In addition, the soft probably for the LCD IPS version because I now have a TN and here the colours are missing

    Internet radio and audio file player on ESP32-S3

    And the logo as for me black humour but this is my opinion.

    Internet radio and audio file player on ESP32-S3

    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