2 - Control an LED with a limit switch

  Рет қаралды 32,750

David Dobervich

David Dobervich

9 жыл бұрын

An example of how to hook up a limit switch, read its value, and use that to turn an LED on and off

Пікірлер: 23
@danterusso6354
@danterusso6354 3 жыл бұрын
I know that this was some time ago. But, as someone who is older and just finding these Arduino tutorials for the first time, I am incredibly grateful for your efforts and for sharing your skills with the rest of the world! Thank you!!
@hayleychristianson9324
@hayleychristianson9324 5 жыл бұрын
Spent literally hours trying to get this switch running, checking other videos and datasheets, and only now am I seeing that the 10k ohm resistor was necessary. Thank you so much for being the god you are!
@Allahourowner
@Allahourowner 2 жыл бұрын
I had been searching for this for hours now and i cant thank you enough for this, Great Video and very well explained. Thank you once again.
@360_tours
@360_tours 6 жыл бұрын
Very well taught. Thank you! I was getting a lot of noise and this video eliminated that. Only one on youtube I could find.
@Googlename699
@Googlename699 7 жыл бұрын
Thank you very much for the circuit and for the code. but one more think i want to ask you . why you did not connect the third pin ?
@anubhavsingh9049
@anubhavsingh9049 4 жыл бұрын
Thanks for saving my time
@brad346326
@brad346326 5 жыл бұрын
1:59 was waiting for you to depress limit switch lol Dead short to ground as the limit switch has zero resistance. Good thing you put that resister in place to act as a load.
@xtineeva6558
@xtineeva6558 5 жыл бұрын
hi sir how are you?. we saw and tried your tutorial and we put some buzzer on it and it works. i just wanted to ask if you have a circuit diagram for it? we just wanted to use it as a reference for our project. it will be a big help. thanks and more power.
@peteranesu8870
@peteranesu8870 3 жыл бұрын
Thank you very much
@spiksplinter
@spiksplinter 6 жыл бұрын
Thanks!
@huntingvega3876
@huntingvega3876 5 жыл бұрын
Arduinos have internal pull ups, why would you do it externally?
@markfrancistrono9041
@markfrancistrono9041 7 жыл бұрын
hi, is it possible to directly connect the limit switch without using any led?
@moussa6694
@moussa6694 2 жыл бұрын
THANK YOU
@OscarSanchez-568
@OscarSanchez-568 7 жыл бұрын
when I do this my arduino turns off is it suppose to do that? I
@muhamadgofur6289
@muhamadgofur6289 5 жыл бұрын
thanks u bro
@guadalupecruz2783
@guadalupecruz2783 5 жыл бұрын
Do you have the scheme circuit?
@davidgreen3473
@davidgreen3473 3 жыл бұрын
I am having a problem. I copied as you have illustrated but the pin value always stays a "1" even when switch is pressed. What could be wrong?
@sb-rj6yb
@sb-rj6yb 6 жыл бұрын
There are 3 PINS C, NO, NC. can you tell me why c is not connected to GND instead you connected it to 5v right..? please mention how to connect you havent tell pin names like C, NC, NO
@Kevin-tb8jr
@Kevin-tb8jr 6 жыл бұрын
I also want to know. but no one answer , how sad
@philipmcgregor8740
@philipmcgregor8740 6 жыл бұрын
C is common, NO is Normally Open, and NC is Normally Closed. So you can run the active/positive connection through C, it will switch between NC and NO when the button is pressed and depressed. NO will have no current when the button is not pressed, but when pressed it will have current. NC is the opposite, it will have current when the button is not pressed, and no current when the button is pressed closed.
@maisamnaqvi6192
@maisamnaqvi6192 6 жыл бұрын
what if we want to keep the LED on after pressing the switch?
@llllllllllllllllllllllllIIIIl1
@llllllllllllllllllllllllIIIIl1 5 жыл бұрын
Make it if the limit switch is clicked, click = 1; Theb if (click =1) { //code } Or something like that
@discolapy
@discolapy 4 жыл бұрын
Thanks for the video! It was useful for me in order to construct my "Bimbo V.1" device: kzbin.info/www/bejne/rJjJdIypnr90oac By the way, what do you think it is actually good for?
3 - Serial communication overview
1:35
David Dobervich
Рет қаралды 284
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 10 МЛН
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 188 МЛН
Каха заблудился в горах
00:57
К-Media
Рет қаралды 9 МЛН
limitswitches
11:23
Wosag
Рет қаралды 37 М.
Limit Switches and E-Stops, The Ultimate Guide
31:16
BuildYourCNC
Рет қаралды 25 М.
Arduino with TB6600 using AccelStepper library
27:33
Curious Scientist
Рет қаралды 67 М.
Arduino Timer Interrupts tutorial
19:05
eTech Tom
Рет қаралды 123 М.
Stepper Motors and Arduino - The Ultimate Guide
29:57
How To Mechatronics
Рет қаралды 1,1 МЛН
Arduino - Turn LED On and Off With Push Button
23:33
Robotics Back-End
Рет қаралды 114 М.