Ask MAKE: Pull-up resistor

Ask MAKE: Pull-up resistor

Ask MAKE is a weekly column where we answer reader questions, like yours. Write them in to or drop us a line on Twitter. We can’t wait to tackle your conundrums!


So what’s a pull-up (or pull-down) resistor, anyway? Well, it’s used when you’re reading an input voltage from some kind of sensor as a “default” value. Say you’re using a pushbutton with your Arduino and want to know when the pushbutton is depressed, so you connect the digital pin to ground through the button. When the button is depressed, ground is connected to the pin. But when the button is not connected, the Arduino is looking at the signal connected to that pin, which is “floating,” and therefore subject to interference and static, things that are probably not desirable in a deliberately triggered system. You need a way to keep the signal consistent, like connecting the pin to power, unless the button is depressed. Since you shouldn’t connect power directly to ground, you need a load in there to prevent a short, so you use a resistor. The Arduino pin will still read 5V even when connected to a 10K-ohm resistor, but when the button is depressed it will read the connection to ground. This is a pull-up resistor. I can remember it because I think of the pin being “pulled” up to power. If you had the circuit wired the other way around, with the pin connected to power through the pushbutton and using a resistor connecting the other side of the pushbutton to ground, this is called a pull-down resistor.

There are lots of great tutorials online for implementing simple circuits with pull-up or pull-down resistors:

15 thoughts on “Ask MAKE: Pull-up resistor

  1. sam says:

    it bears mentioning that you can activate the Arduino’s internal 20K pullup resistor by setting pinMode(i, INPUT); then calling digitalWrite(i, HIGH);

  2. MtM says:

    sometimes referred to as an “end-of-line resistor” in a large array of sensors, such as a security or fire alarm system.

  3. Sembazuru says:

    Another method of activating the Arduino’s internal 20K pullup resistor is by setting pinMode(i, INPUT_PULLUP); I don’t remember which version of the ArduinoIDE enabled that technique, but I know it works on Arduino v1+ (I didn’t get into Arduino until 1.0.3 so I’m not that clear on the development history.)

  4. parajumpers homme pas cher says:

    parajumpers homme pas cher

    Thank you! My partner and i expended in excess of one hour looking for our. htaccess document and finally discovered this on account of your personal content!

  5. nike blazer pas cher says:

    nike blazer pas cher

    That you are rightIbrahim: Search along with Google this operater: winxp_Graphic control set 945GMLit works okay along with your LG ELECTRONICS R400 laptop computer I highly recommend you assist me to while our Bluetooth enabled is not really working.…

  6. timberland uk says:

    timberland uk

    We have realized several essential things via your own personal article. I may like to be able to that there is often a circumstance when you may make application for a financial loan without have to have a co-signer like a Authorities College student…

  7. louboutin femme says:

    louboutin femme

    To discover a seeking having a important data file as well. I actually sent that and also duplicated it over to discover that would not function. Now I can not may help crucial We extra. Perhaps you have experienced just about any good luck with ssh ke…

  8. manteau parajumpers pas cher says:

    manteau parajumpers pas cher

    Wendy as well as Rick, we are not necessarily talking about Atmosphere as being an INTERNET SERVICE PROVIDER, i’m simply talking about Sky’s software program that they can offer for you to shoppers which have a broadband internet relationship known a…

  9. Nike Air Max 90 Hombre says:

    Nike Air Max 90 Hombre

    i would like to indicate that the data is continued most travel, which means this int actually a web backup option It can continue to a “backup” because from the replicate within your data and it’s also maintained “online” for the DropBox servers.…

  10. Nike Air Max Zapatos says:

    Nike Air Max Zapatos

    Man, I absolutely treasured reading this article article. You may have certain us to subscribe to the site, nevertheless where can I find typically the RSS feed?

  11. parajumpers soldes says:

    parajumpers soldes

    Hi We are creating that you simply super gang of fantastic performers and listen to you the good expertise anyone stunning noises mix jointly and once I had fashioned time to ever check out North america and speak to less complicated this just one sign…

  12. zapatillas nike air max says:

    zapatillas nike air max

    Hello there George, I would rather that individuals come across it in its indigenous environment from the GetListed. org Useful resource location rather than in third-party personal blogs. I understand that runs table to the majority of recommendations…

  13. air max 1 pas cher says:

    air max 1 pas cher

    Grooveshark really does advise songs to air max 1 pas cher you according to air max 1 pas cher whats actually inside your playlist when you click on the broadcast butto air max 1 pas chern in addition to air max 1 pas cher never influence the genre.

  14. nike air max pas cher says:

    nike air max pas cher

    Don’t squander your time and efforts using this type of url, totally unrelated to be able to talk.

  15. Nike Air Max 90 says:

    Nike Air Max 90

    Hey, Ive only asked for the migration code type america online high speed to ensure that we can sign up for sky greatest extent, in studying these messages i think i might made a miscalculation. There are not got our mac pc computer so have certainly n…

Comments are closed.

Discuss this article with the rest of the community on our Discord server!

Becky Stern is a Content Creator at Autodesk/Instructables, and part time faculty at New York’s School of Visual Arts Products of Design grad program. Making and sharing are her two biggest passions, and she's created hundreds of free online DIY tutorials and videos, mostly about technology and its intersection with crafts. Find her @bekathwia on YouTube/Twitter/Instagram.

View more articles by Becky Stern


Maker Faire Bay Area 2023 - Mare Island, CA

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 15th iteration!

Buy Tickets today! SAVE 15% and lock-in your preferred date(s).