# Does nodemcu/arduino require a current limiting resistor when connecting input pin to VCC?

The question says it all - I want to connect (possibly) VCC (e.g. via a pushbutton) to an NodeMCU input pin, and read the value (to see if the pushbutton is depressed).

If you connect VCC to ground-level (with no resistor), too much current will flow, and you risk (almost certain) damage to your board.

Does this apply to input pins?

If "sometimes", when? Is the answer the same for Arduino/Atmel? For other chips?

• A choke may help reduce supply ripple. What loads? but a current limited lab supply or an just enough brick supply will help save inadvertent faults – Tony Stewart Sunnyskyguy EE75 Jun 4 '17 at 1:19
• The chips in question are rated at 12mA (nodeMCU) and 20mA (Arduino) supply per pin; if it draws enough to ripple, the chip is going to be pretty dead anyway. – AMADANON Inc. Jun 4 '17 at 1:26
• that not what I meant, I was thinking your were driving big loads with power transistors from the board. Its pretty marginal to choose a current limit of 0.5W but I suppose possible with a lab supply on the edge of CV mode. Just dont short anything – Tony Stewart Sunnyskyguy EE75 Jun 4 '17 at 1:28
• That's my question - does connecting VCC to an input pin constitute a short? – AMADANON Inc. Jun 4 '17 at 1:37
• useINPUT_PULLUPmode instead so that you can short a pin to ground to activate; prevents floating pin errors while reducing the part count as you won't need an external resistor. – dandavis Jun 4 '17 at 2:46