arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.96k stars 4.77k forks source link

Gpio2 status at boot #2674

Closed Mazzokun closed 6 years ago

Mazzokun commented 6 years ago

Hi guys! I have sonoff 4ch and I want use a tcrt 5000 to track the pulse of a watermeter. If I connect the tcrt5000 to gpio2 after the boot everything works fine; but if the tcrt5000 is connected at boot time the sonoff doesn't boot up. Is there a way to set gpio2=0 at boot time?

MatzeJoerling commented 6 years ago

dont use water when your sonoff boots ;-) perhaps a pull down resistor? http://www.instructables.com/id/ESP8266-Using-GPIO0-GPIO2-as-inputs/

Jason2866 commented 6 years ago

GPIO2 has to be High at boot time!! If not Esp does not start. You have to take care for that if you connect anything to this GPIO

Mazzokun commented 6 years ago

What if I use GPIO1 or GPIO3 or GPIO13?

MatzeJoerling commented 6 years ago

13! 1 ant 3 used for serial ...

Jason2866 commented 6 years ago

Gpio13 is used for led in ch4 You can use GPIO 1 and 3. You have to disable serial logging

Mazzokun commented 6 years ago

Used Gpi3 and work like a charm! thank you 👍