logo elektroda
logo elektroda
X
logo elektroda

Internet radio and audio file player on ESP32-S3

MAJSTER XXL 172962 1951
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • #1861 21775055
    dawidkosciesza
    Level 8  
    I received a Kenwood RC-406 remote control.
    Well there is a problem, the radio does not respond to it.
    Does the operation of the remote have to be triggered somewhere in the code?
  • ADVERTISEMENT
  • #1862 21775081
    ejcon
    Level 15  
    Have you added a file to your card with the remote control codes?
  • #1863 21775099
    dawidkosciesza
    Level 8  
    >>21775081
    So added.

    Added after 3 [minutes]:

    Doesn't display any information in my monitor :/

    Added after 21 [minutes]:

    I built a simple reader on an arduino nano and there it shows the remote control codes beautifully. What could be wrong?

    Added after 2 [minutes]:

    Could it be that the sensor is not the right type? Because when I solder it and touch the pins with my finger, random values show up in the monitor.


    It works!!! It turned out that those Chinese TSOP2238 IR receivers suck. I guess they need a higher voltage to work, because on 5V on the arduino they work, but on 3.3V they are already hitting a constant voltage of 3.3V with no reaction to the remote control. I checked probably about 3 pieces.
    Fortunately I had somewhere in an old TSOP4836 module and it laughs all the way :)
  • #1864 21775199
    ejcon
    Level 15  
    Adds external style 5 and 6 support as options to run .The software is based on the latest EVO Update 3.19.52 in addition to the four files linked in the main appendix.
    As someone wants can test .Problems with FLAC and ACC continue to work badly due to FTT which samples to the Real Analyser
  • ADVERTISEMENT
  • #1865 21775223
    DJCheester
    Level 27  
    kula350 wrote:
    Hello and greetings. Can such a card reader be used? It has slightly different markings. It already has resistors on it. SD card reader module with labeled SPI pins and a separate 6-pin header


    This reader

    https://pl.aliexpress.com/item/1005005302035188.html

    I think it's the same one you showed only you can't see the underside .

    Greetings ...

    Added after 4 [minutes]:

    dawidkosciesza wrote:
    It worked!!! Turns out those Chinese TSOP2238 IR receivers suck. I guess they need a higher voltage to work, because on 5V on the arduino they work fine, but on 3.3V they are already pounding a constant voltage of 3.3V all the time with no response to the remote control. I checked probably about 3 pieces.
    Luckily I had a TSOP4836 somewhere in an old module and it's laughing all the way


    As for me the only good receivers are TSOP31238, even with fluorescent lamps at one time working without filters they did not generate crap and received correctly.

    I use only these

    https://allegro.pl/oferta/tsop31238-odbiornik-podczerwieni-tsop1738-38khz-16102901926

    Greetings ...

    Added after 1 [minute]:

    ejcon wrote:
    Adds external style 5 and 6 support as options to run .Software is based on the latest EVO Update 3.19.52 in addition to the four files linked in the main appointment.
    As someone wants can test .Problems with FLAC and ACC continue to work badly due to FTT which samples to the Real Analyser


    Nice that this software is also moving forward I have it on one radio and will be testing it tomorrow.

    Greetings....
  • #1866 21775285
    kula350
    Level 10  
    Yes that's the one. I got mine from old Arduino kits from a Chinese guy. But I don't have a description because there are others on the schematic. I've never dealt with this and have no idea how to connect it. But I will look for it. Thanks for the hint. If anyone has a spreadsheet they can drop it off, I'd appreciate it. I wasn't sure if this one worked the same as the one in the diagram. But it's now clear. Thanks again.

    I already know. I am old and blind though. Everything is on the diagram.
    3D yellow emoticon with sly smile and white gloves making hand gesture
  • #1867 21775377
    DJCheester
    Level 27  
    kula350 wrote:
    Everything is on the diagram


    And on the back on the module PCB just connect correctly, the module is powered from 3.3V not 5V you need to watch out for this.

    Greetings...
  • #1868 21775437
    Lechuuu
    Level 13  
    dawidkosciesza wrote:
    It turns out that these Chinese TSOP2238 IR receivers suck.

    I have no reservations whatsoever about this TSOP2238 (Vishay) receiver, I've been using several for a long time and they work just fine. Bought in TME. Sucks are those in metal housings
  • ADVERTISEMENT
  • #1869 21775438
    robgold
    Level 22  
    @kula350 I use such a reader on a test contact with the radio and it works. Even stable and there were no problems with it. I was supposed to put together a radio on my board for various tests but you know...shoeless cobbler etc.... ;)

    @dawidkosciesza the Kenwood RC-406 remote does not need to be programmed or a file created for it. The radio if it does not find the remote.txt file then natively accepts the RC-406 remote control codes as correct.

    As for receivers ONLY the original Vishay, no cheap arduino receivers. I have a bag of them...I fished around for some pennies one day and bought one, they are production waste, none hold pulse timing. I use TSOP34138 bought from TME, they have a large operating angle, work correctly at 3.3V. Since I fitted the first one to the radio any problems with the remote control have ended.

    @Lechuuu in the latest library patch from today (Version 3.4.4a) Wolle fixed the problem with correct redirect. I posted this interesting case to him on GitHub because indeed the address:
    https://s3.slotex.pl/shoutcast/7308/stream?sid=1 on port 443 redirects to:
    https://s3.slotex.pl:7308/stream/1/?sid=1 on port 7308 which was causing the redirect to work incorrectly.

    It's now correct from both links but you'll need to download the audio.cpp file from the latest commite, delete the compilation in sketch and do the build again if you cared about that first address. I have added the correct link to bank 3 in position 53 - Radio Kwidzyn.
  • #1870 21775535
    gaborbalint919
    Level 3  
    >>21773883
    Szia. Annyi lenne a kérdésem, hogy az SD kártya tartalom szerkesztő a webes oldalon eltünt. Az ikonja ott van, csak az SD tartalmát nem mutatja. Valamit én rontottam el?? Ez az új 3.19.52-es verzió.
  • #1871 21775624
    simw
    Level 27  
    Lechuuu wrote:
    The sucky are the ones in metal cases

    I have used these VS1838Bs many times, necessarily with an RC filter of course, and have never had any problems with them, plus they work on both 3.3V and 5V.
  • ADVERTISEMENT
  • #1872 21775712
    efi222
    Level 20  
    simw wrote:
    I have used these VS1838Bs many times, of course necessarily with an RC filter, and have never had any problems with them, plus they work on both 3.3V and 5V.

    Confirmation. Only that e.g. TSOP4838 have better sensitivity ( range ).
    The VS1838B in non-standard applications e.g. as an IR barrier receiver, is not able to receive a continuous signal, which e.g. the aforementioned TSOP4838 has no problem with.
  • #1873 21775720
    hevet
    Level 17  
    @robgold you removed the screen refresh after changing the settings

    // OLED screen refresh after configuration changes
    ir_code = rcCmdBack; // Pretend remote control commands
    bit_count = 32;
    calcNec(); // convert pilot code to original full NEC code

    so that when you change Display Mode and update the settings, the new mode overlaps with the old one.
  • #1874 21775823
    DJCheester
    Level 27  
    Ejcon works but the strange thing is that for me at the beginning when it starts up a mute comes in automatically. This is not the case with Robgold. Are you connected to the encoder? Could you unplug it for the test ?

    Instead of encoder I have 10k resistors connected to 3v3
    Under the 3 signal pins of the encoder.

    This second analyser is a bit thin

    LCD screen showing a radio station name and animated sound bar visualization

    Added after 1 [minute]:

    @ejcon as if you'd also immediately make those changes robgold writes about because the notes logo on SPIFFS is missing

    https://www.elektroda.pl/rtvforum/topic4041603-1830.html#21775007

    Greetings ...
  • #1875 21776007
    robgold
    Level 22  
    >>21775720 are you sure ?

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


    OK, I already know what you mean...it was never different there. Chick I never changed the mode via configuration :)
    Refresh works but does not clear the screen. I will correct this.

    Added after 8 [minutes]:

    @ejcon I have a suggestion that you set up a GitHub then in one place we will have everything. Easier to make a copy for yourself (Fork) and analyse changes.

    Added after 3 [minutes]:

    simw wrote:
    Lechuuu wrote:
    .... necessarily with an RC filter, of course, and I have never had any problems with them, plus they work on both 3.3V and 5V.


    What RC filter values are you using ?



    @gaborbalint919 The file editor is still there. I have not deleted it.
  • #1877 21776196
    DJCheester
    Level 27  
    ejcon wrote:
    >>21775823 Yes I have the Encoder plugged in


    And you can see what's on the encoder board because it sort of presses the button automatically which is MUTE. I only have a 10k resistor to 3v3 maybe still give a capacitor to ground, I will check that tomorrow. Other than that ok.

    Greetings ...

    Added after 7 [minutes]:

    And can you do a test without the encoder plugged in ?
  • #1880 21776221
    robgold
    Level 22  
    >>21776211 Super, I've already made myself a Fork and will be following :)
  • #1881 21776354
    dawidkosciesza
    Level 8  
    Successfully completed 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 photos with the phone don't convey the effect.
  • #1882 21776360
    ejcon
    Level 15  
    >>21776196 I don't have any RC bare plugged in encoder I made pcb 1.0 .pass-through version.I have to finish the smd pcb and I will see how the software works.

    Added after 2 [minutes]:

    >>21776354 Congrats looks great
  • #1883 21776400
    robgold
    Level 22  
    @dawidkosciesza It came out great. Envy it. I've had my Sony ST-120 decoupled and so poor it's been waiting for over a year. It was actually under it that I implemented the ADC keyboard. I am glad that you will be testing this solution. You cut out a large inscription on the display and overwrote the software versions yourself hm.... maybe that is an option for the logo version too. I have to think about it :)

    Did you use the resistor values from @DJCheester or did you recalculate your own ?

    PS. Post on the FB group yoRadio PL with a note that it's not yoRadio core.
  • #1884 21776420
    DJCheester
    Level 27  
    ejcon wrote:
    I don't have any RCs bare plugged in


    So not a module of this type ?

    https://sklep.msalamon.pl/produkt/enkoder-impulsator-obrotowy

    When I plugged it in it was ok, when I didn't plug it in it was catching the station list and changing it from time to time with Robgold's software, I added as on this encoder three resistors to the power supply and the problem disappeared, it works fine with Robgold's software, what's interesting when I replace the ESP on the same PCB and upload the software from you, the mute comes in like on the video below. There is a connector under the screen on the left side there these components are added.

    All in all, I have no logical explanation as to why Robgold's is ok after adding resistors and yours on the same PCB and also resistors is mute after switching on.

    Interestingly when I press the mute button on the remote after switching on, the voice comes back and the indicator and as long as it plays nothing happens anymore.

    A strange case....

    David the radio beautiful congratulations, and me as well as kol Robgold the subject is slow going also I have been doing my Schneider for about 9 months now but it is always something and there are more important subjects and it lies like that.

    But the PCB is done. Now it's the launch that's left and that's probably the hardest stage for me.

    Best regards...
  • #1885 21776425
    robgold
    Level 22  
    @DJCheester, I would like to point out that fellow Robgold is slow going because he is doing two jobs boy - as an electronics engineer and programmer ;)
    David you have motivated me to get this Sony tuner finished over the coming Christmas break.

    For these encoders https://sklep.msalamon.pl/produkt/enkoder-impulsator-obrotowy you absolutely have to solder 2x10n between pins A and B and GND. Unless someone has my board and soldered them there.
  • #1886 21776428
    DJCheester
    Level 27  
    Robgold, don't get me wrong, it's not an insult, I'm the same way, even though I only do one job but I'm on call, and other things take up my time, you see I have a good heart and I don't say no if something is broken, I fix it. I don't often rip off money for a thank you. And as the saying goes, a shoe shoe shines, for my business there is always time 😁.

    Best regards...
  • #1887 21776485
    ejcon
    Level 15  
    >>21776420 I have a question with which program do you convert logos? I also have to make a logo but I haven't yet figured out how to do this I would appreciate a hint.
  • #1888 21776660
    robgold
    Level 22  
    @ejcon in Gimp, the logo format is a 256x64 xbm image
  • #1889 21776712
    dawidkosciesza
    Level 8  
    >>21776400
    I found that I didn't need the software version itself on the display at startup, I had to move around a bit and shorten those "spaces" that are the data for the save cleanup and it came out nice ;)

    I used my own values because I was doing the ladder in a slightly different way to my colleague @DJCheester. I didn't connect resistors in series, just the right value for a particular button (it was easier by design). Well, and I had 17 keys to make. I assisted with ChatemGPT calculations, but noticed after assembly that there could be a little more variation in ADC values between keys. The most important thing was that it worked after configuration 😁 The old keys do their job too 😏

    I'll try to upload something to this group in my spare time 🤪
  • #1890 21776737
    hevet
    Level 17  
    @robgold 24-bit FLAC support has appeared in the audio library.
📢 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