Это видео недоступно.
Сожалеем об этом.

The Simplest Way to Wire a Button to Arduino (with Internal Pull-Up) | Arduino Button Tutorial

Поделиться
HTML-код
  • Опубликовано: 18 авг 2024
  • This is a tutorial for wiring a button to Arduino. If your wires are short then you don't need to add an external pull-up or pull-down resistor since Arduino has internal pull-up resistors that can be activated in code by calling pinMode(pinNumber, INPUT_PULLUP);
    Diagrams and pictures:
    circuitjournal...
    Music from RUclips audio library.

Комментарии • 26

  • @MikevomMars
    @MikevomMars 9 месяцев назад +1

    Finally, someone who explains the SIMPLE and most common way to use pushbuttons - without making it unnecessary complicated 👍

  • @nickgennady
    @nickgennady 3 года назад +8

    Wow, you did this better than anyone else. It's a lot much simpler setup not using 3 wires or resistors.

  • @STEAMChannelOfficial
    @STEAMChannelOfficial 4 месяца назад

    Exactly what I was looking for! Most of the other tutorials required resistors but I didn't have space for them, so I tried looking for other tutorials and found this one!

  • @ScaryLasers
    @ScaryLasers 19 дней назад

    FINALLY LOL simple concise, thank you

  • @naushad.kausar
    @naushad.kausar Год назад

    Man you're a Genius!!!! You did this better than anyone else. Thanks mate !

  • @Allazander
    @Allazander 7 месяцев назад +1

    Thank you. I'm trying to learn and am working on a project using stepper motors. I want to set things up so that the steppers don't immediately start moving when the arduino is powered up, using an on off switch. Switch on, no movement, switch off, steppers start moving as directed by the code. The switch is basically a pause button. I have the code correct (I think) but wasn't sure how I needed to wire up the switch. This method will be easy to wire into my project, with no breadboard or circuit board required, just short wires from the switch to the arduino.

  • @aklstreak
    @aklstreak Год назад

    That is exactly what I was looking for! Thanks a lot! Works like a charm in my project.

  • @Ambishooter
    @Ambishooter Год назад

    Thank you for your explanation. This is a great example!

  • @TheReloader
    @TheReloader 2 года назад

    Thanks for the quick info!

  • @anglingaddicts4951
    @anglingaddicts4951 4 года назад +2

    This was a good video, thanks.

  • @LevyCarneiro
    @LevyCarneiro 2 года назад

    Excellent video, exactly what I was looking for. Thanks!

  • @SantaDragon
    @SantaDragon Год назад

    Thanks for tutorial. A electro magneic sealed wire would have worked as well, right?

  • @ponnalasandeep5389
    @ponnalasandeep5389 2 года назад

    Tq for this video this is what happening in my home automation with arduno with me

  • @SenorSaki
    @SenorSaki Год назад

    Is there a way to calculate the value of resistor I need for a long wire to the button? I'm expecting to use about 30ft but may be longer. Its not ideal, but unavoidable for this particular project.

  • @adriandalihernandezrueda2862
    @adriandalihernandezrueda2862 3 года назад

    Thanks I see other videos and only u know how to do easy

  • @FPChris
    @FPChris 3 года назад

    how would you do a button press on an interrupt using the internal pullup?

  • @yupingliao4078
    @yupingliao4078 4 года назад +3

    good

  • @aldomeza-dev
    @aldomeza-dev 2 года назад

    Is it safe to use 3 buttons without resistors?

  • @ts95hk
    @ts95hk 3 года назад

    Great video! If my GND wire is also long does it also need resistors?

    • @IndrekL
      @IndrekL  3 года назад +1

      No, since the point of the GND wire is to pull the signal to the GND.

  • @ThisHandIelsTaken
    @ThisHandIelsTaken 3 года назад

    thumbs up...thanks alot

  • @janmenzinga
    @janmenzinga 3 месяца назад

    Hi Indrek, I like your videos very much. Can we get in touch? I'm a hobbyist as well as it concerns Arduino and 3D-printing. I have some challenges!

  • @MuhammadAwais-jh2dy
    @MuhammadAwais-jh2dy Год назад

    I don't underrated like button connected between input and ground please ssay again 😊

  • @kim_a18
    @kim_a18 3 года назад

    Hello sir!! What will happen if I use long wire cable for input signal? How to fix it?