Edzelf / ESP32-Radio

Internet radio based on ESP32, VS1053 and a TFT screen.
GNU General Public License v3.0
964 stars 227 forks source link

shutdown not working #448

Closed MHz000 closed 3 years ago

MHz000 commented 3 years ago

Hi Ed declared in Config pin_shutdown = 34
Save & Restart, source new compiled and flashed neithher set Vol = 0, Mute nor Stop resets pin 34 to GND wiring is ok What is missing, what wents wrong? Thank-you

NonaSuomy commented 3 years ago

GPIO 34-39 have no internal configurable pullup/down, you have to add a 10kohm resistor from the GPIO to 3.3V.

Edzelf commented 3 years ago

Maybe pin 34 in input only, I am not sure. Please check.

MHz000 commented 3 years ago

Ok, I'll check. In the source code? In one of the header files? Pls advice. Thank you

Am Mo., 1. März 2021 um 15:44 Uhr schrieb Ed Smallenburg < notifications@github.com>:

Maybe pin 34 in input only, I am not sure. Please check.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Edzelf/ESP32-Radio/issues/448#issuecomment-788001795, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB42SGTMF2TUEYRCGW4LMODTBOR4RANCNFSM4YMTTLAQ .

MHz000 commented 3 years ago

Nona, as output port there is no need for a pull up R Thank-you

NonaSuomy commented 3 years ago

34-39 are input only. This is not code related it is a limitation with the ESP32 hardware. I thought you were talking about a button input.

MHz000 commented 3 years ago

in main.cpp line 946: pinMode(shutdown_pin, OUTPUT);

in Config page WEB interface pin_shutdown = 34

something missing, wrong interpreted?

Am Mo., 1. März 2021 um 16:48 Uhr schrieb NonaSuomy < notifications@github.com>:

34-39 are input only.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Edzelf/ESP32-Radio/issues/448#issuecomment-788052494, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB42SGS4CWUABTOQFUFNQ43TBOZMHANCNFSM4YMTTLAQ .

MHz000 commented 3 years ago

Nona thank-you for the hint, I'm not aware of that HW limitation. *) Try to find an other - useable - pin. Maybe Edzelf will give some advice how to use the shutdown function of ESP32-Radio.

*) my ESP32 pin map GPIO34/35 is yellow colored. Are output GPIOs blue colored?

NonaSuomy commented 3 years ago

https://drive.google.com/file/d/1gbKM7DA7PI7s1-ne_VomcjOrb0bE2TPZ/view

MHz000 commented 3 years ago

using pin 7 GPIO17 => U2_TXD as shutdown works fine now! Set: pin_shutdown = 17 in Web Config page Thank-you Nona for pointing me to special HW caracteristics