logo elektroda
logo elektroda
X
logo elektroda

Internet radio and audio file player on ESP32-S3

MAJSTER XXL 101064 1230
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1081 21509588
    DJCheester
    Level 26  
    Hi but by default when power is switched on it is on or off, or if it is on where do I declare it in the code to be off when switched on.

    Greetings...
  • ADVERTISEMENT
  • #1082 21509600
    hevet
    Level 16  
    If you save in options disabled, it stays that way on startup.
    In the code it's probably this function, change it to false.
    bool timeVoiceInfoEveryHour = true;
    .
  • #1083 21510425
    robgold
    Level 20  
    @DJCheester I've introduced a whole configuration mode via the website. Now you can configure whatever you like. These settings are "permanent". They save to the SD card and the radio reads them every time you start it up. Of course, nobody is forbidding anyone from creating their own variations. That's what I make the source code available for.
  • #1084 21510426
    hevet
    Level 16  
    @robgold will you be releasing any new version in the coming days 😉 ?
  • #1085 21510458
    robgold
    Level 20  
    @hevet Yes, I made a mode to configure separate VU and scroller refresh times, and the displayMode (radio scroller, clock, fixed 3-lines) from which the radio starts. I've also made the ADC keyboard switching threshold configurations for my own purposes via the web site. I don't know if anyone besides me is still using this.
  • ADVERTISEMENT
  • #1087 21510538
    DJCheester
    Level 26  
    robgold wrote:
    I have also made my own ADC keyboard switching threshold configurations via a web page. I don't know if anyone besides me still uses this.
    .

    I will be using 😀

    Also 16 ADC buttons

    I'll be redoing Schneider's retro tuner
    Black retro Schneider tuner lying on a carpet, with control panels in the front and a DCS connector on top.

    Overall this is part of a larger retro set from the 1980s
    Stack of retro Schneider audio equipment from the 1980s.

    For this, I reworked the amplifier from another twin model, and refurbished the equipment and retrofitted the CD player in a tape recorder case (drawer)

    The whole looks like this.
    Stack of Schneider DCS audio devices from the 1980s on a carpet, with a remote on the top unit. .
    Retro Schneider audio set with an open CD tray and a remote control on top. .

    The kit is designed in such a way that you can stack the blocks on top of each other (via the DCS connector) connecting everything without cables.

    I am now planning to continue with this, i.e. to make our internet radio in an analogue radio housing.

    The Main PCB will be redesigned.
    The keyboard PCB is in the process of being created.
    PCB with 16 ADC buttons and electronic components. .

    Greetings...
  • #1088 21510617
    bolszoy
    Level 9  
    <<@hevet Yes, I made a mode to configure separate VU and scroller refresh times, and displayMode (radio scroller, clock, fixed 3-lines) from which radio starts. I've also done my own configuration of the ADC keyboard toggle thresholds via a web page. I don't know if anyone besides me is still using this.>>

    I will also make use of it. For me, a radio without buttons is not a radio, but a boombox (I think that's how it's spelled) - /obviously such a joke/.
  • ADVERTISEMENT
  • #1089 21511951
    hevet
    Level 16  
    @robgold trying to add display mode myself in options. I have it done like other options, everything writes and reads correctly. The problem is that when I change Display mode and save the config, the two modes overlap, I have to refresh the station. How did you solve this?
  • #1090 21512088
    robgold
    Level 20  
    Welcome,

    I have uploaded updates 3.17.52 Link .

    New options in the main configuration have arrived:
    Display Mode (0-2), 0-Radio scroller, 1-Clock, 2-Three lines without scroll - option in which display mode you want the radio to start up
    VU Meter Visible (Mode 0 only) - whether the VU meter should be visible in DisplayMode 0
    VU Meter Refresh Time (20-100ms) - VU meter refresh time
    Radio Scroller Refresh Time (20-100ms) - time how fast RadioScroller info should be scrolled in DisplayMode 0 mode
    ADC Keyboard Enabled - enables the ADC keyboard. Normally this is disabled unless you have a radio implementation in some tuner

    Screenshot of ESP32 radio settings with display and VU meter configuration options. .



    Additionally, by going to http://NUMER IP RADIA/adc we can configure the switching thresholds for the ADC keypad. By turning the ADC debug ON. We will get the current reading from the ADC on the OLED display. By pressing individual keys on the keyboard, we get the values to be entered into the table. The data will be saved on the SD card.
    This is an experimental function, so there is no super description of it yet. The function works ONLY if the ADC keypad is enabled in the CONFIG menu. The photo of the display shows the maximum reading because I have nothing connected to the ADC input on this radio.

    OLED display showing ADC 4227 and BUTTON 0. .
    ADC threshold settings table for ESP32 Radio with a list of buttons and values. .

    Added after 2 [minutes]:

    >>21511951 And what function on the remote control implements this ? Only without a peek into the code on Githube. Figure it out yourself :) .
  • #1091 21512097
    hevet
    Level 16  
    @robgold probably simulating the OK button 😁
  • #1092 21512109
    robgold
    Level 20  
    Missed but you are very close. OK yes it will call what you want but unnecessarily it will still want to reconnect the stream.

    Added after 6 [minutes]: .

    By the way I don't think anyone has used an encoder since the pilot was added. I do not know if you know, but until the release of this version in encoder mode volume control - click to display the station list, long hold - menu bank, it was not possible to switch the bank properly ;)
  • #1095 21512232
    hevet
    Level 16  
    @robgold thanks :) .

    As far as I can see, the screen doesn't brighten when I switch stations left - right. Is that supposed to be the case?
  • #1096 21512240
    robgold
    Level 20  
    Yes, if you know what you're doing then why brighten it up. This is due to the rebuilt dimmer function. Probably in the next version it will no longer be restricted to the SSD1322 display only.
    If you miss this, insert -> displayDimmer(0) into the station change function;
  • ADVERTISEMENT
  • #1097 21512254
    hevet
    Level 16  
    Ok, I thought there was an error, thanks for the clarification.
  • #1098 21512400
    simw
    Level 27  
    robgold wrote:
    I have uploaded update 3.17.52 Link
    .
    In this version, clicking on the station name in the browser should do what?
    With me, only the volume level is displayed, but the expected switchover to the clicked channel does not take place.
  • #1099 21512415
    gabar5
    Level 12  
    I have a St-s120 tuner I would like to use the front panel buttons, but don't know how to go about it. I've looked through historical posts, but my lack of knowledge and experience means I don't know how to go about it. What, where and how to connect to be able to read the values on pin 9?
  • #1100 21512431
    robgold
    Level 20  
    @simw should change the station to the one you clicked on. It works for me without a problem.
    Go into configurations and click "Update" because compared to the old version a few variables have appeared and maybe something is not reading correctly.
    I will maybe upload 3.17.53 later today as I found a few minor bugs mainly with encoder handling.

    @gabar5 I'm planning to start a separate project on GitHub and maybe I'll make a separate post here on Elektroda about converting such a Sony to internet radio. The keyboard on these Sony's works in the matrix, you have to unsolder quite a few components from the front panel, replace all the switches (due to their age) and solder a few resistors. I don't have it drawn up like that right now. I'll take a picture and post how it is on mine.
  • #1102 21512437
    gabar5
    Level 12  
    @robgold That would be great, I can handle the unsoldering, I have 6x6 switches so I'll embrace the replacement.
  • #1103 21512441
    simw
    Level 27  
    robgold wrote:
    Go into configurations and click "Update" because relative to the old version several variables have appeared and maybe something is not reading correctly.
    .
    I've updated, didn't help.
    I'll do a prock cleanup to start with and reconfigure everything.
  • #1104 21512446
    robgold
    Level 20  
    @simw Just working in this matrix is the advantage here. Throw in a couple of resistors so that each button generates a different value and it works.
    Red wire is 3.3V, black GND, white ADC input. This is on the radio board itself pulled up by 100k to +3.3V

    Close-up of a circuit board with a red, white, and black wire, and several resistors. .
  • #1105 21512449
    simw
    Level 27  
    robgold wrote:
    @simw Just working in this matrix is the advantage here. Throw in a few resistors so that each button generates a different value and it works.
    .
    I was more referring to the fact that you need to do more modification than just "attach the ADC to the connector to the tuner board".
  • #1106 21512458
    robgold
    Level 20  
    And this is some misunderstanding that has crept in. That's right, you have to cut out all the diodes that are on the schematic by the keypad, I soldered everything in general. In addition, under the display you need to make a cutout for the OLED connector.

    Do yourself an OTA Update and tell me if it works. Have you refreshed the page ? The browser does not keep it in memory ?
  • #1107 21512481
    simw
    Level 27  
    robgold wrote:
    Do an OTA Update and tell me if it works.
    .
    Unfortunately with me the OTA update resets the player. Strange that time there :) .
    Cleaning the memory did not help, removing the card did.
    I reformatted, but after inserting it again it is impossible to switch to another station.

    //----------------------log -------------------------------
    Firmware Update progress:0 kB
    Firmware Update progress:683 kB
    Firmware update progress:2119 kB
    Firmware update progress:3555 kB

    abort() was called at PC 0x40375d97 on core 1


    Backtrace: 0x40376926:0x3fcc9b70 0x4037edc1:0x3fcc9b90 0x40385959:0x3fcc9bb0 0x40375d97:0x3fcc9c30 0x42072d47:0x3fcc9c80 0x42069b81:0x3fcc9ca0 0x4205efff:0x3fcc9cc0 0x4205f17d:0x3fcc9ce0 0x42002b71:0x3fcc9d10 0x42002caa:0x3fcc9d60 0x4211f73f:0x3fcc9da0 0x4211f8e9:0x3fcc9df0 0x4206559d:0x3fcc9e20 0x42066054:0x3fcc9ea0 0x42066199:0x3fcc9ec0 0x420687b9:0x3fcc9ee0 0x4206882d:0x3fcc9f10 0x4206919e:0x3fcc9f30 0x4037fb3a:0x3fcc9f60
    ELF file SHA256: 28f8db9dc

    Rebooting...
    ���ESP-ROM:esp32s3-20210327
    Build:Mar 27 2021
  • #1108 21512485
    robgold
    Level 20  
    v3.17.53 on GitHub. Mainly I corrected two issues - when selecting a bank via the page, the display was showing "bushes" and station selection via the encoder. The radio was not "clearing" one flag causing the OLED to take a long time to refresh.

    Added after 5 [minutes]: .

    @simw What settings do you have in Arduino ?
  • #1109 21512490
    simw
    Level 27  
    robgold wrote:
    @simw What settings do you have in the Arduino ?
    .

    Configuration settings menu for the ESP32S3 Dev Module in the IDE. .

    Added after 11 [minutes]:

    I changed the partition scheme as it is on github and it no longer resets.


    Screenshot of the configuration menu in Arduino IDE. .

    Added after 1 [minute]:

    After loading from OTA it still doesn't change stations if the SD card is in the reader.
  • #1110 21512502
    robgold
    Level 20  
    Does everything work for you via the website?

    OK, delete the configuration files, last station file, last bank file, generally try with a clean card. You will have to click the configuration through the www. The rest should load. At most, copy the banks to a disk somewhere for a while if you have your own stations.

    Have you uploaded the icons? ICO and PNG file on the card? The browser is constantly asking the server for these two files and there will be an error in the browser console, maybe this is blocking your refresh.

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