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

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ค. 2022
  • 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

  • @jombu5130
    @jombu5130 ปีที่แล้ว +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

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

  • @sharksidestopmotion3289
    @sharksidestopmotion3289 9 หลายเดือนก่อน

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

    • @idukunda_lengo
      @idukunda_lengo  9 หลายเดือนก่อน +1

      I am glad that it did, keep up

  • @johnmesiasmabulay3306
    @johnmesiasmabulay3306 6 หลายเดือนก่อน

    Can you send the code to program an Arduino?

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

  • @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 11 หลายเดือนก่อน

    Good day bro can you give give me diagram?

    • @idukunda_lengo
      @idukunda_lengo  11 หลายเดือนก่อน +1

      Yes sure! I will put it here, by today

    • @ryanmanlunas2103
      @ryanmanlunas2103 11 หลายเดือนก่อน

      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 11 หลายเดือนก่อน

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

    • @idukunda_lengo
      @idukunda_lengo  11 หลายเดือนก่อน +1

      @@ryanmanlunas2103 on Instagram lengolionel

    • @ryanmanlunas2103
      @ryanmanlunas2103 11 หลายเดือนก่อน

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