An example of how to hook up a limit switch, read its value, and use that to turn an LED on and off
Пікірлер: 23
@danterusso63543 жыл бұрын
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!!
@hayleychristianson93245 жыл бұрын
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!
@Allahourowner2 жыл бұрын
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_tours6 жыл бұрын
Very well taught. Thank you! I was getting a lot of noise and this video eliminated that. Only one on youtube I could find.
@Googlename6997 жыл бұрын
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 ?
@anubhavsingh90494 жыл бұрын
Thanks for saving my time
@brad3463265 жыл бұрын
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.
@xtineeva65585 жыл бұрын
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.
@peteranesu88703 жыл бұрын
Thank you very much
@spiksplinter6 жыл бұрын
Thanks!
@huntingvega38765 жыл бұрын
Arduinos have internal pull ups, why would you do it externally?
@markfrancistrono90417 жыл бұрын
hi, is it possible to directly connect the limit switch without using any led?
@moussa66942 жыл бұрын
THANK YOU
@OscarSanchez-5687 жыл бұрын
when I do this my arduino turns off is it suppose to do that? I
@muhamadgofur62895 жыл бұрын
thanks u bro
@guadalupecruz27835 жыл бұрын
Do you have the scheme circuit?
@davidgreen34733 жыл бұрын
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-rj6yb6 жыл бұрын
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-tb8jr6 жыл бұрын
I also want to know. but no one answer , how sad
@philipmcgregor87406 жыл бұрын
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.
@maisamnaqvi61926 жыл бұрын
what if we want to keep the LED on after pressing the switch?
@llllllllllllllllllllllllIIIIl15 жыл бұрын
Make it if the limit switch is clicked, click = 1; Theb if (click =1) { //code } Or something like that
@discolapy4 жыл бұрын
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?