2 limit switches wiring using same pin Arduino
Вставка
- Опубліковано 1 гру 2017
- 2 limit switches wiring using same pin Arduino
void setup() {
Serial.begin(9600);
// put your setup code here, to run once:
pinMode( 7 , INPUT );
pinMode( 13, OUTPUT); // LED FOR TEST
digitalWrite(13,LOW);
}
void loop() {
// put your main code here, to run repeatedly:
if( digitalRead(7) == LOW ){
digitalWrite(13,HIGH);
}else{
digitalWrite(13,LOW);
}
} ::::::::::: SUPPORT CHANNEL ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Please Donate To Help Me Afford New Equipment And Software To Make My Videos More : goo.gl/1m8Dg2
Don't forget to subscribe! - Наука та технологія
Thanks for the video! Don't forget to put your camera on "AFS" -> Auto Focus Single -> Will autofocus 1 time and keep that focus. Your camera seems to be on "AFC" -> Auto Focus Continuous -> Will keep autofocussing on every new object in frame so your camera keeps jumping focus.
Nice one
From iraq
Thanks very much
Koko Laemon mopooioiop99ioopojm joooolkkokoookkjkkkokkkkkkkkkkkkkkkkkkkkkkkkkkklkkkkkk,kkk,,kkkk,kkkkkķkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkklkkkkkkkkkkkkkkk😇😋😋😊😋😊😊😉😆😅😅😄😃😂😁😀🤗🙂🙂☺😚😙😗😘😍😎😎🤐😮😮😥😣🐘🐘7
Andrianto Tekidanto
психиатр плачет по тебе ... Сходи , полечи голову !
The layout in the video was very hard to see. A schematic would be very helpful.
Gamit po kayu, ibang kulay Ng wiring para mas madali intindihin. Ty
How do you get the LED to stay on after you've released the switch?
Each limit switch will turn on the LED, hold them both down and release one and the light stays on
Hello Friend.
I am in the project of updating a laser cutting machine. Could you help me with the wiring for the X and Z limit switches? I have a map of the card. Is it possible to send it to your email to help me? It would be something that I would really appreciate!
How to control servo motor with 2 limit switches using Arduino?
How read limit switch induvially
I need the daigram for this please
انا عايز اعرف القطعة الحمراء مهمتة اية
3 pin switch why 02 pin setting. Please help me.
On the bottom of the switch, one is for NO(Normally Open) the other is for NC(Normally Closed) the one on the side is for the ground.
what different with push button…🙄
"2 limit switches wiring using same pin Arduino" Don't
Don't do this. If you want to go left but the linlit switch on the right is pressed then it won't go left because the arduino doesn't know it's getting the reading from the wrong switch. Always use separate pins. If it is a "running out of pins situation then use a I2C I/O pin board.
Please provide code
That's just two switches in parallel, nothing special. It would be better to differentiate between the two switches by maybe using a different value resistor on each switch and going into a single analog input and depending on the value be able to determine which switch is activated.
Ribet banget kyak'a...
Thanks for the video! It was useful for me in order to construct my "Bimbo V.1" device: ua-cam.com/video/vgfCYsiZAkE/v-deo.html By the way, what do you think it is actually good for?
Very bad presentation Al least you should you two colors wires.
Amen.