Obstacle Detection Using Ultrasonic Sensor|Arduino Uno|

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 มิ.ย. 2024
  • Obstacle detection using ultrasonic sensor and Arduino Uno.
    This video is a tutorial on using the utlrasonic sensor(HC-SR04) with the arduino uno.
    -HC-SR04 is a sensor that works on sound waves. These sound waves hit and reflect from an object and the time taken for a wave to travel and come back is used in calculating the obstacle distance from sensor.
    Link for Github code : github.com/nachi-hebbar/Objec...
    -Programming and connections explained in detail. Leave any queries in the comments section. Thanks for watching !
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Thanks so much
    For explaining the code clearly

  • @SofiaTipou
    @SofiaTipou 4 ปีที่แล้ว +1

    Cool video! I subscribed as I saw that you are really close to 1000 subscribers!

  • @craftoast
    @craftoast 3 ปีที่แล้ว

    Thanks so much , it was very helpful for me
    many video i watched for this but you explained the codes very nicely i really understood whole code thank u

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

    Thanks a lot! It helped me a lot ♥️♥️♥️

  • @bhavishaysingh1374
    @bhavishaysingh1374 3 ปีที่แล้ว +1

    it worked , thanks bro
    i am very exited , thanks bro , i am super happy this is my first project dated 28 march 2021 .

  • @priyanshbansal7244
    @priyanshbansal7244 4 ปีที่แล้ว +1

    Amazing video bro great effort

  • @aishwaryachavan2114
    @aishwaryachavan2114 3 ปีที่แล้ว

    My question is can we do this circuit which works like when first person is detected , then no Buzzer on but when second person is detected within 2 minutes from first person detected then buzzer turn on otherwise remains Off

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

    Hello there, Today I was searching for a video to teach me Arduino coding...and then I watched this video. Your explanation is really well. I have one doubt thought. What should be code if I want to use two leds one of them should glow when dist. Is less than 10cm and one should glow when dist is more than 10cm?

  • @aminfirdaus3279
    @aminfirdaus3279 3 ปีที่แล้ว

    thanks mate!

  • @shaniltsthatsme
    @shaniltsthatsme 4 ปีที่แล้ว

    perfect explanation.

  • @RoshanAbbas.
    @RoshanAbbas. ปีที่แล้ว

    Upto how much distance it will measure ...where u give the input i.e,ultrasonic waves to this

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

    awesome!, quick question, when i go to upload and verify the program to my Arduino is says ' expected primary-expression before ')' token. ' . why is this?

    • @NachiketaHebbar
      @NachiketaHebbar  3 ปีที่แล้ว

      it's a syntax error, you probably forgot to insert a semi colon in some line

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

      delete the extra ')' beside the " if(cm

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

    hi bro, how to stop the ultrasonic sensor detection after 5 seconds if the object is still at front of the ultrasonic sensor. Please I really need your help.

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

    Thanks dude

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

    For some reosen when I put pulseln it doesn’t declare

  • @shravanbhat9750
    @shravanbhat9750 3 ปีที่แล้ว +5

    :: error: expected primary-expression before ')' token
    if( cm Preferences.

  • @bilbinmathew678
    @bilbinmathew678 4 ปีที่แล้ว

    Nice explanation, thank you
    could you please say clearly about the command , serial begin (9600)

    • @NachiketaHebbar
      @NachiketaHebbar  4 ปีที่แล้ว

      It is used to establish serial communication at 9600 baud rate

  • @nishatquraishi7530
    @nishatquraishi7530 3 ปีที่แล้ว

    One quick question can the sensor detect the object if it is placed at the back side of the snsor

    • @NachiketaHebbar
      @NachiketaHebbar  3 ปีที่แล้ว

      No, the waves from the sensor has to hit the object. So it has to be at the front of it

  • @SEM.Solarc.Technologies
    @SEM.Solarc.Technologies 4 ปีที่แล้ว

    Mujhe code chaye jab koi ultrasonic sensor 250 centimeters ki range mai tu light hamari on ho jai 5 second k lyr

  • @SEM.Solarc.Technologies
    @SEM.Solarc.Technologies 4 ปีที่แล้ว

    Send me code when someone detect ultrasonic sensor our LED 5 second working

  • @saniyaanmol9401
    @saniyaanmol9401 3 ปีที่แล้ว

    Y havent you shared the circuit diagram ?

  • @dipikasahoo5546
    @dipikasahoo5546 3 ปีที่แล้ว

    Can we make any reverse code change for a project to detect stationary objects. Please help!

    • @NachiketaHebbar
      @NachiketaHebbar  3 ปีที่แล้ว +1

      This code and ultra sonic sensor will also detect stationary objects. It only depends on the waves sent from sensor hitting the object and coming back.

    • @dipikasahoo5546
      @dipikasahoo5546 3 ปีที่แล้ว

      When an objects keep moving continuously in front of this sensor still it is going to detect right?
      But my objective is that if those objects in front of sensor are in continuous movement and suddenly it stops(no movement) how can it detect? Can we change durations and may b possible?

    • @NachiketaHebbar
      @NachiketaHebbar  3 ปีที่แล้ว +1

      Yes, you have to make a slight change. When an obstacle is detected you need to wait for a period say 15 seconds(give delay), and check if the object is still present. If it is, then it means the object is stationary.

  • @emrobotics3635
    @emrobotics3635 3 ปีที่แล้ว

    The if statement in the program is failing to complete the program upload, help Please

    • @youness2121
      @youness2121 3 ปีที่แล้ว

      delete the extra ')' beside the " if(cm

  • @priyamulge2475
    @priyamulge2475 4 ปีที่แล้ว +1

    Where we can get that code

    • @NachiketaHebbar
      @NachiketaHebbar  4 ปีที่แล้ว

      I have added that in the description.

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

    Bhaiya i want to contant you

  • @shravanbhat9750
    @shravanbhat9750 3 ปีที่แล้ว

    Code is showing error

  • @tnbroken4447
    @tnbroken4447 4 ปีที่แล้ว +1

    Can I use the code for my vodeo

  • @saniyaanmol9401
    @saniyaanmol9401 3 ปีที่แล้ว

    Brooooo