logo elektroda
logo elektroda
X
logo elektroda

Internet radio and audio file player on ESP32-S3

MAJSTER XXL 107763 1247
ADVERTISEMENT
This content has been translated flag-pl » flag-en View the original version here
  • #1231 21579614
    dariuszj
    Level 20  
    Just in this project the IR pin defined to IO=15. Checked on two different modules and it is the same. I would like to temporarily, before the ordered RC-406 arrives, configure myself some remote control for educational purposes. I've run some clones based on Yoradio and there I've configured myself 2 remotes in NEC code, which work quite well. The problem is that the codes read by the Yoradio configurator or the remote control tester I have are different from the NEC standard in the project from this thread. There are differences between Yoradio as well as the tester, so I won't use one or the other.
  • ADVERTISEMENT
  • #1232 21579946
    dariuszj
    Level 20  
    Just in this project the IR pin defined to IO=15. Checked on two different modules and it is the same. I would like to temporarily, before the ordered RC-406 arrives, configure myself some remote control for educational purposes. I've run some clones based on Yoradio and there I've configured myself 2 remotes in NEC code, which work quite well. The problem is that the codes read by the Yoradio configurator or the remote control tester I have are different from the NEC standard in the project from this thread. There are differences between Yoradio as well as the tester, so I won't use one or the other.
  • #1233 21580096
    robgold
    Level 20  
    What codes are you reading in the terminal for the current remote control ? Please paste this is what you get there.
  • #1234 21581306
    dariuszj
    Level 20  
    That's the thing: I don't see any codes on the terminal. Zero response of any kind. I wanted to compile and upload an older version, but github no longer has it.
  • ADVERTISEMENT
  • #1235 21581308
    hevet
    Level 16  
    Does it show you anything at all in the terminal? Connect the cable to the other usb- in esp32s3 and see then.
  • ADVERTISEMENT
  • #1236 21581315
    DJCheester
    Level 26  
    I had this with Arduino 2.x and 64 bit win7 system nothing was on the terminal, it was throwing some error in yellow at the bottom on the bar, everything works on Arduino 1.8.9 and 32bit.

    Also check the baud rate.

    Regards...
  • #1237 21581321
    robgold
    Level 20  
    Generally, you should get a lot of information on start-up. The handling of the remote control does not differ at all between the versions. If you want a specific version, I can send it to you.
  • #1238 21582216
    dariuszj
    Level 20  
    I see a mass of information in the serial monitor. What I mean is that when trying to send some command from the remote, on the monitor no message, no response.
  • #1239 21582447
    robgold
    Level 20  
    If you don't get anything on the terminal when you press the remote control button then perhaps you have a badly connected IR receiver / a faulty receiver ?
    For a correctly received code the information looks like this:

    NEC code OK:9D62A857 MSB-LSB: EA1546B9 ADR:B9 CMD:15
    debug-- pulse 9ms:9171 4.5ms:4480 1690us:1611 690us:480

    For the erroneous one (here a Samsung remote which does not transmit in the NEC standard):
    Error - NEC remote control code is incorrect!
    debug-- pulse 9ms:9171 4.5ms:4474 1690us:1643 690us:524

    What remote.txt file do you have uploaded? Upload the one from the repository for the RC-406 remote control, never mind that the codes will not match. At most, you will get a corresponding message on the terminal
    Check the connection of the receiver again. Connect to the OUTPUT pin of the IR receiver, an LED with a 1k resistor. It should flash when receiving data from the remote control.
  • #1240 21582963
    nouki
    Level 25  
    >>21572312 Thanks for the hint I have come to that. As I wrote 10 years I wrote almost nothing I had to read:) .

    The scoop is to add Ws28xx support. But I have another odd problem.
    I often have this and not only as I read I :) that after startup nothing happens. When the power is removed and given again the radio fires up.
    In addition I recently turned the radio off and fired it up in a few days and nothing could be done dead.
    The program would load , part way through the terminal something was there and it was over. Changing the core to the other only restored the operation of the radio however there is but :) the rgb knob and sometimes the display do something different than they have .


    As for the remote control. If the receiver I had on 5V connected because initially I only had such :) it also did not work received but codes were not recognized. Changing the receiver to another and connecting it to 3V solved the problem.


    As for the almost full screen watch and moving it around the screen I sweated this out. I recall that I rusted :) Rule of thumb every full minute 5pix sideways to position xx and the other way .


    Code: Arduino
    Log in, to see the code
  • ADVERTISEMENT
  • #1241 21582987
    robgold
    Level 20  
    @nouki I have not noted such problems here with our radio but I read a similar thread regarding yoRadio. The question is do you have the correct configuration in Arduino ? Which version of ESP core are you using in Arduino ? If you have electrical compatibility with my project upload the ready-made BIN from GitHub and test if it gets up correctly. But before you do that, do a full memory erase, upload via USB only then via OTA my BIN.
  • #1242 21583027
    nouki
    Level 25  
    robgold wrote:
    @nouki I haven't noticed such problems here with our radio but I read a similar thread regarding yoRadio. The question is do you have the correct configuration in Arduino ? Which version of ESP core are you using in Arduino ? If you have electrical compatibility with my project upload the ready-made BIN from GitHub and test if it gets up correctly. However before you do that do a full memory erase, upload via USB only then via OTA my BIN.
    .


    This esp what I have not only on the radio insert does not start the first time. I have played with e.g. the ready-made WS28xx program and it also does not start until reset.
  • #1244 21584233
    dariuszj
    Level 20  
    I haven't solved the problems with the received pilot code info in the serial monitor, but I am plagued by the problem of receiving the flac stream. Where specifically to replace the patch files. I've located directories with files with these names, but swapping either doesn't change anything, or causes errors in compiling the program in the Arduino IDE ( different versions), or no proper wi-fi connection.
  • #1245 21584237
    robgold
    Level 20  
    The swap files are up to core ESP 3.0.7 if you have a newer version then they will not work.
  • #1247 21585708
    dariuszj
    Level 20  
    Gentlemen, success!
    It turned out that the problem with receiving IR codes from the remote control was in the IR receiver itself. I was using a typical receiver for the Arduino. The design of this receiver has an amplifier, a secondary on a transistor, in addition to the typical IR detector itself. Perhaps the signal from this receiver has too high a level or is distorted enough to not be recognised by the ESP32 system, although it worked fine on YOradio. I connected the raw IR receiver itself, without any transistor or other additions, and it worked. Laziness. I was going to check on the oscilloscope, but didn't want to take it out of the box, as I have the workshop in suitcases temporarily.
  • #1248 21597426
    shonasz
    Level 15  
    Welcome.

    I am getting this error pop up. Can anyone help.



    c:‗UsersxxxDocumentsArduinolibrariesSDrc_diskio.cpp: In function 'bool sdcard_mount(uint8_t, const char*, uint8_t, bool)':
    C:#fpermissive/include/fatfs/src/ff.h:416:25: error: invalid conversion from 'int' to 'const MKFS_PARM*' [-fpermissive].
    416 | #define FM_ANY 0x07
    | ^~~~
    | |
    | int

    793 | res = f_mkfs(drv, FM_ANY, 0, work, sizeof(work));
    | ^~~~~~

    793 | res = f_mkfs(drv, FM_ANY, 0, work, sizeof(work));
    | ^~~~
    | |
    | BYTE* {aka unsigned char*}
    c:c:c:c:c:c:c:793:25: error: too many arguments to function 'FRESULT f_mkfs(const TCHAR*, const MKFS_PARM*, void*, UINT)'.
    793 | res = f_mkfs(drv, FM_ANY, 0, work, sizeof(work));
    | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    339 | FRESULT f_mkfs (const TCHAR* path, const MKFS_PARM* opt, void* work, UINT len); /* Create a FAT volume */.
    | ^~~~~~

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