schreibfaul1 / ESP32-MiniWebRadio

Internetradio with ESP32, I2S DAC and SPI TFT Display with Touchpad
https://www.youtube.com/watch?v=6QbPee2583o
292 stars 76 forks source link

Problems with ESP32 DevKit Board #315

Open ovidiu169 opened 7 months ago

ovidiu169 commented 7 months ago

Hello Wolle !

I am trying hardly to reproduce your magnificent MiniWebRadio. It is a masterpiece of programming ! I used for the first time Platformio IDE. I've been documented a lot about this complex platform, but I am still a newbee... So... I tried to use one of already bought ESP boards - PLUSIVO E 32 - made in China, of course. This is a ESP32 DEVKIT 1 mainly, with a flash of 4 M. After many attempts I succeed to initiate the program(with no "SD Card Mount failed" message). As I saw already this not possible without pulling resistor on D0(10K). Why ? I don't know !... You said "no pull-up resistors on SD Card". This doesn't work for me. I reduced the frequency on the card to 40000000, but still not working without pull-up resistor. In the next stage of my "experiments" I tried to control the radio using touch screen(ILI9341). No way , because the virtual buttons doesn't appear on the screen ! Taking into consideration that it would be possible to not have enough PSRAM (or isn't detected) I mounted a push button in series with the pull-up resistor on the SD card. The operation became like that:

schreibfaul1 commented 7 months ago

Hello @ovidiu169, it looks like there are two basic problems: 1) SD card The SD card is operated as SD_MMC, connected as in the circuit diagram, i.e. all pins of the SD are connected directly to the ESP32. If you use a card adapter, e.g. of the display, there are certainly series or parallel resistors. These must be removed. I assume you have the "red" display, in which case the resistors R1, R2 and R3 are short-circuited or replaced by bridges. 2)PSRAM A value greater than or equal to 2MB should be displayed in the log after booting. image If you are using the ESP32-S3 N8R8, the connection must be set to "octal" in menuconfig. Otherwise you will have a "reboot loop"

ovidiu169 commented 7 months ago

Thank you for your quick response! Yes, I have the “red” display, indeed. But I did not used the socket on it, I conected the SD card adapter separately to GPIO 2, 15,14,3v3 and ground. Maybe I should try to use the socket on the red display?!? Second. Oh, yes I am fully aware that I have to change the settings of the ESP32-S3 from Quad to Octal. But I have no ideea how to do it…🫣

schreibfaul1 commented 7 months ago

Using the SD card adapter of the display is a good idea, as long as you bridge the series resistors. Especially with the ESP32, D0 (GPIO2) is a "strapping pin" which set a pull-up resistor via SW in Setup() after the boot process.

ovidiu169 commented 7 months ago

Yes, I got it ! I will try this, of course. I just received the DAC which is a WCMCU -5102 module, based on PCM 5102a. Watching your diagram of connections I noticed that only DIN, BCK, LRC(LCK on my module) SCK(to Gnd) are connected. What about FLT, DMP, FMT, XMT ?… Are they going to ground, as I saw în a tutorial on the net ?!?… Second. I have an IR RX but not TSOP 4838. It’s a VS 1838. With it’s own remote controller. Can I use it, or it’s mandatory to be an 4838 ?!?… Thank you for your patience !😇😀

Arne65 commented 7 months ago

Hello

I use the VS1883, it works without any problems. You connect the DAC as indicated in the circuit diagram. I operate the DAC with 3.3V. One of my DACs was destroyed at 5V.

ovidiu169 commented 7 months ago

Hello Arne ! Thank you for your kind advice. I never could imagine that I could burn the DAC on 5 volts… I will do as you mentioned and I will keep you posted !😀

Arne65 commented 7 months ago

Set SDMMC to 20000000 if you need a pullup then use it. I also had a similar problem. Not every card adapter always seems to work correctly, even if you use the card adapter on the display on a display it only works without a pullup on an identically constructed one with pullup. The card must be read correctly without additional buttons or anything similar.

