Arduino for Beginners: Using Push button to turn ON LED light

preview_player
Показать описание
This is absolute beginners Arduino tutorial showing how to use push button to turn ON an LED light.
Download the code:

Tutorial by Ahmad Shamshiri form Canada
****************************
****************************

Get other projects code and learn Arduino
#robojax #robojax_push_button
Рекомендации по теме
Комментарии
Автор

Great tutorial! Thanks. I've watched a bunch for leds, buttons, and this one was by far the easiest to follow and provided the best results. I swapped out hard coding pin numbers for variables declared at the beginning (int BUTTON = #; and int LED = #;), but otherwise, followed it exactly and got the intended results.

scottpreston
Автор

Watching 1 tutorial is less boring compared to 12 years of education

Napoleonrevolution
Автор

thank you very much! you just helped me finished my assignment!

einnaanne
Автор

This is extremely helpful! I'm just getting into arduino and you explaining the hardware AND programing is awesome! I'm watching through your other videos now. One question I do have, is how do you determine which resistor to use for the LED? What would happen if you try to run without the resistor, would it fry the LED, or arduino, or even both? Thanks :)

MVP
Автор

Tried to add this to an already existing project, but it doesn't seem to work, so I'm probably doing something wrong. So far, I used an ultrasonic sensor and a micro servo to open a door. I'm trying to add this led which lights up when I press a button. When it's lit up, I want a buzzer to make a sound whenever someone tries to open the door, and when it's not lit up, the door opens normally. Problem is: nothing happens to my led.

jackree
Автор

3:56
the software you use to connect the cables

avocadogaming
Автор

hey mate good video but my led is constantly on and the pushing the switch does nothing..any ideas?

Mannsy
Автор

أهلاً وسهلاً ومرحباً بك-يتعذر التعليق-لا أعلم .

adilabusafa
Автор

Can U tell me how to switch it on automatically with just the program and no manual work required?

riteshlama
Автор

hi sir can you make a LED Blinking If the push button pressed ..If the button pressed again the LED Stop Blinking..pls. tnx..

jaojaopineda
Автор

Can you please show how to do this using Proteus

koffamatildadiamond
Автор

Many thanks
I have a text file stored in sd memory as follows, it consists of three columns
0'10, 0
10, 0, 0
0, 0, 10
0, 0, 0
10, 0, 0
..
I have three LEDs connected to three terminals (pins) of the Arduino, for example 7, 8, 9

How do I get a code that enables the Arduino UNO to read the text file and convert each number 10 to 5 volts on one of the three pins
Thus, it will light three LEDs sequentially according to the data stored in the SD card memory. Thank you very much

magmagth
Автор

it doesn't work. I followed the video precisely...

tomalen
Автор

My LED just wont stop constantly glowing I followed the tutorial step by step. Anybody know why?

Kailey_Neher
Автор

i did everything, and it does not work!!!! Please help robojax!!!!

mesheep