schreibfaul1 / ESP32-MiniWebRadio

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

How to connect ESP32-S3-Wroom-1 with N16R8 #408

Closed tzvetan65 closed 2 months ago

tzvetan65 commented 4 months ago

Hello everyone, I decided to replace the ESP32 D32 with the ESP32-S3-Wroom-1 with N16R8, but the resulting devboard has a different pineout. Screen Shot 04-30-24 at 10 41 AM Screen Shot 05-06-24 at 09 41 AM Screen Shot 05-06-24 at 09 44 AM How should it be connected?

clear-sky commented 4 months ago

esp32 working and tested wiring for s3 can be found here:(line 88 #ifdef CONFIG_IDF_TARGET_ESP32S3) https://github.com/schreibfaul1/ESP32-MiniWebRadio/blob/master/src/common.h

tzvetan65 commented 4 months ago

Hello, can no one help? I cannot understand how to connect this ESP with DAC and the display. Which conclusion to who is in line with. Please help, I want this radio!

Arne65 commented 4 months ago

image maybe this will help you

tzvetan65 commented 4 months ago

Hello, Something weird, I don't see the answers under my question. When I write a new comment, I see an answer from before, I delete the comment as an out of date and the answer disappears. I apologize to the answers, I just don't see your answers, I don't know if the problem is on the site, it happens to me for the first time.

Jimbobnz commented 4 months ago

I'm I needing to update the code to reflect the image above? //ESP32-S3

define I2S_DOUT 9 / DIN connection /

define I2S_BCLK 3 / BCLK Bit clock /

define I2S_LRC 1 / WSEL Left Right Clock /

tzvetan65 commented 4 months ago

I'm sorry, but I can't help. I'm not doing well with the software when I have a problem and I ask here. I hope someone will answer, greetings and success.

schreibfaul1 commented 4 months ago

The pins in the CONFIG_IDF_TARGET_ESP32S3 section in "config.h" are only suggestions. You have much more freedom in the choice of pins than with the ESP32. What exactly is causing you difficulties?

tzvetan65 commented 4 months ago

Have I correctly understood the Arne65 scheme, should the T_CS connection be removed with SCK and connect T_DO to SDO (MISO)? Is that how it has to connect display to ESP32S3 ? Screen Shot 01-25-24 at 06 28 PM

Arne65 commented 4 months ago

Hello make the bridges as in the original schema.Bridge SPI_SCK with SCK and of course SPI_MOSI with SOI(MOSI) as shown in the original schematic.

You can assign the pins like in common.h

This definitely works.

With the ESP 32-S3 you are more independent when it comes to pin assignment than with the ESP 32 S2 .

schreibfaul1 commented 4 months ago

Exactly, T_CLK and SCK must be connected. MISO from the TFT can also be connected, unless you have this display https://github.com/Bodmer/TFT_eSPI/discussions/898

tzvetan65 commented 4 months ago

Thanks for the quick answers. Have I correctly realized that there should be three bridges SDO(MISO) to T_DO SDI(MOSI) to T_DIN SCK to T_CLK

Arne65 commented 4 months ago

You only need

DI(MOSI) to T_DIN SCK to T_CLK

What kind of display do you use?

tzvetan65 commented 4 months ago

My display is 3.2 TFT SPI 240x320 V1.0. Maybe I'm misleading this scheme. Thanks. Screen Shot 02-03-24 at 03 42 PM

Arne65 commented 4 months ago

image

This might be helpful for you. There are only two bridges. Pin assignment original common.h

The first schema is not mine but rather from another user.

tzvetan65 commented 4 months ago

Thank you, it's so much more understandable.

tzvetan65 commented 4 months ago

When the radio is switched on, it loads the home screen and starts flashing - screen, dark, screen, dark ... I don't know if I explained it well, I don't accept a video here. What can be the reason for this restart?

Arne65 commented 4 months ago

Send the output to the serial monitor, maybe you can see more. All pins connected properly and voltage is correct?

tzvetan65 commented 4 months ago

I'm sorry, I don't know how to do it. For the first time I work with Arduino and everything is new and unknown to me.

tzvetan65 commented 4 months ago

Work !!! The Arne65 was right, the problem is in the supply voltage. Strange, the power source and the multimeter show me 4.95 volts, and I have 4.45 volts on the board. I have a question about ESP32, the RGB led shines very bright, the PWR red led shines normally, and the TX green led blinks barely visible. Is it normal? Or there is a problem with the module? Screen Shot 05-19-24 at 11 57 AM

Arne65 commented 4 months ago

The RGB LED is very bright on the boards, so that's normal, but in my opinion it's nonsense - no one needs a "headlight" on the boards.

Normally you should measure around 3.3 V after regulation.

Input voltage 5V after the voltage regulator 3.3V.

tzvetan65 commented 4 months ago

Yes, at a voltage of 4.45 volts after the regulator I had 3.2 volts. I raised the supply voltage to 5.2 volts and now after the regulator I have 3.3 volts. There is now another problem - with an increase over 8 radio restarts, although the supply voltage does not fall and consumption is about 250 miliampers.

Arne65 commented 4 months ago

Serial Monitor

Start the serial monitor, maybe you can find out where your problem is

tzvetan65 commented 4 months ago

I turned on the serial monitor, in the command of the amplification or reduction of the sound, everything turns red. I do not understand what it means, but with a serial monitor, I strengthen it to 21 and do not restart. After the serial monitor is switched off, it restarts again with a reinforcement exceeding 8. Screen Shot 05-19-24 at 08 43 PM Screen Shot 05-19-24 at 08 44 PM

schreibfaul1 commented 4 months ago

I wonder if you are using an external DAC with I2C control, like ES8388. If you have a DAC without I2C, e.g. PCM5102, the pins I2C_DATA and I2C_CLK in common.h must be set to -1. If you do have an I2C DAC, then the wiring (SDA/SDC) is wrong.

Arne65 commented 4 months ago

Are you using an SD card adapter? I think you have write protection turned on

tzvetan65 commented 4 months ago

My DAC is PCM5102, do I have to change values here? I tried a locked and unlocked card, the effect is the same. But I have a problem with the card, I upload new stations, but they can't play.

schreibfaul1 commented 4 months ago

If you do not have an audio board (AI Thinker , Lyra, Olimex), set image to 1 to deactivate I2C. For PCM5102A, DECODER = 1 must be set in common.h.

tzvetan65 commented 4 months ago

I changed the Decoder setting = 1 but my restart remained. Did I correctly set the type of ESP in Platformio.ini. Why is this getting this? Screen Shot 05-19-24 at 10 08 PM Screen Shot 05-19-24 at 10 00 PM

schreibfaul1 commented 4 months ago

You probably have an ESP32-S3, so please set this in the taskbar image

and then send a log of the restart

tzvetan65 commented 4 months ago

I changed the appearance of the board, but the restart remains. How to upload Log of the Restart? When the serial monitor is turned on, there is no restart, can it really be a power problem? Screen Shot 05-19-24 at 10 51 PM

Arne65 commented 4 months ago

You have to press the reset button :)

