Series Resistor With a Button?

Hello,

Is it ever considered a good idea to place a resistor in series with a button when you use a pin in INPUT_PULLUP mode? Or does it not even matter?

Thanks,

Mike

Never necessary and a waste of resistors!

Good to know, thanks!

Hmm, what if... incorrect settings on the port like high output and the button pressed?
The 1k resistor cannot hurt.

1 Like

Look at the following diagram and check if you really need a resistor in series with a switch when the internal pull-up resistor (Rip) is enabled.
led2-SW

I would say definitely not ... assuming that the reading is being taken at the bottom of Rip.

1 Like

and possible ESD protection.
The resistor cost only little and adds (little) protection. I wouldn't use this resistor (because I am careless) but adding it is not 100% waste.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.