logo elektroda
logo elektroda
X
logo elektroda

Internet radio and audio file player on ESP32-S3

MAJSTER XXL 109617 1253
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #151 21194488
    bolszoy
    Level 9  
    khoam:

    I have two of the same ESP boards both have the same thing on them, uploaded multiple times so not likely. I'm betting they are some kind of insecure, or the Chinese have changed something about the others.
    I have the impression that when it says Internet radio, the ESP crashes. But when I try to change wifi, I get a return that it sees 4 networks and tries to connect. Nevertheless, nothing happens on the OLED.

    I will still look for the old router tomorrow and try again.
  • ADVERTISEMENT
  • #152 21194500
    khoam
    Level 42  
    bolszoy wrote:
    I have the impression that after displaying the Internet radio caption, the ESP crashes.
    .
    From the image above, it appears that it cannot connect to the "Home" network. I understand that this is the intention. What are the settings for this "Home" network in the router?
  • #153 21194521
    bolszoy
    Level 9  
    Case in point. But I tried with guest and shared WiFi from the phone. But as I wrote, tomorrow I will put the other router and try without security.
    But on the screen, if there is no internet access, isn't there an option e.g. quieter - louder? Well, and that glowing RGB....
  • ADVERTISEMENT
  • #154 21195293
    bolszoy
    Level 9  
    Would any colleagues agree to test one of my ESPs at home? I would send it by parcel post for example.
  • #155 21195314
    khoam
    Level 42  
    >>21194071 .
    I took a look at this photo. This is not the original Espressif layout. That doesn't mean it won't work properly, but you should be aware of that.
  • #156 21195363
    bolszoy
    Level 9  
    I understand. I didn't know it wasn't the original, which explains a lot. I've ordered tiles like the ones from the pictures in the last posts. I hope they won't be fakes.
  • ADVERTISEMENT
  • #157 21195696
    futek2
    Level 19  
    Hello
    I have this suggestion for a colleague bolszoy . When I type in the configuration to connect to the router, the router's SSID name carries over from the prompts of what the module sees. But I enter the password manually and sometimes it has happened to me, I don't know why, a space appears and you can't see it. So I would suggest that in the password entry field, just to be sure, the field should be cleared. And then type in the password and make a save. Because these times, what you see on the terminal, it's like the connection is rejected because of an incorrect password. And the space is not visible, and it is written in the password.
    As a precaution, I suggest you clear the memory by reloading the software.
    Please try, because maybe such a small thing spoils that there is no connection to the router.
    Regards
    Futek2
  • #158 21195923
    bolszoy
    Level 9  
    I always enter the SSID and Password manually. NodeMCU-PyFlasher stands on recognizing the chip, ESP-Flasher does the deletion automatically....
    Like nothing, these modules of mine suck. I've ordered ones like the ones below, hope they'll be good.
    I don't know how to erase the flash without uploading anything.

    I'll just add that I've uploaded via COM /UART/, FTDI and CP210x, no matter - they behave the same. I don't think they uploaded badly - I hope no one buys them....
  • ADVERTISEMENT
  • #161 21196305
    futek2
    Level 19  
    Hi mate bolszoy . From this screenshot I can see that you have a very richly secured WIFI access to the router DOM .
    I would suggest you install ARDUINO IDE on your PC, the latest version 1.8.19 works on WIDOWS 7 and higher.
    Install the library - which is attached WiFiManager-2.0.17.zip .
    It is already patched.

    This patch is described by the project author .
    https://www.elektroda.pl/rtvforum/topic4041603-120.html#21183571

    Then start the ARDUINO IDE and in the examples search for WIFIManager and choose one of the examples and compile it on a board you have, let it even be an ESP8266 and do the test and see if it connects to your router DOM.
    If the ESP8266 connects you, you will see on the port preview, then a similar test should be performed with the ESP32S3 or ESP32 board.
    I chose this one AutoConnectNonBlocking .
    The author of the project uses this library.

    And you will be more sure where the problem lies.
    It will take you little time.
    I assume that you are not a novice, that you know how to use the ARDUINO IDE.
    I am curious to see what the test results will be...
    The connection attempt fails, then the problem is in the router.

    How it worked for me is the picture attached.
    I also did a readout of what type of modulation the ESP32 uses, this is b - photo attached
    And maybe it is enough to change the settings in the router so that it also accepts a b connection, i.e. it would be B/G/N.

    Futek2
  • #162 21196321
    khoam
    Level 42  
    @bolszoy I suggest you do a relatively simple test. Upload an example named WiFiClientConnect ( Link ) to this "suspect" module. All you need to do is specify in the code the SSID and password for the WiFi network to which the ESP module is to connect.

    bolszoy wrote:
    NodeMCU-PyFlasher is standing on chip recognition
    .
    What specifically does this message look like?

    futek2 wrote:
    This fix will be described by the project author .
    .
    This fix only applies if the WiFiManager code does not compile, because it does not recognise type byte (which is equivalent to type uint8_t ).
  • #163 21196919
    bolszoy
    Level 9  
    Hi. I'll check everything you've described tonight after work - with the arduino I'll manage.
    Although I'll have a new ESP today, I'll check the ones I have now as well, I'm curious myself what's going on with these boards.
    The screenshot won't show much, but....
  • #164 21197504
    futek2
    Level 19  
    Hi kol bolszoy .
    Please find attached pictures at which router settings my ESP32S3 connects and everything works correctly.
    I think maybe it is enough to set the WIFI port parameters in the router and everything will be fine.
    Enter your own password.
    Maybe select a different channel, as ESP has WIFI on startup channel 1.

    If this works, then experiment with the other settings on your router.

    Good luck.
    Futek2
  • #166 21200645
    bolszoy
    Level 9  
    Welcome everyone, and sorry for the interruption. Work, house renovation, and kids....
    I would also like to thank my colleague hewet for sharing the github.
    Maybe one step at a time. The router sees the board as ESP_8029A0, but the radio does not connect. I borrowed my wife's win10 laptop, installed the Arduino including the drivers, got through the libraries and a few compilation errors, but an error like the following I can't. I think I've pretty much digested a lot of information about ESP and Arduino /through these few days/ although I know there's a lot ahead of me.
    I'm an inquisitive person, and one thing puzzles me - namely, I learned on another forum that arduino creates several .bin files instead of one, and all of them are needed for full initiation via USB /UART/. I also know that I upload the main .bin file to 0x10000, the bootloader to 0x0, and the partition to 0x8000.
    And now my question, when I type the Radio-internet-BEST.bin file into the ESP, does it create a partition? Or should I upload 3 bin files?
    Thank you for your help and patience.
  • #167 21200809
    khoam
    Level 42  
    bolszoy wrote:
    And now my question, when I type the Radio-internet-BEST.bin file into the ESP, does it create a partition?
    .
    Uploading a BIN file to the ESP32 does not create a partition. Partitions are defined by a separate partition table, which must be loaded into flash memory beforehand. In the Arduino IDE, the partition table can be configured before compiling and loading the program by selecting the appropriate option in the menu " Tools > Partition Scheme ".

    The attached log file indicates a compile-time error, for specific lines of code:
    Code: Bash
    Log in, to see the code
    .
  • #168 21201351
    bolszoy
    Level 9  
    So if I understand it is a problem with the audio library?
    To colleague futek2: There are also problems with the examples when compiling. So perhaps I am missing some libraries or have them installed incorrectly.
    By the way, I didn't expect the back end of the problems, I thought uploading bin to ESP was simpler. Like uploading prock bins (avr or stm).
    Greetings
  • #170 21202131
    MAJSTER XXL
    Level 29  
    @hevet at my place it's been lame for a while with weird ESP restarts or hangs. I get the impression that it just sits this ESP32 of mine, it doesn't matter if it's streaming from an mp3 radio at 128kb/s or any station with flac. In the same way it can crash when scrolling through the station list from the encoder. Question, does anyone also have such spontaneous reboots? Today I went through my libraries and just to be sure, I left only the one you suggested- it didn't help anything with me. I will have to swap out that ESP module of mine to make sure. I thought about gluing a small heatsink, but it hardly heats up, although I have a feeling it's a thermal problem though.
  • #171 21202214
    khoam
    Level 42  
    MAJSTER XXL wrote:
    I've been having a lull for a while with weird ESP restarts or hangs. I have the impression that this ESP32 of mine just sits, it doesn't matter if it's playing an mp3 radio at 128kb/s or some station with flac
    .
    So it would be appropriate to start with an analysis of the causes of these reboots: Link .
    Only later did the voodoo techniques ;)
  • #172 21202814
    futek2
    Level 19  
    Hello to those interested in the subject.
    What you are describing is starting to fail memory.
    I already had such cases with ESP8266 and ESP32. Just buy the memory and replace it. This is doable. You need a heater to gently heat the module, specifically this tin cover. And clamp the module in a vise so it doesn't move, and clamp the antenna board with a laundry clip or other so it doesn't move. Removing the plate is not some magical art. The periphery can be covered with adhesive tape to prevent the module from overheating. I describe this using the ESP8266 and ESP32 as an example. And then it's simple: solder out the memory and solder in a second new one. But do a test before soldering the shielding sheet.
    I wish you the best of luck.
    Futek2
  • #173 21202934
    hevet
    Level 16  
    With me there are no reboots, it works without hang-ups. You can replace the memory, but not everyone has the skills. I have the ability so I would do it, but I think it would be easier for most to buy a new board.
  • #174 21203201
    futek2
    Level 19  
    Hello
    I once came across an article describing the ESP8266 and ESP32 that the memories used are not of good quality.
    What I can confirm that I unpacked a new ESP32 and when uploading the software it was ok but resets just appeared.
    So without delay I replaced the memory and the problem disappeared.
    But these were 4MB memories.

    Once I used this description because I was afraid if I could do it.
    https://www.instructables.com/ESP-03-Upgrade-Flash-Memory-to-128-M-Bit/

    And here is a video on how it can be done
    https://www.youtube.com/watch?v=11tu9p26eIA

    This may be useful .

    Greetings
    Futek2
  • #175 21203243
    MAJSTER XXL
    Level 29  
    For now I have replaced the whole ESP32 S3 module with another one from stock and on it now works without problems, for the next couple of hours it remains to be seen.
  • #176 21203338
    khoam
    Level 42  
    A more common problem with flash memory on the ESP32* is that in some of its programming modes, the memory does not fully program and random rubbish is left behind. This happens in clones of ESP chips where other flash memories than those used by Espressif are used. In such cases it is a good idea to try (and it costs nothing) to switch the flash programming from QIO to DIO mode, or to select a flash operating frequency of 40 MHz instead of the default 80 MHz in the Arduino IDE.
    https://docs.espressif.com/projects/esptool/e...st/esp32/advanced-topics/spi-flash-modes.html
  • #177 21203417
    bolszoy
    Level 9  
    Hi. Uploading the Wifi client example doesn't always give the expected results, but when it does, it sees all access points. Even the camera which is at the children's, Ξa which is not attached to the home wifi.
    I am trying to compile the files of a colleague Hevet /with difficulties/, and unfortunately at the very end I have an error that I can not deal with.
    Perhaps you have some ideas I am attaching a .txt file


    To colleague khoam:
    And isn't the ESP32S3 DIO in the prompts?
  • #178 21203450
    khoam
    Level 42  
    bolszoy wrote:
    And there is no ESP32S3 DIO in the prompts?
    .
    I have "QIO 80MHz" as the default mode for the ESP32-S3.

    Error:
    Code: Bash
    Log in, to see the code
    .
    Indicates that the ctags.exe program cannot be found, and the Arduino IDE is needed. Something with the installation of the Arduino IDE has gone wrong.
  • #179 21203581
    bolszoy
    Level 9  
    I understand - thank you. I will reinstall the arduino
  • #180 21208602
    bolszoy
    Level 9  
    Hello again. I don't want to bore you but could my colleague futek2 compile the program into a bin file again? I suspect that something may be wrong?

    The examples work for me, but I can't compile the sketch for the hell of it because of constant errors. Hopefully I can figure this out too.

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