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!
  • Наука та технологія

КОМЕНТАРІ • 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 років тому +1

    Nice one

  • @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
      психиатр плачет по тебе ... Сходи , полечи голову !

  • @tomgrabowski3493
    @tomgrabowski3493 6 років тому +4

    The layout in the video was very hard to see. A schematic would be very helpful.

  • @musicvibes1703
    @musicvibes1703 2 роки тому

    Gamit po kayu, ibang kulay Ng wiring para mas madali intindihin. Ty

  • @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?

  • @indian_techieee
    @indian_techieee 5 років тому

    How read limit switch induvially

  • @falakniaz1780
    @falakniaz1780 5 років тому

    I need the daigram for this please

  • @mostafashaker9871
    @mostafashaker9871 Рік тому

    انا عايز اعرف القطعة الحمراء مهمتة اية

  • @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.

  • @shihaowong1843
    @shihaowong1843 4 роки тому +1

    what different with push button…🙄

  • @AztecWarrior69
    @AztecWarrior69 7 місяців тому

    "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.

  • @AbhishekSharma-xu7vr
    @AbhishekSharma-xu7vr День тому

    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.

  • @sitimaulida9624
    @sitimaulida9624 5 років тому

    Ribet banget kyak'a...

  • @discolapy
    @discolapy 4 роки тому

    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?

  • @amarjitrazz9425
    @amarjitrazz9425 5 років тому +3

    Very bad presentation Al least you should you two colors wires.