// Door Alarm Using Arduino UNO and Ultrasonic Sensor // Code to be used in the Text sub-window of tinkercad.com circuit page int trigger_pin = 2; int echo_pin = 3; int buzzer_pin = 10; int time; int distance; void setup() { Serial.begin (9600); pinMode (trigger_pin, OUTPUT); pinMode (echo_pin, INPUT); pinMode (buzzer_pin, OUTPUT); } void loop() { digitalWrite (trigger_pin, HIGH); delayMicroseconds (10); digitalWrite (trigger_pin, LOW); time = pulseIn (echo_pin, HIGH); distance = (time * 0.034) / 2; if (distance
Display the distance of the object located from the sensor on the LCD and warn with buzzer if the object is located less than 25cm from the sensor without breadboard. Can you help me to solve this sir?
You can download the code from the link given in the description. Modify the code and copy and paste in the text area and run. Thanks for the interest shown.. Plz do subscribe.
Thanks for the interest shown. You can not paste the code in Block+Text coding. But yes you can copy and paste after selecting the Text mode only. Plz do like, share, and subscribe.
Thanks for the interest shown. The ultrasonic code you can find easily online. You can just connect and test it. To make the experiment using the Text+block coding you can watch the latest video. ruclips.net/video/SXAh4gliRE8/видео.html
I don't know why he is having 18k views he deserves millions of views on this video
Thanks a lot for such wonderful comment
give me this code plzzzz bro
// Door Alarm Using Arduino UNO and Ultrasonic Sensor
// Code to be used in the Text sub-window of tinkercad.com circuit page
int trigger_pin = 2;
int echo_pin = 3;
int buzzer_pin = 10;
int time;
int distance;
void setup()
{
Serial.begin (9600);
pinMode (trigger_pin, OUTPUT);
pinMode (echo_pin, INPUT);
pinMode (buzzer_pin, OUTPUT);
}
void loop()
{
digitalWrite (trigger_pin, HIGH);
delayMicroseconds (10);
digitalWrite (trigger_pin, LOW);
time = pulseIn (echo_pin, HIGH);
distance = (time * 0.034) / 2;
if (distance
@@mokshitgarg1036 thank you
Thank you.. For making this and helping me..
how is this code being implemented as a door buzzer?
can u explain the logic behind using 10 as distance?
thanks for the interest shown.
I want the buzzer to stop when the distance is greater than 20 cm for example,
but it just keeps on,
Can you do it in a code block
Thanks for useful information
Thanks for liking
It is working thank u so much
Thank you so much 😀
Display the distance of the object located from the sensor on the LCD and warn with buzzer if the object is located less than 25cm from the sensor without breadboard. Can you help me to solve this sir?
You can download the code from the link given in the description. Modify the code and copy and paste in the text area and run. Thanks for the interest shown.. Plz do subscribe.
Plz Like, Subscribe and Comment to suggest to make different applications. Thanks
Please send the code...
Its not clear
When your system will have problems?
find the solution for the system
Wowww very good 😁😀😀😀😀
Thank you, plz do subscribe and share.
But how to explain this in viva ?
where is the code
thank you for the coding but why it is not working?
Thanks for the interest. Plz check the code what you ve made/copied.
Sir description wala coding text mai simulate nhi ho rha hai
Plzz reply sir
I hope it ll work. PLz make sure the pin connection to arduino from ultrasonic sensor are correctly configured in the code as well.
Thankyou so much sir it works 💕😭
can i get the code
?
thank you indian man
I try this but buzzer not start beeping
Your buzzer was the problem. Mine were working good.
Can you do this project coding using block?
you can create it easily, just add the block of ultrasonic sensor and do the necessary connection and simple coding.
Nice
Thanks
Nice working.
Thanks 👍
hi, i cant paste the code in the tinkercad. Can you help me?
Thanks for the interest shown. You can not paste the code in Block+Text coding. But yes you can copy and paste after selecting the Text mode only. Plz do like, share, and subscribe.
What is the difference between those two ultrasonic distance sensor?
I ve not used the other one. I ll used it in my next video to check the difference. Plz do subscribe.
can you please make coding using blocks
Thank you for the interest. plz watch other videos within this channel. there are 4 more videos using only block programming.
Thanks for program 👍
Keep watching. Plz do subscribe for the kind support and motivation.
give me this code plzzzz
plz check description
Give me this code
Thanks for the interest shown. The ultrasonic code you can find easily online. You can just connect and test it. To make the experiment using the Text+block coding you can watch the latest video.
ruclips.net/video/SXAh4gliRE8/видео.html