Pushbutton Digital Input With Arduino in Tinkercad

Pushbutton Digital Input With Arduino in Tinkercad

Autodesk Tinkercad

6 лет назад

306,476 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@user-gl7qq3rc5u
@user-gl7qq3rc5u - 24.12.2023 12:26

// 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
}

Ответить
@user-gl7qq3rc5u
@user-gl7qq3rc5u - 24.12.2023 12:26

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

Ответить
@user-tj5is2qm6r
@user-tj5is2qm6r - 12.11.2023 17:21

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

Ответить
@eeemuse
@eeemuse - 04.11.2023 19:52

thanks a lot

Ответить
@sherzodamanov2994
@sherzodamanov2994 - 29.10.2023 15:36

Thank you for your all lessons.

Ответить
@rohanteach4454
@rohanteach4454 - 11.10.2023 12:41

mc bc

Ответить
@rohanteach4454
@rohanteach4454 - 11.10.2023 12:41

i really engoyed your play list

Ответить
@rohanteach4454
@rohanteach4454 - 11.10.2023 12:41

nice didi😁😁

Ответить
@jayyan109
@jayyan109 - 05.10.2023 20:30

Humpback Humpty Dumpty lookin ass ginger pubes

Ответить
@TheRealSaddy
@TheRealSaddy - 04.10.2023 22:18

this video is bad i ont understad!

Ответить
@TheRealSaddy
@TheRealSaddy - 04.10.2023 22:13

hes 5 so he doesnt rlly know how to type.

Ответить
@goo.goo.ga.ga.123.
@goo.goo.ga.ga.123. - 04.10.2023 22:13

shut the hell up

Ответить
@TheRealSaddy
@TheRealSaddy - 04.10.2023 22:13

he said he was lying in the last comment

Ответить
@TheRealSaddy
@TheRealSaddy - 04.10.2023 22:11

so sorry fro my friend

Ответить
@goo.goo.ga.ga.123.
@goo.goo.ga.ga.123. - 04.10.2023 22:10

he lyi.i9kko

Ответить
@goo.goo.ga.ga.123.
@goo.goo.ga.ga.123. - 04.10.2023 22:10

l
l
l
l
l

Ответить
@goo.goo.ga.ga.123.
@goo.goo.ga.ga.123. - 04.10.2023 22:09

ur trash keed

Ответить
@RajeshKalaShinas
@RajeshKalaShinas - 22.09.2023 13:05

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

Ответить
@mohammadqusayhairie6104
@mohammadqusayhairie6104 - 11.09.2023 06:50

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-pn1vn4in4s
@user-pn1vn4in4s - 02.08.2023 13:35

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

Ответить
@ZekiGUMUSHAN
@ZekiGUMUSHAN - 24.05.2023 14:13

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

Ответить
@dumbduckyyyy
@dumbduckyyyy - 31.03.2023 01:25

thx g
rlly helpful

Ответить
@sushruthsharma9767
@sushruthsharma9767 - 25.03.2023 18:15

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

Ответить
@baotrangia3417
@baotrangia3417 - 22.03.2023 08:22

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

Ответить
@R2ROJR
@R2ROJR - 11.02.2023 11:19

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

Ответить
@KeineStrande
@KeineStrande - 17.01.2023 21:46

Ratio

Ответить
@malekahmed179
@malekahmed179 - 12.09.2022 18:00

I HATE UR AR3A

Ответить
@bob-ny6kn
@bob-ny6kn - 18.04.2022 07:01

Clicked for Becks.

Ответить
@ArduBlock
@ArduBlock - 05.03.2022 23:17

Thanks for the great video on this.

Ответить
@firewater365
@firewater365 - 14.02.2022 00:18

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

Ответить
@mynorflores3334
@mynorflores3334 - 12.12.2021 03:38

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

Ответить
@carsonbell1368
@carsonbell1368 - 09.12.2021 01:47

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

Ответить
@GlobalHealthSI
@GlobalHealthSI - 02.12.2021 23:01

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
}

Ответить
@mking4510
@mking4510 - 21.09.2021 02:59

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

Ответить
@charmedharrid8202
@charmedharrid8202 - 09.09.2021 05:55

can u use it with 11 buttons?

Ответить
@princessabon4379
@princessabon4379 - 04.08.2021 07:20

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.

Ответить
@cking9145
@cking9145 - 21.07.2021 17:37

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

Ответить
@gman4678
@gman4678 - 19.07.2021 21:10

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

Ответить
@Futbolista22
@Futbolista22 - 06.06.2021 15:31

It sucks

Ответить
@qzorn4440
@qzorn4440 - 06.06.2021 06:07

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

Ответить
@amandosanchez1
@amandosanchez1 - 23.05.2021 14:21

i cannot click add on tinkercard

Ответить
@bigtome8093
@bigtome8093 - 12.05.2021 05:33

poggly woggle

Ответить
@dhruv3560
@dhruv3560 - 16.04.2021 17:43

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

Ответить
@hurried_coder404
@hurried_coder404 - 06.04.2021 14:08

it didnt work

Ответить
@hurried_coder404
@hurried_coder404 - 06.04.2021 13:46

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

Ответить
@ainulzuhaira7971
@ainulzuhaira7971 - 06.02.2021 07:33

I can't on of the lamp.

TQ

Ответить
@andtheywereroommates1989
@andtheywereroommates1989 - 31.01.2021 13:37

Why do I have to learn this shit in school?

Ответить
@patrickczader3995
@patrickczader3995 - 18.01.2021 03:39

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

Ответить
@foteinikark1465
@foteinikark1465 - 27.10.2020 04:37

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!

Ответить
@shot3340
@shot3340 - 24.08.2020 23:31

i am apart of anonymous i approve.

Ответить