logo elektroda
logo elektroda
X
logo elektroda

Internet radio and audio file player on ESP32-S3

MAJSTER XXL 101313 1232
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1021 21492509
    Szaryczlowiek83
    Level 7  
    Where can I find all the OLED screen drivers implemented for the radio? Because an OLED bargain on a ssd 1362 3.12" 256x64 jumped out at me. When buying 3 they come out at £45 each.
  • ADVERTISEMENT
  • #1022 21492728
    simw
    Level 27  
    wirbud wrote:
    Ration request - can you please exclude the IR pilot definition from the main program file and move it to a file such as pilot_IR.h ?
    .
    robgold wrote:
    In terms of the IR pilot. I have a slightly different plan
    .
    What was mentioned anyone can do for themselves in 1 minute.
    Write the codes in any .h file and pull it into ino.
    The .h file itself should be in the directory with the .ino, and the Arduino will even pull it into the editor, when started.
  • #1023 21492745
    wirbud
    Level 13  
    simw wrote:
    the aforementioned can be done by anyone in 1 minute.

    Nothing the colleague has contributed to the discussion.... That's probably how we manage - well 200 peasants each time we update spend one minute on this very operation. That's 200 minutes... And if he forgets, nothing happens, but the waste of time is greater, because in order for the own pilot to work you have to perform the operation and wait for the compilation - and this takes another minute maybe two. We multiply this by the number of colleagues who want their own remote control.

    Or maybe a colleague could add voice control - OK nabu, google .... set the station "Radio Drivers"
  • #1024 21492908
    DJCheester
    Level 26  
    Gentlemen, I don't see a problem here, as my colleague Robgold makes the sources available and also explains to everyone how to compile it, so anyone can do it, after all, updates are not made every day, and those who do something with the code on their own probably compile and upload their own patches more than once anyway.

    I'll add that I have an old computer and it takes me 10 minutes to compile it, but in this time I usually do something else.

    I have the pilot codes saved in a txt file and all I have to do is replace all the lines by pasting in my own.

    For me, the project is of value because I have more than 30 years of experience in electronics, tubes, transistors, linear and digital integrated circuits, microprocessors and now ESP or microcomputers.

    I never thought that the average home electronics technician would be making such devices, electronics has always surprised me over the 30 years that there has always been something new and better, which is why I'm so into it, by the way, I'm curious to know what devices and projects will be within the reach of the home robot in 10-20 years.

    Greetings to all...
  • #1025 21493451
    rysin
    Level 12  
    @DJCheester In 10 or 20 years this electronics and displays will be imprinted into the casing, and powered by electromagnetic smog (wirelessly) like all those transponder tags.
  • ADVERTISEMENT
  • #1026 21493847
    wirbud
    Level 13  
    DJCheester wrote:
    For me the project has a value because I more than 30 so buried in electronics, tubes, transistors, linear and digital integrated circuits, microprocessors and now this ESP that is microcomputers.

    Brilliantly said ;-) It has indeed progressed unimaginably.... Yesterday I was running the OTTO robot on esp32C3.... wouldn't compile because the servo was only written to AVR.... I make a plea to AI and she corrected the library headers for me (adjusted for ESP32) (I changed the pin names myself somewhere in the code and the robot ran. My son comes home from school today and asks if we can produce these robots because 5 classmates have placed orders with him..... (and this is first class....)
    Rysin - you're probably right - the next ten years could be the biggest breakthrough we will experience and programs will be written for us by AI based on intelligence..... Unless the Russkies keep us busy with another job.....

    Added after 4 [hours] 18 [minutes]:

    does the update in recovery not work? I have huge partitions without OTA - maybe it's a bug and it has to be marked to be OTA?
    At the beginning of the upload of a new bin, it resets itself with the attachments as with a reset.
  • ADVERTISEMENT
  • #1027 21494810
    hevet
    Level 16  
    @wirbud To update via OTA, you need an OTA partition.

    @robgold in displayMode 2, third line overlaps line above bitrate info, clock etc.

    Just change the line:
    yPosition += 12; // Shift down for next line.

    at

    yPosition += 11; // Shift down for the next line
  • ADVERTISEMENT
  • #1028 21494944
    robgold
    Level 20  
    @sharyczlowiek83
    We are using the u8g2 library. You can find all the displays in the examples in Arduino or on the library author's GitHub.

    @DJCheester
    I compile with the "spiffs 3MB App/1.5MB SPIFFS" setting. There must be somewhere to put this bin file.

    @hevet
    There is an option with that 3rd line because I couldn't find a radio willing to transmit such a long stationString during testing. So this needs to be corrected. I see that you like this 3-line mode :) I would raise the whole -> int yPosition = 25; instead of squeezing the text to 11px per line. With Polish characters it will be barely legible.

    Responding to the pilot topic.
    "Throwing" the pilot into the h-file will not solve the problem because compilation of the code will still be required. I would like it to be possible to load the finished bin file and any settings would be pulled from the SD card.
  • #1029 21494974
    Szaryczlowiek83
    Level 7  
    ce8ca84e @sharyczlowiek83
    We are using the u8g2 library. You can find all the displays in the examples in Arduino or on the library author's GitHub.

    Thanks for the reply and the hint where I can find it👍.
  • #1031 21495079
    robgold
    Level 20  
    @hevet Actually Radio Łódź uses "StationString" to the maximum. Only somehow the Polish "stamps" don't decode.
  • #1032 21495096
    hevet
    Level 16  
    @robgold PR Łódź doesn't transmit Polish characters as far as I can see, they don't show up in foobar either.
  • #1033 21495107
    robgold
    Level 20  
    This is a mistake on the part of the station, because their other station, Radio Łódź nad Wartą, already has the Polish diacritics correctly set.
  • #1034 21495114
    hevet
    Level 16  
    With these Polish characters it is sometimes a massacre. Radio Zet doesn't know what standard it uses, it used to be able to have in one word, one Polish character fine, the other already some kind of bush. Although recently I think it's finally getting it right. Radio Toruń, also had some strange coding. Radio Żnin, also has some bush instead of Ż in stationString....
  • #1035 21496352
    DJCheester
    Level 26  
    Gentlemen I have bought a 5.5 inch OLED and an ESP32-S3 Uno


    ESP32-S3 kit with OLED display on a desk. .

    I have already designed a PCB version 2.0 as an overlay on the ESP controlled only by remote control and via the ;) page.

    This is how it will look like

    3D render of a PCB board with electronic components visible from the side.
    Close-up view of a purple PCB with electronic components. .

    This ESP alone for just over 20£ at the Chinese is well worth it. For commissioning you need the CH341 controller, besides that the code of the colleague Robgold is loaded onto the board without any problems.

    After uploading and configuring the hotspot, the radio on the ESP alone starts 😀

    This is evidenced by the log in the serial monitor.
    Screen capture of debugging logs on a Samsung laptop monitor. .

    Cool radio will be for the workshop big OLED + this ESP.

    The only thing is that there is no resistor 0 from the RGB diode and you will have to get rid of it eventually, because it gives the eyes.

    Best regards...
  • #1037 21496569
    DJCheester
    Level 26  
    So there is a converter and sd ?

    Well, but for our radio it's not going to be useful anyway, there's no way to rig it up yourself and connect it.

    Greetings ...
  • #1038 21496617
    rysin
    Level 12  
    @DJCheester There's a whole audio player in there, only communication is via SPI. Practical Electronics have made an internet radio out of this on their board of course, along with the ESP32S3.
  • #1039 21496633
    hevet
    Level 16  
    Only on this overlay is the VS1053B codec, not PCM5102, useless for this radio.
  • #1040 21496654
    rysin
    Level 12  
    Under this programme it is certainly not suitable.
  • #1041 21496728
    robgold
    Level 20  
    @DJCheester Connect this display. I'm curious to see the effect. I think it's the same SSD1322 controller.
  • #1042 21496843
    DJCheester
    Level 26  
    I'm also curious about the effect of the controller being the same, so far that much I know is also supposed to be green. As I find some time on my next visit to the workshop.

    Of course when I get it working I'll take pictures, the controller is the same as in 3.12 so I just need to rewire and solder the wires, this time I want to make it into a JST 7pin plug. This is how I have it designed in the PCB of this overlay.

    Greetings...
  • #1043 21498949
    DJCheester
    Level 26  
    Hi you can buy this large OLED, you just need to remove the 10k resistor marked below to run the OLED in SPI mode

    OLED PCB with a marked 10k resistor to be removed.

    I have connected the display to the programmed ESP S3 UNO

    ESP S3 UNO board connected to various cables and USB power.

    Radio running in cardless mode.

    Electronic setup with a large OLED display showing an SD card error message. .
    Two OLED displays, one larger and one smaller, connected to an ESP S3 UNO microcontroller on a table. .

    For comparison, my previous radio in pictures with OLED 3.12

    The display was a bit expensive but I think it is worth it.

    Same resolution so up close a bit big pixels but in my case the OLED will be installed high up so from a distance it will look nice.

    It's on the same driver as the OLED 3.12 so nothing in the code needs to be changed just connect the pins correctly and the 5V power supply.

    Regards...
  • #1044 21498985
    ArturAVS
    Moderator
    Here's what I'm wondering... Why would anyone need such a large display in such an application?
    By the way, does anyone have a datasheet for this 3.12"? I can't find any that make sense, and the ones in the auctions are only cursory and poorly readable.
  • #1045 21499000
    DJCheester
    Level 26  
    ArturAVS wrote:
    That's what I'm wondering.... Why would anyone need such a large display in such an application?
    .

    Well you need it because it will be viewed from about 7 metres and that's why the version of the radio being made now has no encoder just ir and Web for control.

    I have the datasheet and schematic on my computer I will look for it and send it when I am at my computer.

    Regards...

    Added after 17 [minutes]: .

    Schematic of the board from the OLED here

    Diagram of a 3.12 inch OLED board interface. Drawing of the board from the OLED here.

    The display itself, on the other hand, is here

    https://docs.rs-online.com/6267/0900766b8162af09.pdf

    Greetings ...
  • #1046 21499077
    ArturAVS
    Moderator
    @DJCheester Thanks. I think I can handle it now.
  • #1047 21499151
    Slawek K.
    Level 35  
    There is one small problem with these oleds, they are not suitable for continuous operation, the matrix will burn out where there are fairly constant pixels displayed and nothing will be seen. This is why I have weaned myself off this type of lcd :) .

    Greetings
  • #1048 21499186
    ArturAVS
    Moderator
    Slawek K. wrote:
    With these oleds
    .
    Slawek K. wrote:
    I have cured myself of this type of lcd
    .
    Then finally make up your mind, oled or lcd? They are completely different technoleogies.
  • #1049 21499205
    CodeBoy
    Level 33  
    Slawek K. wrote:
    There is one small problem with these oleds, they are not suitable for continuous operation, the matrix will burn out where there are fairly constant pixels displayed and nothing will be seen. This is why I have cured myself of this type of lcd :) .

    Greetings
    .

    You can't stop progress, I remember the first LCDs had this with the bars at the bottom with the news. they came up with moving the image by 1pixel randomly by the processor and solved the problem. Looking at the prices of small OLEDs, you can say that the problem is insignificant.
  • #1050 21499226
    Slawek K.
    Level 35  
    ArturAVS wrote:
    Slawek K. wrote:
    With these oleds
    .
    Slawek K. wrote:
    I have cured myself of this type of lcd
    .
    Then finally make up your mind, oled or lcd? They are completely different technoleogies.

    Well yes, as usual you have to cling to words, typical.
    So maybe I'll clarify, it's about the display commonly referred to as LCD, I have your permission to use such a synonym ? thank you in advance :)


    CodeBoy wrote:
    Slawek K. wrote:
    There is one small problem with these oleds, they are not suitable for continuous operation, the matrix will burn out where there are fairly constant pixels displayed and nothing will be seen. This is why I have cured myself of this type of lcd :) .

    Greetings
    .

    You can't stop progress, I remember the first LCDs had this with the bars at the bottom with the news. they came up with moving the image by 1pixel randomly by the processor and solved the problem. Looking at the prices of small OLEDs it can be said that the problem is insignificant.

    I completely agree with you :) however these OLEDs from this project are no longer so cheap :)

    Greetings
  • 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