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

Поділитися
Вставка
  • Опубліковано 16 вер 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 Рік тому +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  Рік тому

      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?