Use GPIO0 and GPIO2 as output and input
Posted: Thu Jun 14, 2018 10:24 am
I'm new in ESP8266. I'm using ESP-01 to built a motion sensor. I use GPIO2 as input to get signal from PIR motion sensor and GPIO0 as LED indicator when motion detected. The circuit works properly when I have flashed my program using Arduino IDE and FTDI. However when I power off and then on the circuit. The circuit become not working. I have read some other posts about adding pull up resistor in both GPIO0 and GPIO2 pins. But this method seems not working.
Please kindly advise me the proper circuit diagram to overcome the above problem
Please kindly advise me the proper circuit diagram to overcome the above problem