Arduino Tutorial 14- Using a Pushbutton as a Toggle Switch

  Рет қаралды 5,769

Enjoy Mechatronics

Enjoy Mechatronics

Күн бұрын

Пікірлер: 14
@kevindegoede9144
@kevindegoede9144 Жыл бұрын
Your explanation and demonstration was very clear. When I wired up the LED and switch as you showed and entered the code it worked first time. I liked the way you entered code and the altered it as you went along. It really helped my understanding of developing code as one proceeds with the design.
@EnjoyMechatronics
@EnjoyMechatronics Жыл бұрын
Glad it helped
@nyaa2054
@nyaa2054 Жыл бұрын
Good vidio. This video explains step by step. Very understanding
@EnjoyMechatronics
@EnjoyMechatronics Жыл бұрын
Glad it was helpful!
@brothersinformation6615
@brothersinformation6615 Жыл бұрын
Why you wrote oldValue = newValue at last
@johngardiner2178
@johngardiner2178 Жыл бұрын
epic video i learn every time i follow your tutorial one more step towards my steper motoer control code with push button and limit switch controller :-) ty
@EnjoyMechatronics
@EnjoyMechatronics Жыл бұрын
Great to hear!
@mathieubannwarth7381
@mathieubannwarth7381 2 жыл бұрын
Hi! Is there a way to do the opposite? use a physical toggle switch to create a push button action? I am a total newbie when it comes to Arduino. thanks a lot
@willemidaho
@willemidaho Жыл бұрын
Another good video!
@EnjoyMechatronics
@EnjoyMechatronics Жыл бұрын
Thanks 😊
@agustin_crak5534
@agustin_crak5534 25 күн бұрын
int pinbo = 2; int state; int oldstate = 1; int led = 8; class String ledstate = "OFF"; void setup(){ pinMode(pinbo,INPUT_PULLUP); pinMode(led,OUTPUT); } void loop(){ state = digitalRead(pinbo); oldstate = state; if(state == 1 && oldstate == 1){ if(ledstate == "OFF"){ digitalWrite(led,HIGH); ledstate = "ON"; } else { digitalWrite(led,LOW); ledstate = "OFF"; } } delay(1); }
@fatahfatah8980
@fatahfatah8980 Жыл бұрын
good
@EnjoyMechatronics
@EnjoyMechatronics Жыл бұрын
Thanks
Arduino Tutorial 15- How to use the RGB LED
8:41
Enjoy Mechatronics
Рет қаралды 1 М.
Arduino Tutorial 28: Using a Pushbutton as a Toggle Switch
21:58
Paul McWhorter
Рет қаралды 301 М.
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
How to Use a Button with an Arduino (Lesson #5)
20:57
Science Buddies
Рет қаралды 113 М.
How to use Pushbuttons with Arduino. Pull up vs Pull down resistors
10:36
LONG PRESS BUTTON (WITH MILLIS) - Arduino tutorial #15
12:56
Bas on Tech
Рет қаралды 30 М.
3 Ways to power an Arduino Board - Do you know them?
9:20
Programming Electronics Academy
Рет қаралды 152 М.
You can learn Arduino in 15 minutes.
16:34
Afrotechmods
Рет қаралды 10 МЛН
DC motor PID speed control
15:29
Curio Res
Рет қаралды 259 М.
3 engineers race to design a PCB in 2 hours | Design Battle
11:50
Predictable Designs
Рет қаралды 553 М.
Scammers PANIC After I Hack Their Live CCTV Cameras!
23:20
NanoBaiter
Рет қаралды 25 МЛН
The BEST Mechanical Display You've EVER Seen!!!
13:51
Tin Foil Hat
Рет қаралды 544 М.
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН