Hey everyone,
I found a great artice online about the importance of pull-up resistors that I thought I would share. This was useful for my project since I was using pushbuttons. I ended up using the internal 20kOhm pullups on the SparkFun RedBoard (because of limited BreadBoard space) by setting pinMode to INPUT_PULLUP
example:
pinMode(holdBtnPin, INPUT_PULLUP);
Here's the link to the article:
learningaboutelectronics.com/Articles/How-to-connect-a-pull-up-resistor.php
I hope helps anyone who didn't have a full understanding of Pull-Up resistors.
The Landing is a social site for Athabasca University staff, students and invited guests. It is a space where they can share, communicate and connect with anyone or everyone.
Unless you are logged in, you will only be able to see the fraction of posts on the site that have been made public. Right now you are not logged in.
If you have an Athabasca University login ID, use your standard username and password to access this site.
We welcome comments on public posts from members of the public. Please note, however, that all comments made on public posts must be moderated by their owners before they become visible on the site. The owner of the post (and no one else) has to do that.
If you want the full range of features and you have a login ID, log in using the links at the top of the page or at https://landing.athabascau.ca/login (logins are secure and encrypted)
Posts made here are the responsibility of their owners and may not reflect the views of Athabasca University.
Comments
Hi Darren,
This is very informative as I wanted to increase my understanding of pull-up resistors. The SIK guide was brief in its discussion on this topic. I intially thought that the pin only contained 2 states but after going through the article, it appears to be 3 states: LOW, HIGH, and floating. The floating state was a surprise as I didn't realize that the pin can go randomly between LOW and HIGH. This tells me that if I'm using a pin with a pull-up resistor, then I should clearly define the pin state.
Thanks for posting this link,
Andrew