How to make an automatic door using Arduino PIR sensor and Servo motor

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • In this lesson we learn how to use the PIR along with the Servo motor to make an automatic door that opens up when someone crosses around.
    we will use the Arduino Uno board.

Комментарии • 26

  • @Enchatèmção
    @Enchatèmção 2 года назад +3

    Thanks, buddy. Iam a student and was searching for this to make for the science exhibition. I searched many codes finally found this one works. Thank you so much

    • @idukunda_lengo
      @idukunda_lengo  2 года назад

      The pleasure is all mine

    • @elhassanelaroui9258
      @elhassanelaroui9258 Год назад

      code

    • @carita1042
      @carita1042 Год назад

      #include
      int servoPin=4;
      Servo Door;
      int pirPin=2;
      int val =0;

      void setup()
      {
      pinMode(pirPin,INPUT);
      Door.attach(servoPin);
      Door.write(90);
      }

      void loop()
      {
      val= digitalRead(pirPin);
      if(val == HIGH) {
      Door.write(0);

      }
      else {
      Door.write(90);

      }
      delay(200);
      }

  • @narcissentawigenera293
    @narcissentawigenera293 2 года назад +2

    Very nice and important demo! Please, share other useful courses!

  • @sharksidestopmotion3289
    @sharksidestopmotion3289 Год назад

    Good video, very explanatory, I am learning to program and this video was very useful to me

  • @chicku2715
    @chicku2715 Год назад +2

    Bro can u put up to he connections please 🙏

    • @idukunda_lengo
      @idukunda_lengo  Год назад +3

      ofcourse check this link raw.githubusercontent.com/lengolionel/simple_servo_motor/main/servo.png

  • @johnmesiasmabulay3306
    @johnmesiasmabulay3306 10 месяцев назад

    Can you send the code to program an Arduino?

  • @thaaaa2714
    @thaaaa2714 Год назад

    can i get the void setup?that one, for the arduino uno

    • @thaaaa2714
      @thaaaa2714 Год назад

      i need that so muchhhhhh

    • @idukunda_lengo
      @idukunda_lengo  Год назад

      what do you need?? the circuit design, tell me !!

    • @thaaaa2714
      @thaaaa2714 Год назад

      @@idukunda_lengo no, the arduino code.like for the arduino...

  • @ryanmanlunas2103
    @ryanmanlunas2103 Год назад

    Good day bro can you give give me diagram?

    • @idukunda_lengo
      @idukunda_lengo  Год назад +1

      Yes sure! I will put it here, by today

    • @ryanmanlunas2103
      @ryanmanlunas2103 Год назад

      I just need your help sir because I need to pass my project this week and I already had materials which are ADRUINO UNO, BREADBOARD, PIR SENSOR, AND MICRO SERVO

    • @ryanmanlunas2103
      @ryanmanlunas2103 Год назад

      Do you have a social media account sir? Can I add you?

    • @idukunda_lengo
      @idukunda_lengo  Год назад +1

      @@ryanmanlunas2103 on Instagram lengolionel

    • @ryanmanlunas2103
      @ryanmanlunas2103 Год назад

      @@idukunda_lengo thank you for notice me sir sorry I don't have Instagram but I have only VIBER app. Sir I just ask you the PIR sensor is needed a led light?