ovidiu169 commented 7 months ago

Hello there ! The DAC PCM5102 is not working in any configuration…🫣 I am trying a VS1053 BoB v4 from Sparkfun. But what is “XS” on the diagram ? It is maybe CS on my board ?Also I don’t have GPIO 36 on Esp32 DevKit 1.,, Which the equivalent pin ?

schreibfaul1 commented 7 months ago

What kind of DAC do you have, this board? PCM5102A Then check whether the bridges are inserted on the back.

GPIO36 is VN and GPIO39 is VP. Are you sure that your ESP32 has a PSRAM?

ovidiu169 commented 7 months ago

Hi, Wolle ! No, I am not shure about this. In the beggining the serial monitor said “no PSRAM detected”. But now I’m not receiving this message again. Weird, huh ?!?… Unfortunately I have another version of DAC. Is the same chip, but another configuration of PCB and pins. But is not working anyway. Maybe is defective from the very beggining. I ordered another one. Meanwhile I am trying to acomodate a VS 1053 BoB version from Sparkfun🫣 I never had a problem with periferals în my life. I am 63…😇

valera39 commented 7 months ago

Taking advantage of the fact that the author is present in the topic, I would like to ask: Mr. Wolle? Do you plan to please us with something new?

schreibfaul1 commented 7 months ago

Hi @valera39, it's not quite clear yet what will come. I'm still waiting for the stable ArduinoV3.0/IDF5.1. from Espressif, which is expected to be released this year. New fonts (generated with LVGL Font Converter) are planned and already tested, which require far less flash and are written to the display faster. This means that larger characters are also possible, which are a prerequisite for 480x800px displays. The VS1053 HW decoder is no longer included. Only SW decoders that offer more options, such as progress bar, jumping forwards and backwards in files.... Possibly support for the KCX BT emitter. This is controlled via UART, can send and receive Bluetooth and is available at a reasonable price.

clear-sky commented 7 months ago

hi dear wolle! please let me better understand- your new plan is switch to such displays? https://www.buydisplay.com/7-inch-lcd-screen-tft-display-module-wvga-800x480-at070tn90-at070tn92

schreibfaul1 commented 7 months ago

Hi @clear-sky, that's too much tinkering, it's only for experts, that's what I had in mind: https://www.elecrow.com/esp32-display-5-inch-hmi-display-rgb-tft-lcd-touch-screen-support-lvgl.html

ovidiu169 commented 7 months ago

Good morning everyone !!! After two days of attempts to make working both modules(VS1053b and PCM 5102a) I have to surrender myself. I tried everything possible but the result is zero, niente, nada !!! It seems that I need to have the same modules as you used. Anything else is not working!!! This is a paradox. Against of all the odds i succeeded to control the radio with a remote, but now I can’t hear anything…

IMG_7565

IMG_7564 IMG_7563 IMG_7562

IMG_7533 IMG_7566 IMG_7569

ovidiu169 commented 7 months ago

Hello, Wolle ! Sorry for bothering you with my foolish questions… but do you think it is possible to have a Broken ESP board, meanwhile I had no result with any DACs i used ?!? At least one I am sure is working(VS1053b). The other one is a weird version of PCM5102a(no, is not the version You showed before in your project). This one has a single row of pins. After I googled a lot it seems that all the pins(FLT, DMP, SCL, FMT,) are going to GND and XMT is going to 3.3V. But is not working anyway. I noticed a lot of people on the net had problems with this chip… Can I use an UDA ?!?

ovidiu169 commented 7 months ago

IMG_7574

ovidiu169 commented 7 months ago

Finally, I made it !!! I would like to thank you, everyone who helped me. All the best !!!😀

ovidiu169 commented 7 months ago

Hello there ! Is anyone who succeeded to add stations on csv. Stations file(Excell). I tried but nothing is happened. The radio plays the same stations! I added two more(no.21 and 22) and i replaced the file on the sd card. No succes! I do not know which is the cause. Also I do not imagine how else i could ediția this csv. File… IMG_7575 IMG_7576

