Floating Pins, Pull-Up Resistors and Arduino

***If you like this, I think you’ll like the premium Arduino training we offer. Check it out here*** https://bit.ly/3nSBPUs

We designed this circuit board for beginners!
Kit-On-A-Shield: https://amzn.to/3lfWClU

SHOP OUR FAVORITE STUFF! (affiliate links)

Get your Free Trial of Altium PCB design Software
We use Rev Captions for our subtitles

Arduino UNO R3:
Amazon: https://amzn.to/37eP4ra
Newegg: https://bit.ly/3fahas8

Budget Arduino Kits:

Multimeter Options:
Amazon: https://amzn.to/3rRo3E0
Newegg: https://bit.ly/3rJoekA

Helping Hands:
Amazon: https://amzn.to/3C8IYXZ
Newegg: https://bit.ly/3fb03X1

Soldering Stations:
Amazon: https://amzn.to/2VawmP4
Newegg: https://bit.ly/3BZ6oio

►Audible Plus Free trial: https://amzn.to/3j5IGrV

►Join Honey- Save Money https://bit.ly/3xmj7rH
►Download Glasswire for Free:https://bit.ly/3iv1fql

Facebook: https://www.facebook.com/ProgrammingElectronicsAcademy/
Twitter: https://twitter.com/ProgElecAcademy
Website: https://www.programmingelectronics.com/

This tutorial talks about floating pins. Specifically, what they are, why they are unwanted and how to deal with them.


46 thoughts on “Floating Pins, Pull-Up Resistors and Arduino”
  1. Best explanation of Pull-Up Resistors I've seen. Only improvement is if you said the Arduino has one built in, and how to activate it.

  2. For me as a beginner Most easy and value providing video on yt great explaination keep going🔥🔥🔥

  3. i always see it like electrons like to take the easy path so when electorn seees a resistor avoids it when it is invetable in this case while we don't press the push botton electrons need to take the other path where there is resistor

  4. I have recently been using 2 pin instead of 4 pin pushbuttons. Do the 2 pin buttons eliminate the risk of floating?

  5. I think it would have been helpful to add that changing the input pin mode assignment from
    pinMode(Pin_Input, INPUT);
    pinMode(Pin_Input, INPUT_PULLUP);
    accomplishes the same thing and eliminates the need for an external resistor.

  6. What's the difference with this wiring and other where pressing pushbutton gives HIGH voltage and not pressing gives LOW voltage?

  7. Ok so I'm having this exact issue but instead of a button, I'm using an rc receiver. How do I stop this from happening as the rc receiver uses a pwm signal?

  8. Is it possible to implement a pull up resistor, but substitute the pushbutton with a sensor or an optocoupler?

  9. Thanks a lot. I am a begineer in electronics and this problem made me frustated many times, but after your explanation it will be very easy to solve this.

  10. thank you a lot for explaining, you need too get a noble peace prize or something for how many people you have helped!!

  11. Great explanation, nice and simple, thanks! I was having difficulty understanding the Pull-up pins

  12. Just watched multiple pull-up resistor videos. This is easily the clearest and best, thanks.
    One question please:
    Final circuit shown 9:00.
    Switch closed. I'm imagining that Pin2 is "positive" and current flows to GND. (Maybe I shouldn't be thinking like this, but either way I understand reading is LOW).

    Switch open. Current flows from 5Vpin to Pin2.
    Question – Pin2 must ultimately lead to ground for this to work right? Within the structure of the board.

  13. This is the best explanation I've seen and has also helped me understand what INPUT_PULLUP and INPUT_PULLDOWN are doing.

  14. another great expression; " Tying up the pin to a certain voltage". It draws a clearer figure in my mind than "pulling up" the pin to voltage.

  15. The one phrase that made this video different from all others, and better than all others, is "the path of least resistance." Hearing that gave me a eureka moment. Thank you so much.

  16. Im really new to this Arduino
    After watching your playlist i created my first code i want it to test with simulator Is there any Arduino simulator that can also give serial monitor…

  17. can we use the Pin_Input directly without have to define Sensor_Value in if/else statement?
    Ex: if (Pin_Input == LOW) {digitalWrite(13, LOW); }
    Will it works?

  18. I have seen a million videos on pull-up resistors. This one, like all the other ones, fails to mention why you add a resistor and not just a simple wire.
    Looks like I'll never know

  19. Thank you sir, I'm not really good at reading from the net but this video explain perfect. I love it!! subscribing. more power to you sir.

  20. This is the best tutorial i ever encountered but still a small question. After the pull up resistor is connected to 5V , isnt the connection to digital pin 2 is always gonna read High even after its pressed or not ! or am i wrong on some logic ?

  21. Can somebody help me with the flow thing, Like he said that it will find the path with the least resistance and will go to the GND in case its pressed. I want to understand how that works. Thanks

Leave a Reply

Your email address will not be published.

Captcha loading...