tzvetan65 commented 4 months ago

I'm sorry for the panic, the reason for the restart was the power source. It clearly causes any interference to the ESP32. With another power supply works well. The next problem is communication with SD card, I add new stations, they are recorded on the card, but some of them radio does not choose them. It just doesn't change the station. I tried an unlocked and locked card, with and without a pullup resistor but no result. Any idea for this problem?

tzvetan65 commented 4 months ago

Give at least some joker. What is the difference in recording and reading from the SD card? Why does he record and not read the records? Or are the records incorrect and does not recognize them? Screen Shot 05-24-24 at 08 33 AM

tzvetan65 commented 3 months ago

Come on, has no one had such a problem? Why are the stations recorded on the card and not read? Help please!

steve6375 commented 3 months ago

So if you press Save and then Load and then Save xlsx, are the stations are all in the saved xlsx file? if you load the xlsx file is the list is correct? If you reset esp32, are the stations selectable now? Can stations be selected and played on web GUI? Can stations be selected and played on TFT screen GUI? Give more details of the problem If others have the problem it would have been reported

tzvetan65 commented 3 months ago

Hello, The new stations are recorded in the xlsx files and in the SD card, but they are not selected and reproduced. In my opinion, the recordings are correct, but I do not understand enough. I also restarted the restart button and the power, but nothing changes. The stations cannot be selected and played through the TFT or GUI interface. Only some new stations can be selected and reproduced, but I don't understand what the reason is. I have surrounded the newcomers to the attached screenshots. Screen Shot 06-05-24 at 07 50 AM Screen Shot 06-05-24 at 07 51 AM Screen Shot 06-05-24 at 07 49 AM

steve6375 commented 3 months ago

Maybe you can upload here your xlsx file and someone can try it?

tzvetan65 commented 3 months ago

Thanks Steve6375, your last comment has helped me understand what is happening. I tried to upload Stations.xlsx and did not find a file with this extension. It turns out OpenOffice saves the file with an extension (.ods) because, you see, it was a newer format. I recorded the file in the correct format and everything worked. Thanks!

github-actions[bot] commented 2 months ago

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

github-actions[bot] commented 2 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.