Dudinu commented 7 months ago

Salut Ovidiu ! Am vazut ca se mai obisnuieste aici sa se raspunda si altfel decit in engleza :) Am avut si eu o experienta asemenatoare cu editarea fisierelor .csv din acest proiect; initial am folosit Excel, se pare ca rezultatul nu este tolerat de proiect, asa ca acum folosesc SublimeText, cu care nu am avut probleme si care a venit instalat cu Visual Studio Code. Sper sa fie de folos, toate bune !

ovidiu169 commented 7 months ago

Salut, Dinu !!! Ce bine ca întâlnesc in sfârșit unul de-ai noștri pe aici !!!👍 Eu am probleme mari cu proiectul ăsta. Mulțumesc pentru pista, dar te rog frumos să fii mai explicit, nu sunt un as în programare🫣.., Poți să-mi explici cum să fac, așa ca pentru un elev de clasa a cincea ?… Please !!!

Jefke1 commented 7 months ago

Enter your IP address in the web browser. Then click on the search icon. Make your selection using the dropdown menus, use the arrows at the bottom to add the station and possibly station label. Fill in the edit popup and press OK. Press the second icon station list, click save.

schreibfaul1 commented 7 months ago

Exactly, you search for your station with the "Community Radio Browser". image

With (1) you can check whether the URL works. If no logo is supplied, you can enter the URL of the image in (2) via Google Image Search. The scaling is done automatically. If everything is OK, save the logo to the SD card with (3) and transfer the station data with (4) image You will then find the new entry in the list (1). With (2) the list is transferred to the nvs of the ESP32

clear-sky commented 7 months ago

71SLcF2hH3L _AC_SL1200_ hi! this is my dac-works fine i may guess why your dac does not work you must connect 3.3v pin to voltage not vcc! if you want to use vcc pin your voltage must be 5v

Dudinu commented 7 months ago

Buna, Ovidiu ! Presupun ( din poza cu lista de canale ) ca lucrezi sub Windows; verifica in lista de programe ( Start -> Al Programs .....) daca ai instalat editorul "Sublime Text"; daca da, atunci conectezi cardul ( microSD, am vazut ca folosesti un adaptor) la PC, te duci pe fisierul Stations.csv , click dreapta pe mouse si in meniul care se deschide alegi Open With... click normal. In lista care ar trebui sa se deschida cauti si alegi Sublime Text. Solutia sugerata de Wolle mai sus ar trebui sa mearga DACA postul pe care vrei sa-l memorezi se gaseste in lista "Community Radio Browser".

clear-sky commented 7 months ago

Hi dear wolle! If you want your radio to be tested and used by many people around the world, it is better to make it so that it is modular so that parts can be obtained in different ways. It is definitely not everywhere like in Germany and many deprived countries do not have access to international stores. Maybe it's better to use adapters like ft811 and ft810 to access a higher resolution, which also gives you a good hmi and only requires one spi port. for more info please see https://github.com/RudolphRiedel/FT800-FT813 As you have seen, the parts can be found separately in the market. This module that you are considering cannot be found in local markets, in addition to other problems, for example, its sound is mono, also all the ESP32 pins are occupied, which makes further development impossible.

ovidiu169 commented 7 months ago

Bună , Dinu ! Mulțumesc pentru răspuns, tu ești foarte amabil, vrei să mă ajuți, dar eu sunt prost grămadă . Am instalat SublimeText cu care am deschis fișierul Stations am adăugat posturi , am salvat, am înlocuit fișierul pe card, dar tot nu s-a întâmplat nimic. Mai mult nu știu să fac. Nici nu știu de unde scot băieții ăștia aplicația aia cu care poți să adaugi , să editezi, etc.., Tu știi cum ajungi la ea ?… Din câte am văzut pe net, nu sunt singurul care nu înțelege . Și alții au tastat IP-ul în chrome și nu s-a întâmplat nimic… Nu apare nimic, nu ajungi nicăieri. Ori nu înțeleg eu, ori nu știu ei sa explice….

