Ultrasonic sensor project with buzzer and arduino
ฝัง
- เผยแพร่เมื่อ 28 มิ.ย. 2019
- Hi friends ..
Ultrasonic sensor project with buzzer and arduino
By -- Be innovative with Prasad
Like - Share - Subscribe our channel
.
.
Circuit Diagram -
beinnovativewithprasad.blogsp...
..
.
.Arduino Code ---
beinnovativewithprasad.blogsp...
.. Please support our channel ...
thanks for watching ...
int trigPin = 2;
int echoPin = 3;
int buzzer = 13;
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;
if (distance
Can I know the different?
Thanks for giving this idea for my science exhibition
Nice bro thanks bro👌👌👍👍
Hello. There are many more than the example you have shown. I wish you could make an example where the intensity of the sound increases as you get closer or the number of leds that light up.
It's working great 👍👍👍
Thank you bro help us lot🙏🙏🙏
hello brother thank you very much
Thank you very much ❤️❤️
Thank You Sir
Thanks a lot, it actually worked, I followed other tutorials but they did not work :>
thanks for helping me with an idea for my science fare
Same to you bro I study in Vidyamandir
I'm doing the practice right now
which arduino , ultrasonic sensor u have used please give link
❤️❤️❤️❤️❤️
Nice video
Thanks
Send coding video
Thanks Bhai 👌👌🖕🥺🥺
Can we use dc motor instead of buzzer
Sir any speech voice is possible instead of tuen
how do you set a longer distance alarm trigger like 2 or 3 meters away?
Thanks it works😅
keren bgt bossss
Excuse me bro if we implement this project as a final year project so in a Thesis what will we write in a problem statement section ?
Bhaiya moj karadi apne meri gamd le lo
how to do it with buzzer module
Sir inke connection ke liye ham kis library ko download kare
Hey Bro, I Have 3 Pin Buzzer Sensor GND, I/O, VCC.... So which connection should I do...?
@be innovative with prasad
Connect vcc with 5v
Can i give 9volt power supply?
how to add servo motor to it please make a video on this if possible we will be happy
yes please
Bro i sub your channel because so far i could see only this vedio with programming code
Its an awesome project but the after project connection he made there is noe visual how he has connected the leds. My buzzer beeps alll the time I dont understand what mistake I did.
Can I use code for JSN-SR04T Waterproof Ultrasonic Obstacle Sensor Module with Probe
what is the name of that buzzer?
Can we use vibration motor instead of buzzer
Offcource
What will be the terminal address for lights???
How to avail d item
Can we adjust safe distance up to 20 meters
no the limit of sr04 sensors is 10 metres so only that much
No bro prasad said its 100 in centimetres.@@nuclearboy3859
The codes given me lot of errors what do i do
Battery not conted
I couldn't figure it out. I have a different buzzer with 3 pins. Could you make one based on that?
HOW TO INCREASE SAFE DISTANCE
@Prasad Kedari I HAVE MAKE THIS PROJECTS AS A Social Distancing Device please see my video on my youtube channel Thanks for code Prasad Kedari
video link th-cam.com/video/a253oHczXoA/w-d-xo.html
Where can we buy the speaker at?
Amazon
um the code
Code send
My buzzer got exploded😅
Bro code me error arha hai serial was not declared esha
Serial.begin(9600); Put this in setup. Then it want show any error.
Where is the code?
My buzzers are sounding like tik tik tik🤕
My also
pls pls also show how u uploaded the code its not working in mine its showing Arduino: 1.8.15 (Windows 7), Board: "Arduino Uno"
Sketch uses 3046 bytes (9%) of program storage space. Maximum is 32256 bytes.
Global variables use 200 bytes (9%) of dynamic memory, leaving 1848 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x34
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x34
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x34
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x34
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x34
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x34
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x34
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x34
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x34
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x34
Problem uploading to board. See support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Its Avrdude causing this try to use version of ide 2.2.1
It doesn't work 😞😞😞😞🙂😞🙂🙂
Fack video
@@prasadk6651 bro I am not using led so I want to change program according to me