How to make a Security System with Ultrasonic Sensor and Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 มิ.ย. 2024
  • Build a distance sensitive security system with ultrasonic sensor and Arduino board.
    This project is an ultrasonic sensor based alarm. It is distance sensitive so the speed of the buzzer depends upon how close or far the object is. If the object is near then the buzzer beeps faster and if it far then the buzzer beeps slowly.
    Components Used:
    1. Arduino Uno - amzn.to/3JsbMOw
    2. Buzzer - amzn.to/3pOSsDr
    3. Ultrasonic Sensor - amzn.to/3ziEMno
    IMPORTANT LINKS:
    Schematics - bit.ly/3wNGR92
    Code - bit.ly/3tbntRb
    🕹My Favourite Equipment :
    📷Camera - amzn.to/325QDZm
    📱Tab - amzn.to/3dUZRKP
    💻Laptop - amzn.to/3ywukrS
    🔭Tripod - amzn.to/3saDitD
    💡Lights - amzn.to/320iXwB
    🎤Mic - amzn.to/3p4nneF
    Timestamps:
    0:00 Project Introduction
    0:44 Circuit connections
    1:58 Uploading the sketch
    2:34 Final Output
    Social Media
    Instagram - / ​
    LinkedIn - / nimisha-c...​
    Full Tutorial-
    bit.ly/3dRFwp1
    Check out my other projects:
    Stopwatch with Arduino- • How to make a Stopwatc...
    Interface LCD with Raspberry Pi Pico - • Raspberry Pi pico with...
    Motion Detector with Pico- • How to use PIR motion...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 51

  • @dhishiva46
    @dhishiva46 6 หลายเดือนก่อน +1

    Thankyou so much!! Worked well for me❤

  • @johnjeffersonebergado7496
    @johnjeffersonebergado7496 ปีที่แล้ว +2

    Works fine for me Thank you for uploading!!!

    • @user-mj5ch6ws7r
      @user-mj5ch6ws7r 7 หลายเดือนก่อน

      Did you use 7v or 9v?
      Also, some of the comments said that the code is not working, how does it work with you? Please help me

  • @banttubanttu7408
    @banttubanttu7408 2 ปีที่แล้ว +5

    I want the same with high sensitivity, I mean It should work for any movement take place with a distance as much as 30-40 feet from the sensor. Thanks for your projects , you deserve more viewers.

  • @queen_girl56
    @queen_girl56 2 หลายเดือนก่อน +1

    Thnk u thnk u so much it's working

  • @adamboy-is-great-23
    @adamboy-is-great-23 3 หลายเดือนก่อน +1

    yo what is after else function in line 38
    I can't find it in the video. Also there are many bugs in the code

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

    thank you...🤓👍

  • @vaishnavikoornala9669
    @vaishnavikoornala9669 6 หลายเดือนก่อน +1

    i do not have a buzzer...is it still possible to make this?

  • @schecterlynx6775
    @schecterlynx6775 2 ปีที่แล้ว

    Is there barcoding for the device too?

  • @Szwaz9765
    @Szwaz9765 12 วันที่ผ่านมา

    It is working but my buzzer is making less sound how to fix it

  • @agalyab3619
    @agalyab3619 10 หลายเดือนก่อน

    Library file choosen is needed or not

  • @_sourx4803
    @_sourx4803 2 ปีที่แล้ว +2

    HII TYSMM I DIDNT PAY ATTNETION IN CLASS HAHA AND I DID THIS LAST MINUTE AND GOT GOT MARKS THANKS AGAIN

  • @Chathu-po7vd
    @Chathu-po7vd 10 หลายเดือนก่อน +1

    How to make in this program

  • @yalamanchilisameera7030
    @yalamanchilisameera7030 2 ปีที่แล้ว +1

    mam your project is too good i tried this but i can't able to select the port in the tools can you please help me... i have to submit this project tomorrow plzzz help me mam....

  • @agdimi5720
    @agdimi5720 27 วันที่ผ่านมา

    Did anyone do it with scratch 4 arduino? Because I would like some help with the code s4a. It's for elementary school class

  • @dragonknight0siriphatra810
    @dragonknight0siriphatra810 2 ปีที่แล้ว

    thank you but my buzzer is super quiet what could i do to fix this?

    • @n_tech3861
      @n_tech3861  ปีที่แล้ว

      Amplify it, use a transistor circuit

  • @yyyyyy1736
    @yyyyyy1736 6 หลายเดือนก่อน +1

    Yesss

  • @mohammedyoonus7651
    @mohammedyoonus7651 2 ปีที่แล้ว

    While I upload the coding itself the buzzer starts to sound I done all thinks as per the circuit diagram why it's happening

    • @asg2832
      @asg2832 2 ปีที่แล้ว +2

      when finally uploading the coding to the board add the buzzer then it's alright

  • @mhdzhafran606
    @mhdzhafran606 2 ปีที่แล้ว

    does this projeft use battery 9v?

  • @ainuldayana1227
    @ainuldayana1227 8 หลายเดือนก่อน

    what volt of buzzer are used in this project?

    • @Arafat325
      @Arafat325 15 วันที่ผ่านมา

      I don't know 😅

  • @leni9605
    @leni9605 2 ปีที่แล้ว +3

    something is wrong with the code. The buzzer wont top beeping even when nothing is in front of the sensor. Check the code

    • @KoreanClass97519
      @KoreanClass97519 5 หลายเดือนก่อน

      Same...did u do any changes...pls let me know if u hv

  • @user-mj5ch6ws7r
    @user-mj5ch6ws7r 7 หลายเดือนก่อน +1

    Did you use 7v or 9v battery?

    • @user-mj5ch6ws7r
      @user-mj5ch6ws7r 7 หลายเดือนก่อน

      Please answer me I have a project and the deadline after 5 days

  • @bokobokoko9161
    @bokobokoko9161 2 ปีที่แล้ว

    Can I replace the beeper with 5V pump?

    • @n_tech3861
      @n_tech3861  ปีที่แล้ว

      Yes

    • @mdtameem324
      @mdtameem324 ปีที่แล้ว

      ​@@n_tech3861 could you tell where to connect battery to audrino uno

    • @Szwaz9765
      @Szwaz9765 ปีที่แล้ว

      ​@@mdtameem324just connect the wire of the battery to :
      Black wire gnd
      Red wire to vin

  • @Jjtofe
    @Jjtofe ปีที่แล้ว

    The voice is quite what should I do

  • @TheAseemShahi
    @TheAseemShahi 2 ปีที่แล้ว

    How many voltage inpute

  • @user-ni9oh4jj3f
    @user-ni9oh4jj3f 2 ปีที่แล้ว

    Hi, i have a project on Arduino , can u help me plz?

  • @user-ol3vp1tn2q
    @user-ol3vp1tn2q 7 หลายเดือนก่อน +1

    can you upload the link coding ?

  • @jaredgalecia6603
    @jaredgalecia6603 ปีที่แล้ว

    Saan po yung code

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

    hyyy i am getting an error

  • @shuttyskenzin9237
    @shuttyskenzin9237 2 ปีที่แล้ว +1

    Hi please check your code, your code has some error. please go in ur code and verify it please thx and reply fast thx

    • @n_tech3861
      @n_tech3861  2 ปีที่แล้ว

      Hey can you please mention where exactly is it going wrong because I am unable to find it

    • @shuttyskenzin9237
      @shuttyskenzin9237 2 ปีที่แล้ว

      @@n_tech3861 Hi, so when i run the code it said something like "can have definition variable before '{' token" something like that

    • @n_tech3861
      @n_tech3861  2 ปีที่แล้ว

      @@shuttyskenzin9237 you may have missed an opening or a closing bracket

    • @tosinbolaji416
      @tosinbolaji416 2 ปีที่แล้ว

      Please who has the correct code

  • @jindagiwithsmile391
    @jindagiwithsmile391 2 ปีที่แล้ว

    Mam please please please 🙏 send the code in my comments

    • @n_tech3861
      @n_tech3861  2 ปีที่แล้ว

      #define trigPin 6
      #define echoPin 5
      #define buzzer 2
      float new_delay;
      void setup()
      {
      Serial.begin (9600);
      pinMode(trigPin, OUTPUT);
      pinMode(echoPin, INPUT);
      pinMode(buzzer,OUTPUT);

      }
      void loop()
      {
      long duration, distance;
      digitalWrite(trigPin, LOW);
      delayMicroseconds(2);
      digitalWrite(trigPin, HIGH);
      delayMicroseconds(10);
      digitalWrite(trigPin, LOW);
      duration = pulseIn(echoPin, HIGH);
      distance = (duration/2) / 29.1;
      new_delay= (distance *3) +30;
      Serial.print(distance);
      Serial.println(" cm");
      if (distance < 50)
      {
      digitalWrite(buzzer,HIGH);
      delay(new_delay);
      digitalWrite(buzzer,LOW);

      }
      else
      {
      digitalWrite(buzzer,LOW);
      }

      delay(200);
      }

    • @gergesezat4715
      @gergesezat4715 ปีที่แล้ว

      Jjj