In this post, we will discuss how to use internal pull-up resistor in arduino uno. It's quite simple.
No need of using external pull-up resistor.What is pull-up resistor?
First, we will find what pull-up resistor is and why it is used.
In many microcontroller, there are no internal pull-up resistor. For example: In 8051, there are four IO ports. Port0 has no internal pull-up resistor. Therefore, it requires external pull-up resistor.
In arduino, the moment we define any pin as input it will attain tri-state. Tri-state is a state between logic low and logic high. We must remove this condition. Some microcontrollers have built-in internal pull up resistor while some has not.