2 limit switches wiring using same pin Arduino

  Рет қаралды 140,415

Maker Tutor

Maker Tutor

6 жыл бұрын

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!

Пікірлер: 25
@TheCraftingDen
@TheCraftingDen 2 жыл бұрын
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.
@yogeshitaliya473
@yogeshitaliya473 6 жыл бұрын
Nice one
@tomgrabowski3493
@tomgrabowski3493 6 жыл бұрын
The layout in the video was very hard to see. A schematic would be very helpful.
@thehealer394
@thehealer394 6 жыл бұрын
From iraq Thanks very much
@PrabowoAndrianto
@PrabowoAndrianto 6 жыл бұрын
Koko Laemon mopooioiop99ioopojm joooolkkokoookkjkkkokkkkkkkkkkkkkkkkkkkkkkkkkkklkkkkkk,kkk,,kkkk,kkkkkķkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkklkkkkkkkkkkkkkkk😇😋😋😊😋😊😊😉😆😅😅😄😃😂😁😀🤗🙂🙂☺😚😙😗😘😍😎😎🤐😮😮😥😣🐘🐘7
@user-go1dx2dh9x
@user-go1dx2dh9x 6 жыл бұрын
Andrianto Tekidanto психиатр плачет по тебе ... Сходи , полечи голову !
@falakniaz1780
@falakniaz1780 5 жыл бұрын
I need the daigram for this please
@indian_techieee
@indian_techieee 5 жыл бұрын
How read limit switch induvially
@Saxonpod
@Saxonpod 4 жыл бұрын
How do you get the LED to stay on after you've released the switch?
@104littleal6
@104littleal6 3 жыл бұрын
Each limit switch will turn on the LED, hold them both down and release one and the light stays on
@industrial.inoxidable
@industrial.inoxidable 4 жыл бұрын
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!
@vanjagodachii5071
@vanjagodachii5071 6 ай бұрын
How to control servo motor with 2 limit switches using Arduino?
@musicvibes1703
@musicvibes1703 2 жыл бұрын
Gamit po kayu, ibang kulay Ng wiring para mas madali intindihin. Ty
@mostafashaker9871
@mostafashaker9871 Жыл бұрын
انا عايز اعرف القطعة الحمراء مهمتة اية
@shihaowong1843
@shihaowong1843 5 жыл бұрын
what different with push button…🙄
@biswasdipak2795
@biswasdipak2795 6 жыл бұрын
3 pin switch why 02 pin setting. Please help me.
@104littleal6
@104littleal6 5 жыл бұрын
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.
@AbhishekSharma-xu7vr
@AbhishekSharma-xu7vr 8 күн бұрын
Please provide code
@OGThinkster
@OGThinkster 2 жыл бұрын
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.
@AztecWarrior69
@AztecWarrior69 8 ай бұрын
"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.
@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?
@sitimaulida9624
@sitimaulida9624 5 жыл бұрын
Ribet banget kyak'a...
@amarjitrazz9425
@amarjitrazz9425 5 жыл бұрын
Very bad presentation Al least you should you two colors wires.
@Jefflong2011
@Jefflong2011 3 жыл бұрын
Amen.
IQ Level: 10000
00:10
Younes Zarou
Рет қаралды 10 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 57 МЛН
Part 4: Limit Switch Wiring for the Mach3 USB Controller
5:24
BuildYourCNC
Рет қаралды 71 М.
CNC Grbl  Limit Switch Wiring The ultimate solution
2:09
Maker Tutor
Рет қаралды 96 М.
Proximity Sensor with Arduino Uno
13:29
Passion Tech KLM
Рет қаралды 7 М.
Top 5 Z44N Mosfet Electronic Diy Projects
10:14
ZAFER YILDIZ
Рет қаралды 231 М.
Understanding a Microswitch
4:01
Cecil Colvin
Рет қаралды 465 М.
3 Electronics Projects for Beginners that will amaze you
5:23
Inventor AW
Рет қаралды 282 М.
Stepper Motor Controller Without Arduino or Microcontrollers | Simple DIY
5:41
Electrical Projects [CreativeLab]
Рет қаралды 122 М.
АЙФОН 20 С ФУНКЦИЕЙ ВИДЕНИЯ ОГНЯ
0:59
КиноХост
Рет қаралды 1,2 МЛН
İĞNE İLE TELEFON TEMİZLEMEK!🤯
0:17
Safak Novruz
Рет қаралды 1,7 МЛН