Pushbutton Digital Input With Arduino in Tinkercad

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ค. 2024
  • Let's learn how to read a pushbutton using Arduino's digital input! We'll connect up a simple circuit using a solderless breadboard and use some simple Arduino code to control a single LED.
    Full tutorial on Instructables: www.instructables.com/id/Digi...
    and on Tinkercad: www.tinkercad.com/things/newv...
    Check out the rest of our huge collection of interactive beginner electronics tutorials, and even build circuits into your 3D designs.
    Previous lesson: • RGB LEDs With Arduino ...
    Next lesson: • Potentiometer Analog I...
    Try Tinkercad Circuits for Arduino and much more: www.tinkercad.com/circuits
    More lessons: www.tinkercad.com/learn/
    Free 3D Printing with Circuits class: www.instructables.com/class/3...
    Tinkercad is a free, online 3D design and 3D printing app for everyone.

ความคิดเห็น • 89

  • @mynorflores3334
    @mynorflores3334 2 ปีที่แล้ว

    Thanks for your help, one question what is the software that you use to record your screen and face _thanks

  • @user-pn1vn4in4s
    @user-pn1vn4in4s 9 หลายเดือนก่อน +3

    Thank you so much for the tutorial. I was programming the button wrong all along

  • @sherzodamanov2994
    @sherzodamanov2994 6 หลายเดือนก่อน

    Thank you for your all lessons.

  • @qzorn4440
    @qzorn4440 2 ปีที่แล้ว

    what a great educational voice and lecture.. i could listen for hours... thanks a lot...:)

  • @RajeshKalaShinas
    @RajeshKalaShinas 7 หลายเดือนก่อน +4

    THANK YOU VERY MUCH FOR THE EXCELLENT EXPLANATION OF CONNECTING PUSH BUTTTON

  • @arebelfromhell
    @arebelfromhell ปีที่แล้ว +1

    can you add debounce on code blocks to keep the LED after releasing the button?

  • @darrenstettner5381
    @darrenstettner5381 4 ปีที่แล้ว +4

    Thanks for the lessons. I learned a lot.

  • @kdp9078
    @kdp9078 4 ปีที่แล้ว +1

    Thank you you just solved my issue

  • @sahil___6312
    @sahil___6312 4 ปีที่แล้ว +1

    Madam with this code I had associated simple built_in led blink code and change button led to pin 4
    Problem is when I pressed the button, the 4th pin led glow but the built in led goes off
    My objective is that when I pressed the button the button led will glow else LOW,
    Simultaneously the built in led perform their standard blink code

  • @carsonbell1368
    @carsonbell1368 2 ปีที่แล้ว

    I have a project I'm doing and don't know how to do it. I have done a lot of research, but to no avail. I need a switch to turn on the LEDs, then I need a button to have 3 LEDs lit and stay lit, then with that same button, once pushed have it turn off the lit ones and light up a set of 3 other (different) LEDs and say lit until the button is pushed again and the process repeats for an additional set of 3 and then continues in that loop until I decide to turn off the power switch. if I turn the power switch back on the same ones need to be lit that were lit when I switched the power off. Is this possible? Do I need to hire someone? Is there any code available or schematic diagram. Thanks in advance. -Carson

  • @stefano.a
    @stefano.a วันที่ผ่านมา

    Do you know how I can press and mantain pressed, *two* buttons in the simulator of TinkerCAD?

  • @rotorhead26
    @rotorhead26 4 ปีที่แล้ว +3

    I really enjoyed your video. What would the code look like if I wanted to press and release a button and the LED blinks 5 times and then shuts off without repressing the button?

  • @ArduBlock
    @ArduBlock 2 ปีที่แล้ว

    Thanks for the great video on this.

  • @bansi4997
    @bansi4997 5 ปีที่แล้ว +1

    thanks for the help

  • @dhruv3560
    @dhruv3560 3 ปีที่แล้ว

    mam plz make some more videos .yr work is really grt

  • @baotrangia3417
    @baotrangia3417 ปีที่แล้ว

    Could you guide me on how to develop a code countdown 4 digit 7 seg, please!

  • @harshabayyaram
    @harshabayyaram 3 ปีที่แล้ว

    great teaching madam

  • @HPHAI375
    @HPHAI375 6 หลายเดือนก่อน

    please tell me the best place to learn tinkercad with live classes

  • @Jacobdalolman
    @Jacobdalolman 4 ปีที่แล้ว

    Help. The button can't reach across the dividing line to the pins on the other side.

  • @foteinikark1465
    @foteinikark1465 3 ปีที่แล้ว +7

    Hi thanks for the video! I am new in electronics, so I would really appreciate an answer to this question: why does the LED not turn on if I place the resistor on the righthand side of connection to pin 13 (every connection still technically remains the same). Hope that makes sense! Thanks in advance!

    • @manmathsinha8906
      @manmathsinha8906 2 ปีที่แล้ว +2

      Since this resistor is only being used to limit current through the circuit, it can actually be located on either side of the LED. Placing the resistor on the positive (anode) side of the resistor will have no differing effects from placing the resistor on the negative (cathode) side of the LED.

    • @mariakwnstantinidou9108
      @mariakwnstantinidou9108 ปีที่แล้ว

      @@manmathsinha8906 but since the current travels from positive to negative, shouldn't we connect the resistor to the anode? If I understand correctly, if I connect the resistor to the cathode of the LED the current will have already traveled causing the LED to burn. Can you help me understand if I'm wrong?

  • @patrickczader3995
    @patrickczader3995 3 ปีที่แล้ว

    do you need to add the variable? will it work if you just put read digital pin instead of buttonstate?

    • @patrickczader3995
      @patrickczader3995 3 ปีที่แล้ว

      I tried it and yes it did work so anyone whos wondering yes you dont have to put a variable

  •  11 หลายเดือนก่อน

    How to disable a button when another is active and I want to press button x and would glow led1 after that I will press stop button then led1 go off after that I will press button y and would glow led2 however I don't want to glow led1 or led2 while one of each is glowing. Pressing stop button must be mandatory

  • @KREMENAK01
    @KREMENAK01 3 หลายเดือนก่อน

    Thank you. But how to press 2 buttons in same time?

  • @ronakagarwal5594
    @ronakagarwal5594 4 ปีที่แล้ว +2

    Why did you connect resistor with the pushbutton

  • @charmedharrid8202
    @charmedharrid8202 2 ปีที่แล้ว

    can u use it with 11 buttons?

  • @Harvs008
    @Harvs008 ปีที่แล้ว

    thx g
    rlly helpful

  • @firewater365
    @firewater365 2 ปีที่แล้ว

    How can I use the button to dim up and then turn off the LED? off, 50% brightness, 100% brightness, then off.

  • @GlobalHealthSI
    @GlobalHealthSI 2 ปีที่แล้ว +1

    I press but nothing happens. My code shows LED_BUILTIN and not 13 for the output. Not sure why it is not working. Any suggestions from anyone would be greatly appreciated. Thanks.
    // C++ code
    //
    int buttonState = 0;
    void setup()
    {
    pinMode(2, INPUT);
    pinMode(LED_BUILTIN, OUTPUT);
    }
    void loop()
    {
    // read the state of the pushbutton
    buttonState = digitalRead(2);
    // check if pushbutton is pressed. If it is, button
    // state is HIGH
    if (buttonState == HIGH) {
    digitalWrite(LED_BUILTIN, HIGH);
    } else {
    digitalWrite(LED_BUILTIN, LOW);
    }
    delay(10); // Delay a little bit to improve simulation performance
    }

  • @lightsoundtips1415
    @lightsoundtips1415 3 ปีที่แล้ว

    Mam I have a request . Arduino UNO ir remote control relalyboard with inbuilt eeprom and parallel operating pushbutton control

  • @cking9145
    @cking9145 2 ปีที่แล้ว

    My Button is always "on" and I really don't get why ...
    - 5V to Button
    - diagonal pin of the button go to input pin of arduino
    - other pin of this side of the button goes to ground with an 10k resistor
    Code:
    const int signal = 11;
    void setup()
    {
    Serial.begin(9600);
    pinMode(signal, INPUT);
    }
    void loop(){
    if (digitalRead(signal)==HIGH){
    Serial.print("Ok");
    }
    }
    But it always prints "OkOkOkOk ..." without pushing the button

  • @ainulzuhaira7971
    @ainulzuhaira7971 3 ปีที่แล้ว

    I can't on of the lamp.
    TQ

  • @junhokim5322
    @junhokim5322 6 ปีที่แล้ว +1

    Thank you for always.
    Please I want to learn "blocks" of dbounce.

  • @junhokim5322
    @junhokim5322 6 ปีที่แล้ว

    Thanks

  • @gman4678
    @gman4678 2 ปีที่แล้ว

    Instead of the led, can I use a servo to move when I push the button.

    • @charmedharrid8202
      @charmedharrid8202 2 ปีที่แล้ว

      that should work if you get the code right

    • @charmedharrid8202
      @charmedharrid8202 2 ปีที่แล้ว

      i can also give you a link to a turtorial th-cam.com/video/fPrPRZlGdvA/w-d-xo.html

  • @rohanteach4454
    @rohanteach4454 7 หลายเดือนก่อน +1

    i really engoyed your play list

  • @eeemuse
    @eeemuse 6 หลายเดือนก่อน

    thanks a lot

  • @kesharkesongs4470
    @kesharkesongs4470 4 ปีที่แล้ว

    software link plzzzzzz

  • @princessabon4379
    @princessabon4379 2 ปีที่แล้ว

    Request on you next vlog ma'am Make a system that runs 5 LED and three sensors in one Arduino make a video of your output and attached it here.

  • @RG-zi5xv
    @RG-zi5xv 6 ปีที่แล้ว +3

    três biên, very Goody! Muito bem! Gut.

  • @amandosanchez1
    @amandosanchez1 3 ปีที่แล้ว +1

    i cannot click add on tinkercard

  • @mohammadqusayhairie6104
    @mohammadqusayhairie6104 8 หลายเดือนก่อน

    makseh kak tpi ada sikit yang aptut kitak perbaiki tek sebab mek ambi masa juak cri error tek tapi dh jumpa apa apa pun makseh mena mena kak mek apprieciate gilak gilak

  • @user-gl7qq3rc5u
    @user-gl7qq3rc5u 4 หลายเดือนก่อน

    My Code is Not Working, Please check if There is Some Error.

  • @sushruthsharma9767
    @sushruthsharma9767 ปีที่แล้ว

    i just did the exact same thing, still did not work

  • @pyro__pirate8499
    @pyro__pirate8499 4 ปีที่แล้ว +1

    Can I do this with 4 led’s?

  • @ramdesignlabs9595
    @ramdesignlabs9595 4 ปีที่แล้ว

    hey how do you use tincard

    • @charmedharrid8202
      @charmedharrid8202 2 ปีที่แล้ว

      if your still around and want to know reply

  • @hurried_coder404
    @hurried_coder404 3 ปีที่แล้ว +1

    i dont get please make a tutorial where you build from scrarch

  • @easimple-3d532
    @easimple-3d532 4 ปีที่แล้ว

    👌❤

  • @mking4510
    @mking4510 2 ปีที่แล้ว

    WTF!! im searching for binding push button to keyboard and i got this woman who use blocks instead of coding to do arduino!!

  • @KeineStrande
    @KeineStrande ปีที่แล้ว +2

    Ratio

  • @shot3340
    @shot3340 3 ปีที่แล้ว

    i am apart of anonymous i approve.

  • @ConnorMount-vk6ui
    @ConnorMount-vk6ui หลายเดือนก่อน

    Im getting an error because "button" was never declared

    • @ConnorMount-vk6ui
      @ConnorMount-vk6ui หลายเดือนก่อน

      Even though there was an error, probably from me, it gave me a good base to complete my project

  • @TheRealSaddy
    @TheRealSaddy 7 หลายเดือนก่อน

    so sorry fro my friend

  • @nanobot365
    @nanobot365 6 ปีที่แล้ว

    🤖👍

  • @user-gl7qq3rc5u
    @user-gl7qq3rc5u 4 หลายเดือนก่อน +1

    // C++ code
    //
    int Button_State = 0;
    void setup()
    {
    pinMode(2, INPUT);
    pinMode(LED_BUILTIN, OUTPUT);
    }
    void loop()
    {
    Button State = digitalRead(2);
    if (Button State == HIGH) {
    digitalWrite(LED_BUILTIN, HIGH);
    } else {
    digitalWrite(LED_BUILTIN, LOW);
    }
    delay(10); // Delay a little bit to improve simulation performance
    }

  • @bigtome8093
    @bigtome8093 3 ปีที่แล้ว +1

    poggly woggle

  • @TheRealSaddy
    @TheRealSaddy 7 หลายเดือนก่อน

    he said he was lying in the last comment

  • @bob-ny6kn
    @bob-ny6kn 2 ปีที่แล้ว

    Clicked for Becks.

  • @goo.goo.ga.ga.123.
    @goo.goo.ga.ga.123. 7 หลายเดือนก่อน

    l
    l
    l
    l
    l

  • @braydenbentley2047
    @braydenbentley2047 4 ปีที่แล้ว +1

    potato

  • @robedmagician2758
    @robedmagician2758 4 ปีที่แล้ว +6

    YOU SEXY BEAST!!!!!!!!!!!!!!

  • @rohanteach4454
    @rohanteach4454 7 หลายเดือนก่อน +1

    mc bc

  • @carolinejerke5861
    @carolinejerke5861 4 ปีที่แล้ว +2

    Sorry, That's definitely not the easiest way to build this simple circuit.

  • @hurried_coder404
    @hurried_coder404 3 ปีที่แล้ว +1

    it didnt work

    • @hurried_coder404
      @hurried_coder404 3 ปีที่แล้ว

      never mind got it working but you should try buildin everything from scratch in your next video

  • @TheRealSaddy
    @TheRealSaddy 7 หลายเดือนก่อน

    hes 5 so he doesnt rlly know how to type.

  • @andtheywereroommates1989
    @andtheywereroommates1989 3 ปีที่แล้ว +2

    Why do I have to learn this shit in school?

  • @giridharmaheshkar8244
    @giridharmaheshkar8244 4 ปีที่แล้ว

    Waste of time

  • @TheRealSaddy
    @TheRealSaddy 7 หลายเดือนก่อน

    this video is bad i ont understad!

  • @Futbolista22
    @Futbolista22 2 ปีที่แล้ว +1

    It sucks

  • @robedmagician2758
    @robedmagician2758 4 ปีที่แล้ว +4

    take off youre overalls

  • @rohanteach4454
    @rohanteach4454 7 หลายเดือนก่อน

    nice didi😁😁

  • @goo.goo.ga.ga.123.
    @goo.goo.ga.ga.123. 7 หลายเดือนก่อน

    he lyi.i9kko