ovidiu169 commented 7 months ago

Hello, Clear-Sky !!! PCM5102 wasn’t working even at 3.3v. The only DAC which was working for me was VS1053b , both versions(including Adafruit BoB)…

ovidiu169 commented 7 months ago

Dear friends ! First of all I want to say a Big Thank you for your patience with me. Second, I am really puzzled. I introduced my IP Adddress (that on the bottom side of the ILI display) on the Google Chrome but nothing is happening. How do you reach the app named MiniWebRadio ?!?… I searched in the Community Radio Browser but I didn’t find it… IMG_7579 IMG_7578 IMG_7577

clear-sky commented 7 months ago

clear all you see in address bar and type 192.168.0.213 and hit enter

ovidiu169 commented 7 months ago

Good evening You All, Following the instructions You gave me I finally reach the MiniWebRadio App. What I solved until now:

schreibfaul1 commented 7 months ago

I can't see the graphic for the buttons. The files are on the SD card in the png folder, is this missing?

ovidiu169 commented 7 months ago

The png files are on the content of the SD card... As a preview of this issue , I told you before I have no "buttons" also, on the display. So, the files are there, but... Content_on_SD_Card.zip

ovidiu169 commented 7 months ago

Hello Wolle ! I just comment here to say the project is 90% ready. I can control and play any station from my laptop, meanwhile I did not decoded the misteries regarding the addition of new stations on the SD card. But taking into the consideration the precarious ESP32 board I had, for me is good enough. I attached two pictures with my last web radios I’ve done. One is your concept and the other one is inspired by Mr. Volos(TTGO board).

Wish you all the best !!! IMG_7587 IMG_7588

ovidiu169 commented 7 months ago

Hello everyone ! I changed the board with a ESP32 S3 N8R8. I changed the SPI RAM configuration from QUAD to Octal. I uploaded the sketch with the same credentials, but look what I got?!?.., IMG_7597

Arne65 commented 7 months ago

Connect to WiFi “MiniWebradio” under the specified IP. Then enter your SSID and password again. If that doesn't work, move closer to your router, your WiFi signal may be too weak.

ovidiu169 commented 7 months ago

Hallo Arne ! Simply, I can’t get it. I have the same router, with the same credentials(SSID and Password). Nothing was changed from previous version. My initial AP IP was another one which is working with my first version of radio. I introduced again(ssid/password) in common file and I saved it. I uploaded again on the board. Nothing !🙁 IMG_7598 working on previous radio. How this IMG_7599 was changed to 192.168.4.1(which is not opening) ?!? The router is going, I can see the networks, but is not connecting to my MiniWebadio… IMG_7601 IMG_7600

Arne65 commented 7 months ago

Is your PC connected to MiniWebradio accsespoint? Take a mobile device. Otherwise I can't think of anything else. Can you ping 192.168.4.1 on your PC if you are connected to the Accsesspoint?

ovidiu169 commented 7 months ago

I tried. Nothing is happened. It's almost paranormal. That AP is not responding at all. I don't know what to believe. ... I don't know what to do...

În dum., 26 nov. 2023 la 20:43, Arne65 @.***> a scris:

Is your PC connected to MiniWebradio accsespoint? Take a mobile device. Otherwise I can't think of anything else. Can you ping 192.168.4.1 on your PC if you are connected to the Accsesspoint?

— Reply to this email directly, view it on GitHub https://github.com/schreibfaul1/ESP32-MiniWebRadio/issues/315#issuecomment-1826865655, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEEO6ALEEGWYNB25HEFPLJLYGOEUPAVCNFSM6AAAAAA7USV4J6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWHA3DKNRVGU . You are receiving this because you modified the open/close state.Message ID: @.***>

ovidiu169 commented 7 months ago

I tried. Nothing is happened. It's almost paranormal. That AP is not responding at all. I don't know what to believe. ... I don't know what to do...

În dum., 26 nov. 2023 la 21:08, Ovi Bratu @.***> a scris:

