What are pull-up and pull-down resistors?

      2 Comments on What are pull-up and pull-down resistors?

no-pull-up
Let’s take that example. If we try to read the voltage at v1, with our ATtiny micro-controller, surprisingly we can’t tell what the voltage will be.
It may be at 0 Volts, sometimes, and 2.9 Volts or 4 Volts at other moments.
It’s voltage is undefined and varies depending on what surrounds it, like any electromagnetic field.
This is what is called high impedence.
Of course, if you push the button, then V1 will be at 5V but you will also short the power source and it can be very dangerous!

Pull-up and pull-down resistors are used to have a defined voltage in an open circuit.

Pull-up resistor

Now, what if we want to have V1 at 5 Volts as long as the button is not pushed?
Well, we need to introduce a pull-up resistor like in this:
pull-up

Now, with that pull-up resistor, the voltage at V1 will be of 5 Volts as long as the button is not pressed.
Once we press the button, the voltage at v1 becomes 0 Volts since it is now connected to ground and the pull-up resistor takes all the voltage for itself!

Pull-down resistor

You may now have an idea of what a pull-down resistor is about.
Exactly! It’s used to make sure the voltage at V1 will be at 0 Volts as long as the button is not pushed.
Look at this diagram and see how the pull-down resistor is not located at the same place as the pull-up resistor was.
pull-down
That’s the trick!

So, what we need to remember is that:
– A pull-up resistor is used to have a (logical) high voltage when the circuit is open.
– A pull-down resistor is used to have a 0 Volts voltage when the circuit is open.

2 thoughts on “What are pull-up and pull-down resistors?

  1. Pingback: Adding Pins To Your Arduino Using I2C And A PCF8574P Chip | Francois' Corner

  2. Pingback: Using A Real-Time Clock (RTC) – NXP PCF8563P – With An Arduino | Francois' Corner

Leave a Reply

Your email address will not be published. Required fields are marked *

Comments Protected by WP-SpamShield Spam Plugin