logo elektroda
logo elektroda
X
logo elektroda

Internet radio and audio file player on ESP32-S3

MAJSTER XXL 101115 1230
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #661 21447093
    hevet
    Level 16  
    And elegant.
    I received the 2 remote controls you used for the radio, it came to 25zl with shipping.
  • ADVERTISEMENT
  • #662 21447108
    MAJSTER XXL
    Level 29  
    @robgold then I'll probably sneak the whole links to these banks and save mine for sometime there. It always annoyed me when I had to clean it up, so thanks for bailing me out. Question, did you leave all the stations running? I generally wanted to shoot off everything under 128kbps? Well done!

    edit.
    in banks 10 to 16 I had to delete one space before the Bank name, in my case I insert the first 42 characters on the first line of the screen as the full station name together with the bank and station number.
  • #663 21447344
    CodeBoy
    Level 33  
    Is there a Yanosik radio in these banks ?
  • #664 21447445
    Szaryczlowiek83
    Level 7  
    tytka wrote:
    E.g. there is no DAC on it. Also, this is not an ESP version of the S3, so you won't be able to run this radio on it.
    .
    I'll agree that it's not an S3 but according to the description it has a 2x1.5w 4OhM DAC. I don't know how to understand "esp32 full"
    DJCheester wrote:
    Colleague is probably looking for a ready assembled PCB to just "inject" the soft and that's the problem.

    For our radio we would need to create a PCB from the modules used in the project.
    .
    I ordered all the boards from a friend from Ali but he has a delay and the PCM board has a delay.
    And I came across this invention by accident today as I was ordering a TFT display completely for something else.
    Edit: found the full designation esp32-wroom-32E
  • #665 21447548
    robgold
    Level 20  
    @hevet
    You'll have a super pilot. Good price.

    @MAJSTER XXL
    Sneak up on what you need. I didn't segregate the stations into those below and above 128k. Just auditioning all the banks has already given quite a bump and still in Bank1 I missed something and a couple don't play. These will have to be discarded. I have also cut out JCS's private station. I will most likely make a bank from Bank16 with FLAC, high bitrate AAC stations. Often these stations have playback problems so I will leave them as a test, but separated in a dedicated bank.
    The format I have is set up so that it cuts out the first 26 characters of the station name, if it is less it fills up to 26 characters with spaces. This is "programmable in the file". Probably when I get this excel cleaned up I'll upload it to GitHub. The 26 characters are due to the one-line caption limit for the "14" font we use for Volume and which I also "write" the station name on the screen.
    To answer your question - YES, I don't think I 'lost' any and they are all what they were at your place minus the ones that were 'dead'. They may just be shuffled between banks.

    Currently there are these bank file generation parameters set:
    Max station name length 26
    Separation --> Bank<> Station 1
    Separation --> Station<> URL 3
    Separation -> Station number 1,2,3 digits 2

    @CodeBoy,
    I only managed to find a link to stream basic Yanosik radio in 64k and 128k AAC. I have uploaded to Bank16 (stations 55,56) on a test basis. Ultimately I will move to Bank1. If you have addresses for the other streams (Rock, Love, EDM) I'm happy to accept and add. Stations are unfortunately reluctant to share links. Some strange fashion has come about to 'push' their radio listening apps. Surely more advertising space can be sold than just in streaming audio.

    @sharyczlowiek83
    The audio library we are using according to the author works correctly on ESP32 multi-core. Link Keep this in mind when choosing an ESP module.
  • #666 21447933
    Ambrozy
    Level 15  
    Quote:
    If you have addresses for the other streams (Rock, Love, EDM) then I'd be happy to accept and add
    Quote:
    .

    Yanosik ROCK https://n15a-eu.rcs.revma.com/whxxccsdp7uvv
    Yanosik EDM  https://n11a-eu.rcs.revma.com/s4exa6c6y33vv
    Yanosik LOVE https://n14a-eu.rcs.revma.com/8fqn8rr6ktuvv
    .


    Best regards Ambrozy
  • #667 21448560
    robgold
    Level 20  
    Added to Bank 1 stations 35,36,37,38. It's just a shame that these streams are of such poor quality below 100kbps.
    To Bank 6 where there is relaxing music, smooth jazz, I added at the end some streams with nature sounds, forest, water, sea, birds singing.
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #669 21449034
    robgold
    Level 20  
    @hevet
    Elegantly, Yanosik in 320kbps quality. Already swapped in Bank01, item 35. where did you find the link ? :)
  • #670 21449041
    hevet
    Level 16  
    I use uBlock, or F12 in Firefox, you can pull links from pages.
  • #671 21449151
    robgold
    Level 20  
    From the site I pull without a problem but not every overtly in the page source provides a link. Thanks for the reminder about the ublock. You can see elegantly where it links. If anyone would be looking for interesting stations I recommend: https://fmstream.org/index.php?c=FT
  • #672 21451514
    wirbud
    Level 13  
    Colleagues - the radio does not use the ESP32-audioI2S library by Wolle, does it?

    I don't know if this is an advantage or a disadvantage - I'd like to ask if it's possible to pull one more signal from the ESP32S3 to the full I2S set - I mean MCLK (masterclock).
    I need it for the SPDIF/TOSLINK board. Instead of the PCM5102 DAC, I connect the board with the WM8805 and let it go to the amplifier via toslink.

    On the MiniWebRadio from Wolle it runs fantastically. Would it be possible to do this on this radio? Thanks
  • #674 21451586
    wirbud
    Level 13  
    So I declare the whole kit and have full I2S?

    // Pin definition for the PCM5102A DAC
    #define I2S_DOUT 13 // Connection to DIN pin on DAC
    #define I2S_BCLK 12 // Connection to BCK pin on DAC
    #define I2S_LRC 14 // Connection to the LCK pin on the DAC
    #define I2S_MCLK 16 // Connection to MCLK pin on DAC
  • #675 21451610
    robgold
    Level 20  
    @wirbud, theoretically yes. Check. I don't have this TOSLINK board so I don't even have a way to check. Something new we will know.
  • ADVERTISEMENT
  • #676 21451764
    wirbud
    Level 13  
    It's not going - the request with the #define I2S_MCLK 16 statement didn't transfer.
    It's 0 in the library - I'll solder it over and see if it plays.

    Robgold - how on one encoder do you change the bank? With two, the first one was pressed for 2 seconds and that was it. With one (2nd) it doesn't work.
    I don't have one in the remote either - maybe I programmed the buttons wrong.
  • #677 21451786
    robgold
    Level 20  
    Did you also change the call to the Audio object ?

    We have pin definitions without MCLK and you have to change this if you want to use MCLK. It is not enough to just add the #define.
    Code: C / C++
    Log in, to see the code
    .

    Find a line like the following and add or replace the whole
    Code: C / C++
    Log in, to see the code

    to
    Code: C / C++
    Log in, to see the code
    .

    You probably did disable Encoder 1 by setting the value "-1" everywhere. This will not work because the ezButton library does not work with this.
    Restore the setting: #define SW_PIN1 4. So leave it like this:
    Code: C / C++
    Log in, to see the code
    .

    Then the SW_PIN2 assigned to GPIO1 will start working and you can adjust the volume and by holding it down the Bank selection will appear.
    If you want to cut out the Encoder1 completely then you also need to take it out of the pin connection to ezButtton.
  • #678 21451796
    DJCheester
    Level 26  
    robgold wrote:
    If you want to cut out Encoder1 altogether then you also need to drop it from the pin connection to the ezButtton.


    Can you write how to do this I currently have all 3 on -1 remote control works but on startup for a while the selection Radio MP3 player appears ?

    I do not physically have an encoder.

    Greetings ...
  • #679 21451800
    robgold
    Level 20  
    It will be difficult to write because many lines of code have to be switched off. I can possibly upload the EvoSony3.15 soft where I just have it disabled because it's a dedicated soft for the conversion of the Sony ST-S120 Tuner where I only have one encoder, keyboard + remote control operation.

    I'll try to prepare Evo3.15 normal without Encoder1 tomorrow and upload on GitHub :) .
  • #680 21451807
    DJCheester
    Level 26  
    Hi, I don't have both encoders at the moment, just an ir detector and that's enough for me. I don't have a keypad either. All operation is only from the remote control.

    At the moment I only have an occasional downward position in the station list but the radio does not switch, it just does not accept it but changes it, i.e. the station list appears from time to time.

    I was thinking of physically pulling something up to 3.3V with a resistor, probably DT would be enough.

    Or more simply comment out what is needed then nothing would change in hardware.

    If it's complicated, I'll just add a resistor under DT or maybe a second one under SW to pull it up and that's it.

    Regards...
  • #681 21451814
    wirbud
    Level 13  
    >>21451786 HUGE HAPPENING! A big thank you. Thank you
    You read between the lines and your imagination lets you down. Plus experience. I bow my head once again.
    It goes and TOSLINK and changing the bank. I am left with one problem - sometimes hangs and zeroing. Maybe some capacitors and a decent ground and power supply routing from the thread to the various system components.
    Strange - when I use the remote - it keeps resetting after 2,3 station changes (right arrow) on the 16 bank Radio Paradise Mellow and following. The notes are great. Good that it remembers the last bank and stations.
  • #682 21451816
    robgold
    Level 20  
    DT, CLK and SW lines. They have 10k to +3.3V pull-up resistors on the encoder boards.
  • #683 21451818
    DJCheester
    Level 26  
    And so I will only do on the JST plug so as not to change on the PCB any more, maybe one day a new PCB will be made then I will design these resistors on the PCB for mounting possibly instead of the encoder.

    Regards...
  • #684 21451826
    wirbud
    Level 13  
    Hot - I'm listening to CRo - flac - cuts heavily - could this be improved - hardware too weak? Internet too weak connection - because WIFI I have to rule out. I have close by and fibre optic....
    When cutting, the watch and FLC text goes off. Is this any indication?

    Two screens of a player showing playback of the CRo Vltava radio station with different data bitrates. .
  • #685 21451827
    robgold
    Level 20  
    >>21451814 Do you have PSRAM enabled in your Arduino compilation settings ?
    What module do you have ? 18R8 ? how much RAM do you have ? Depending on the amount of RAM you have, you have either QSPI or OPI memory.

    Table of ESP32-S3-WROOM module parameters, including columns for Flash memory, PSRAM, operating temperature, and size. .

    Added after 5 [minutes]:

    With FLAC stations I have the same thing, that's why I dumped those stations to bank 16. I also tested it on yoRadio. It is the same. It is sometimes worthwhile to preview what is on the serial port output when "audio buffor print" is enabled. I have a case where, for example, the ubiquiti 6 router has a problem with 2.4Ghz and IoT devices. After switching to Mikrotik suddenly the radio is buffering 250kb of stream.
  • #686 21452625
    robgold
    Level 20  
    @DJCheester
    Just a thought, have you tried temporarily disabling just the encoders without the buttons so that the ezButton library doesn't freak out ?

    Code: C / C++
    Log in, to see the code
    .


    Such an addition:
    For those who like cool rock sounds but without some edgy numbers, this is thanks to a bank clean-up I discovered a gem in Bank3.
    Radio Centrum Lublin or actually "Academic Radio Centrum - Lublin". Bank 3, Station 20 but I also moved it to Bank 1 in position 45 throwing out 113 Awesome
    Anti-radio could learn from them. Masses of good enjoyable rock music. Lots of cool Polish bands that the big media don't play because you know ZAIKS, ZPAV and publishers impose certain plans on stations otherwise next time they won't get a single and won't have any listenership. I recommend.
  • #687 21453243
    wirbud
    Level 13  
    robgold wrote:
    With FLAC stations I have the same thing which is why I dumped those stations to bank 16. I also tested it on yoRadio. It is the same. It's sometimes worth looking at what's on the serial port output when "audio buffor print" is enabled. I have a case where, for example, the ubiquiti 6 router has a problem with 2.4Ghz and IoT devices. After switching to Mikrotik, suddenly the radio is buffering 250kb of stream.


    Well, maybe not a firecracker - because that's what yoRadio is all about. In it, the I2S library held back in time is very old - from before ESP32S3.
    Thanks to your advice - I was able to replace the library with a fresh one and fire up TOSLINK (after adding the MCLK line). And shock - finally, Polish Radio Drivers has been playing for a few good minutes and not once was there a break in the stream. (Maybe it's due to the fact that I didn't define the screen, because I can't run SSD 1322 on yoradio with S3 board (regular ESP32 goes.).
    ESP32 screen displaying a distorted image with interference. .
  • #688 21453287
    robgold
    Level 20  
    And Polskie Radio Kierowców broadcasts in FLAC format ?
  • #689 21453297
    DJCheester
    Level 26  
    robgold wrote:
    It still occurred to me, have you tried making yourself temporarily just disable the encoders themselves without the buttons so that the ezButton library doesn't freak out ?
    .

    Hi I'll try it tomorrow because actually the buttons themselves didn't react only the encoders reacted so it might work, when I check I'll write.

    Thanks for the advice and best regards....
  • #690 21453317
    wirbud
    Level 13  
    >>21453287 well not but in not bad aac around 250 kB/s. It sounds great on DAB+ and the net not bad either. But it ripped on all of them for me even though it's not flac. Jazz24 https://prod-3-222-117-14.amperwave.net/ppm-j...1?session-id=18d58e2f809796404c60f62e3227c74e super- nie rwie. RJR from France FLAC (https://stream.rjrradio.fr/rjr-dab.flac ) and it plays without interruption.

Topic summary

The discussion revolves around building an internet radio and audio file player using the ESP32-S3 microcontroller. The project includes features such as an OLED display, Wi-Fi connectivity, and audio playback capabilities. Users share their experiences with hardware setup, including issues with pin configurations, library compatibility, and troubleshooting compilation errors in the Arduino IDE. Suggestions for libraries, such as ESP32-audioI2S and WiFiManager, are provided to enhance functionality. Participants also discuss the importance of proper wiring, capacitor usage for encoders, and the potential for adding features like DLNA support and a web management interface for radio station management. Several users report on their progress, share code snippets, and offer solutions to common problems encountered during development.
Summary generated by the language model.
ADVERTISEMENT