Pull-up Resistor Circuit Schematic
by AdamStanislav - uploaded on September 27, 2017, 8:46 pm
A pull-up resistor works on the same principle as the pull-down resistor from https://openclipart.org/detail/287688/pulldown-resistor-circuit-schematic but the switch S1 is connected to the ground and the R2 resistor to Vin. So, in this case if the switch S1 is closed, electricity takes the path of the least resistance and flows from the Input pin through the 100Ω resistor R1 to the ground, thus interrupting its flow from the positive terminal Vin to the Input pin. But if the switch is open, the electricity flows from the positive terminal Vin to the Input pin through the two resistors R2 and R1. This is the exact opposite of the functionality of a pull-down resistor.
In a pull-down resistor circuit closing the switch starts the flow of electric current between Vin and the Input pin, while in the pull-up resistor circuit closing the switch stops that flow. Both circuit types are commonly used in digital electronics.
Comments
Log in to comment.
@AdamStanislav
2017-10-11 17:04:24+00I just found this video which shows when and why a pullup resistor is needed. It demonstrates it on a simple circuit built using the Arduino board. It connects a push button to an input pin on the Arduino on one end and the ground on another. And it shows how it does what it is meant to do when the button is pressed, i.e., the Arduino receives a digital 0. But when the button is not pushed, the Arduino is receiving random ones and zeros, i.e., digital noise. Adding a pullup resistor fixes the problem: Now the Arduino receives a 0 when the button is pushed and a 1 when it is not pushed:
https://youtu.be/G_i1ZhadTa0