logo elektroda
logo elektroda
X
logo elektroda

Internet radio and audio file player on ESP32-S3

MAJSTER XXL 172965 1951
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • ADVERTISEMENT
  • #1892 21776746
    robgold
    Level 22  
    @hevet wave files, FLAC next year as Wolle wrote. I tried to pull in that Martin file for FLAC 24 bit but you have to tweak a lot of variables and dependencies. I let it go.
    Choc as far as I can see there is a "first try" commit and it changes the own settings for 24 bit. I'll do a fork tonight and po test how it works. Unless you have already checked ;)
  • #1893 21776753
    hevet
    Level 17  
    @robgold I checked and Aida Radio, for example, is working, and until now there were only hiccups.
  • #1894 21776766
    robgold
    Level 22  
    @hevet This will change the streamer completely. FLAC 24bit... i will stop having resistance to "destroy" my Denon F109 DNP and mount the Evo inside. Because this vTuner is driving me to despair.
  • #1895 21776776
    hevet
    Level 17  
    Rest assured, I've checked a couple of stations and it varies in playback, but I'll still see this at home on better internet.
  • #1896 21777059
    robgold
    Level 22  
    @hevet I tested, beautiful view, until I have to fix the frame in mode4 but such a problem is not a problem :) Most of the stations are running and it's quiet up to 2000kbsp. Some problem did happen with TTS (voice watch, some kind of snore got it)

    Everything promises a small revolution - as of today's "test commit", 24bit FLAC stations are starting to be played through the audio library.

    Display showing Aida Radio playing in FLAC 2000 kbps format
  • ADVERTISEMENT
  • #1897 21777063
    hevet
    Level 17  
    Super, where do you get the 24bit FLAC station addresses from?
  • #1898 21777067
    robgold
    Level 22  
    >>21777063 From the HiRes website . I have left you in a private message a ready-made "one-click" tester.

    Stad:
    Audiophlie https://audiophile.fm/aidaradio

    Here is quite a lot:
    https://www.hiresaudio.online/cd-quality-internet-radio/

    You just have to choose, when testing, the ones that have 24bit and not 6000kbps because ESP gets hiccups ;)
    As far as I have noticed, a lot of those stations which hiccup have a very small buffer set on the server such as 1-2sec and this is definitely not enough with wifi and a bitrate of 2Mbps. The buffer preview reveals the whole truth here.
  • #1899 21777236
    MAJSTER XXL
    Level 29  
    I've added the option to enable or disable logging of played stations in the settings, a new button on the remote starts the entry into log display mode from the last played station, up/down arrows scroll through the logs, exit logs with the same button.
    Below is a view of this functionality, changes have been recommended on the repo:
    https://github.com/sarunia/ESP32_internet_radio_v3/tree/main


    Radio display showing played station history and current time
    Internet radio display showing station playback history and current time
    ESP32 display showing settings: Calendar ON, Weather ON, RSS OFF, Station log ON
  • #1901 21777887
    Bhpjean
    Level 13  
    >>21777236 ho ho ho , I see you gentlemen have gone hard ahead , and I am still in the black ( | ) :-) with my projects :-)
  • #1902 21778002
    QALAB
    Level 11  
    I'm trying to assemble my Evo Radio whenever I get the chance. For now, the box will look like this; I might change it later. I'll share this beautiful project when it's finished.



  • ADVERTISEMENT
  • #1903 21778138
    Bhpjean
    Level 13  
    dawidkosciesza wrote:
    We have successfully completed the project :)
    Let me show off the result 😁Diora AS 502 tuner with updated display on a wooden shelf




    The display looks much better in person, the tinted factory glass does the job. Unfortunately the pictures with the phone don't convey the effect.



    How did you solve the reading of the keyboard ? just out of curiosity I ask ...
  • #1904 21778142
    robgold
    Level 22  
    @Bhpjean In the Evo version I have implemented ADC keyboard support i.e. you make a resistive ladder and on the ADC pin you 'read' the buttons. Configuration and calibration is available via the built-in web page. This is probably the cheapest solution and at the same time works quite well. The disadvantage is that for each ESP you have to calibrate the keypad because the ADC is what it is (read weak).
  • #1905 21778147
    Bhpjean
    Level 13  
    >>21773883

    robgold wrote:

    There is an option to set your own time zone, it is stored in the timezone.txt file, in the case of Poland you do not need to do anything, the radio in the absence of detection of this file will create it by itself the first time and store there our time zone. This is a nod to colleagues outside of our time zone so that they can change this in the configuration.




    It didn't occur to you that the time zone could automatically set itself ????

    You can use an external service and check your ip address and based on this address determine the approximate location and thus with its help set yourself the time zone :-) Then we have less settings ...

    Added after 6 [minutes]:

    robgold wrote:
    @Bhpjean In the Evo version I have implemented ADC keyboard support i.e. you make a resistive ladder and on the ADC pin you "read" the buttons. Configuration and calibration is available via the built-in web page. This is probably the cheapest solution and at the same time works quite well. The disadvantage is that for each ESP you have to calibrate the keypad because the ADC is what it is (read weak).


    You don't need to calibrate :-) rather carefully select resistors , but from experience I know that 1% will calmly suffice ....
    It is important to have a stable power supply for the divider , from my experience I know that the one you supply to the ESP32 is enough ( 3.3V) and it works like hell ....

    As for Diora, it was a pity to combine with such a keyboard.

    It was simpler to use the existing one ... and it is a matrix 4x4 and connect directly to the original board e.g. PCF8574 and by i2c you would have communication of the keyboard with ESP32 ;-)

    Not that I am lecturing ... but I ate my teeth ;-)
  • #1906 21778153
    robgold
    Level 22  
    Yes and no. If someone is using a VPN on a router it won't work. You can always make yourself :)
  • #1907 21778154
    Bhpjean
    Level 13  
    >>21778153 fact :-) you are right ... VPN can mess up
  • #1908 21778162
    robgold
    Level 22  
    @Bhpjean Not my project (this Diora) not my choice. I only supplied the soft. Although I feel you probably don't work on high volume projects professionally so "skimp on the cash" :) I've got it in my blood that if you can save money and create a project as required (and in this case the cost of the PCF comes off) then you have to do so but it's unfortunately inherited from work.

    As for the resistors... who has a row of E-96 1% resistors in an amateur electronics technician's workshop. I think not many people. Also, here's the thing about the drift of this ADC, it's quite inaccurate it's not an AVR.
  • ADVERTISEMENT
  • #1909 21778171
    Bhpjean
    Level 13  
    >>21778162 Don't exaggerate !!! how much does this PCF cost ???

    Recently I bought at 1.15zł for a ready-made board with PCF on board to control the LCD display , which can be easily used without modifications to read the keyboard. Of course, PCF is not the happiest solution
    There are also dedicated circuits for matrix keyboards supporting definitely more buttons, but they are actually more expensive :-)


    As for ADC drift ... well what are you surprised , ESP quite heats up , the more that it has something to do . but also for this there are ways after all . maybe you read this keyboard too restrictively :-) maybe it is worth to allow a large spread and larger ranges and tolerances ??? moreover it is always worth to read such a keyboard a minimum of 2 times before we undertake decoding . and besides , I do not know how many bits of ADC you are using because if too many is also not good :-)

    p.s. These Diodors are running on PCFs


    Two Diora stereo tuners with illuminated LCD displays and rows of buttons.
  • #1910 21778177
    robgold
    Level 22  
    @Bhpjean And I don't even know how much he costs I have a few of them in stock :) As I wrote I am "tainted" by designing for high-volume projects and this unfortunately sometimes lets me know :(

    In fact, when I was doing it I wanted to test if it would work and that it did work on this ADC (in many audio equipment like this you have 1 or 2 ADC inputs and resistors) because fewer inputs are needed because of the cost. With the production of even such a Dior, that 1zł would be a fortune. 100,000 units and you have 100,000 in your pocket plus the engineers' time.

    I'm glad you came and saw your colleague's design, because I immediately thought of you, that you also do such conversions. How are you getting on with the VFD?
  • #1911 21778183
    Bhpjean
    Level 13  
    robgold wrote:
    @Bhpjean And I don't even know how much it costs I have a few of them in stock :) As I wrote I am "tainted" by designing for high-volume projects and this unfortunately sometimes lets me know :(

    I'm glad you stopped by and saw your colleague's design, because I immediately thought of you, that you also do such conversions. How is it going with the VFD ?


    I stopped by , because my buddy informed me that on the eletrod of radios on ESP32 they are combining :-) and as I see it some of my ideas in your radios appeared :-)
  • #1912 21778189
    robgold
    Level 22  
    >>21778183 And what do you mean specifically ? :)
    I watch your videos, although in fact I think I downloaded the fade volume from you (I wrote in a comment on YT) and the Memory Banks I sometimes watch myself, the rest was rather born in my head.

    The ADC is read a few times, the resolution is 11 bits as I remember. I haven't fully tested it yet because my poor Sony is lying around waiting for the conversion to be completed. I have printed out all the mounts, adapters but no time to put it together.


    Sony radio display shows Radio Centrum Lublin station and MP3 sound parameters
  • #1913 21778202
    Bhpjean
    Level 13  
    robgold wrote:
    >>21778183 And what do you mean specifically ? :)
    I watch your videos, although in fact I think I downloaded the fade volume from you (I wrote in a comment on YT) and the Memory Banks I sometimes peek at, the rest is rather born in my head.



    And it is appreciated when you want to think and do something in your own way.

    I when I started to combine with this in 2019 , there was not much on the web on this topic .
    until I stumbled upon the i2s audio library towards the end and then the first AS was created with the TDA1543 because I had not yet heard of the 5102. I have now replaced it with an ESS9018K2M

    And as for the VFD ... What specifically do you have in mind ??
  • #1914 21778214
    robgold
    Level 22  
    Bhpjean wrote:
    I have now replaced it with ESS9018K2M


    Does it work better for you ? Can you hear the differences ? PCM5102 is not considered as the worst chip it is easy to solder and cheap :)
    I've got somewhere such a super Ensoniq ES9023 from a Volumio Audiophonics streamer but I'll tell you frankly du... in the sense of head and ears did not break.


    Bhpjean wrote:
    As for VFD ... What specifically do you have in mind ??

    I have seen trials with the VU meter, are you planning to swap from the usual 2x20 matrix to VFD ?
  • #1915 21778215
    Bhpjean
    Level 13  
    robgold wrote:
    >>21778183 And what do you mean specifically ? :)
    I watch your videos, although in fact I think I downloaded the fade volume from you (I wrote in a comment on YT) and the Memory Banks I sometimes peek at, the rest was rather born in my head.

    The ADC is read a few times, the resolution is 11 bits as I remember. I haven't fully tested it yet because my poor Sony is lying around waiting for the conversion to be completed. I have printed out all the mounts, adapters but no time to put it together.


    Sony radio display shows Radio Centrum Lublin station and MP3 sound parameters



    Gee , wouldn't a VFD look nicer on a Sonik ?? or a white OLED though ???

    As for the ADC and the keyboard - 9 bits quietly passes the test for me, it works flawlessly very low ( even trace ) loads ESP itself when reading.
    In the SONY DAR1000 as I designed it (which was from today's perspective a mistake to make the ADC keyboard in this tuner) I use 3 inputs ADC and 15 buttons hang on each :-) in total a rich 45 buttons :-) Today I would do it completely different and I would use a dedicated circuit for such an extensive keyboard, but in 2021 I didn't know about it yet :-( TCA8418 , read about it maybe it will be useful for you in future projects. cool is .

    Yes the ESS9018 plays nicer ( to my old ear ) but at my place it runs on 24 bits because the chinese did not bring out on their boards i2c for configuration , and maybe it is better :-)
  • #1916 21778233
    robgold
    Level 22  
    Bhpjean wrote:
    But wouldn't a VFD look nicer on a Sonik??? or a white OLED?????


    Not really. I've been doing tests and the white 3.12 is unfortunately quite dark through this filter and there's a slight pinkish colour to it. I'll check it again but after testing all the colours it was the yellow that shone the best.

    Bhpjean wrote:
    What about ADC and keyboard - 9 bits quietly with me passes the test very low ( even trace ) loads ESP itself when reading.In SONY DAR1000 as I designed it ( which was from today's perspective a mistake to make the ADC keyboard in this tuner ) I use 3 inputs ADC and 15 buttons are hanging on each :-) in total a rich 45 buttons :-) Today I would do it completely different and I would use a dedicated circuit for such an extensive keyboard, but in 2021 I didn't know about it yet :-( TCA8418 , read about it maybe it will be useful for you in future projects. it's cool .


    And thank you, I will have a look out of curiosity.
  • #1917 21778248
    Bhpjean
    Level 13  
    robgold wrote:
    Not really. I did the tests and this white 3.12 is unfortunately quite dark through this filter and on top of that such a slightly pinkish colour gets. I will check it again, but after testing all the colours it was the yellow that shone the best.



    Therefore a VFD and it will be like the original , unless you don't particularly care about that .... New VFD unfortunately expensive ( although you can buy something occasionally )
  • #1918 21778264
    DJCheester
    Level 27  
    Do I know if vfd is better? Limited character display on Oled you can everything and graphics and animated stuff. Besides the price and possibly bespoke, the blue plaids look nice too.

    Greetings ...
  • #1919 21778279
    robgold
    Level 22  
    Bhpjean wrote:
    That's why a VFD and it will be like the original , unless you don't particularly care about that ... New VFD unfortunately expensive ( although occasionally manage to buy something )


    I would very much like a VFD but a graphic one. I even have an Itron from a 2x20 cash register, sure it looks great but the limitation to 2 lines of text with such a radio is unfortunately always a compromise of what you display with the rest you can see it in your videos either VU or stream title or watch. I've already matched the Sony frame to the OLED, if you'd like to print files let me know.

    I have to order a DAC ES for myself for testing.

    Front of Sony tuner with a graphic OLED screen replacing the original display
    Graphic VFD display and 3D-printed black enclosure on fabric surface
  • #1920 21778335
    Bhpjean
    Level 13  
    robgold wrote:
    Bhpjean wrote:
    That's why a VFD and it will be like the original , unless you don't particularly care about that ... New VFD unfortunately expensive ( although occasionally you can buy something )


    I would very much like a VFD but a graphic one. I even have an Itron from a 2x20 cash register, sure it looks great but the limitation to 2 lines of text with such a radio is unfortunately always a compromise of what you display with the rest you can see it in your videos either VU or stream title or watch. I've already matched the Sony frame to the OLED, if you'd like to print files let me know.

    I have to test order a DAC ES like this.

    Front of Sony tuner with a graphic OLED screen replacing the original display
    Graphic VFD display and 3D-printed black enclosure on fabric surface



    Do you want a graphic VFD ?
    because the price of a graphic VFD with driver is not optimistic ...

    https://pl.aliexpress.com/item/1005008996053458.html?

    but a used alphanumeric VFD I can gift :-)
📢 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