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... - วิทยาศาสตร์และเทคโนโลยี
Thankyou so much!! Worked well for me❤
Works fine for me Thank you for uploading!!!
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
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.
You can adjust the distance in the coding
Thnk u thnk u so much it's working
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
thank you...🤓👍
i do not have a buzzer...is it still possible to make this?
Is there barcoding for the device too?
It is working but my buzzer is making less sound how to fix it
Library file choosen is needed or not
HII TYSMM I DIDNT PAY ATTNETION IN CLASS HAHA AND I DID THIS LAST MINUTE AND GOT GOT MARKS THANKS AGAIN
😂
How to make in this program
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....
Did anyone do it with scratch 4 arduino? Because I would like some help with the code s4a. It's for elementary school class
thank you but my buzzer is super quiet what could i do to fix this?
Amplify it, use a transistor circuit
Yesss
While I upload the coding itself the buzzer starts to sound I done all thinks as per the circuit diagram why it's happening
when finally uploading the coding to the board add the buzzer then it's alright
does this projeft use battery 9v?
I used 7V
what volt of buzzer are used in this project?
I don't know 😅
something is wrong with the code. The buzzer wont top beeping even when nothing is in front of the sensor. Check the code
Same...did u do any changes...pls let me know if u hv
Did you use 7v or 9v battery?
Please answer me I have a project and the deadline after 5 days
Can I replace the beeper with 5V pump?
Yes
@@n_tech3861 could you tell where to connect battery to audrino uno
@@mdtameem324just connect the wire of the battery to :
Black wire gnd
Red wire to vin
The voice is quite what should I do
How many voltage inpute
9 V to arduino
Hi, i have a project on Arduino , can u help me plz?
can you upload the link coding ?
Saan po yung code
hyyy i am getting an error
Check your wires
Hi please check your code, your code has some error. please go in ur code and verify it please thx and reply fast thx
Hey can you please mention where exactly is it going wrong because I am unable to find it
@@n_tech3861 Hi, so when i run the code it said something like "can have definition variable before '{' token" something like that
@@shuttyskenzin9237 you may have missed an opening or a closing bracket
Please who has the correct code
Mam please please please 🙏 send the code in my comments
#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);
}
Jjj