GPIO2 as input, do I need resistor?
Posted: Fri May 08, 2015 5:58 am
Hi. Sorry for the very noon question, but I'm scared of destroy my esp8266-1 board.
Basically I have a 12v logic signal (from my home surveillance system) and I want to monitor the state of this signal with the esp8266.
Can I just shift the 12v to 3.3v with a voltage divider and connect it to the GPIO2 (I know that I can't use the GPIO0 because it may trigger the bootloader during boot) or this could damage the esp8266 GPIO2 pin?
Do I need some sort of current limitation? I'm not very expert in electronics but I think that when a GPIO pin is in input mode it should be in high impedance state... but I'm wondering if the GPIO2 is already in input mode at boot time
Thanks!
Basically I have a 12v logic signal (from my home surveillance system) and I want to monitor the state of this signal with the esp8266.
Can I just shift the 12v to 3.3v with a voltage divider and connect it to the GPIO2 (I know that I can't use the GPIO0 because it may trigger the bootloader during boot) or this could damage the esp8266 GPIO2 pin?
Do I need some sort of current limitation? I'm not very expert in electronics but I think that when a GPIO pin is in input mode it should be in high impedance state... but I'm wondering if the GPIO2 is already in input mode at boot time
Thanks!