I tried. Nothing is happened. It's almost paranormal. That AP is not responding at all. I don't know what to believe. ... I don't know what to do...

În dum., 26 nov. 2023 la 20:43, Arne65 @.***> a scris:

Is your PC connected to MiniWebradio accsespoint? Take a mobile device. Otherwise I can't think of anything else. Can you ping 192.168.4.1 on your PC if you are connected to the Accsesspoint?

— Reply to this email directly, view it on GitHub https://github.com/schreibfaul1/ESP32-MiniWebRadio/issues/315#issuecomment-1826865655, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEEO6ALEEGWYNB25HEFPLJLYGOEUPAVCNFSM6AAAAAA7USV4J6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWHA3DKNRVGU . You are receiving this because you modified the open/close state.Message ID: @.***>

schreibfaul1 commented 7 months ago

Two things to narrow down the error: 1) Does a simple WiFi example from Espressif work on the board? 2) The access data is written to the nvs. You can delete them with "erase flash", but first close the terminal, otherwise it won't work.

Arne65 commented 7 months ago

That's very surprising. You have to find the access point miniweb radio under the WiFi of your mobile device. If that's not the case, your ESP wouldn't send anything but receive nothing, which would then only indicate a defect in the WiFi area. Program a very simple one to test Wifi program on the esp and see if it works.

ovidiu169 commented 7 months ago

I tested the board, it seems to be defective !!!... It seems that it has "unsupported crystal in use"(26Mhz)... Chip is ESP32-DOWDQ6(revision 0). Could you tell me which board You use to build this radio ? I will try to find a similar one in order to check if and what I was doing wrong....

În dum., 26 nov. 2023 la 21:21, Arne65 @.***> a scris:

That's very surprising. You have to find the access point miniweb radio under the WiFi of your mobile device. If that's not the case, your ESP wouldn't send anything but receive nothing, which would then only indicate a defect in the WiFi area. Program a very simple one to test Wifi program on the esp and see if it works.

— Reply to this email directly, view it on GitHub https://github.com/schreibfaul1/ESP32-MiniWebRadio/issues/315#issuecomment-1826874182, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEEO6AJJSEUHRGZSBLU67S3YGOJFDAVCNFSM6AAAAAA7USV4J6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWHA3TIMJYGI . You are receiving this because you modified the open/close state.Message ID: @.***>

ovidiu169 commented 7 months ago

Hello Wolle !I reached no result with my boards. Three of them(ESP32 DevKit 1). I closed the terminal and I erased flash of the devices. The result is the same. It is not connecting. Eventually the IP address is changed, but nothing more. It is clear for me it’s a connectivity problem. But how to solve it?!?…I documented myself on the net and I saw a lot of people having the same problem and nothing helped to solve it…Trimis de pe iPhone‑ul meuPe 26 nov. 2023, la 21:47, Ovi Bratu @.> a scris:I tested the board, it seems to be defective !!!... It seems that it has "unsupported crystal in use"(26Mhz)...Chip is ESP32-DOWDQ6(revision 0).Could you tell me which board You use to build this radio ?I will try to find a similar one in order to check if and what I was doing wrong....În dum., 26 nov. 2023 la 21:21, Arne65 @.> a scris: That's very surprising. You have to find the access point miniweb radio under the WiFi of your mobile device. If that's not the case, your ESP wouldn't send anything but receive nothing, which would then only indicate a defect in the WiFi area. Program a very simple one to test Wifi program on the esp and see if it works.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 30 days with no activity.

zoli-iot commented 4 months ago

Hi @clear-sky, that's too much tinkering, it's only for experts, that's what I had in mind: https://www.elecrow.com/esp32-display-5-inch-hmi-display-rgb-tft-lcd-touch-screen-support-lvgl.html

Hi dear wolle!

Do you plan to support more convenient capacitive touch displays in the future alongside the traditional ILI9488? For example:

https://www.aliexpress.com/item/1005006444056879.html

thanks for answer!