Pushbutton Digital Input With Arduino in Tinkercad

Поделиться
HTML-код
  • Опубликовано: 7 авг 2024

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

  • @redefined4657
    @redefined4657 26 дней назад +1

    Thank you for that point on the pull down resistor. Could never have figured that one out myself, tbh.

  • @user-pn1vn4in4s
    @user-pn1vn4in4s Год назад +5

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

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

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

  • @RajeshKalaShinas
    @RajeshKalaShinas 10 месяцев назад +5

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

  • @sherzod_omonov1978
    @sherzod_omonov1978 9 месяцев назад

    Thank you for your all lessons.

  • @darrenstettner5381
    @darrenstettner5381 4 года назад +4

    Thanks for the lessons. I learned a lot.

  • @kdp9078
    @kdp9078 4 года назад +1

    Thank you you just solved my issue

  • @bansi4997
    @bansi4997 5 лет назад +1

    thanks for the help

  • @arebelfromhell
    @arebelfromhell Год назад +1

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

  • @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

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

    Thanks for the great video on this.

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

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

  • @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?

  • @Jacobdalolman
    @Jacobdalolman 4 года назад

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

  • @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 2 месяца назад

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

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

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

  • @harshabayyaram
    @harshabayyaram 4 года назад

    great teaching madam

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

    thx g
    rlly helpful

  •  Год назад

    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

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

    Why did you connect resistor with the pushbutton

  • @KREMENAK01
    @KREMENAK01 6 месяцев назад

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

  • @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
    }

  • @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

  • @hphai1122
    @hphai1122 8 месяцев назад

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

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

    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

  • @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?

  • @lightsoundtips1415
    @lightsoundtips1415 4 года назад

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

  • @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.

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

    can u use it with 11 buttons?

  • @junhokim5322
    @junhokim5322 6 лет назад

    Thanks

  • @eeemuse
    @eeemuse 9 месяцев назад

    thanks a lot

  • @junhokim5322
    @junhokim5322 6 лет назад +1

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

  • @RG-zi5xv
    @RG-zi5xv 6 лет назад +3

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

  • @kesharkesongs4470
    @kesharkesongs4470 4 года назад

    software link plzzzzzz

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

    I can't on of the lamp.
    TQ

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

    i cannot click add on tinkercard

  • @mohammadqusayhairie6104
    @mohammadqusayhairie6104 11 месяцев назад

    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

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

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

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

    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.

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

    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 ruclips.net/video/fPrPRZlGdvA/видео.html

  • @rohanteach4454
    @rohanteach4454 10 месяцев назад +1

    i really engoyed your play list

  • @user-gl7qq3rc5u
    @user-gl7qq3rc5u 7 месяцев назад

    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

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

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

  • @easimple-3d532
    @easimple-3d532 4 года назад

    👌❤

  • @ConnorMount-vk6ui
    @ConnorMount-vk6ui 4 месяца назад

    Im getting an error because "button" was never declared

    • @ConnorMount-vk6ui
      @ConnorMount-vk6ui 4 месяца назад

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

  • @KeineStrande
    @KeineStrande Год назад +2

    Ratio

  • @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!!

  • @shot3340
    @shot3340 4 года назад

    i am apart of anonymous i approve.

  • @nanobot365
    @nanobot365 6 лет назад

    🤖👍

  • @user-gl7qq3rc5u
    @user-gl7qq3rc5u 7 месяцев назад +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 10 месяцев назад

    so sorry fro my friend

  • @bob-ny6kn
    @bob-ny6kn 2 года назад

    Clicked for Becks.

  • @TheRealSaddy
    @TheRealSaddy 10 месяцев назад

    he said he was lying in the last comment

  • @goo.goo.ga.ga.123.
    @goo.goo.ga.ga.123. 10 месяцев назад

    l
    l
    l
    l
    l

  • @braydenbentley2047
    @braydenbentley2047 4 года назад +1

    potato

  • @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

  • @rohanteach4454
    @rohanteach4454 10 месяцев назад +1

    mc bc

  • @robedmagician2758
    @robedmagician2758 4 года назад +6

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

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

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

  • @andtheywereroommates1989
    @andtheywereroommates1989 3 года назад +2

    Why do I have to learn this shit in school?

    • @bangstar719
      @bangstar719 2 месяца назад

      this is how every electric device is made. If civilization ended and only you and another partner would survive, you should have some base knowledge how to start new civilization from scratch! (jk. it will help you find a enigneering job)

  • @TheRealSaddy
    @TheRealSaddy 10 месяцев назад

    this video is bad i ont understad!

  • @TheRealSaddy
    @TheRealSaddy 10 месяцев назад

    hes 5 so he doesnt rlly know how to type.

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

    It sucks

  • @giridharmaheshkar8244
    @giridharmaheshkar8244 4 года назад

    Waste of time

  • @robedmagician2758
    @robedmagician2758 4 года назад +4

    take off youre overalls

  • @rohanteach4454
    @rohanteach4454 10 месяцев назад

    nice didi😁😁

  • @goo.goo.ga.ga.123.
    @goo.goo.ga.ga.123. 10 месяцев назад

    he lyi.i9kko